##// END OF EJS Templates
win32/hgwebdir_wsgi: use getattr instead of hasattr
Augie Fackler -
r14974:a2aa7511 default
parent child Browse files
Show More
@@ -50,7 +50,7 b' import sys'
50 #sys.path.insert(0, r'c:\path\to\python\lib')
50 #sys.path.insert(0, r'c:\path\to\python\lib')
51
51
52 # Enable tracing. Run 'python -m win32traceutil' to debug
52 # Enable tracing. Run 'python -m win32traceutil' to debug
53 if hasattr(sys, 'isapidllhandle'):
53 if getattr(sys, 'isapidllhandle', None) is not None:
54 import win32traceutil
54 import win32traceutil
55
55
56 # To serve pages in local charset instead of UTF-8, remove the two lines below
56 # To serve pages in local charset instead of UTF-8, remove the two lines below
General Comments 0
You need to be logged in to leave comments. Login now