RudolfCardinal / pythonlib

Miscellaneous Python support functions
Apache License 2.0
11 stars 5 forks source link

Python 3.8 SyntaxWarning: "is" with a literal, typetests.py #10

Closed martinburchell closed 3 years ago

martinburchell commented 3 years ago

https://github.com/RudolfCardinal/pythonlib/blob/master/cardinal_pythonlib/typetests.py#L54

/usr/share/camcops/venv/lib/python3.8/site-packages/cardinal_pythonlib/typetests.py:54: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if value is None or value is "":
RudolfCardinal commented 3 years ago

Thanks! Fixed in master.