Commit b756e7d7 authored by Jérome Perrin's avatar Jérome Perrin

fixup! fixup! py2/py3: 2to3 -f methodattrs

parent 13ee16fb
......@@ -378,7 +378,7 @@ class PortalTypeMetaClass(GhostBaseMetaClass, PropertyHolder):
for key, value in six.iteritems(attribute_dict):
setattr(klass, key, value)
if getattr(klass.__setstate__, '__func__', None) is \
if getattr(klass.__setstate__, '__func__', klass.__setstate__) is \
persistent_migration.__setstate__:
# optimization to reduce overhead of compatibility code
klass.__setstate__ = persistent_migration.Base__setstate__
......
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