Skip to content

Commit 34f2704

Browse files
committed
Add fileno() to FakeStdin
Fix issue #232
1 parent 3fc47b7 commit 34f2704

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
@@ -162,6 +162,9 @@ def write(self, value):
162162
def isatty(self):
163163
return True
164164

165+
def fileno(self):
166+
return 0
167+
165168
def readline(self, size=-1):
166169
"""I can't think of any reason why anything other than readline would
167170
be useful in the context of an interactive interpreter so this is the

0 commit comments

Comments
 (0)