home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_1911 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-10-31  |  1016 b   |  20 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. __docformat__ = 'restructuredtext en'
  5. import new
  6. import types
  7. import copy_reg
  8.  
  9. def code_ctor(*args):
  10.     return new.code(*args)
  11.  
  12.  
  13. def reduce_code(co):
  14.     if co.co_freevars or co.co_cellvars:
  15.         raise ValueError('Sorry, cannot pickle code objects with closures')
  16.     co.co_cellvars
  17.     return (code_ctor, (co.co_argcount, co.co_nlocals, co.co_stacksize, co.co_flags, co.co_code, co.co_consts, co.co_names, co.co_varnames, co.co_filename, co.co_name, co.co_firstlineno, co.co_lnotab))
  18.  
  19. copy_reg.pickle(types.CodeType, reduce_code)
  20.