increase pickling version and change mixin path for builtins

This commit is contained in:
Dave Halter
2013-12-27 01:34:23 +01:00
parent 40bd118acb
commit c290afbb1a
2 changed files with 3 additions and 3 deletions

View File

@@ -174,7 +174,7 @@ def save_module(path, name, parser, pickling=True):
class _ModulePickling(object):
version = 5
version = 6
"""
Version number (integer) for file system cache.

View File

@@ -165,8 +165,8 @@ class BuiltinModule(modules.CachedModule):
if name == '__builtin__' and not is_py3k:
name = 'builtins'
path = os.path.dirname(os.path.abspath(__file__))
with open(os.path.sep.join([path, 'mixin', name]) + '.pym') as f:
path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
with open(os.path.join(path, 'mixin', name) + '.pym') as f:
s = f.read()
except IOError:
return {}