##// END OF EJS Templates
remotefilelog: implement __bool__ as well as __nonzero__ for py3...
Augie Fackler -
r41287:beb0d944 default
parent child Browse files
Show More
@@ -196,6 +196,8 b' class remotefilelog(object):'
196 def __nonzero__(self):
196 def __nonzero__(self):
197 return True
197 return True
198
198
199 __bool__ = __nonzero__
200
199 def __len__(self):
201 def __len__(self):
200 if self.filename == '.hgtags':
202 if self.filename == '.hgtags':
201 # The length of .hgtags is used to fast path tag checking.
203 # The length of .hgtags is used to fast path tag checking.
General Comments 0
You need to be logged in to leave comments. Login now