diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-03-07 19:40:18 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-03-07 19:40:18 +0000 |
commit | 1a591a6ee59ad59b2107fe113fcbfd3cb30879aa (patch) | |
tree | 0febb74ef1b5cee418eba57c53efef574795416d /pym/portage/process.py | |
parent | de83c76040a64a4f4997ce70214fa3f44c411695 (diff) | |
download | portage-1a591a6ee59ad59b2107fe113fcbfd3cb30879aa.tar.gz portage-1a591a6ee59ad59b2107fe113fcbfd3cb30879aa.tar.bz2 portage-1a591a6ee59ad59b2107fe113fcbfd3cb30879aa.zip |
Always use basestring instead of str with isinstance().
svn path=/main/trunk/; revision=12775
Diffstat (limited to 'pym/portage/process.py')
-rw-r--r-- | pym/portage/process.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |