1
0
forked from VimPlug/jedi

Use unicode sys paths always

This commit is contained in:
Dave Halter
2017-12-24 02:41:40 +01:00
parent 7bfca5bcd7
commit a38acdbe08
4 changed files with 37 additions and 9 deletions

View File

@@ -153,6 +153,15 @@ class AccessPath(object):
def __init__(self, accesses):
self.accesses = accesses
# Writing both of these methods here looks a bit ridiculous. However with
# the differences of Python 2/3 it's actually necessary, because we will
# otherwise have a accesses attribute that is bytes instead of unicode.
def __getstate__(self):
return self.accesses
def __setstate__(self, value):
self.accesses = value
def create_access_path(evaluator, obj):
access = create_access(evaluator, obj)