Skip to content

Commit 8776804

Browse files
committed
updated jedi python script files
1 parent 3c7e955 commit 8776804

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

pythonFiles/jedi/_compatibility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def find_module_py33(string, path=None):
2525
except ValueError as e:
2626
# See #491. Importlib might raise a ValueError, to avoid this, we
2727
# just raise an ImportError to fix the issue.
28-
raise ImportError("Originally ValueError: " + e.message)
28+
raise ImportError("Originally " + repr(e))
2929

3030
if loader is None:
3131
raise ImportError("Couldn't find a loader for {0}".format(string))

pythonFiles/jedi/parser/fast.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,6 @@ def __init__(self, dicts):
7474
def __iter__(self):
7575
return iter(set(key for dct in self.dicts for key in dct))
7676

77-
def get(self, key, replacement=None):
78-
for d in self.dicts:
79-
if key in d:
80-
return d[key]
81-
return replacement
82-
8377
def __getitem__(self, value):
8478
return list(chain.from_iterable(dct.get(value, []) for dct in self.dicts))
8579

0 commit comments

Comments
 (0)