diff mercurial/hgweb/webutil.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 9f908ef5a595
children 2695aaf4eb72
line wrap: on
line diff
--- a/mercurial/hgweb/webutil.py	Mon Jul 25 15:38:10 2011 -0500
+++ b/mercurial/hgweb/webutil.py	Mon Jul 25 15:38:46 2011 -0500
@@ -72,7 +72,7 @@
         d['date'] = s.date()
         d['description'] = s.description()
         d['branch'] = s.branch()
-        if hasattr(s, 'path'):
+        if util.safehasattr(s, 'path'):
             d['file'] = s.path()
         yield d