Skip to content

Commit

Permalink
don't modify keyvals in globify()
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>
  • Loading branch information
mraspaud committed Jun 12, 2015
1 parent 91e8b16 commit 698fdf6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trollsift/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ def globify(fmt, keyvals=None):

if keyvals is None:
keyvals = {}

else:
keyvals = keyvals.copy()
parsedef, _ = _extract_parsedef(fmt)
all_keys, all_vals = _collect_keyvals_from_parsedef(parsedef)
replace_str = ''
Expand Down

0 comments on commit 698fdf6

Please sign in to comment.