From e532cb1954fa9b1c66cec29ef1c350d1e567379c Mon Sep 17 00:00:00 2001 From: Jakob Blomer Date: Wed, 14 May 2014 08:05:07 +0200 Subject: [PATCH] fix default modules --- rpath/amiconfig/instancedata.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rpath/amiconfig/instancedata.py b/rpath/amiconfig/instancedata.py index 25afe35..573ffd0 100644 --- a/rpath/amiconfig/instancedata.py +++ b/rpath/amiconfig/instancedata.py @@ -50,8 +50,7 @@ def getUserData(self): user_data_cache = os.getenv("AMICONFIG_LOCAL_USER_DATA") if user_data_cache is not None and user_data_cache[0] == '/': try: - with open(user_data_cache) as f: - return f.read() + return open(user_data_cache).read() except IOError, e: pass