Skip to content

Commit 39bbbd6

Browse files
committed
Merged in sibson/bpython/fake-flush (pull request bpython#22)
add flush to FakeStream
2 parents 81e3388 + 5702393 commit 39bbbd6

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
@@ -150,6 +150,10 @@ def isatty(self):
150150
# some third party (amongst them mercurial) depend on this
151151
return True
152152

153+
def flush(self):
154+
self.interface.flush()
155+
156+
153157
class FakeStdin(object):
154158
"""Provide a fake stdin type for things like raw_input() etc."""
155159

@@ -1420,7 +1424,7 @@ def suspend(self):
14201424
os.kill(os.getpid(), signal.SIGSTOP)
14211425

14221426
def tab(self, back=False):
1423-
"""Process the tab key being hit.
1427+
"""Process the tab key being hit.
14241428
14251429
If there's only whitespace
14261430
in the line or the line is blank then process a normal tab,

0 commit comments

Comments
 (0)