Py3: reduce
is not a built-in anymore, use six.moves instead
Change-Id: I4a2b84462c78fd709498025d94b0ae1e986fcc31
This commit is contained in:
parent
0caa891d38
commit
fa7ce9c3b3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user