aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-05-19 06:41:00 -0400
committerW. Trevor King <wking@drexel.edu>2010-05-19 06:41:00 -0400
commit79f7126722eb183441d7574ee9b1a2fe95de0563 (patch)
treeecbf9139204eaf391febee8f15e35caeb211d443 /libbe
parent273c0c9f66bb4365b8a4bf6d5ebf7a8f79a9b796 (diff)
downloadbugseverywhere-79f7126722eb183441d7574ee9b1a2fe95de0563.tar.gz
Use getreader (not getwriter) for wrapping stdin
Diffstat (limited to 'libbe')
-rw-r--r--libbe/command/base.py2
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