Merge pull request #6 from olysonek/NotImplementedError
Raise NotImplementedError instead of NotImplemented
This commit is contained in:
commit
ee22e87e60
2 changed files with 6 additions and 6 deletions
|
|
@ -844,7 +844,7 @@ class Base(object):
|
||||||
else:
|
else:
|
||||||
self._cmd.execute(['systemctl', 'disable', 'tuned'])
|
self._cmd.execute(['systemctl', 'disable', 'tuned'])
|
||||||
else:
|
else:
|
||||||
raise NotImplemented
|
raise NotImplementedError()
|
||||||
|
|
||||||
def execute_switch_tuned_admin_functions(self, switch, data):
|
def execute_switch_tuned_admin_functions(self, switch, data):
|
||||||
self.is_admin = self.switch_tuned_admin_functions.get_active()
|
self.is_admin = self.switch_tuned_admin_functions.get_active()
|
||||||
|
|
|
||||||
|
|
@ -4,18 +4,18 @@ class ExportableInterface(object):
|
||||||
class ExporterInterface(object):
|
class ExporterInterface(object):
|
||||||
def export(self, method, in_signature, out_signature):
|
def export(self, method, in_signature, out_signature):
|
||||||
# to be overriden by concrete implementation
|
# to be overriden by concrete implementation
|
||||||
raise NotImplemented()
|
raise NotImplementedError()
|
||||||
|
|
||||||
def signal(self, method, out_signature):
|
def signal(self, method, out_signature):
|
||||||
# to be overriden by concrete implementation
|
# to be overriden by concrete implementation
|
||||||
raise NotImplemented()
|
raise NotImplementedError()
|
||||||
|
|
||||||
def send_signal(self, signal, *args, **kwargs):
|
def send_signal(self, signal, *args, **kwargs):
|
||||||
# to be overriden by concrete implementation
|
# to be overriden by concrete implementation
|
||||||
raise NotImplemented()
|
raise NotImplementedError()
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
raise NotImplemented()
|
raise NotImplementedError()
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
raise NotImplemented()
|
raise NotImplementedError()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue