From 019053e763fd042b3f35727a11cdb91b02af8df6 Mon Sep 17 00:00:00 2001 From: gregnoel Date: Fri, 18 Sep 2009 06:49:31 +0000 Subject: [PATCH] Minor fixes found while debugging git-svn-id: http://scons.tigris.org/svn/scons/trunk@4365 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- QMTest/TestCmd.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.26.2