[Pkg-auth-maintainers] Bug#965059: Syntax warnings with Python 3.8
Petter Reinholdtsen
pere at hungry.com
Thu Sep 9 06:52:09 BST 2021
[Ludovic Rousseau]
> 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?
Or perhaps upstream can make a new release?
I see the same messages, but my run is followed up with this crash.
Perhaps a releated issue?
% yubikey-totp
/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:
Traceback (most recent call last):
File "/usr/bin/yubikey-totp", line 132, in <module>
sys.exit(main())
File "/usr/bin/yubikey-totp", line 120, in main
otp = make_totp(args)
File "/usr/bin/yubikey-totp", line 106, in make_totp
secret = struct.pack("> Q", args.time / args.step).ljust(64, chr(0x0))
struct.error: required argument is not an integer
%
--
Happy hacking
Petter Reinholdtsen
More information about the Pkg-auth-maintainers
mailing list