summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)