[Python-checkins] r57924 - doctools/trunk/sphinx/web/application.py
georg.brandl
python-checkins at python.org
Mon Sep 3 09:12:04 CEST 2007
Author: georg.brandl
Date: Mon Sep 3 09:12:04 2007
New Revision: 57924
Modified:
doctools/trunk/sphinx/web/application.py
Log:
Fix pickle loading with Windows. Bug #1090.
Modified: doctools/trunk/sphinx/web/application.py
==============================================================================
--- doctools/trunk/sphinx/web/application.py (original)
+++ doctools/trunk/sphinx/web/application.py Mon Sep 3 09:12:04 2007
@@ -145,11 +145,11 @@
# happens if another thread already reloaded the env
return
print "* Loading the environment..."
- with file(path.join(self.data_root, ENV_PICKLE_FILENAME)) as f:
+ with file(path.join(self.data_root, ENV_PICKLE_FILENAME), 'rb') as f:
self.env = pickle.load(f)
- with file(path.join(self.data_root, 'globalcontext.pickle')) as f:
+ with file(path.join(self.data_root, 'globalcontext.pickle'), 'rb') as f:
self.globalcontext = pickle.load(f)
- with file(path.join(self.data_root, 'searchindex.pickle')) as f:
+ with file(path.join(self.data_root, 'searchindex.pickle'), 'rb') as f:
self.search_frontend = SearchFrontend(pickle.load(f))
self.buildmtime = new_mtime
self.cache.clear()
More information about the Python-checkins
mailing list