File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1946,9 +1946,9 @@ class DocHandler(BaseHTTPServer.BaseHTTPRequestHandler):
19461946 def send_document (self , title , contents ):
19471947 try :
19481948 self .send_response (200 )
1949- self .send_header ('Content-Type' , 'text/html' )
1949+ self .send_header ('Content-Type' , 'text/html; charset=UTF-8 ' )
19501950 self .end_headers ()
1951- self .wfile .write (html .page (title , contents ))
1951+ self .wfile .write (html .page (title , contents ). encode ( 'utf-8' ) )
19521952 except IOError : pass
19531953
19541954 def do_GET (self ):
@@ -1974,7 +1974,7 @@ def bltinlink(name):
19741974 return '<a href="%s.html">%s</a>' % (name , name )
19751975 names = filter (lambda x : x != '__main__' ,
19761976 sys .builtin_module_names )
1977- contents = html .multicolumn (names , bltinlink )
1977+ contents = html .multicolumn (list ( names ) , bltinlink )
19781978 indices = ['<p>' + html .bigsection (
19791979 'Built-in Modules' , '#ffffff' , '#ee77aa' , contents )]
19801980
You can’t perform that action at this time.
0 commit comments