#NEWLINE# def __init__( self , purePythonClassMapping , objectRegistry ) : #NEWLINE# #INDENT# assert ( purePythonClassMapping is not None ) #NEWLINE# for singleton in NamedSingletons . pythonSingletonToName : #NEWLINE# #INDENT# if purePythonClassMapping . canMap ( singleton ) : #NEWLINE# #INDENT# raise UserWarning ( ( 'You provided a mapping that applies to %s, which already has a direct mapping' % singleton ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . _purePythonClassMapping = self #NEWLINE# self . _convertedObjectCache = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . _pyObjectIdToObjectId = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . _objectRegistry = objectRegistry