[Python-checkins] cpython: Cleanup universal_newlines usage for subprocess.Popen, remove unused param.

andrew.svetlov python-checkins at python.org
Wed Aug 15 16:36:25 CEST 2012


http://hg.python.org/cpython/rev/65ef6ae39ea3
changeset:   78590:65ef6ae39ea3
user:        Andrew Svetlov <andrew.svetlov at gmail.com>
date:        Wed Aug 15 17:36:15 2012 +0300
summary:
  Cleanup universal_newlines usage for subprocess.Popen, remove unused param.

files:
  Lib/subprocess.py |  8 ++++----
  1 files changed, 4 insertions(+), 4 deletions(-)


diff --git a/Lib/subprocess.py b/Lib/subprocess.py
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -797,7 +797,7 @@
 
         if p2cwrite != -1:
             self.stdin = io.open(p2cwrite, 'wb', bufsize)
-            if self.universal_newlines:
+            if universal_newlines:
                 self.stdin = io.TextIOWrapper(self.stdin, write_through=True)
         if c2pread != -1:
             self.stdout = io.open(c2pread, 'rb', bufsize)
@@ -810,7 +810,7 @@
 
         try:
             self._execute_child(args, executable, preexec_fn, close_fds,
-                                pass_fds, cwd, env, universal_newlines,
+                                pass_fds, cwd, env,
                                 startupinfo, creationflags, shell,
                                 p2cread, p2cwrite,
                                 c2pread, c2pwrite,
@@ -1035,7 +1035,7 @@
 
 
         def _execute_child(self, args, executable, preexec_fn, close_fds,
-                           pass_fds, cwd, env, universal_newlines,
+                           pass_fds, cwd, env,
                            startupinfo, creationflags, shell,
                            p2cread, p2cwrite,
                            c2pread, c2pwrite,
@@ -1307,7 +1307,7 @@
 
 
         def _execute_child(self, args, executable, preexec_fn, close_fds,
-                           pass_fds, cwd, env, universal_newlines,
+                           pass_fds, cwd, env,
                            startupinfo, creationflags, shell,
                            p2cread, p2cwrite,
                            c2pread, c2pwrite,

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list