From fd1f9f22e9fad1896fcb71d747a727dc0bc745a3 Mon Sep 17 00:00:00 2001 From: Peter Law Date: Sat, 8 Feb 2020 21:37:01 +0000 Subject: [PATCH] Update use of _source which no longer exists to _code --- sith.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sith.py b/sith.py index abbfca11..6bf39091 100755 --- a/sith.py +++ b/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))), '^')