mirror of
https://github.com/django/django.git
synced 2025-09-22 18:22:40 +00:00
[py3] Fixed admin_views tests
Also changed several occurrences of 'request' to 'response'.
This commit is contained in:
parent
d6b8b125fb
commit
c2d59e5564
6 changed files with 163 additions and 192 deletions
|
@ -287,7 +287,7 @@ ustring_re = re.compile("([\u0080-\uffff])")
|
|||
def javascript_quote(s, quote_double_quotes=False):
|
||||
|
||||
def fix(match):
|
||||
return b"\u%04x" % ord(match.group(1))
|
||||
return "\\u%04x" % ord(match.group(1))
|
||||
|
||||
if type(s) == bytes:
|
||||
s = s.decode('utf-8')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue