Public bug reported:
While running python rtupdate hooks for python3.8, got these warnings
from the hplip-data package ...
/usr/share/hplip/base/utils.py:2060: SyntaxWarning: "is" with a literal. Did
you mean "=="?
if weburl is "" or weburl is None:
/usr/share/hplip/check-plugin.py:116: SyntaxWarning: "is" with a literal. Did
you mean "=="?
if log_level is 'debug':
/usr/share/hplip/check.py:685: SyntaxWarning: "is not" with a literal. Did you
mean "!="?
if 'getfacl' not in g and '' is not g and 'file' not in g:
/usr/share/hplip/installer/core_install.py:2037: SyntaxWarning: "is" with a
literal. Did you mean "=="?
if home_dir is "":
/usr/share/hplip/ui5/devmgr_ext.py:15: SyntaxWarning: "is not" with a literal.
Did you mean "!="?
if self.latest_available_version is not "":
/usr/share/hplip/ui5/devmgr_ext.py:37: SyntaxWarning: "is not" with a literal.
Did you mean "!="?
if self.latest_available_version is not "":
** Affects: hplip (Ubuntu)
Importance: Undecided
Status: New
** Tags: focal
** Tags added: focal
** Description changed:
+ While running python rtupdate hooks for python3.8 ...
+
/usr/share/hplip/base/utils.py:2060: SyntaxWarning: "is" with a literal. Did
you mean "=="?
- if weburl is "" or weburl is None:
+ if weburl is "" or weburl is None:
/usr/share/hplip/check-plugin.py:116: SyntaxWarning: "is" with a literal. Did
you mean "=="?
- if log_level is 'debug':
+ if log_level is 'debug':
/usr/share/hplip/check.py:685: SyntaxWarning: "is not" with a literal. Did
you mean "!="?
- if 'getfacl' not in g and '' is not g and 'file' not in g:
+ if 'getfacl' not in g and '' is not g and 'file' not in g:
/usr/share/hplip/installer/core_install.py:2037: SyntaxWarning: "is" with a
literal. Did you mean "=="?
- if home_dir is "":
+ if home_dir is "":
/usr/share/hplip/ui5/devmgr_ext.py:15: SyntaxWarning: "is not" with a
literal. Did you mean "!="?
- if self.latest_available_version is not "":
+ if self.latest_available_version is not "":
/usr/share/hplip/ui5/devmgr_ext.py:37: SyntaxWarning: "is not" with a
literal. Did you mean "!="?
- if self.latest_available_version is not "":
+ if self.latest_available_version is not "":
** Summary changed:
- SyntaxWarning
+ hplib: SyntaxWarning, did you mean "=="? or "!="?
** Summary changed:
- hplib: SyntaxWarning, did you mean "=="? or "!="?
+ HPLIP: SyntaxWarning, did you mean "=="? or "!="?
** Summary changed:
- HPLIP: SyntaxWarning, did you mean "=="? or "!="?
+ HPLIP: SyntaxWarning, did you mean ==? or !=?
** Summary changed:
- HPLIP: SyntaxWarning, did you mean ==? or !=?
+ HPLIP: SyntaxWarning, did you mean == or != ?
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to hplip in Ubuntu.
https://bugs.launchpad.net/bugs/1870019
Title:
HPLIP: SyntaxWarning, did you mean == or != ?
Status in hplip package in Ubuntu:
New
Bug description:
While running python rtupdate hooks for python3.8, got these warnings
from the hplip-data package ...
/usr/share/hplip/base/utils.py:2060: SyntaxWarning: "is" with a literal. Did
you mean "=="?
if weburl is "" or weburl is None:
/usr/share/hplip/check-plugin.py:116: SyntaxWarning: "is" with a literal. Did
you mean "=="?
if log_level is 'debug':
/usr/share/hplip/check.py:685: SyntaxWarning: "is not" with a literal. Did
you mean "!="?
if 'getfacl' not in g and '' is not g and 'file' not in g:
/usr/share/hplip/installer/core_install.py:2037: SyntaxWarning: "is" with a
literal. Did you mean "=="?
if home_dir is "":
/usr/share/hplip/ui5/devmgr_ext.py:15: SyntaxWarning: "is not" with a
literal. Did you mean "!="?
if self.latest_available_version is not "":
/usr/share/hplip/ui5/devmgr_ext.py:37: SyntaxWarning: "is not" with a
literal. Did you mean "!="?
if self.latest_available_version is not "":
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1870019/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp