jamesrhester/pycifrw

SyntaxWarning: "is not" with a literal. Did you mean "!="?

Closed this issue · 1 comments

merkys commented

The following line:

if do_imports is not 'No':

emits a SyntaxWarning on Python 3.11:

CifFile/CifFile_module.py:356
  CifFile/CifFile_module.py:356: SyntaxWarning: "is not" with a literal. Did you mean "!="?
    if do_imports is not 'No':

Yes, it should be '!='