Raise NotImplementedError, not NotImplemented singleton

NotImplementedError is for exceptions, NotImplemented is an error
singleton

Change-Id: I2bc42783c5bb92a32d7c3b0f5efab32a2e2f8fb6
This commit is contained in:
Johannes Erdfelt 2012-07-18 21:46:19 +00:00
parent 98e412b027
commit 9d76b6f9f7
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class BaseHostFilter(object):
"""Base class for host filters."""
def host_passes(self, host_state, filter_properties):
raise NotImplemented()
raise NotImplementedError()
def _full_name(self):
"""module.classname of the filter."""