We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc7ea75 commit 7b6ab95Copy full SHA for 7b6ab95
bpython/curtsiesfrontend/repl.py
@@ -1729,13 +1729,11 @@ def in_paste_mode(self):
1729
self.update_completion()
1730
1731
def __repr__(self):
1732
- s = ""
1733
- s += "<" + repr(type(self)) + "\n"
1734
- s += " cursor_offset:" + repr(self.cursor_offset) + "\n"
1735
- s += " num display lines:" + repr(len(self.display_lines)) + "\n"
1736
- s += " lines scrolled down:" + repr(self.scroll_offset) + "\n"
1737
- s += ">"
1738
- return s
+ return f"""<{type(self)}
+ cursor_offset: {self.cursor_offset}
+ num display lines: {len(self.display_lines)}
+ lines scrolled down: {self.scroll_offset}
+>"""
1739
1740
def _get_current_line(self):
1741
return self._current_line
0 commit comments