When running with python 3.8, the following line will make the interpreter print out syntax warning.
/home/bonan/appdir/fireworks/fireworks/features/fw_report.py:146: SyntaxWarning: "is" with a literal. Did you mean "=="?
if style is 'bar':
/home/bonan/appdir/fireworks/fireworks/features/fw_report.py:149: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif style is 'fill':
When running with python 3.8, the following line will make the interpreter print out syntax warning.
Which is related to the following lines:
https://github.com/materialsproject/fireworks/blob/e33821518acf4dc7276aa161a523a0770a776191/fireworks/features/fw_report.py#L146-L154
Using identity comparison
is
can give false negative is some edge cases: