Commit cd8d8e17 authored by maruel@chromium.org's avatar maruel@chromium.org

Correct invalid use of 'is' when '==' should have been used.

R=nsylvain@chromium.org
BUG=


Review URL: https://chromiumcodereview.appspot.com/11046016

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@159909 0039d316-1c4b-4281-b951-d872f2087c98
parent 791be0bc
......@@ -574,7 +574,7 @@ class Dependency(gclient_utils.WorkItem, DependencySettings):
# Strip any leading path separators.
while file_list[i].startswith(('\\', '/')):
file_list[i] = file_list[i][1:]
elif command is 'recurse':
elif command == 'recurse':
if not isinstance(parsed_url, self.FileImpl):
# Skip file only checkout.
scm = gclient_scm.GetScmName(parsed_url)
......@@ -1018,7 +1018,7 @@ solutions = [
if (sys.stdout.isatty() and not self._options.verbose):
if command in ('update', 'revert'):
pm = Progress('Syncing projects', 1)
elif command is 'recurse':
elif command == 'recurse':
pm = Progress(' '.join(args), 1)
work_queue = gclient_utils.ExecutionQueue(self._options.jobs, pm)
for s in self.dependencies:
......
......@@ -295,9 +295,9 @@ class Popen(subprocess.Popen):
# This thread needs to be optimized for speed.
while threads:
item = queue.get()
if item[0] is 'stdout':
if item[0] == 'stdout':
self.stdout_cb(item[1])
elif item[0] is 'stderr':
elif item[0] == 'stderr':
self.stderr_cb(item[1])
else:
# A thread terminated.
......
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