Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
1d735eec
Commit
1d735eec
authored
Dec 16, 2013
by
Fantix King
Committed by
Denis Bilenko
Dec 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
subprocess: types.StringTypes -> string_types #38
parent
e01d944a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
gevent/subprocess.py
gevent/subprocess.py
+3
-4
No files found.
gevent/subprocess.py
View file @
1d735eec
...
@@ -2,12 +2,11 @@ from __future__ import absolute_import
...
@@ -2,12 +2,11 @@ from __future__ import absolute_import
import
sys
import
sys
import
os
import
os
import
errno
import
errno
import
types
import
gc
import
gc
import
signal
import
signal
import
traceback
import
traceback
from
gevent.event
import
AsyncResult
from
gevent.event
import
AsyncResult
from
gevent.hub
import
get_hub
,
linkproxy
,
sleep
,
getcurrent
,
integer_types
from
gevent.hub
import
get_hub
,
linkproxy
,
sleep
,
getcurrent
,
integer_types
,
string_types
from
gevent.fileobject
import
FileObject
from
gevent.fileobject
import
FileObject
from
gevent.greenlet
import
Greenlet
,
joinall
from
gevent.greenlet
import
Greenlet
,
joinall
spawn
=
Greenlet
.
spawn
spawn
=
Greenlet
.
spawn
...
@@ -401,7 +400,7 @@ class Popen(object):
...
@@ -401,7 +400,7 @@ class Popen(object):
errread
,
errwrite
):
errread
,
errwrite
):
"""Execute program (MS Windows version)"""
"""Execute program (MS Windows version)"""
if
not
isinstance
(
args
,
types
.
StringT
ypes
):
if
not
isinstance
(
args
,
string_t
ypes
):
args
=
list2cmdline
(
args
)
args
=
list2cmdline
(
args
)
# Process startup details
# Process startup details
...
@@ -617,7 +616,7 @@ class Popen(object):
...
@@ -617,7 +616,7 @@ class Popen(object):
errread
,
errwrite
):
errread
,
errwrite
):
"""Execute program (POSIX version)"""
"""Execute program (POSIX version)"""
if
isinstance
(
args
,
types
.
StringT
ypes
):
if
isinstance
(
args
,
string_t
ypes
):
args
=
[
args
]
args
=
[
args
]
else
:
else
:
args
=
list
(
args
)
args
=
list
(
args
)
...
...
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