Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 592df20

Browse files
committed
Cleanup universal_newlines usage for subprocess.Popen, remove unused param.
1 parent bdbc0b0 commit 592df20

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/subprocess.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ def __init__(self, args, bufsize=0, executable=None,
797797

798798
if p2cwrite != -1:
799799
self.stdin = io.open(p2cwrite, 'wb', bufsize)
800-
if self.universal_newlines:
800+
if universal_newlines:
801801
self.stdin = io.TextIOWrapper(self.stdin, write_through=True)
802802
if c2pread != -1:
803803
self.stdout = io.open(c2pread, 'rb', bufsize)
@@ -810,7 +810,7 @@ def __init__(self, args, bufsize=0, executable=None,
810810

811811
try:
812812
self._execute_child(args, executable, preexec_fn, close_fds,
813-
pass_fds, cwd, env, universal_newlines,
813+
pass_fds, cwd, env,
814814
startupinfo, creationflags, shell,
815815
p2cread, p2cwrite,
816816
c2pread, c2pwrite,
@@ -1035,7 +1035,7 @@ def _find_w9xpopen(self):
10351035

10361036

10371037
def _execute_child(self, args, executable, preexec_fn, close_fds,
1038-
pass_fds, cwd, env, universal_newlines,
1038+
pass_fds, cwd, env,
10391039
startupinfo, creationflags, shell,
10401040
p2cread, p2cwrite,
10411041
c2pread, c2pwrite,
@@ -1307,7 +1307,7 @@ def _close_fds(self, fds_to_keep):
13071307

13081308

13091309
def _execute_child(self, args, executable, preexec_fn, close_fds,
1310-
pass_fds, cwd, env, universal_newlines,
1310+
pass_fds, cwd, env,
13111311
startupinfo, creationflags, shell,
13121312
p2cread, p2cwrite,
13131313
c2pread, c2pwrite,

0 commit comments

Comments
 (0)