mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
templater.py: fix obfuscate
This commit is contained in:
parent
877ef87ad8
commit
2726e242c0
@ -204,7 +204,7 @@ def nl2br(text):
|
||||
return text.replace('\n', '<br/>\n')
|
||||
|
||||
def obfuscate(text):
|
||||
text = unicode(text, 'utf-8', 'replace')
|
||||
text = unicode(text, util._encoding, 'replace')
|
||||
return ''.join(['&#%d;' % ord(c) for c in text])
|
||||
|
||||
def domain(author):
|
||||
|
Loading…
Reference in New Issue
Block a user