mirror of https://github.com/fail2ban/fail2ban
fixed dependency issue if setup invoked using python 3.x: invocation of 2to3 takes place after setup (and __init__.py) loaded;
closes gh-2255.pull/2279/head
parent
e99635650a
commit
657b147c0d
|
@ -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 New Issue