summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Cazenave <ecazenave@entrouvert.com>2022-06-09 15:52:34 (GMT)
committerEmmanuel Cazenave <ecazenave@entrouvert.com>2022-06-13 19:21:43 (GMT)
commitebb39515f3723ec91038cd4a08d6442d4457713b (patch)
treeaec5ad32cb31e5d1fd892cd4276c7f2c131a5eee
parent8481eade60cd91b3f4d09e6bbc13c8d394fb10bd (diff)
downloaddocbow-ebb39515f3723ec91038cd4a08d6442d4457713b.zip
docbow-ebb39515f3723ec91038cd4a08d6442d4457713b.tar.gz
docbow-ebb39515f3723ec91038cd4a08d6442d4457713b.tar.bz2
django 3.2: import StringIO from io (#64430)
-rw-r--r--docbow_project/docbow/unicodecsv.py2
-rw-r--r--tests/pfwb/test_pfwb.py2
-rw-r--r--tests/pw/test_pw.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/docbow_project/docbow/unicodecsv.py b/docbow_project/docbow/unicodecsv.py
index 1d74bb6..619ccee 100644
--- a/docbow_project/docbow/unicodecsv.py
+++ b/docbow_project/docbow/unicodecsv.py
@@ -2,7 +2,7 @@
# Author: simon
import csv
from django.utils.encoding import force_str, force_text
-from django.utils.six import StringIO
+from io import StringIO
class UnicodeWriter(object):
diff --git a/tests/pfwb/test_pfwb.py b/tests/pfwb/test_pfwb.py
index e7d05ca..9abf139 100644
--- a/tests/pfwb/test_pfwb.py
+++ b/tests/pfwb/test_pfwb.py
@@ -5,13 +5,13 @@ when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
+from io import StringIO
import tempfile
import sys
from contextlib import contextmanager
from functools import wraps
from django.utils.encoding import force_bytes, force_text
-from django.utils.six import StringIO
import mock
diff --git a/tests/pw/test_pw.py b/tests/pw/test_pw.py
index b89c11a..38b954a 100644
--- a/tests/pw/test_pw.py
+++ b/tests/pw/test_pw.py
@@ -6,13 +6,13 @@ when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
+from io import StringIO
import tempfile
import sys
from contextlib import contextmanager
from functools import wraps
from django.utils.encoding import force_bytes, force_text
-from django.utils.six import StringIO
MEDIA_ROOT = tempfile.mkdtemp()