mercurial/localrepo.py
changeset 31476 413b44003462
parent 31466 b6bbfbaa205a
child 31508 590319c07259
--- a/mercurial/localrepo.py	Mon Mar 13 21:58:43 2017 -0700
+++ b/mercurial/localrepo.py	Mon Mar 13 12:40:14 2017 -0700
@@ -585,6 +585,8 @@
     def __nonzero__(self):
         return True
 
+    __bool__ = __nonzero__
+
     def __len__(self):
         return len(self.changelog)