diff options
author | sebres <serg.brester@sebres.de> | 2018-10-10 12:25:53 +0200 |
---|---|---|
committer | sebres <serg.brester@sebres.de> | 2018-10-10 12:25:53 +0200 |
commit | 657b147c0d7830f3600f3dc7feaa4815a7e19fde (patch) | |
tree | 8d3fcecb6c499414432dd7dfac75eca111d0af3d /fail2ban/__init__.py | |
parent | e99635650af10da80eca55872d69b38a5badeb91 (diff) | |
download | fail2ban-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__.py | 2 |
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() |