diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2008-06-27 03:17:55 +0200 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2008-07-15 12:28:54 +0200 |
commit | afcf5f6a1e7491b3e85524d504349f37942e7472 (patch) | |
tree | 20fb04990afc39238b19055fb4a89076d34037da /src/nbblib/vcs.py | |
parent | 1fd8089c39e6c6ea7f30ada804468fd04e4cf7d1 (diff) | |
download | nbb-afcf5f6a1e7491b3e85524d504349f37942e7472.tar.gz nbb-afcf5f6a1e7491b3e85524d504349f37942e7472.tar.xz nbb-afcf5f6a1e7491b3e85524d504349f37942e7472.zip |
Use @plugins.abstractmethod decorator
Diffstat (limited to 'src/nbblib/vcs.py')
-rw-r--r-- | src/nbblib/vcs.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nbblib/vcs.py b/src/nbblib/vcs.py index 8830cf3..c24b88e 100644 --- a/src/nbblib/vcs.py +++ b/src/nbblib/vcs.py @@ -82,17 +82,19 @@ class VCSourceTree(plugins.GenericDetectPlugin): return AbstractConfig(self.tree_root, self.branch_name) config = property(get_config) + @plugins.abstractmethod def _get_tree_root(self): """Get absolute path to source tree root""" - raise NotImplementedError() + pass def get_tree_root(self): return self._get_tree_root() tree_root = property(get_tree_root) + @plugins.abstractmethod def _get_branch_name(self): """Return name identifying the branch""" - raise NotImplementedError() + pass def get_branch_name(self): """Return name identifying the branch""" return self._get_branch_name() |