@@ -396,19 +396,15 @@ def verified(self) -> bool:
396396 def signed (self ) -> dict [str , Key ]:
397397 """Dictionary of all signing keys that have signed, from both
398398 VerificationResults.
399- return a union of all signed (in python<3.9 this requires
400- dict unpacking)
401399 """
402- return { ** self .first .signed , ** self .second .signed }
400+ return self .first .signed | self .second .signed
403401
404402 @property
405403 def unsigned (self ) -> dict [str , Key ]:
406404 """Dictionary of all signing keys that have not signed, from both
407405 VerificationResults.
408- return a union of all unsigned (in python<3.9 this requires
409- dict unpacking)
410406 """
411- return { ** self .first .unsigned , ** self .second .unsigned }
407+ return self .first .unsigned | self .second .unsigned
412408
413409
414410class _DelegatorMixin (metaclass = abc .ABCMeta ):
@@ -1195,8 +1191,8 @@ def _is_target_in_pathpattern(targetpath: str, pathpattern: str) -> bool:
11951191
11961192 # Every part in the pathpattern could include a glob pattern, that's why
11971193 # each of the target and pathpattern parts should match.
1198- for target_dir , pattern_dir in zip (target_parts , pattern_parts ):
1199- if not fnmatch .fnmatch (target_dir , pattern_dir ):
1194+ for target , pattern in zip (target_parts , pattern_parts , strict = True ):
1195+ if not fnmatch .fnmatch (target , pattern ):
12001196 return False
12011197
12021198 return True
0 commit comments