Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 39bbbd6

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

1 file changed

+5-1Lines changed: 5 additions & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎bpython/cli.py‎

Copy file name to clipboardExpand all lines: bpython/cli.py
+5-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.