From 06f2130575b4efb15516800d653b6a325622e7b8 Mon Sep 17 00:00:00 2001 From: sebres Date: Thu, 5 Jul 2018 19:27:07 +0200 Subject: [PATCH] typo/indent fix (no functional changes) --- fail2ban/helpers.py | 2 +- fail2ban/server/database.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)