diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-02-14 17:39:01 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-02-22 16:14:51 +0100 |
commit | a1cb00cb58ac3d4aeeceafb31ff55fccb5171da4 (patch) | |
tree | e52d21c071c5ff80c715e547d9b4d059074ed646 | |
parent | 0b71e8911479df56f3eeb87502ba3deec01e0cf8 (diff) | |
download | gemato-a1cb00cb58ac3d4aeeceafb31ff55fccb5171da4.tar.gz |
cli: Remove __slots__ (they do not like mixins)
-rw-r--r-- | gemato/cli.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/gemato/cli.py b/gemato/cli.py index b9ff498..4b207ac 100644 --- a/gemato/cli.py +++ b/gemato/cli.py @@ -33,8 +33,6 @@ class GematoCommand(object): Base class for commands supported by gemato. """ - __slots__ = [] - @property def name(self): """ @@ -80,8 +78,6 @@ class BaseOpenPGPMixin(object): A base mixin that adds logic to load and use OpenPGP keys. """ - __slots__ = ['openpgp_env'] - def __init__(self): super(BaseOpenPGPMixin, self).__init__() self.openpgp_env = None @@ -119,8 +115,6 @@ class VerifyingOpenPGPMixin(BaseOpenPGPMixin): Verification-class OpenPGP mixin. Additionally refreshes keys. """ - __slots__ = [] - def add_options(self, subp): super(VerifyingOpenPGPMixin, self).add_options(subp) @@ -145,9 +139,6 @@ class VerifyCommand(VerifyingOpenPGPMixin, GematoCommand): name = 'verify' help = 'Verify one or more directories against Manifests' - __slots__ = ['paths', 'require_signed_manifest', - 'init_kwargs', 'kwargs'] - def add_options(self, verify): super(VerifyCommand, self).add_options(verify) @@ -231,8 +222,6 @@ class BaseUpdateMixin(BaseOpenPGPMixin): A mixin that adds common bits for update-class commands. """ - __slots__ = ['timestamp', 'init_kwargs', 'save_kwargs'] - def add_options(self, update): super(BaseUpdateMixin, self).add_options(update) @@ -297,8 +286,6 @@ class UpdateCommand(BaseUpdateMixin, GematoCommand): name = 'update' help = 'Update the Manifest entries for one or more directory trees' - __slots__ = ['paths', 'incremental'] - def add_options(self, update): super(UpdateCommand, self).add_options(update) @@ -377,8 +364,6 @@ class CreateCommand(BaseUpdateMixin, GematoCommand): name = 'create' help = 'Create a Manifest tree starting at the specified file' - __slots__ = ['paths'] - def add_options(self, create): super(CreateCommand, self).add_options(create) @@ -425,8 +410,6 @@ class HashCommand(GematoCommand): name = 'hash' help = 'Generate hashes for specified file(s) and/or stdin' - __slots__ = ['hashes', 'paths'] - def add_options(self, subp): super(HashCommand, self).add_options(subp) @@ -468,8 +451,6 @@ class OpenPGPVerifyCommand(VerifyingOpenPGPMixin, GematoCommand): name = 'openpgp-verify' help = 'Verify OpenPGP signatures embedded in specified file(s) and/or stdin' - __slots__ = ['paths'] - def add_options(self, subp): super(OpenPGPVerifyCommand, self).add_options(subp) |