[cwctl] stop playing tricks with std{out,err} buffering
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 30 Sep 2015 16:14:29 +0200
changeset 10736 8d49849ec2a6
parent 10735 cb83ba66fa61
child 10737 c5b048ae4df5
[cwctl] stop playing tricks with std{out,err} buffering Python3 doesn't allow unbuffered text I/O, because it doesn't make sense.
cwctl.py
--- a/cwctl.py	Tue Sep 22 15:42:40 2015 +0200
+++ b/cwctl.py	Wed Sep 30 16:14:29 2015 +0200
@@ -1139,8 +1139,6 @@
 def run(args):
     """command line tool"""
     import os
-    sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
-    sys.stderr = os.fdopen(sys.stderr.fileno(), 'w', 0)
     filterwarnings('default', category=DeprecationWarning)
     cwcfg.load_cwctl_plugins()
     try: