Commit 4f5df588 authored by Raul Tambre's avatar Raul Tambre Committed by Commit Bot

tools/json_schema_compiler/feature_compiler.py: Fix use of 'is' for comparison

[290/24365] ACTION //chrome/common/extensions/api:manifest_features_json_features(//build/toolchain/win:win_clang_x64)
../../tools/json_schema_compiler/feature_compiler.py:681: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if sep is -1 or no_parent:

Bug: 958874
Change-Id: I7114523a95c3300a0a077732868f523d666fd826
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1829207
Auto-Submit: Raul Tambre <raul@tambre.ee>
Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
Reviewed-by: default avatarDevlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#701147}
parent e4d89ff6
......@@ -678,7 +678,7 @@ class FeatureCompiler(object):
else:
no_parent = 'noparent' in feature_value
sep = feature_name.rfind('.')
if sep is -1 or no_parent:
if sep == -1 or no_parent:
return None
parent_name = feature_name[:sep]
......
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