0001-misc-use-bytes-in-compatibility-with-older-Picklable.patch
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 |
- |