mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-05 04:36:52 +00:00
Start adding tests for Notifier class
This commit is contained in:
parent
d1d1d60032
commit
222be9ac49
2 changed files with 32 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ class Notifier(object):
|
|||
def notify(self, error_code, *args, **kwargs):
|
||||
"""Notify all listeners for the specified error code."""
|
||||
for listener in self.listeners_for(error_code):
|
||||
listener.notify(*args, **kwargs)
|
||||
listener.notify(error_code, *args, **kwargs)
|
||||
|
||||
def register_listener(self, error_code, listener):
|
||||
"""Register a listener for a specific error_code."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue