7258: Avoid dumb encoding error when compiling gpr files

This commit is contained in:
John Ralls 2014-04-07 12:44:39 -07:00
parent ee923e3205
commit 137e18c41a

View File

@ -1102,7 +1102,7 @@ class PluginRegister(object):
local_gettext = glocale.translation.gettext
try:
#execfile(full_filename,
exec (compile(stream, full_filename, 'exec'),
exec (compile(stream, filename, 'exec'),
make_environment(_=local_gettext), {})
except ValueError as msg:
print(_('ERROR: Failed reading plugin registration %(filename)s') % \