Commit 3a9dc261 authored by Jérome Perrin's avatar Jérome Perrin

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

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