localeval: avoid redefining 'file' keyword

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2015-01-13 22:48:28 +01:00
parent 5c56d4f8ab
commit ab3423d039

View File

@ -31,10 +31,10 @@ class LocalEval:
if path is not None:
# FIXME: limit opening files owned by current user with rights set
# to fixed mode 644.
file = open(path, 'r')
foo = open(path, 'r')
module = imp.load_module(
'<none>',
file,
foo,
path,
('', 'r', imp.PY_SOURCE))
for attr in dir(module):