Merge branch 'lint/py3-classes' into 'master'
Consequently use Python 3-style classes See merge request ungleich-public/cdist!898
This commit is contained in:
commit
d478bef8a6
18 changed files with 19 additions and 22 deletions
|
|
@ -47,7 +47,7 @@ class MissingObjectIdError(cdist.Error):
|
|||
return '%s' % (self.message)
|
||||
|
||||
|
||||
class CdistObject(object):
|
||||
class CdistObject:
|
||||
"""Represents a cdist object.
|
||||
|
||||
All interaction with objects in cdist should be done through this class.
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ class InvalidTypeError(cdist.Error):
|
|||
self.type_path, self.type_absolute_path, self.source_path)
|
||||
|
||||
|
||||
class CdistType(object):
|
||||
class CdistType:
|
||||
"""Represents a cdist type.
|
||||
|
||||
All interaction with types in cdist should be done through this class.
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ code-remote
|
|||
'''
|
||||
|
||||
|
||||
class Code(object):
|
||||
class Code:
|
||||
"""Generates and executes cdist code scripts.
|
||||
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ type explorer is:
|
|||
'''
|
||||
|
||||
|
||||
class Explorer(object):
|
||||
class Explorer:
|
||||
"""Executes cdist explorers.
|
||||
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ class NoInitialManifestError(cdist.Error):
|
|||
return repr(self.message)
|
||||
|
||||
|
||||
class Manifest(object):
|
||||
class Manifest:
|
||||
"""Executes cdist manifests.
|
||||
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue