mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
fixed dependency issue if setup invoked using python 3.x: invocation of 2to3 takes place after setup (and __init__.py) loaded;
closes gh-2255.
This commit is contained in:
parent
e99635650a
commit
657b147c0d
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue