[cwctl] backout 5d5b3a865eb1, which breaks interactive shell usage stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Wed, 30 Oct 2013 13:05:00 +0100
branchstable
changeset 9323 29d2f15cf596
parent 9319 a68b8f423a8b
child 9324 a5ce068143ad
[cwctl] backout 5d5b3a865eb1, which breaks interactive shell usage
cwctl.py
--- a/cwctl.py	Fri Oct 04 15:29:20 2013 +0200
+++ b/cwctl.py	Wed Oct 30 13:05:00 2013 +0100
@@ -1055,13 +1055,8 @@
 def run(args):
     """command line tool"""
     import os
-    import codecs
-    encoding = sys.stdout.encoding
     sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
-    sys.stdout = codecs.getwriter(encoding)(sys.stdout)
-    encoding = sys.stderr.encoding
     sys.stderr = os.fdopen(sys.stderr.fileno(), 'w', 0)
-    sys.stderr = codecs.getwriter(encoding)(sys.stderr)
     cwcfg.load_cwctl_plugins()
     try:
         CWCTL.run(args)