1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Replaced six.BytesIO with io.BytesIO

This commit is contained in:
Tim Graham
2015-07-20 08:02:22 -04:00
parent ecf4ed246a
commit 6e3fe089dd
3 changed files with 6 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ import os
import shutil
import tempfile as sys_tempfile
import unittest
from io import BytesIO
from django.core.files import temp as tempfile
from django.core.files.uploadedfile import SimpleUploadedFile
@@ -16,7 +17,7 @@ from django.http.multipartparser import MultiPartParser, parse_header
from django.test import SimpleTestCase, TestCase, client, override_settings
from django.utils.encoding import force_bytes
from django.utils.http import urlquote
from django.utils.six import PY2, BytesIO, StringIO
from django.utils.six import PY2, StringIO
from . import uploadhandler
from .models import FileModel