Remove 'global' for CONFIG_OPTIONS because it is redundant for dict (#1055)

This commit is contained in:
Eugene Prilepin 2019-11-03 07:51:20 +03:00 committed by Ogi Moore
parent cb4d9b23b2
commit b1df230964

View File

@ -64,7 +64,6 @@ CONFIG_OPTIONS = {
def setConfigOption(opt, value):
global CONFIG_OPTIONS
if opt not in CONFIG_OPTIONS:
raise KeyError('Unknown configuration option "%s"' % opt)
if opt == 'imageAxisOrder' and value not in ('row-major', 'col-major'):