[Python-checkins] CVS: python/dist/src/Lib popen2.py,1.19,1.20
Martin v. L?wis
loewis@users.sourceforge.net
Sun, 02 Dec 2001 05:32:17 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv9461
Modified Files:
popen2.py
Log Message:
Patch #487784: Support Unicode commands in popen3/4 handling on UNIX.
Index: popen2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/popen2.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** popen2.py 2001/02/09 20:06:00 1.19
--- popen2.py 2001/12/02 13:32:15 1.20
***************
*** 9,12 ****
--- 9,13 ----
import os
import sys
+ import types
__all__ = ["popen2", "popen3", "popen4"]
***************
*** 57,61 ****
def _run_child(self, cmd):
! if type(cmd) == type(''):
cmd = ['/bin/sh', '-c', cmd]
for i in range(3, MAXFD):
--- 58,62 ----
def _run_child(self, cmd):
! if isinstance(cmd, types.StringTypes):
cmd = ['/bin/sh', '-c', cmd]
for i in range(3, MAXFD):