Development #31179
python3 : PIL.Image.open ne prend qu'un chemin de fichier en paramètre
Début:
06 mars 2019
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Description
Et donc l'imbrication de deux open
dans les tests de l'attribut d'image de profil ne convient plus.
Fichiers
Demandes liées
Révisions associées
Historique
Mis à jour par Paul Marillonnet il y a environ 5 ans
- Fichier 0001-python3-PIL.Image.open-takes-a-file-path-as-first-pa.patch 0001-python3-PIL.Image.open-takes-a-file-path-as-first-pa.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Paul Marillonnet il y a environ 5 ans
- Lié à Development #28276: Fonctionner avec Python3 pour Django1.11 ajouté
Mis à jour par Benjamin Dauvergne il y a environ 5 ans
- Statut changé de Solution proposée à Solution validée
La doc1 dit qu'un type fichier est autorisé (j'accepte quand même le patch puisqu'un chemin est possible aussi, mais je ne comprends pas où était le bug).
1 https://pillow.readthedocs.io/en/3.1.x/reference/Image.html#PIL.Image.open
Mis à jour par Paul Marillonnet il y a environ 5 ans
« The file object must […] be opened in binary mode. »
Ce qui n'est pas le cas en python31.
Mis à jour par Paul Marillonnet il y a environ 5 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 360b05a38c029d58fad233f91bf0311b3a08c8c7 Author: Paul Marillonnet <pmarillonnet@entrouvert.com> Date: Thu Feb 14 11:51:23 2019 +0100 python3: PIL.Image.open takes a file path as first paramater (#31179)
Mis à jour par Frédéric Péters il y a environ 5 ans
- Statut changé de Résolu (à déployer) à Solution déployée
python3: PIL.Image.open takes a file path as first paramater (#31179)