Browse Source

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
sebres 6 years ago
parent
commit
657b147c0d
  1. 2
      fail2ban/__init__.py

2
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()

Loading…
Cancel
Save