summaryrefslogtreecommitdiff
path: root/fail2ban/__init__.py
diff options
context:
space:
mode:
authorsebres <serg.brester@sebres.de>2018-10-10 12:25:53 +0200
committersebres <serg.brester@sebres.de>2018-10-10 12:25:53 +0200
commit657b147c0d7830f3600f3dc7feaa4815a7e19fde (patch)
tree8d3fcecb6c499414432dd7dfac75eca111d0af3d /fail2ban/__init__.py
parente99635650af10da80eca55872d69b38a5badeb91 (diff)
downloadfail2ban-657b147c0d7830f3600f3dc7feaa4815a7e19fde.tar.gz
fixed dependency issue if setup invoked using python 3.x: invocation of 2to3 takes place after setup (and __init__.py) loaded;
closes gh-2255.
Diffstat (limited to 'fail2ban/__init__.py')
-rw-r--r--fail2ban/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fail2ban/__init__.py b/fail2ban/__init__.py
index fa6dcf77..61789a45 100644
--- a/fail2ban/__init__.py
+++ b/fail2ban/__init__.py
@@ -82,7 +82,7 @@ strptime("2012", "%Y")
# short names for pure numeric log-level ("Level 25" could be truncated by short formats):
def _init():
- for i in xrange(50):
+ for i in range(50):
if logging.getLevelName(i).startswith('Level'):
logging.addLevelName(i, '#%02d-Lev.' % i)
_init()