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 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): # short names for pure numeric log-level ("Level 25" could be truncated by short formats):
def _init(): def _init():
for i in xrange(50): for i in range(50):
if logging.getLevelName(i).startswith('Level'): if logging.getLevelName(i).startswith('Level'):
logging.addLevelName(i, '#%02d-Lev.' % i) logging.addLevelName(i, '#%02d-Lev.' % i)
_init() _init()

Loading…
Cancel
Save