mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +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
|
|
@ -1,7 +1,6 @@
|
|||
import datetime
|
||||
import unittest
|
||||
|
||||
from django.utils import six
|
||||
from django.utils.encoding import (
|
||||
escape_uri_path, filepath_to_uri, force_bytes, force_text, iri_to_uri,
|
||||
smart_text, uri_to_iri,
|
||||
|
|
@ -27,7 +26,7 @@ class TestEncodingUtils(unittest.TestCase):
|
|||
|
||||
def test_force_text_lazy(self):
|
||||
s = SimpleLazyObject(lambda: 'x')
|
||||
self.assertTrue(issubclass(type(force_text(s)), six.text_type))
|
||||
self.assertTrue(issubclass(type(force_text(s)), str))
|
||||
|
||||
def test_force_bytes_exception(self):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue