Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, out_file, protocol=None):
CloudPickler.__init__(self, out_file, protocol)
def __init__(self, file, protocol=None):
CloudPickler.__init__(self,file,protocol)
self.file = file
self.traceStack = [] #stack to track as objects are added
self.objSizes = {} #sizes of objects after pickling including sub data
self.objChildren = {} #objects pickled under this ID
self.lastobj = None
self.aborting = False