diff --git a/src/calibre/gui2/tweak_book/editor/syntax/python.py b/src/calibre/gui2/tweak_book/editor/syntax/python.py index bbea7e5c17..5dc80f0dd5 100644 --- a/src/calibre/gui2/tweak_book/editor/syntax/python.py +++ b/src/calibre/gui2/tweak_book/editor/syntax/python.py @@ -103,7 +103,7 @@ class State(object): return not self.__eq__(other) def __repr__(self): - return "PythonState(%r)" % (self.parse, self.pygments_stack) + return "PythonState(%r)" % self.pygments_stack __str__ = __repr__