From ab3423d039393c3ac3e325012774a06b3a1964a6 Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Tue, 13 Jan 2015 22:48:28 +0100 Subject: [PATCH] localeval: avoid redefining 'file' keyword Signed-off-by: Nicolas Sebrecht --- offlineimap/localeval.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/offlineimap/localeval.py b/offlineimap/localeval.py index 06adc57..a9494fb 100644 --- a/offlineimap/localeval.py +++ b/offlineimap/localeval.py @@ -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( '', - file, + foo, path, ('', 'r', imp.PY_SOURCE)) for attr in dir(module):