Skip to content

Commit

Permalink
replace list(template_vars) with copy(template_vars)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim committed Nov 10, 2020
1 parent 1f61ba1 commit 42e834f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cylc/flow/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,11 @@ def __init__(
self.mem_log("config.py: before RawSuiteConfig init")
if output_fname:
output_fname = os.path.expandvars(output_fname)
if not template_vars:
template_vars = []
# Copy template_vars to prevent modification of object by parsec.
self.pcfg = RawSuiteConfig(
fpath,
output_fname,
list(template_vars)
copy(template_vars)
)
self.mem_log("config.py: after RawSuiteConfig init")
self.mem_log("config.py: before get(sparse=True")
Expand Down

0 comments on commit 42e834f

Please sign in to comment.