Remove every old-style class.

This commit is contained in:
Emmanuel Gil Peyrot 2013-01-18 17:55:35 +01:00
commit 88074cd284

View file

@ -56,7 +56,7 @@ class ParseError(Exception):
#Used when the signature parsing is going wrong (invalid signature ?)
pass
class Constructor:
class Constructor(object):
def __init__(self, bridge_template, options):
self.bridge_template = bridge_template
@ -561,7 +561,7 @@ class DbusXmlConstructor(Constructor):
class ConstructorError(Exception):
pass
class ConstructorFactory:
class ConstructorFactory(object):
def create(self, bridge_template, options):
if options.protocole=='dbus':
return DbusConstructor(bridge_template, options)
@ -572,7 +572,7 @@ class ConstructorFactory:
raise ConstructorError('Unknown constructor type')
class BridgeConstructor:
class BridgeConstructor(object):
def __init__(self):
self.options = None