mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix pickle loading with Windows. Bug #1090.
This commit is contained in:
parent
80f9df9b15
commit
6da95c8ac2
@ -145,11 +145,11 @@ class DocumentationApplication(object):
|
||||
# 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()
|
||||
|
Loading…
Reference in New Issue
Block a user