##// END OF EJS Templates
hgweb: make sure sys module is loaded prior to reload hack...
Yuya Nishihara -
r20529:ca970d6a stable
parent child Browse files
Show More
@@ -331,6 +331,7 b' def create_server(ui, app):'
331 # as ascii (clown fail), because the default Python Unicode
331 # as ascii (clown fail), because the default Python Unicode
332 # codec is hardcoded as ascii.
332 # codec is hardcoded as ascii.
333
333
334 sys.argv # unwrap demand-loader so that reload() works
334 reload(sys) # resurrect sys.setdefaultencoding()
335 reload(sys) # resurrect sys.setdefaultencoding()
335 oldenc = sys.getdefaultencoding()
336 oldenc = sys.getdefaultencoding()
336 sys.setdefaultencoding("latin1") # or any full 8-bit encoding
337 sys.setdefaultencoding("latin1") # or any full 8-bit encoding
General Comments 0
You need to be logged in to leave comments. Login now