summaryrefslogtreecommitdiff
path: root/cliff/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'cliff/app.py')
-rw-r--r--cliff/app.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/cliff/app.py b/cliff/app.py
index 88b39d2..603778d 100644
--- a/cliff/app.py
+++ b/cliff/app.py
@@ -13,12 +13,10 @@
"""Application base class.
"""
-import codecs
import locale
import logging
import logging.handlers
import os
-import six
import sys
import cmd2
@@ -118,18 +116,6 @@ class App(object):
# has not already already wrapped sys.stdin, sys.stdout and
# sys.stderr as this is a common recommendation.
- if six.PY2:
- encoding = locale.getpreferredencoding()
- if encoding:
- if not (stdin or isinstance(sys.stdin, codecs.StreamReader)):
- stdin = codecs.getreader(encoding)(sys.stdin)
-
- if not (stdout or isinstance(sys.stdout, codecs.StreamWriter)):
- stdout = utils.getwriter(encoding)(sys.stdout)
-
- if not (stderr or isinstance(sys.stderr, codecs.StreamWriter)):
- stderr = utils.getwriter(encoding)(sys.stderr)
-
self.stdin = stdin or sys.stdin
self.stdout = stdout or sys.stdout
self.stderr = stderr or sys.stderr