Show More
@@ -273,7 +273,7 b' def obfuscate(text):' | |||||
273 | """Any text. Returns the input text rendered as a sequence of |
|
273 | """Any text. Returns the input text rendered as a sequence of | |
274 | XML entities. |
|
274 | XML entities. | |
275 | """ |
|
275 | """ | |
276 | text = unicode(text, encoding.encoding, 'replace') |
|
276 | text = unicode(text, pycompat.sysstr(encoding.encoding), r'replace') | |
277 | return ''.join(['&#%d;' % ord(c) for c in text]) |
|
277 | return ''.join(['&#%d;' % ord(c) for c in text]) | |
278 |
|
278 | |||
279 | @templatefilter('permissions') |
|
279 | @templatefilter('permissions') |
General Comments 0
You need to be logged in to leave comments.
Login now