mirror of
https://github.com/samba-team/samba.git
synced 2025-12-24 04:23:53 +03:00
python: fix mutable default arguments
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Feb 23 23:33:46 UTC 2023 on atb-devel-224
This commit is contained in:
committed by
Andrew Bartlett
parent
e7c87b1d9b
commit
5cb8805811
@@ -161,7 +161,9 @@ is_git_file = _init_git_file_finder()
|
||||
def script_iterator(d=BASEDIR, cache=None,
|
||||
shebang_filter=None,
|
||||
filename_filter=None,
|
||||
subdirs=TEST_DIRS):
|
||||
subdirs=None):
|
||||
if subdirs is None:
|
||||
subdirs = TEST_DIRS
|
||||
if not cache:
|
||||
safename = re.compile(r'\W+').sub
|
||||
for subdir in subdirs:
|
||||
|
||||
Reference in New Issue
Block a user