Skip to content

Commit ebb3ba9

Browse files
fix #293 - add encoding to bpython-curtsies FakeStdin
1 parent e9dce11 commit ebb3ba9

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
@@ -114,6 +114,10 @@ def write(self, value):
114114
# others, so here's a hack to keep them happy
115115
raise IOError(errno.EBADF, "sys.stdin is read-only")
116116

117+
@property
118+
def encoding(self):
119+
return 'UTF8'
120+
117121
#TODO write a read() method
118122

119123
class ReevaluateFakeStdin(object):

0 commit comments

Comments
 (0)