Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
14956:1b3f5f603aef | 14957:16e5271b216f |
---|---|
246 | 246 |
247 try: | 247 try: |
248 from threading import activeCount | 248 from threading import activeCount |
249 _mixin = SocketServer.ThreadingMixIn | 249 _mixin = SocketServer.ThreadingMixIn |
250 except ImportError: | 250 except ImportError: |
251 if hasattr(os, "fork"): | 251 if util.safehasattr(os, "fork"): |
252 _mixin = SocketServer.ForkingMixIn | 252 _mixin = SocketServer.ForkingMixIn |
253 else: | 253 else: |
254 class _mixin(object): | 254 class _mixin(object): |
255 pass | 255 pass |
256 | 256 |