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 "==".
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 peter.senna@spearline.com