Removed obsolete (since Python 2.3) __safe_for_unpickling__ attribute.
This commit is contained in:
parent
58195f0b16
commit
ea8e7fd989
|
@ -301,11 +301,6 @@ def deferred_class_factory(model, attrs):
|
|||
return type(str(name), (model,), overrides)
|
||||
|
||||
|
||||
# The above function is also used to unpickle model instances with deferred
|
||||
# fields.
|
||||
deferred_class_factory.__safe_for_unpickling__ = True
|
||||
|
||||
|
||||
def refs_aggregate(lookup_parts, aggregates):
|
||||
"""
|
||||
A helper method to check if the lookup_parts contains references
|
||||
|
|
|
@ -314,7 +314,6 @@ def unpickle_lazyobject(wrapped):
|
|||
wrapped object.
|
||||
"""
|
||||
return wrapped
|
||||
unpickle_lazyobject.__safe_for_unpickling__ = True
|
||||
|
||||
|
||||
# Workaround for http://bugs.python.org/issue12370
|
||||
|
|
Loading…
Reference in New Issue