diff options
author | W. Trevor King <wking@drexel.edu> | 2010-05-19 06:41:00 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2010-05-19 06:41:00 -0400 |
commit | 79f7126722eb183441d7574ee9b1a2fe95de0563 (patch) | |
tree | ecbf9139204eaf391febee8f15e35caeb211d443 /libbe | |
parent | 273c0c9f66bb4365b8a4bf6d5ebf7a8f79a9b796 (diff) | |
download | bugseverywhere-79f7126722eb183441d7574ee9b1a2fe95de0563.tar.gz |
Use getreader (not getwriter) for wrapping stdin
Diffstat (limited to 'libbe')
-rw-r--r-- | libbe/command/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbe/command/base.py b/libbe/command/base.py index 6b1c050..f8bbb1f 100644 --- a/libbe/command/base.py +++ b/libbe/command/base.py @@ -408,7 +408,7 @@ class StdInputOutput (InputOutput): input_encoding = libbe.util.encoding.get_input_encoding() if output_encoding == None: output_encoding = libbe.util.encoding.get_output_encoding() - stdin = codecs.getwriter(input_encoding)(sys.stdin) + stdin = codecs.getreader(input_encoding)(sys.stdin) stdin.encoding = input_encoding stdout = codecs.getwriter(output_encoding)(sys.stdout) stdout.encoding = output_encoding |