diff options
Diffstat (limited to 'python/mach/mach/main.py')
-rw-r--r-- | python/mach/mach/main.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/python/mach/mach/main.py b/python/mach/mach/main.py index f178ff34f3..4a462b7909 100644 --- a/python/mach/mach/main.py +++ b/python/mach/mach/main.py @@ -6,7 +6,6 @@ # (mach). It is packaged as a module because everything is a library. import argparse -import codecs import logging import os import sys @@ -258,16 +257,6 @@ To see more help for a specific command, run: try: self.load_settings() - if sys.version_info < (3, 0): - if stdin.encoding is None: - sys.stdin = codecs.getreader("utf-8")(stdin) - - if stdout.encoding is None: - sys.stdout = codecs.getwriter("utf-8")(stdout) - - if stderr.encoding is None: - sys.stderr = codecs.getwriter("utf-8")(stderr) - # Allow invoked processes (which may not have a handle on the # original stdout file descriptor) to know if the original stdout # is a TTY. This provides a mechanism to allow said processes to |