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

This commit is contained in:
Jenkins 2016-05-10 14:30:59 +00:00 committed by Gerrit Code Review
commit 43f7d563d3

View File

@ -169,7 +169,7 @@ class BasicGeneratorSet(object):
expected_result = generator_result[2] expected_result = generator_result[2]
element = path.pop() element = path.pop()
if len(path) > 0: 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 schema_snip[element] = invalid_snippet
else: else:
schema[element] = invalid_snippet schema[element] = invalid_snippet