Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c26516b2
Commit
c26516b2
authored
Feb 21, 2005
by
Peter Astrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made the module compatible with Python 2.2 again.
parent
afd842f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Lib/subprocess.py
Lib/subprocess.py
+5
-2
No files found.
Lib/subprocess.py
View file @
c26516b2
...
...
@@ -2,6 +2,8 @@
#
# For more information about this module, see PEP 324.
#
# This module should remain compatible with Python 2.2, see PEP 291.
#
# Copyright (c) 2003-2004 by Peter Astrand <astrand@lysator.liu.se>
#
# Licensed to PSF under a Contributor Agreement.
...
...
@@ -374,6 +376,7 @@ import sys
mswindows
=
(
sys
.
platform
==
"win32"
)
import
os
import
types
import
traceback
# Exception classes used by this module.
...
...
@@ -712,7 +715,7 @@ class Popen(object):
errread
,
errwrite
):
"""Execute program (MS Windows version)"""
if
not
isinstance
(
args
,
basestring
):
if
not
isinstance
(
args
,
types
.
StringTypes
):
args
=
list2cmdline
(
args
)
# Process startup details
...
...
@@ -938,7 +941,7 @@ class Popen(object):
errread
,
errwrite
):
"""Execute program (POSIX version)"""
if
isinstance
(
args
,
basestring
):
if
isinstance
(
args
,
types
.
StringTypes
):
args
=
[
args
]
if
shell
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment