summaryrefslogtreecommitdiff
path: root/django/test/utils.py
diff options
context:
space:
mode:
authorVytis Banaitis <vytis.banaitis@gmail.com>2017-01-20 23:04:05 +0200
committerTim Graham <timograham@gmail.com>2017-01-26 08:19:27 -0500
commitd1bab24e0144d14513a1411503c95ececb425188 (patch)
tree187452bf7b66a9600abc47570ccae22e6d539ede /django/test/utils.py
parent888c1e9bfe49135d049cbdcbbb0f2e97a1a0a1f5 (diff)
downloaddjango-d1bab24e0144d14513a1411503c95ececb425188.tar.gz
Refs #23919, #27778 -- Removed obsolete mentions of unicode.
Diffstat (limited to 'django/test/utils.py')
-rw-r--r--django/test/utils.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/django/test/utils.py b/django/test/utils.py
index 43ce455762..5c374c2292 100644
--- a/django/test/utils.py
+++ b/django/test/utils.py
@@ -594,16 +594,9 @@ def strip_quotes(want, got):
s = s.strip()
return len(s) >= 2 and s[0] == s[-1] and s[0] in ('"', "'")
- def is_quoted_unicode(s):
- s = s.strip()
- return len(s) >= 3 and s[0] == 'u' and s[1] == s[-1] and s[1] in ('"', "'")
-
if is_quoted_string(want) and is_quoted_string(got):
want = want.strip()[1:-1]
got = got.strip()[1:-1]
- elif is_quoted_unicode(want) and is_quoted_unicode(got):
- want = want.strip()[2:-1]
- got = got.strip()[2:-1]
return want, got