Skip to content

Commit cfbf0ab

Browse files
Add __repr__ to PyCodeEdit for easier debugging
(output looks like this: PyCodeEdit(path="/home/colin/test.py")
1 parent cd1f07d commit cfbf0ab

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pyqode/python/widgets/code_edit.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,6 @@ def clone(self):
106106
interpreter=self.backend.interpreter, args=self.backend.args,
107107
color_scheme=self.syntax_highlighter.color_scheme.name)
108108
return clone
109+
110+
def __repr__(self):
111+
return 'PyCodeEdit(path=%r)' % self.file.path

0 commit comments

Comments
 (0)