diff --git a/src/xdgurl.py b/src/xdgurl.py index c9d89f2190a2d6b7c8615ceac13dc5999f563e91..7fd8a26c2bd51c7d3005301353a77b50754e9acb 100644 --- a/src/xdgurl.py +++ b/src/xdgurl.py @@ -8,6 +8,7 @@ import urlparse import tempfile import mimetypes import subprocess + import Tkinter import tkMessageBox @@ -112,7 +113,7 @@ class XdgUrl: path = os.path.join(self.config_dir, name + '.json') data = {} if os.path.isfile(path): - f = open(path) + f = open(path, 'r') data = json.load(f) f.close() return data