summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Resch <andrewresch@gmail.com>2009-03-12 21:33:43 +0000
committerAndrew Resch <andrewresch@gmail.com>2009-03-12 21:33:43 +0000
commitad322aabd173f63dcf5902fe661e1eaf7a265fcb (patch)
treefe6edac8ccc5be052730407bd06e98092386418c
parentcb524c35907edbf713b5bad0c2d8f41c8d07ae79 (diff)
downloaddeluge-ad322aabd173f63dcf5902fe661e1eaf7a265fcb.tar.gz
deluge-ad322aabd173f63dcf5902fe661e1eaf7a265fcb.tar.bz2
deluge-ad322aabd173f63dcf5902fe661e1eaf7a265fcb.zip
Fix loading config files on Windows
-rw-r--r--deluge/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/deluge/config.py b/deluge/config.py
index 7dd93b161..fccf4b9f3 100644
--- a/deluge/config.py
+++ b/deluge/config.py
@@ -237,7 +237,7 @@ class Config(object):
if not filename:
filename = self.__config_file
try:
- self.__config.update(pickle.load(open(filename, "rb")))
+ self.__config.update(pickle.load(open(filename, "r")))
except Exception, e:
log.warning("Unable to load config file: %s", filename)
@@ -255,7 +255,7 @@ class Config(object):
# Check to see if the current config differs from the one on disk
# We will only write a new config file if there is a difference
try:
- if self.__config == pickle.load(open(filename, "rb")):
+ if self.__config == pickle.load(open(filename, "r")):
# The config has not changed so lets just return
self.__save_timer = None
return