mercurial/smartset.py
changeset 40233 6309128ff61f
parent 38783 e7aa113b14f7
child 43076 2372284d9457
--- a/mercurial/smartset.py	Sat Oct 13 10:58:06 2018 +0200
+++ b/mercurial/smartset.py	Sat Oct 13 11:01:38 2018 +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, 'func_code'):
+        if cache and util.safehasattr(condition, '__code__'):
             condition = util.cachefunc(condition)
         return filteredset(self, condition, condrepr)