Ticket #1221: 1221.1.diff
File 1221.1.diff, 441 bytes (added by , 19 years ago) |
---|
-
django/utils/text.py
100 100 return r"\u%04x" % ord(match.group(1)) 101 101 102 102 if type(s) == str: 103 s = s.decode(DEFAULT_ ENCODING)103 s = s.decode(DEFAULT_CHARSET) 104 104 elif type(s) != unicode: 105 105 raise TypeError, s 106 106 s = s.replace('\\', '\\\\')