[Pkg-auth-maintainers] Bug#965059: Syntax warnings with Python 3.8

Ludovic Rousseau ludovic.rousseau at free.fr
Wed Mar 31 10:27:59 BST 2021


On Wed, 15 Jul 2020 11:34:38 +0100 Sam Morris <sam at robots.org.uk> wrote:
> Package: python3-yubico
> Version: 1.3.3-0.3
> Severity: normal
> 
> $ ipa user-find sam
> /usr/lib/python3/dist-packages/netaddr/strategy/__init__.py:189: SyntaxWarning: "is not" with a literal. Did you mean "!="?
>   if word_sep is not '':
> /usr/lib/python3/dist-packages/yubico/yubikey_usb_hid.py:288: SyntaxWarning: "is" with a literal. Did you mean "=="?
>   if mode is 'nand':
> /usr/lib/python3/dist-packages/yubico/yubikey_usb_hid.py:294: SyntaxWarning: "is" with a literal. Did you mean "=="?
>   elif mode is 'and':
> /usr/lib/python3/dist-packages/yubico/yubikey_usb_hid.py:306: SyntaxWarning: "is" with a literal. Did you mean "=="?
>   if mode is 'nand':
> /usr/lib/python3/dist-packages/yubico/yubikey_config.py:478: SyntaxWarning: "is" with a literal. Did you mean "=="?
>   if slot is 1:
> /usr/lib/python3/dist-packages/yubico/yubikey_config.py:483: SyntaxWarning: "is" with a literal. Did you mean "=="?
>   elif slot is 2:
> [...]

The problem is already fixed upstream in https://github.com/Yubico/python-yubico/commit/b4a53389c3e6ad41c836aa82998149f427fe1ad8 since September 2019.

But the change is not yet available in a released version of
python-yubico.

Maybe the Debian package could use the upstream patch?



More information about the Pkg-auth-maintainers mailing list