File indexing completed on 2024-04-28 15:53:57

0001 # AUTO-GENERATED FILE -- DO NOT EDIT
0002 
0003 """ C implementation and optimization of the Python pickle module. """
0004 
0005 class BadPickleGet(UnpicklingError):
0006 
0007   pass
0008 
0009 HIGHEST_PROTOCOL = 2
0010 
0011 class PickleError(Exception):
0012 
0013   pass
0014 
0015 def Pickler(file, protocol=0):
0016   """ Pickler(file, protocol=0) -- Create a pickler.
0017   
0018   This takes a file-like object for writing a pickle data stream.
0019   The optional proto argument tells the pickler to use the given
0020   protocol; supported protocols are 0, 1, 2.  The default
0021   protocol is 0, to be backwards compatible.  (Protocol 0 is the
0022   only protocol that can be written to a file opened in text
0023   mode and read back successfully.  When using a protocol higher
0024   than 0, make sure the file is opened in binary mode, both when
0025   pickling and unpickling.)
0026   
0027   Protocol 1 is more efficient than protocol 0; protocol 2 is
0028   more efficient than protocol 1.
0029   
0030   Specifying a negative protocol version selects the highest
0031   protocol version supported.  The higher the protocol used, the
0032   more recent the version of Python needed to read the pickle
0033   produced.
0034   
0035   The file parameter must have a write() method that accepts a single
0036   string argument.  It can thus be an open file object, a StringIO
0037   object, or any other custom object that meets this interface.
0038    """
0039   return None
0040 
0041 class PicklingError(PickleError):
0042 
0043   pass
0044 
0045 class UnpickleableError(PicklingError):
0046 
0047   pass
0048 
0049 def Unpickler(file):
0050   """ Unpickler(file) -- Create an unpickler. """
0051   return None
0052 
0053 class UnpicklingError(PickleError):
0054 
0055   pass
0056 
0057 __package__ = None
0058 __version__ = '1.71'
0059 compatible_formats = []
0060 
0061 def dump(obj, file, protocol=0):
0062   """ dump(obj, file, protocol=0) -- Write an object in pickle format to the given file.
0063   
0064   See the Pickler docstring for the meaning of optional argument proto. """
0065   return file(__file__)
0066 
0067 def dumps(obj, protocol=0):
0068   """ dumps(obj, protocol=0) -- Return a string containing an object in pickle format.
0069   
0070   See the Pickler docstring for the meaning of optional argument proto. """
0071   return ""
0072 
0073 format_version = '2.0'
0074 
0075 def load(file):
0076   """ load(file) -- Load a pickle from the given file """
0077   return file(__file__)
0078 
0079 def loads(string):
0080   """ loads(string) -- Load a pickle from the given string """
0081   return ""
0082