Skip to content

Commit

Permalink
using NotImplementedError
Browse files Browse the repository at this point in the history
  • Loading branch information
xmendez committed Oct 29, 2018
1 parent 64ffed5 commit 3286415
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/wfuzz/externals/moduleman/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ def __init__(self, **params):
self.set_params(**params)

def set_params(self, **params):
raise NotImplemented
raise NotImplementedError

def load(self, registrant):
raise NotImplemented
raise NotImplementedError


class FileLoader(IModuleLoader):
Expand Down
2 changes: 1 addition & 1 deletion src/wfuzz/externals/moduleman/modulefilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

class IFilter:
def is_visible(self, plugin, filter_string):
raise NotImplemented
raise NotImplementedError


class Filter(IFilter):
Expand Down
10 changes: 5 additions & 5 deletions src/wfuzz/externals/moduleman/registrant.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ def __init__(self, loader, plg_filter):
self.end_loading()

def register(self, identifier, module):
raise NotImplemented
raise NotImplementedError

def start_loading(self):
raise NotImplemented
raise NotImplementedError

def load(self):
raise NotImplemented
raise NotImplementedError

def end_loading(self):
raise NotImplemented
raise NotImplementedError

def modify_instance(self, module):
raise NotImplemented
raise NotImplementedError


class KnowledgeBase(MutableMapping):
Expand Down
4 changes: 2 additions & 2 deletions src/wfuzz/externals/settings/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, save=False):

def get_config_file(self):
'''Returns the name of the file where the config is saved.'''
raise NotImplemented
raise NotImplementedError

def set_defaults(self):
'''
Expand All @@ -36,7 +36,7 @@ def set_defaults(self):
...
}
'''
raise NotImplemented
raise NotImplementedError

def has_option(self, section, setting):
return self.cparser.has_option(section, setting)
Expand Down
4 changes: 2 additions & 2 deletions src/wfuzz/myqueues.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ def next_queue(self, q):
self.queue_out = q

def process(self, item):
raise NotImplemented
raise NotImplementedError

def get_name(self):
raise NotImplemented
raise NotImplementedError

# Override this method if needed. This will be called just before cancelling the job.
def cancel(self):
Expand Down
2 changes: 1 addition & 1 deletion src/wfuzz/plugin_api/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def process(self, fuzzresult):
A kbase (get_kbase, has_kbase, add_kbase) is shared between all plugins. this can be used to store and retrieve relevant "collaborative" information.
'''
raise NotImplemented
raise NotImplementedError

def validate(self):
raise FuzzExceptPluginError("Method count not implemented")
Expand Down

0 comments on commit 3286415

Please sign in to comment.