Mercurial > p > roundup > code
diff roundup/backends/back_anydbm.py @ 7006:11e2b0b1cc71
Replace mutable type and function call in arguments of function declaration.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 06 Oct 2022 23:37:40 -0400 |
| parents | 41c7c335ceb7 |
| children | f92c56e74f82 |
line wrap: on
line diff
--- a/roundup/backends/back_anydbm.py Thu Oct 06 23:11:37 2022 -0400 +++ b/roundup/backends/back_anydbm.py Thu Oct 06 23:37:40 2022 -0400 @@ -1700,9 +1700,11 @@ db.close() return res + num_re = re.compile(r'^\d+$') + def _filter(self, search_matches, filterspec, proptree, - num_re=re.compile(r'^\d+$'), retired=False, - exact_match_spec={}): + num_re=num_re, retired=False, + exact_match_spec=_marker): """Return a list of the ids of the nodes in this class that match the 'filter' spec, sorted by the group spec and then the sort spec. @@ -1729,6 +1731,9 @@ if __debug__: start_t = time.time() + if exact_match_spec is _marker: + exact_match_spec = {} + cn = self.classname # optimise filterspec
