summaryrefslogtreecommitdiffstats
path: root/src/nbblib/bs.py
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2008-06-27 00:05:08 +0200
committerHans Ulrich Niedermann <hun@n-dimensional.de>2008-07-15 12:28:53 +0200
commit2a56d98fe97286918c28974a84fe1f534a45065d (patch)
tree7cd2fa990fede40368b5cbb43ada31a652cbd79f /src/nbblib/bs.py
parent1a88e6910815f0bc7aff3cf2ee00b1877df7524c (diff)
downloadnbb-2a56d98fe97286918c28974a84fe1f534a45065d.tar.gz
nbb-2a56d98fe97286918c28974a84fe1f534a45065d.tar.xz
nbb-2a56d98fe97286918c28974a84fe1f534a45065d.zip
Use @plugins.abstractmethod decorator
Diffstat (limited to 'src/nbblib/bs.py')
-rw-r--r--src/nbblib/bs.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/nbblib/bs.py b/src/nbblib/bs.py
index 8509c92..c0a8060 100644
--- a/src/nbblib/bs.py
+++ b/src/nbblib/bs.py
@@ -52,11 +52,16 @@ class BSSourceTree(plugins.GenericDetectPlugin):
repr(self.tree_root))
# Abstract methods
- def _get_tree_root(self): raise NotImplementedError()
- def init(self): raise NotImplementedError()
- def configure(self): raise NotImplementedError()
- def build(self): raise NotImplementedError()
- def install(self): raise NotImplementedError()
+ @plugins.abstractmethod
+ def _get_tree_root(self): pass
+ @plugins.abstractmethod
+ def init(self): pass
+ @plugins.abstractmethod
+ def configure(self): pass
+ @plugins.abstractmethod
+ def build(self): pass
+ @plugins.abstractmethod
+ def install(self): pass
class AutomakeSourceTree(BSSourceTree):