Get colorama version correctly

This commit is contained in:
Florian Bruhin 2014-06-24 07:56:17 +02:00
parent be75f45312
commit a114b46b81

View File

@ -169,7 +169,9 @@ def _module_versions():
except ImportError:
pass
else:
ver = getattr(colorama, 'VERSION', 'yes')
ver = getattr(colorama, 'VERSION', None)
if ver is None:
ver = getattr(colorama, '__version__', 'yes')
lines.append('colorama: {}'.format(ver))
return lines