Skip to content

Conversation

@petersenna
Copy link

While adding support to a new modem I noticed the following warning:
/usr/local/lib/python3.10/site-packages/gsmmodem/modem.py:835: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if selected_phonebook is not "ON":
/usr/local/lib/python3.10/site-packages/gsmmodem/modem.py:841: SyntaxWarning: "is" with a literal. Did you mean "=="?
if response is "OK": # command is supported, but no number is set
/usr/local/lib/python3.10/site-packages/gsmmodem/modem.py:861: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if actual_phonebook is not "ON":

This patch makes the changes from "is not" to != and from "is" to "==".

Signed-off-by: Peter Senna Tschudin [email protected]

While adding support to a new modem I noticed the following warning:
   /usr/local/lib/python3.10/site-packages/gsmmodem/modem.py:835: SyntaxWarning: "is not" with a literal. Did you mean "!="?
     if selected_phonebook is not "ON":
   /usr/local/lib/python3.10/site-packages/gsmmodem/modem.py:841: SyntaxWarning: "is" with a literal. Did you mean "=="?
     if response is "OK": # command is supported, but no number is set
   /usr/local/lib/python3.10/site-packages/gsmmodem/modem.py:861: SyntaxWarning: "is not" with a literal. Did you mean "!="?
     if actual_phonebook is not "ON":

This patch makes the changes from "is not" to != and from "is" to "==".

Signed-off-by: Peter Senna Tschudin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant