[Bug 1878939] Re: python3-cephfs focal 'syntax warning' is/literal

Rolf Leggewie 1878939 at bugs.launchpad.net
Sat Jul 17 12:23:52 UTC 2021


fixed upstream in v15.2.9
(https://docs.ceph.com/en/latest/releases/octopus/#v15-2-9-octopus), so
focal-security and later are no longer affected

** Changed in: ceph (Ubuntu)
       Status: New => Fix Released

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

Title:
  python3-cephfs focal 'syntax warning' is/literal

Status in ceph package in Ubuntu:
  Fix Released

Bug description:
  During apt install from an otherwise blank focal/mate:

  setting up python3-cephfs (15.2.1-0ubuntu2) ...
  /usr/lib/python3/dist-packages/ceph_volume_client.py:358: SyntaxWarning: "is not" with a literal. Did you mean "!="?
    group_id = group_id if group_id is not 'None' else None
  /usr/lib/python3/dist-packages/ceph_volume_client.py:381: SyntaxWarning: "is" with a literal. Did you mean "=="?
    readonly = True if access_level is 'r' else False
  /usr/lib/python3/dist-packages/ceph_volume_client.py:1102: SyntaxWarning: "is" with a literal. Did you mean "=="?

  ...
  The compiler now produces a SyntaxWarning when identity checks (is and is not) are used with certain types of literals (e.g. strings, numbers). These can often work by accident in CPython, but are not guaranteed by the language spec. The warning advises users to use equality tests (== and !=) instead. (Contributed by Serhiy Storchaka in bpo-34850.)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1878939/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list