diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-08-14 14:36:11 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-08-14 14:45:28 +0200 |
| commit | c2d59e556499ecee3d8a1fc684f49a21463ab1c1 (patch) | |
| tree | 67741a9025a85cdd58a705e299019bad176ba4a5 /django/utils/text.py | |
| parent | d6b8b125fbd370bb575c43ba66270e22de919a51 (diff) | |
[py3] Fixed admin_views tests
Also changed several occurrences of 'request' to 'response'.
Diffstat (limited to 'django/utils/text.py')
| -rw-r--r-- | django/utils/text.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/text.py b/django/utils/text.py index 0838d79c65..d7f3a03174 100644 --- a/django/utils/text.py +++ b/django/utils/text.py @@ -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') |
