##// END OF EJS Templates
hgweb: move remaining hasattr calls to safehasattr
Augie Fackler -
r14957:16e5271b default
parent child Browse files
Show More
@@ -248,7 +248,7 b' 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):
@@ -72,7 +72,7 b' def _siblings(siblings=[], hiderev=None)'
72 d['date'] = s.date()
72 d['date'] = s.date()
73 d['description'] = s.description()
73 d['description'] = s.description()
74 d['branch'] = s.branch()
74 d['branch'] = s.branch()
75 if hasattr(s, 'path'):
75 if util.safehasattr(s, 'path'):
76 d['file'] = s.path()
76 d['file'] = s.path()
77 yield d
77 yield d
78
78
General Comments 0
You need to be logged in to leave comments. Login now