[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#955168: hplip-data: SyntaxWarning: "is" with a literal



Package: hplip-data
Version: 3.20.3+dfsg0-1

Hello,

on config, some Python scripts in hplip-data spit out these warnings:

/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 "":

Regards,
Gabriele Stilli


Reply to: