Commit 1d735eec authored by Fantix King's avatar Fantix King Committed by Denis Bilenko

subprocess: types.StringTypes -> string_types #38

parent e01d944a
...@@ -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.StringTypes): if not isinstance(args, string_types):
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.StringTypes): if isinstance(args, string_types):
args = [args] args = [args]
else: else:
args = list(args) args = list(args)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment