Commit fb3903a6 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fixup! py2/py3: 2to3 -f methodattrs

parent 6a2a647a
......@@ -72,7 +72,7 @@ class DummyMovement(Movement):
parent = self.getParentValue()
if isinstance(parent, DummyDelivery):
self = parent
return DummyDelivery.getSimulationState.__func__(self)
return DummyDelivery.getSimulationState(self)
def getDeliveryValue(self):
"""
......
......@@ -371,7 +371,7 @@ class PortalTypeMetaClass(GhostBaseMetaClass, PropertyHolder):
for key, value in six.iteritems(attribute_dict):
setattr(klass, key, value)
if getattr(klass.__setstate__, 'im_func', None) is \
if getattr(klass.__setstate__, '__func__', None) is \
persistent_migration.__setstate__:
# optimization to reduce overhead of compatibility code
klass.__setstate__ = persistent_migration.Base__setstate__
......
......@@ -32,7 +32,7 @@ def ObjectManager_importObjectFromFile(self, filepath, verify=1, set_owner=1, id
if verify: self._verifyObjectPaste(ob, validate_src=0)
if id is None:
id=ob.id
if hasattr(id, 'im_func'): id=id()
if hasattr(id, '__func__'): id=id()
self._setObject(id, ob, set_owner=set_owner, suppress_events=suppress_events)
......
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