1
0
forked from VimPlug/jedi

changed pickling files to byte for py3k

This commit is contained in:
David Halter
2013-01-12 15:03:09 +01:00
parent 7b150630f0
commit 96e4f301e3

View File

@@ -210,7 +210,7 @@ class _ModulePickling(object):
# the pickle file is outdated
return None
with open(self._get_hashed_path(path)) as f:
with open(self._get_hashed_path(path), 'rb') as f:
parser_cache_item = pickle.load(f)
debug.dbg('pickle loaded', path)
@@ -224,7 +224,7 @@ class _ModulePickling(object):
files = {}
self._index[self.py_version] = files
with open(self._get_hashed_path(path), 'w') as f:
with open(self._get_hashed_path(path), 'wb') as f:
pickle.dump(parser_cache_item, f, pickle.HIGHEST_PROTOCOL)
files[path] = parser_cache_item.change_time