Fix always false 'is not' comparison with a literal
The 'is' operator compares references, so a comparison with a string literal will always be false. Found while using Python 3.8: C:\Google\depot_tools/git_cl.py:1265: SyntaxWarning: "is not" with a literal. Did you mean "!="? if remote is not '.': Change-Id: Ia77a1b350a3f0a2fe3c398e9a3b9aac8cfe38d4f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1591516 Auto-Submit: Raul Tambre <raul@tambre.ee> Reviewed-by: Dirk Pranke <dpranke@chromium.org> Commit-Queue: Raul Tambre <raul@tambre.ee>
Showing
Please
register
or
sign in
to comment