File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
pythonforandroid/recipes/jedi Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+
2+ from pythonforandroid .toolchain import PythonRecipe
3+
4+
5+ class JediRecipe (PythonRecipe ):
6+ # version = 'master'
7+ version = 'v0.9.0'
8+ url = 'https://github.com/davidhalter/jedi/archive/{version}.tar.gz'
9+
10+ depends = [('python2' , 'python3crystax' )]
11+
12+ patches = ['fix_MergedNamesDict_get.patch' ]
13+ # This apparently should be fixed in jedi 0.10 (not released to
14+ # pypi yet), but it still occurs on Android, I could not reproduce
15+ # on desktop.
16+
17+
18+ recipe = JediRecipe ()
Original file line number Diff line number Diff line change 1+ diff --git a/jedi/parser/fast.py b/jedi/parser/fast.py
2+ index 35bb855..bc43359 100644
3+ --- a/jedi/parser/fast.py
4+ +++ b/jedi/parser/fast.py
5+ @@ -75,7 +75,8 @@ class MergedNamesDict(object):
6+ return iter(set(key for dct in self.dicts for key in dct))
7+
8+ def __getitem__(self, value):
9+ - return list(chain.from_iterable(dct.get(value, []) for dct in self.dicts))
10+ + return list(chain.from_iterable((dct[value] if value in dct else []) for dct in self.dicts))
11+ + # return list(chain.from_iterable(dct.get(value, []) for dct in self.dicts))
12+
13+ def items(self):
14+ dct = {}
You can’t perform that action at this time.
0 commit comments