Show More
@@ -137,7 +137,7 b' class abstractsmartset:' | |||
|
137 | 137 | |
|
138 | 138 | This is part of the mandatory API for smartset.""" |
|
139 | 139 | # builtin cannot be cached. but do not needs to |
|
140 |
if cache and util.safehasattr(condition, |
|
|
140 | if cache and util.safehasattr(condition, '__code__'): | |
|
141 | 141 | condition = util.cachefunc(condition) |
|
142 | 142 | return filteredset(self, condition, condrepr) |
|
143 | 143 |
General Comments 0
You need to be logged in to leave comments.
Login now