Skip to content

Commit 40ebc84

Browse files
committed
change to tuple
1 parent 9ada3dd commit 40ebc84

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

lfric_macros/release_lfric.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,17 +99,14 @@ def set_dependency_path(args):
9999
f.write("".join(x for x in lines))
100100

101101

102-
def find_meta_dirs(paths, exclude_dirs=None):
102+
def find_meta_dirs(paths, exclude_dirs=()):
103103
"""
104104
Return a set of rose-metadata directories that can be found in the apps and
105105
core sources. Done by seaching for rose-meta.conf files. Records the parent
106106
directory of the current one, as rose-meta.conf files end up in HEAD/vnX.Y
107107
directories.
108108
"""
109109

110-
if exclude_dirs is None:
111-
exclude_dirs = []
112-
113110
dirs = set()
114111
for path in paths:
115112
print("[INFO] Finding rose metadata directories in", path)
@@ -409,13 +406,13 @@ def main():
409406
set_dependency_path(args)
410407

411408
# Find all metadata directories, excluing jules shared and lfric inputs as these have metadata but no macros.
412-
exclude_dirs = [
409+
exclude_dirs = (
413410
".svn",
414411
"rose-stem",
415412
"integration-test",
416413
"lfric-jules-shared",
417414
"lfricinputs",
418-
]
415+
)
419416
meta_dirs = find_meta_dirs([args.apps, args.core], exclude_dirs)
420417

421418
# Find JULES shared metadata directories and combine with all other metadirs for where they are handled differently

0 commit comments

Comments
 (0)