Merge "Py3: reduce
is not a built-in anymore, use six.moves instead"
This commit is contained in:
commit
43f7d563d3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user