Kaydet (Commit) ea8e7fd9 authored tarafından Tim Graham's avatar Tim Graham

Removed obsolete (since Python 2.3) __safe_for_unpickling__ attribute.

üst 58195f0b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment