[Bug 1869620] Re: python3-glanceclient emits annoying SyntaxWarning

James Page james.page at ubuntu.com
Tue Mar 31 15:24:45 UTC 2020


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

** Changed in: python-glanceclient (Ubuntu)
       Status: New => Triaged

** Changed in: python-glanceclient (Ubuntu)
   Importance: Undecided => Low

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-glanceclient in Ubuntu.
https://bugs.launchpad.net/bugs/1869620

Title:
  python3-glanceclient emits annoying SyntaxWarning

Status in python-glanceclient package in Ubuntu:
  Triaged

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(~)]

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-glanceclient/+bug/1869620/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list