diff options
author | Vytis Banaitis <vytis.banaitis@gmail.com> | 2017-01-20 23:04:05 +0200 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2017-01-26 08:19:27 -0500 |
commit | d1bab24e0144d14513a1411503c95ececb425188 (patch) | |
tree | 187452bf7b66a9600abc47570ccae22e6d539ede /django/test/utils.py | |
parent | 888c1e9bfe49135d049cbdcbbb0f2e97a1a0a1f5 (diff) | |
download | django-d1bab24e0144d14513a1411503c95ececb425188.tar.gz |
Refs #23919, #27778 -- Removed obsolete mentions of unicode.
Diffstat (limited to 'django/test/utils.py')
-rw-r--r-- | django/test/utils.py | 7 |
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 |