localeval: avoid redefining 'file' keyword
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
5c56d4f8ab
commit
ab3423d039
@ -31,10 +31,10 @@ class LocalEval:
|
|||||||
if path is not None:
|
if path is not None:
|
||||||
# FIXME: limit opening files owned by current user with rights set
|
# FIXME: limit opening files owned by current user with rights set
|
||||||
# to fixed mode 644.
|
# to fixed mode 644.
|
||||||
file = open(path, 'r')
|
foo = open(path, 'r')
|
||||||
module = imp.load_module(
|
module = imp.load_module(
|
||||||
'<none>',
|
'<none>',
|
||||||
file,
|
foo,
|
||||||
path,
|
path,
|
||||||
('', 'r', imp.PY_SOURCE))
|
('', 'r', imp.PY_SOURCE))
|
||||||
for attr in dir(module):
|
for attr in dir(module):
|
||||||
|
Loading…
Reference in New Issue
Block a user