From: gregnoel Date: Fri, 18 Sep 2009 06:49:31 +0000 (+0000) Subject: Minor fixes found while debugging X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=019053e763fd042b3f35727a11cdb91b02af8df6;p=scons.git Minor fixes found while debugging git-svn-id: http://scons.tigris.org/svn/scons/trunk@4365 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/QMTest/TestCmd.py b/QMTest/TestCmd.py index 54a32bc3..bce7ebba 100644 --- a/QMTest/TestCmd.py +++ b/QMTest/TestCmd.py @@ -989,13 +989,13 @@ class TestCmd: interpreter = None, arguments = None): if program: - if type(program) == type('') and not os.path.isabs(program): + if type(program) is type('') and not os.path.isabs(program): program = os.path.join(self._cwd, program) else: program = self.program if not interpreter: interpreter = self.interpreter - if not type(program) in [type([]), type(())]: + if type(program) not in [type([]), type(())]: program = [program] cmd = list(program) if interpreter: @@ -1003,7 +1003,7 @@ class TestCmd: interpreter = [interpreter] cmd = list(interpreter) + cmd if arguments: - if type(arguments) == type(''): + if type(arguments) is type(''): arguments = string.split(arguments) cmd.extend(arguments) return cmd