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
import sys
import os
import errno
import types
import gc
import signal
import traceback
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.greenlet import Greenlet, joinall
spawn = Greenlet.spawn
......@@ -401,7 +400,7 @@ class Popen(object):
errread, errwrite):
"""Execute program (MS Windows version)"""
if not isinstance(args, types.StringTypes):
if not isinstance(args, string_types):
args = list2cmdline(args)
# Process startup details
......@@ -617,7 +616,7 @@ class Popen(object):
errread, errwrite):
"""Execute program (POSIX version)"""
if isinstance(args, types.StringTypes):
if isinstance(args, string_types):
args = [args]
else:
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