#NEWLINE# def __init__( self , archive , size , keys = [ ] , exc = None , paused = True , **kwargs ) : #NEWLINE# #INDENT# super ( UploadState , self ) . __init__ ( archive , size , ** kwargs ) #NEWLINE# self . cache = type ( self ) . cache #NEWLINE# self . logfile = self . control = None #NEWLINE# self . keys = keys #NEWLINE# self . progress = reduce ( ( lambda x , y : ( x + y [ 'size' ] ) ) , self . keys , 0 ) #NEWLINE# self . pausing = False #NEWLINE# self . _paused = paused #NEWLINE# self . exc = exc #NEWLINE# self . deferred_upload = None