[Bug 1869620] [NEW] python3-glanceclient emits annoying SyntaxWarning
Paul Collins
paul.collins at canonical.com
Sun Mar 29 20:21:14 UTC 2020
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
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:
New
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