mercurial/hgweb/server.py
branchstable
changeset 20529 ca970d6acedb
parent 20357 6863d42eb59a
child 23070 c289fb3624b8
--- a/mercurial/hgweb/server.py	Sat Feb 15 16:19:19 2014 +0900
+++ b/mercurial/hgweb/server.py	Wed Feb 19 21:16:43 2014 +0900
@@ -331,6 +331,7 @@
         # as ascii (clown fail), because the default Python Unicode
         # codec is hardcoded as ascii.
 
+        sys.argv # unwrap demand-loader so that reload() works
         reload(sys) # resurrect sys.setdefaultencoding()
         oldenc = sys.getdefaultencoding()
         sys.setdefaultencoding("latin1") # or any full 8-bit encoding