From 3c0990d050f86574db60c889cb373874b20d4ae0 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Sat, 11 Feb 2023 15:12:31 +0100 Subject: [PATCH] tarfilter, coverage.py: changes for black 23.1.0 --- coverage.py | 2 +- tarfilter | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/coverage.py b/coverage.py index 3202004..2c5dcac 100755 --- a/coverage.py +++ b/coverage.py @@ -201,7 +201,7 @@ def main(): args = parser.parse_args() # copy over files from git or as distributed - for (git, dist, target) in [ + for git, dist, target in [ ("./mmdebstrap", "/usr/bin/mmdebstrap", "mmdebstrap"), ("./tarfilter", "/usr/bin/mmtarfilter", "tarfilter"), ( diff --git a/tarfilter b/tarfilter index 1e507e1..0f9f81e 100755 --- a/tarfilter +++ b/tarfilter @@ -178,14 +178,14 @@ Lastly, shift user id and group id of each entry by the value given by the skip = False if not hasattr(args, "pathfilter"): return False - for (t, r) in args.pathfilter: + for t, r in args.pathfilter: if r.match(member.name[1:]) is not None: if t == "path_include": skip = False else: skip = True if skip and (member.isdir() or member.issym()): - for (t, r) in args.pathfilter: + for t, r in args.pathfilter: if t != "path_include": continue prefix = prefix_prog.sub(r"\1", r.pattern) @@ -198,7 +198,7 @@ Lastly, shift user id and group id of each entry by the value given by the if not hasattr(args, "paxfilter"): return False skip = False - for (t, r) in args.paxfilter: + for t, r in args.paxfilter: if r.match(header) is None: continue if t == "pax_include":