mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
Fix an issue in sith where there we have accessed a removed Jedi property.
This commit is contained in:
2
sith.py
2
sith.py
@@ -149,7 +149,7 @@ class TestCase(object):
|
|||||||
# Three lines ought to be enough
|
# Three lines ought to be enough
|
||||||
lower = lineno - show if lineno - show > 0 else 0
|
lower = lineno - show if lineno - show > 0 else 0
|
||||||
prefix = ' |'
|
prefix = ' |'
|
||||||
for i, line in enumerate(self.script.source.split('\n')[lower:lineno]):
|
for i, line in enumerate(self.script._source.split('\n')[lower:lineno]):
|
||||||
print(prefix, lower + i + 1, line)
|
print(prefix, lower + i + 1, line)
|
||||||
print(prefix, ' ', ' ' * (column + len(str(lineno))), '^')
|
print(prefix, ' ', ' ' * (column + len(str(lineno))), '^')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user