Debian Codegraph @

test/templates/read_unicode_py3k.html

raw
1 <%
2 try:
3 file_content = open(path, encoding='utf-8', errors='ignore')
4 except:
5 raise "Should never execute here"
6 doc_content = ''.join(file_content.readlines())
7 file_content.close()
8 %>
9
10 ${bytes(doc_content, encoding='utf-8')}