File: read_unicode.html

package info (click to toggle)
mako 1.0.6%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,556 kB
  • ctags: 1,495
  • sloc: python: 11,807; makefile: 167
file content (10 lines) | stat: -rw-r--r-- 200 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
<% 
try:
    file_content = open(path)
except:
    raise "Should never execute here"
doc_content = ''.join(file_content.readlines())
file_content.close()
%>

${unicode(doc_content, encoding='utf-8')}