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 a3179a9 commit 3a1c1b0Copy full SHA for 3a1c1b0
bpython/simplerepl.py
@@ -64,7 +64,7 @@ def request_undo(self, n=1):
64
65
def out(self, msg):
66
if hasattr(self, "orig_stdout"):
67
- self.orig_stdout.write((msg + "\n").encode("utf8"))
+ self.orig_stdout.write(f"{msg}\n")
68
self.orig_stdout.flush()
69
else:
70
print(msg)
@@ -89,7 +89,7 @@ def print_padded(s):
89
print_padded("")
90
self.out("X``" + ("`" * (self.width + 2)) + "``X")
91
for line in arr:
92
- self.out("X```" + unicode(line.ljust(self.width)) + "```X")
+ self.out("X```" + line.ljust(self.width) + "```X")
93
logger.debug("line:")
94
logger.debug(repr(line))
95
0 commit comments