diff options
Diffstat (limited to 'contrib/win32/hgwebdir_wsgi.py')
-rw-r--r-- | contrib/win32/hgwebdir_wsgi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/win32/hgwebdir_wsgi.py b/contrib/win32/hgwebdir_wsgi.py index efa866e..b82678e 100644 --- a/contrib/win32/hgwebdir_wsgi.py +++ b/contrib/win32/hgwebdir_wsgi.py @@ -50,7 +50,7 @@ import sys #sys.path.insert(0, r'c:\path\to\python\lib') # Enable tracing. Run 'python -m win32traceutil' to debug -if getattr(sys, 'isapidllhandle', None) is not None: +if hasattr(sys, 'isapidllhandle'): import win32traceutil # To serve pages in local charset instead of UTF-8, remove the two lines below |