Projet

Général

Profil

0001-misc-use-bytes-in-compatibility-with-older-Picklable.patch

Frédéric Péters, 16 février 2020 10:59

Télécharger (1,16 ko)

Voir les différences:

Subject: [PATCH] misc: use bytes in compatibility with older PicklableUpload
 (#39919)

 wcs/qommon/form.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
wcs/qommon/form.py
66 66
from django.utils.encoding import force_bytes, force_text
67 67
from django.utils import six
68 68
from django.utils.six.moves.html_parser import HTMLParser
69
from django.utils.six import StringIO
69
from django.utils.six import BytesIO
70 70

  
71 71
from django.conf import settings
72 72
from django.utils.safestring import mark_safe
......
853 853
        self.__dict__.update(dict)
854 854
        if hasattr(self, 'data'):
855 855
            # backward compatibility with older w.c.s. version
856
            self.fp = StringIO(self.data)
856
            self.fp = BytesIO(self.data)
857 857
            del self.data
858 858

  
859 859
    def get_file(self):
860
-