summaryrefslogtreecommitdiff
path: root/scalarstring.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2021-03-05 08:20:19 +0100
committerAnthon van der Neut <anthon@mnt.org>2021-03-05 08:20:19 +0100
commit3b3bc4e217719b84dd27b04a4a644e5f39a0eb8e (patch)
treec0e8ab723897fb9cd4a2a4d6705bc4bbf2b3fe03 /scalarstring.py
parent24e2600e50db8bbc211daf1405bf070efe9ddd83 (diff)
downloadruamel.yaml-3b3bc4e217719b84dd27b04a4a644e5f39a0eb8e.tar.gz
fix #373
Diffstat (limited to 'scalarstring.py')
-rw-r--r--scalarstring.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scalarstring.py b/scalarstring.py
index 8427323..f164639 100644
--- a/scalarstring.py
+++ b/scalarstring.py
@@ -144,7 +144,7 @@ def walk_tree(base, map=None):
base[k] = map[ch](v)
break
else:
- walk_tree(v)
+ walk_tree(v, map=map)
elif isinstance(base, MutableSequence):
for idx, elem in enumerate(base):
if isinstance(elem, string_types):
@@ -153,4 +153,4 @@ def walk_tree(base, map=None):
base[idx] = map[ch](elem)
break
else:
- walk_tree(elem)
+ walk_tree(elem, map=map)