Project

General

Profile

Development #31152

python3 : utiliser six.StringIO

Added by Paul Marillonnet 5 months ago. Updated 4 months ago.

Status:
Solution déployée
Priority:
Normal
Category:
-
Target version:
-
Start date:
06 Mar 2019
Due date:
% Done:

0%

Patch proposed:
Yes
Planning:
No

Description

Qui est un alias pour StringIO.StringIO en python2 et io.StringIO en python3.

0001-python3-use-six.StringIO.patch View (2.78 KB) Paul Marillonnet, 06 Mar 2019 06:23 PM

0001-python3-use-six.BytesIO-31152.patch View (3.67 KB) Paul Marillonnet, 14 Mar 2019 03:34 PM

0001-python3-use-django.utils.six.BytesIO-31152.patch View (4.39 KB) Paul Marillonnet, 20 Mar 2019 04:51 PM


Related issues

Related to Authentic 2 - Development #28276: Fonctionner avec Python3 pour Django1.11 En cours 23 Nov 2018

Associated revisions

Revision d46d94bb (diff)
Added by Paul Marillonnet 4 months ago

python3: use django.utils.six.BytesIO (#31152)

History

#1 Updated by Paul Marillonnet 5 months ago

#2 Updated by Paul Marillonnet 5 months ago

#3 Updated by Benjamin Dauvergne 5 months ago

Utiliser django.utils.six aussi je pense qu'ici c'est six.BytesIO dont on a besoin (response.content est un bytes en python3).

#4 Updated by Benjamin Dauvergne 5 months ago

  • Assignee set to Paul Marillonnet
  • Status changed from Solution proposée to En cours

#5 Updated by Paul Marillonnet 4 months ago

Bein oui, complètement. Simplement je ne connaissais l'existence de cette classe.

#6 Updated by Benjamin Dauvergne 4 months ago

from django.utils import six...

#8 Updated by Benjamin Dauvergne 4 months ago

  • Status changed from Solution proposée to Solution validée

Ack.

#9 Updated by Paul Marillonnet 4 months ago

  • Status changed from Solution validée to Résolu (à déployer)
commit d46d94bb9502fa77dc1b0d4087f68211f326a726
Author: Paul Marillonnet <pmarillonnet@entrouvert.com>
Date:   Thu Jan 24 17:21:26 2019 +0100

    python3: use django.utils.six.BytesIO (#31152)

#10 Updated by Frédéric Péters 4 months ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF