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

Change-Id: I4a2b84462c78fd709498025d94b0ae1e986fcc31
This commit is contained in:
Jordan Pittier 2016-04-25 17:17:42 +02:00
parent 0caa891d38
commit fa7ce9c3b3

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