mirror of
https://github.com/django/django.git
synced 2025-08-31 07:47:37 +00:00
Refs #23919 -- Removed six.<various>_types usage
Thanks Tim Graham and Simon Charette for the reviews.
This commit is contained in:
parent
f6acd1d271
commit
7b2f2e74ad
213 changed files with 574 additions and 763 deletions
|
@ -3,7 +3,6 @@ from xml.dom import minidom
|
|||
from django.core import serializers
|
||||
from django.core.serializers.xml_serializer import DTDForbidden
|
||||
from django.test import TestCase, TransactionTestCase
|
||||
from django.utils import six
|
||||
|
||||
from .tests import SerializersTestBase, SerializersTransactionTestBase
|
||||
|
||||
|
@ -34,7 +33,7 @@ class XmlSerializerTestCase(SerializersTestBase, TestCase):
|
|||
def _comparison_value(value):
|
||||
# The XML serializer handles everything as strings, so comparisons
|
||||
# need to be performed on the stringified value
|
||||
return six.text_type(value)
|
||||
return str(value)
|
||||
|
||||
@staticmethod
|
||||
def _validate_output(serial_str):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue