Commit a90c09c1 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Jérome Perrin

py2/py3: use six.get_unbound_function.

parent ec5b6e70
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, interfaces from Products.ERP5Type import Permissions, PropertySheet, interfaces
from erp5.component.document.Movement import Movement from erp5.component.document.Movement import Movement
from six import get_unbound_function
class DummyMovement(Movement): class DummyMovement(Movement):
"""Dummy Movement for testing purposes.""" """Dummy Movement for testing purposes."""
...@@ -72,7 +72,7 @@ class DummyMovement(Movement): ...@@ -72,7 +72,7 @@ class DummyMovement(Movement):
parent = self.getParentValue() parent = self.getParentValue()
if isinstance(parent, DummyDelivery): if isinstance(parent, DummyDelivery):
self = parent self = parent
return DummyDelivery.getSimulationState(self) return get_unbound_function(DummyDelivery.getSimulationState)(self)
def getDeliveryValue(self): def getDeliveryValue(self):
""" """
......
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