Skip to content

Commit 944f699

Browse files
committed
Replace mutable type and function call in arguments of function declaration.
1 parent 9079f9f commit 944f699

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

roundup/backends/back_anydbm.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,9 +1700,11 @@ def getnodeids(self, db=None, retired=None):
17001700
db.close()
17011701
return res
17021702

1703+
num_re = re.compile(r'^\d+$')
1704+
17031705
def _filter(self, search_matches, filterspec, proptree,
1704-
num_re=re.compile(r'^\d+$'), retired=False,
1705-
exact_match_spec={}):
1706+
num_re=num_re, retired=False,
1707+
exact_match_spec=_marker):
17061708
"""Return a list of the ids of the nodes in this class that
17071709
match the 'filter' spec, sorted by the group spec and then the
17081710
sort spec.
@@ -1729,6 +1731,9 @@ def _filter(self, search_matches, filterspec, proptree,
17291731
if __debug__:
17301732
start_t = time.time()
17311733

1734+
if exact_match_spec is _marker:
1735+
exact_match_spec = {}
1736+
17321737
cn = self.classname
17331738

17341739
# optimise filterspec

0 commit comments

Comments
 (0)