Skip to content

Commit 9d425fc

Browse files
fix #293 - add encoding to bpython-curtsies FakeStdin
1 parent eb8e54c commit 9d425fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ def write(self, value):
116116
# others, so here's a hack to keep them happy
117117
raise IOError(errno.EBADF, "sys.stdin is read-only")
118118

119+
@property
120+
def encoding(self):
121+
return 'UTF8'
122+
119123
#TODO write a read() method
120124

121125
class ReevaluateFakeStdin(object):

0 commit comments

Comments
 (0)