python3-glanceclient emits annoying SyntaxWarning

Bug #1869620 reported by Paul Collins
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-glanceclient (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Every time I run something that uses glanceclient, it emits this annoying warning, which I can't do much about:

/usr/lib/python3/dist-packages/glanceclient/common/http.py:180: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if kwargs.get('cacert', None) is not '':

This could certainly be

  if kwargs.get('cacert', None) != '':

or maybe even

  if kwargs.get('cacert', None):

---

[agnew(~)] dpkg-query -W python3-glanceclient
python3-glanceclient 1:2.17.0-0ubuntu2
[agnew(~)] lsb_release -rc
Release: 20.04
Codename: focal
[agnew(~)]

Paul Collins (pjdc)
description: updated
description: updated
Revision history for this message
James Page (james-page) wrote :

https://review.opendev.org/716342 raised to resolve this issue.

Changed in python-glanceclient (Ubuntu):
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.