#NEWLINE# def _load_serializers( ) : #NEWLINE# #INDENT# '\n    Register built-in and settings-defined serializers. This is done lazily so\n    that user code has a chance to (e.g.) set up custom settings without\n    needing to be careful of import order.\n    ' #NEWLINE# global _serializers #NEWLINE# serializers = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for format in BUILTIN_SERIALIZERS : #NEWLINE# #INDENT# register_serializer ( format , BUILTIN_SERIALIZERS [ format ] , serializers ) #NEWLINE# #UNINDENT# if hasattr ( settings , 'SERIALIZATION_MODULES' ) : #NEWLINE# #INDENT# for format in settings . SERIALIZATION_MODULES : #NEWLINE# #INDENT# register_serializer ( format , settings . SERIALIZATION_MODULES [ format ] , serializers ) #NEWLINE# #UNINDENT# #UNINDENT# _serializers = serializers