home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / Calibre / calibre-0.8.18.msi / file_262 / __future__.pyo (.txt) next >
Encoding:
Python Compiled Bytecode  |  2011-09-09  |  2.1 KB  |  49 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.7)
  3.  
  4. all_feature_names = [
  5.     'nested_scopes',
  6.     'generators',
  7.     'division',
  8.     'absolute_import',
  9.     'with_statement',
  10.     'print_function',
  11.     'unicode_literals']
  12. __all__ = [
  13.     'all_feature_names'] + all_feature_names
  14. CO_NESTED = 16
  15. CO_GENERATOR_ALLOWED = 0
  16. CO_FUTURE_DIVISION = 8192
  17. CO_FUTURE_ABSOLUTE_IMPORT = 16384
  18. CO_FUTURE_WITH_STATEMENT = 32768
  19. CO_FUTURE_PRINT_FUNCTION = 65536
  20. CO_FUTURE_UNICODE_LITERALS = 131072
  21.  
  22. class _Feature:
  23.     
  24.     def __init__(self, optionalRelease, mandatoryRelease, compiler_flag):
  25.         self.optional = optionalRelease
  26.         self.mandatory = mandatoryRelease
  27.         self.compiler_flag = compiler_flag
  28.  
  29.     
  30.     def getOptionalRelease(self):
  31.         return self.optional
  32.  
  33.     
  34.     def getMandatoryRelease(self):
  35.         return self.mandatory
  36.  
  37.     
  38.     def __repr__(self):
  39.         return '_Feature' + repr((self.optional, self.mandatory, self.compiler_flag))
  40.  
  41.  
  42. nested_scopes = _Feature((2, 1, 0, 'beta', 1), (2, 2, 0, 'alpha', 0), CO_NESTED)
  43. generators = _Feature((2, 2, 0, 'alpha', 1), (2, 3, 0, 'final', 0), CO_GENERATOR_ALLOWED)
  44. division = _Feature((2, 2, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), CO_FUTURE_DIVISION)
  45. absolute_import = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), CO_FUTURE_ABSOLUTE_IMPORT)
  46. with_statement = _Feature((2, 5, 0, 'alpha', 1), (2, 6, 0, 'alpha', 0), CO_FUTURE_WITH_STATEMENT)
  47. print_function = _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), CO_FUTURE_PRINT_FUNCTION)
  48. unicode_literals = _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), CO_FUTURE_UNICODE_LITERALS)
  49.