Merge "Py3: reduce is not a built-in anymore, use six.moves instead"

This commit is contained in:
Jenkins authored and Gerrit Code Review committed 2016-05-10 14:31:00 +00:00
commit 43f7d563d3
1 file changed
+1 -1
+1 -1
View File
@@ -169,7 +169,7 @@ class BasicGeneratorSet(object):
expected_result = generator_result[2]
element = path.pop()
if len(path) > 0:
schema_snip = reduce(dict.get, path, schema)
schema_snip = six.moves.reduce(dict.get, path, schema)
schema_snip[element] = invalid_snippet
else:
schema[element] = invalid_snippet