diff options
author | W. Trevor King <wking@drexel.edu> | 2009-12-12 01:46:22 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-12-12 01:46:22 -0500 |
commit | 86f886399813d37f3cfcf74a824d352e01eb0d8c (patch) | |
tree | fe81b86a582c028ec83aeb5d9220a5b37dea1468 /libbe | |
parent | f8a498f76d7bbcb42cf7bbc80164d98bfe57f8ab (diff) | |
download | bugseverywhere-86f886399813d37f3cfcf74a824d352e01eb0d8c.tar.gz |
Use get_input/output_encoding() in libbe.command.base.Command
Diffstat (limited to 'libbe')
-rw-r--r-- | libbe/command/base.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libbe/command/base.py b/libbe/command/base.py index d18e070..0db156b 100644 --- a/libbe/command/base.py +++ b/libbe/command/base.py @@ -4,6 +4,7 @@ import optparse import sys import libbe +import libbe.util.encoding import libbe.util.plugin class UserError(Exception): @@ -170,9 +171,9 @@ class Command (object): def _setup_io(self, input_encoding=None, output_encoding=None): if input_encoding == None: - input_encoding = get_terminal_encoding() + input_encoding = libbe.util.get_input_encoding() if output_encoding == None: - output_encoding = get_terminal_encoding() + output_encoding = libbe.util.get_output_encoding() self.stdin = codecs.getwriter(input_encoding)(sys.stdin) self.stdin.encoding = input_encoding self.stdout = codecs.getwriter(output_encoding)(sys.stdout) |