mercurial/hgweb/webutil.py
changeset 31483 413b44003462
parent 31443 d4645ae6ba15
child 31665 c2dbd818e884
--- a/mercurial/hgweb/webutil.py	Mon Mar 13 21:58:43 2017 -0700
+++ b/mercurial/hgweb/webutil.py	Mon Mar 13 12:40:14 2017 -0700
@@ -72,6 +72,8 @@
         """return True if any revision to navigate over"""
         return self._first() is not None
 
+    __bool__ = __nonzero__
+
     def _first(self):
         """return the minimum non-filtered changeset or None"""
         try: