contrib/win32/hgwebdir_wsgi.py
changeset 22198 77142de48ae4
parent 17424 e7cfe3587ea4
child 28187 d3da97e58d42
--- a/contrib/win32/hgwebdir_wsgi.py	Fri Aug 15 20:28:51 2014 +0900
+++ b/contrib/win32/hgwebdir_wsgi.py	Fri Aug 15 04:37:45 2014 +0200
@@ -52,6 +52,7 @@
 # Enable tracing. Run 'python -m win32traceutil' to debug
 if getattr(sys, 'isapidllhandle', None) is not None:
     import win32traceutil
+    win32traceutil.SetupForPrint # silence unused import warning
 
 # To serve pages in local charset instead of UTF-8, remove the two lines below
 import os
@@ -90,6 +91,6 @@
     return isapi_wsgi.ISAPISimpleHandler(handler)
 
 if __name__=='__main__':
-    from isapi.install import *
+    from isapi.install import ISAPIParameters, HandleCommandLine
     params = ISAPIParameters()
     HandleCommandLine(params)