Removed obsolete (since Python 2.3) __safe_for_unpickling__ attribute.

This commit is contained in:
Tim Graham 2015-10-05 08:07:27 -04:00
parent 58195f0b16
commit ea8e7fd989
2 changed files with 0 additions and 6 deletions

View File

@ -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

View File

@ -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