Development #71899
Dépréciation: PIL.Image.LANCZOS
Start date:
01 December 2022
Due date:
% Done:
0%
Estimated time:
Patch proposed:
Yes
Planning:
No
Description
Remplacé par PIL.Image.Resampling.LANCZOS
Files
Associated revisions
History
Updated by Benjamin Dauvergne 2 months ago
- File 0001-misc-use-PIL.Image.Resampling.LANCZOS-instead-of-PIL.patch 0001-misc-use-PIL.Image.Resampling.LANCZOS-instead-of-PIL.patch added
- Status changed from Nouveau to Solution proposée
- Patch proposed changed from No to Yes
Updated by Valentin Deniaud 2 months ago
Même remarque que #71619 il faut conditionner sur la version de python et ne pas s'appuyer sur une exception, parce que comme ça pyupgrade saura nettoyer automatiquement https://github.com/asottile/pyupgrade#python2-and-old-python3x-blocks.
Updated by Benjamin Dauvergne 2 months ago
Je ne comprends pas, ça dépend de la version de Pillow, pas de la version de Python.
Updated by Valentin Deniaud 2 months ago
En effet j'ai dégainé trop vite, dans ce cas peut-être ajouter un commentaire pour qu'on sache quelle ligne virer à l'avenir en un coup d'œil ?
Updated by Benjamin Dauvergne 2 months ago
- File 0001-misc-use-PIL.Image.Resampling.LANCZOS-instead-of-PIL.patch 0001-misc-use-PIL.Image.Resampling.LANCZOS-instead-of-PIL.patch added
Avec commentaire.
Updated by Valentin Deniaud 2 months ago
- Status changed from Solution proposée to Solution validée
Perfecto
Updated by Benjamin Dauvergne 2 months ago
- Status changed from Solution validée to Résolu (à déployer)
commit 855bb179b0b9c213f6c1bc96f193893245fa0d16 Author: Benjamin Dauvergne <bdauvergne@entrouvert.com> Date: Thu Dec 1 08:56:26 2022 +0100 misc: use PIL.Image.Resampling.LANCZOS instead of PIL.Image.LANCZOS (#71899) PIL.Image.LANCZOS is deprecated.
Updated by Transition automatique about 1 month ago
- Status changed from Résolu (à déployer) to Solution déployée
misc: use PIL.Image.Resampling.LANCZOS instead of PIL.Image.LANCZOS (#71899)
PIL.Image.LANCZOS is deprecated.