Remove every old-style class.
This commit is contained in:
parent
27b3592e16
commit
88074cd284
1 changed files with 56 additions and 56 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue