From 551c122cf82c63498e114faaa049c28becdc60d6 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Tue, 24 Jan 2017 09:57:43 +0100 Subject: [PATCH] Fix an issue in sith where there we have accessed a removed Jedi property. --- sith.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sith.py b/sith.py index 2f676220..ab2ba293 100755 --- a/sith.py +++ b/sith.py @@ -149,7 +149,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._source.split('\n')[lower:lineno]): print(prefix, lower + i + 1, line) print(prefix, ' ', ' ' * (column + len(str(lineno))), '^')