Merge pull request #46839 from gtmanfred/tupletarget

match tuple for targets as well
This commit is contained in:
Nicole Thomas 2018-04-04 10:07:11 -04:00 committed by GitHub
commit 9c776cffb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1586,7 +1586,7 @@ def subdict_match(data,
exact_match=exact_match):
return True
continue
if isinstance(match, list):
if isinstance(match, (list, tuple)):
# We are matching a single component to a single list member
for member in match:
if isinstance(member, dict):