Projet

Général

Profil

Development #31179

python3 : PIL.Image.open ne prend qu'un chemin de fichier en paramètre

Ajouté par Paul Marillonnet il y a environ 5 ans. Mis à jour il y a environ 5 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
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

Lié à Authentic 2 - Development #28276: Fonctionner avec Python3 pour Django1.11Fermé23 novembre 2018

Actions

Révisions associées

Révision 360b05a3 (diff)
Ajouté par Paul Marillonnet il y a environ 5 ans

python3: PIL.Image.open takes a file path as first paramater (#31179)

Historique

#1

Mis à jour par Paul Marillonnet il y a environ 5 ans

#2

Mis à jour par Paul Marillonnet il y a environ 5 ans

#3

Mis à jour par Benjamin Dauvergne il y a environ 5 ans

  • Assigné à mis à Paul Marillonnet
#4

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

#5

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.

1 https://docs.python.org/3/library/functions.html#open

#6

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)
#7

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

Formats disponibles : Atom PDF