Skip to content

Commit c4c1c86

Browse files
committed
Merged in hndrewaall/bpython (pull request #21)
Add fileno() to FakeStdin
2 parents 39bbbd6 + ea5ae11 commit c4c1c86

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bpython/cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ def write(self, value):
180180
def isatty(self):
181181
return True
182182

183+
def fileno(self):
184+
return 0
185+
183186
def readline(self, size=-1):
184187
"""I can't think of any reason why anything other than readline would
185188
be useful in the context of an interactive interpreter so this is the

0 commit comments

Comments
 (0)