global declaration is only needed if it's necessary to modify a module

level variable, to declare it and use it read only it's not necessary
This commit is contained in:
Andrea Crotti 2012-03-07 12:00:32 +00:00
commit 4eb20c5d82

View file

@ -4,7 +4,6 @@ from logging import CRITICAL, ERROR, WARN, INFO, DEBUG
from logging import critical, error, info, warning, warn, debug
from logging import Formatter, getLogger, StreamHandler
global ANSI
ANSI = {
'gray' : lambda(text) : u'\033[1;30m' + unicode(text) + u'\033[1;m',
'red' : lambda(text) : u'\033[1;31m' + unicode(text) + u'\033[1;m',