diff -Nru python-netaddr-0.7.19/debian/changelog python-netaddr-0.7.19/debian/changelog --- python-netaddr-0.7.19/debian/changelog 2020-01-31 22:42:29.000000000 +0000 +++ python-netaddr-0.7.19/debian/changelog 2021-10-18 15:25:44.000000000 +0000 @@ -1,3 +1,11 @@ +python-netaddr (0.7.19-3ubuntu1) focal; urgency=medium + + * d/p/fix-python-38-syntaxwarning.patch: + - Fix Python 3.8 SyntaxWarning on using `is not` with a string + literal. + + -- Eric Desrochers Mon, 18 Oct 2021 11:25:44 -0400 + python-netaddr (0.7.19-3) unstable; urgency=medium * d/control: build-depends on python-all. Closes: #950362. diff -Nru python-netaddr-0.7.19/debian/patches/fix-python-38-syntaxwarning.patch python-netaddr-0.7.19/debian/patches/fix-python-38-syntaxwarning.patch --- python-netaddr-0.7.19/debian/patches/fix-python-38-syntaxwarning.patch 1970-01-01 00:00:00.000000000 +0000 +++ python-netaddr-0.7.19/debian/patches/fix-python-38-syntaxwarning.patch 2021-10-18 15:25:44.000000000 +0000 @@ -0,0 +1,18 @@ +Description: fix Python 3.8 SyntaxWarning on using `is not` with a string literal + + closes PR #193 + +From: Stefan Nordhausen +Origin: https://github.com/netaddr/netaddr/commit/cc2a9bb31fae +Bug-Ubuntu: https://launchpad.net/bugs/1877792 +--- a/netaddr/strategy/__init__.py ++++ b/netaddr/strategy/__init__.py +@@ -186,7 +186,7 @@ + bits = ('0' * word_size + bit_str)[-word_size:] + bit_words.append(bits) + +- if word_sep is not '': ++ if word_sep != '': + # Check custom separator. + if not _is_str(word_sep): + raise ValueError('word separator is not a string: %r!' % word_sep) diff -Nru python-netaddr-0.7.19/debian/patches/series python-netaddr-0.7.19/debian/patches/series --- python-netaddr-0.7.19/debian/patches/series 2020-01-31 22:42:29.000000000 +0000 +++ python-netaddr-0.7.19/debian/patches/series 2021-10-18 15:25:29.000000000 +0000 @@ -1 +1,2 @@ 2ab73f10be7069c9412e853d2d0caf29bd624012.patch +fix-python-38-syntaxwarning.patch