diff mercurial/hgweb/server.py @ 14957:16e5271b216f

hgweb: move remaining hasattr calls to safehasattr
author Augie Fackler <durin42@gmail.com>
date Mon, 25 Jul 2011 15:38:46 -0500
parents a7d5816087a9
children fc035e5370ca
line wrap: on
line diff
--- a/mercurial/hgweb/server.py	Mon Jul 25 15:38:10 2011 -0500
+++ b/mercurial/hgweb/server.py	Mon Jul 25 15:38:46 2011 -0500
@@ -248,7 +248,7 @@
     from threading import activeCount
     _mixin = SocketServer.ThreadingMixIn
 except ImportError:
-    if hasattr(os, "fork"):
+    if util.safehasattr(os, "fork"):
         _mixin = SocketServer.ForkingMixIn
     else:
         class _mixin(object):