[elbe-devel] [PATCH 37/37] Ignore DeprecationWarning from crypt
Eduard Krein
eduard.krein at linutronix.de
Wed Feb 7 16:39:07 CET 2024
Am Mittwoch, dem 07.02.2024 um 15:29 +0100 schrieb Benedikt Spranger:
> crypt is deprecated in Python 3.11 and scheduled for removal in
> Python 3.13. It claims passlib as recommended replacement. Using
> passlib
> result in an error:
>
> DeprecationWarning: 'crypt' is deprecated and slated for removal in
> Python 3.13
> from crypt import crypt as _crypt
>
> The passlib project is aware of that error, but has no solution for
> it
> right now. Ignore the error until a better solution is available.
>
> Signed-off-by: Benedikt Spranger <b.spranger at linutronix.de>
Reviewed-by: Eduard Krein <eduard.krein at linutronix.de>
> ---
> elbepack/db.py | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/elbepack/db.py b/elbepack/db.py
> index b0145cc4..db46672e 100644
> --- a/elbepack/db.py
> +++ b/elbepack/db.py
> @@ -17,7 +17,10 @@ from elbepack.dosunix import dos2unix
> from elbepack.elbeproject import ElbeProject
> from elbepack.elbexml import ElbeXML, ValidationMode
>
> -from passlib.hash import pbkdf2_sha512
> +try:
> + from passlib.hash import pbkdf2_sha512
> +except DeprecationWarning:
> + pass
>
> from sqlalchemy import (
> Boolean,
--
Eduard Krein
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 19; Fax.: +49 7556 25 999 99
Hinweise zum Datenschutz finden Sie hier (Informations on data privacy
can be found here): https://linutronix.de/legal/data-protection.php
Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen |
Registergericht (Registration Court): Amtsgericht Freiburg i.Br.,HRB700
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas
Gleixner, Sharon Heck, Yulia Beck, Tiffany Silva
More information about the elbe-devel
mailing list