focal/python3-netaddr : SyntaxWarning: "is not" with a literal

Bug #1878985 reported by Harry Coin
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-netaddr (Debian)
Fix Released
Unknown
python-netaddr (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Setting up python3-netaddr (0.7.19-3) ...
/usr/lib/python3/dist-packages/netaddr/strategy/__init__.py:189: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if word_sep is not '':

'is' and == are not the same, tests will fail that succeeded on some x86 cpython platforms for other than 8 bit literals.
These bugs are picked up on python3.8, included with focal, not seen on 3.7/eoan.

Tags: focal
Revision history for this message
Kai Kasurinen (kai-kasurinen) wrote :

python-netaddr (0.7.19-4) unstable; urgency=medium

  * Drop python2 support; Closes: #937942
  * debian/patches/PR200.patch
    - address SyntaxWarning revealed by python3.8; Closes: #950787

affects: ceph (Ubuntu) → python-netaddr (Ubuntu)
Changed in python-netaddr (Ubuntu):
status: New → Fix Released
Revision history for this message
Harry Coin (hcoin) wrote : Re: [Bug 1878985] Re: focal/python3-netaddr : SyntaxWarning: "is not" with a literal

While dropping python-netaddr may remove a 2.0 issue, notice the bug
report was for python3-netaddr.  The 3 bit is important and doesn't fix
this bug.

On 5/15/20 3:12 PM, Kai Kasurinen wrote:
> python-netaddr (0.7.19-4) unstable; urgency=medium
>
> * Drop python2 support; Closes: #937942
> * debian/patches/PR200.patch
> - address SyntaxWarning revealed by python3.8; Closes: #950787
>
>
> ** Package changed: ceph (Ubuntu) => python-netaddr (Ubuntu)
>
> ** Bug watch added: Debian Bug tracker #950787
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=950787
>
> ** Also affects: python-netaddr (Debian) via
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=950787
> Importance: Unknown
> Status: Unknown
>
> ** Changed in: python-netaddr (Ubuntu)
> Status: New => Fix Released
>

Changed in python-netaddr (Debian):
status: Unknown → Fix Released
Revision history for this message
Alberto Donato (ack) wrote :

Can we reopen this bug for focal?

It still happens with python3-netaddr.

Alberto Donato (ack)
tags: added: focal
Revision history for this message
Alberto Donato (ack) wrote :
Revision history for this message
Kai Kasurinen (kai-kasurinen) wrote :
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.