Public bug reported:

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

** Affects: python-glanceclient (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  Every time I run something that uses glanceclient, it emits this
- annoying error, which I can't do much about:
+ 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 '':
+   if kwargs.get('cacert', None) is not '':
  
  This could certainly be
  
-   if kwargs.get('cacert', None) != '':
+   if kwargs.get('cacert', None) != '':
  
  or maybe even
  
-   if kwargs.get('cacert', None):
+   if kwargs.get('cacert', None):

** Description changed:

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

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

Title:
  python3-glanceclient emits annoying SyntaxWarning

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to