#NEWLINE# def loads( data , from_module = None ) : #NEWLINE# #INDENT# up = pickle . Unpickler ( StringIO ( data ) ) #NEWLINE# def find_global( module , cls ) : #NEWLINE# #INDENT# if ( ( module == 'copy_reg' ) and ( cls == '_reconstructor' ) ) : #NEWLINE# #INDENT# return copy_reg . _reconstructor #NEWLINE# #UNINDENT# if ( module == '__builtin__' ) : #NEWLINE# #INDENT# return getattr ( __builtins__ , cls ) #NEWLINE# #UNINDENT# if ( from_module is not None ) : #NEWLINE# #INDENT# return getattr ( from_module , cls ) #NEWLINE# #UNINDENT# return globals ( ) [ cls ] #NEWLINE# #UNINDENT# up . find_global = find_global #NEWLINE# return up . load ( )