--- a/mercurial/smartset.py Thu Dec 08 15:33:19 2022 +0100
+++ b/mercurial/smartset.py Thu Aug 31 23:56:15 2023 +0200
@@ -137,7 +137,7 @@
This is part of the mandatory API for smartset."""
# builtin cannot be cached. but do not needs to
- if cache and util.safehasattr(condition, '__code__'):
+ if cache and hasattr(condition, '__code__'):
condition = util.cachefunc(condition)
return filteredset(self, condition, condrepr)
@@ -1127,7 +1127,7 @@
This boldly assumes the other contains valid revs only.
"""
# other not a smartset, make is so
- if not util.safehasattr(other, 'isascending'):
+ if not hasattr(other, 'isascending'):
# filter out hidden revision
# (this boldly assumes all smartset are pure)
#