[py3.8] third_party/python/gyp/pylib/gyp/input.py:1186: SyntaxWarning: "is" with a literal. Did you mean "=="?
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
People
(Reporter: glandium, Assigned: rstewart)
Details
Attachments
(2 files)
Running configure with python 3.8 issues the warning in the summary. It doesn't fail, though.
Reporter | ||
Comment 1•4 years ago
|
||
Other similar warnings during the build:
xpcom/ds/StaticAtoms.py:2585: SyntaxWarning: "is" with a literal. Did you mean "=="?
if atom.atom_type is "PseudoElementAtom":
xpcom/ds/StaticAtoms.py:2589: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif atom.atom_type is "NonInheritingAnonBoxAtom" or atom.atom_type is "InheritingAnonBoxAtom":
xpcom/ds/StaticAtoms.py:2589: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif atom.atom_type is "NonInheritingAnonBoxAtom" or atom.atom_type is "InheritingAnonBoxAtom":
dom/bindings/GenerateCSS2PropertiesWebIDL.py:26: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if p.pref is not "":
Assignee | ||
Comment 2•4 years ago
|
||
Updated•4 years ago
|
Pushed by rstewart@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d829918b75e1 Don't use 'is' and 'is not' to perform comparison against strings in Python r=nalexander
Reporter | ||
Comment 4•4 years ago
|
||
You left out the gyp one.
Assignee | ||
Comment 5•4 years ago
|
||
Whoops, my fault for not checking thoroughly in the title as well as the body of the post :)
It's third_party
code. Do we have qualms with just making drive-by changes in-tree to third party code? I can throw together a PR since the problem still hasn't been fixed at HEAD and then update the vendored library but that'll take (substantially?) longer.
Reporter | ||
Comment 6•4 years ago
|
||
Considering current master of gyp is what we have in tree, and the rate of change in the gyp upstream repo, it looks like waiting for an upstream PR to be merged would only guarantee a delay, while it's likely that whenever we'd need to update gyp in the future the PR would have been merged and we wouldn't need to care about losing a local change to the vendored library.
That said, if you're going to file an upstream PR, it'd be good to fix MsvsSettings._TargetConfig too (see bug 1627163).
Comment 7•4 years ago
|
||
bugherder |
Assignee | ||
Comment 8•4 years ago
|
||
Pushed by rstewart@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5d4a4de4bcff Fix bad string comparison in gyp r=dmajor
Comment 10•4 years ago
|
||
bugherder |
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Description
•