diff --git a/fail2ban/helpers.py b/fail2ban/helpers.py index 11dec5aa..3297375b 100644 --- a/fail2ban/helpers.py +++ b/fail2ban/helpers.py @@ -45,7 +45,7 @@ if PREFER_ENC.startswith('ANSI_'): # pragma: no cover # caused by implicit converting of string/unicode (e. g. `str(u"\uFFFD")` produces an error # if default encoding is 'ascii'); if sys.version_info < (3,): # pragma: 3.x no cover - # correct default (global system) encoding (mostly UTF-8): + # correct default (global system) encoding (mostly UTF-8): def __resetDefaultEncoding(encoding): global PREFER_ENC ode = sys.getdefaultencoding().upper() diff --git a/fail2ban/server/database.py b/fail2ban/server/database.py index 5536f1e6..26e0223d 100644 --- a/fail2ban/server/database.py +++ b/fail2ban/server/database.py @@ -40,7 +40,7 @@ logSys = getLogger(__name__) def _json_default(x): - """Avoid errors on types unknow in json-adapters.""" + """Avoid errors on types unknown in json-adapters.""" if isinstance(x, set): x = list(x) return uni_string(x)