diff options
author | Steven Hiscocks <steven@hiscocks.me.uk> | 2014-02-27 20:46:48 +0000 |
---|---|---|
committer | Steven Hiscocks <steven@hiscocks.me.uk> | 2014-02-27 20:46:48 +0000 |
commit | 689ed9d5112583c5eba1ca9e6ad37a2456a4ddc2 (patch) | |
tree | 9f68be7ca98e092da3c8554be271376397159a4b /fail2ban/__init__.py | |
parent | f68ab3c4debb104d9d2c29df7a25e3691edf7d49 (diff) | |
download | fail2ban-689ed9d5112583c5eba1ca9e6ad37a2456a4ddc2.tar.gz |
DOC: Fix up doc strings styling to comply with numpy doc style
Diffstat (limited to 'fail2ban/__init__.py')
-rw-r--r-- | fail2ban/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fail2ban/__init__.py b/fail2ban/__init__.py index f6c5f2de..cbaaf757 100644 --- a/fail2ban/__init__.py +++ b/fail2ban/__init__.py @@ -39,7 +39,7 @@ logging.addLevelName(logging.NOTICE, 'NOTICE') # define a new logger function for notice # this is exactly like existing info, critical, debug...etc -def Logger_notice(self, msg, *args, **kwargs): +def _Logger_notice(self, msg, *args, **kwargs): """ Log 'msg % args' with severity 'NOTICE'. @@ -51,11 +51,11 @@ def Logger_notice(self, msg, *args, **kwargs): if self.isEnabledFor(logging.NOTICE): self._log(logging.NOTICE, msg, args, **kwargs) -logging.Logger.notice = Logger_notice +logging.Logger.notice = _Logger_notice # define a new root level notice function # this is exactly like existing info, critical, debug...etc -def root_notice(msg, *args, **kwargs): +def _root_notice(msg, *args, **kwargs): """ Log a message with severity 'NOTICE' on the root logger. """ @@ -64,7 +64,7 @@ def root_notice(msg, *args, **kwargs): logging.root.notice(msg, *args, **kwargs) # make the notice root level function known -logging.notice = root_notice +logging.notice = _root_notice # add NOTICE to the priority map of all the levels logging.handlers.SysLogHandler.priority_map['NOTICE'] = 'notice' |