Commit 8ab949e9 authored by Jérome Perrin's avatar Jérome Perrin

HACK: make PropertyGetter a new style class

We have in ZODB some PropertyGetter as new style classes (there are also
some cases in the XML exports in the repo, search for _dt_reconstructor
)
parent d0cbf874
...@@ -32,7 +32,7 @@ from Accessor import Accessor ...@@ -32,7 +32,7 @@ from Accessor import Accessor
# Creation of default constructor # Creation of default constructor
class func_code: pass class func_code: pass
class PropertyGetter: class PropertyGetter(object):
""" """
This is class is mostly used in order to handle compatibility This is class is mostly used in order to handle compatibility
issues when we wish to make a property a method. For instance, issues when we wish to make a property a method. For instance,
...@@ -43,7 +43,7 @@ class PropertyGetter: ...@@ -43,7 +43,7 @@ class PropertyGetter:
func_code.co_argcount = 0 func_code.co_argcount = 0
func_defaults = () func_defaults = ()
def __init__(self, id, value=None): def __init__(self, id=None, value=None):
self._id = id self._id = id
self.__name__ = id self.__name__ = id
self.value = value self.value = value
......
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