D5601: remotefilelog: implement __bool__ as well as __nonzero__ for py3
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Wed Jan 16 17:21:20 UTC 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGbeb0d944a99b: remotefilelog: implement __bool__ as well as __nonzero__ for py3 (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5601?vs=13261&id=13282
REVISION DETAIL
https://phab.mercurial-scm.org/D5601
AFFECTED FILES
hgext/remotefilelog/remotefilelog.py
CHANGE DETAILS
diff --git a/hgext/remotefilelog/remotefilelog.py b/hgext/remotefilelog/remotefilelog.py
--- a/hgext/remotefilelog/remotefilelog.py
+++ b/hgext/remotefilelog/remotefilelog.py
@@ -196,6 +196,8 @@
def __nonzero__(self):
return True
+ __bool__ = __nonzero__
+
def __len__(self):
if self.filename == '.hgtags':
# The length of .hgtags is used to fast path tag checking.
To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list