From 1a591a6ee59ad59b2107fe113fcbfd3cb30879aa Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 7 Mar 2009 19:40:18 +0000 Subject: Always use basestring instead of str with isinstance(). svn path=/main/trunk/; revision=12775 --- pym/portage/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym/portage/process.py') diff --git a/pym/portage/process.py b/pym/portage/process.py index 7c0fb342f..6f449c3d6 100644 --- a/pym/portage/process.py +++ b/pym/portage/process.py @@ -175,7 +175,7 @@ def spawn(mycommand, env={}, opt_name=None, fd_pipes=None, returnpid=False, """ # mycommand is either a str or a list - if isinstance(mycommand, str): + if isinstance(mycommand, basestring): mycommand = mycommand.split() # If an absolute path to an executable file isn't given -- cgit v1.2.3-1-g7c22