##// END OF EJS Templates
Swap the check for Jedi versions around
Thomas Kluyver -
Show More
@@ -1351,11 +1351,11 b' class IPCompleter(Completer):'
1351 try:
1351 try:
1352 # should we check the type of the node is Error ?
1352 # should we check the type of the node is Error ?
1353 try:
1353 try:
1354 # jedi >= 0.11
1355 from parso.tree import ErrorLeaf
1356 except ImportError:
1357 # jedi < 0.11
1354 # jedi < 0.11
1358 from jedi.parser.tree import ErrorLeaf
1355 from jedi.parser.tree import ErrorLeaf
1356 except ImportError:
1357 # jedi >= 0.11
1358 from parso.tree import ErrorLeaf
1359
1359
1360 next_to_last_tree = interpreter._get_module().tree_node.children[-2]
1360 next_to_last_tree = interpreter._get_module().tree_node.children[-2]
1361 completing_string = False
1361 completing_string = False
General Comments 0
You need to be logged in to leave comments. Login now