Skip to content

Commit 5702393

Browse files
committed
add flush to FakeStream
1 parent 3fc47b7 commit 5702393

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bpython/cli.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ def isatty(self):
136136
# some third party (amongst them mercurial) depend on this
137137
return True
138138

139+
def flush(self):
140+
self.interface.flush()
141+
142+
139143
class FakeStdin(object):
140144
"""Provide a fake stdin type for things like raw_input() etc."""
141145

@@ -1403,7 +1407,7 @@ def suspend(self):
14031407
os.kill(os.getpid(), signal.SIGSTOP)
14041408

14051409
def tab(self, back=False):
1406-
"""Process the tab key being hit.
1410+
"""Process the tab key being hit.
14071411
14081412
If there's only whitespace
14091413
in the line or the line is blank then process a normal tab,

0 commit comments

Comments
 (0)