From 477470dbb46f6abe6a7c123c43f169d2e9bc2e58 Mon Sep 17 00:00:00 2001
From: Akira Ohgaki <akiraohgaki@gmail.com>
Date: Mon, 4 Jul 2016 10:58:30 +0900
Subject: [PATCH] Set file open mode, just in case

---
 src/xdgurl.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/xdgurl.py b/src/xdgurl.py
index c9d89f2..7fd8a26 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
-- 
GitLab