Merge "Replaces reduce with six.moves.reduce for py 2/3 compatibility"

This commit is contained in:
Jenkins 2015-08-03 18:29:54 +00:00 committed by Gerrit Code Review
commit 38a0a51d9b

View File

@ -176,7 +176,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