mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Update use of _source which no longer exists to _code
This commit is contained in:
2
sith.py
2
sith.py
@@ -151,7 +151,7 @@ class TestCase(object):
|
||||
# Three lines ought to be enough
|
||||
lower = lineno - show if lineno - show > 0 else 0
|
||||
prefix = ' |'
|
||||
for i, line in enumerate(self.script._source.split('\n')[lower:lineno]):
|
||||
for i, line in enumerate(self.script._code.split('\n')[lower:lineno]):
|
||||
print(prefix, lower + i + 1, line)
|
||||
print(prefix, ' ', ' ' * (column + len(str(lineno))), '^')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user