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

Make Constant.PropertyGetter a new style class

parent 14a90122
......@@ -32,7 +32,7 @@ from Accessor import Accessor
# Creation of default constructor
class func_code: pass
class PropertyGetter:
class PropertyGetter(object):
"""
This is class is mostly used in order to handle compatibility
issues when we wish to make a property a method. For instance,
......@@ -43,7 +43,7 @@ class PropertyGetter:
func_code.co_argcount = 0
func_defaults = ()
def __init__(self, id, value=None):
def __init__(self, id=None, value=None):
self._id = id
self.__name__ = id
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