aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-01-10 13:21:13 +0000
committerSam James <sam@gentoo.org>2023-01-10 15:12:38 +0000
commitd88ee7e03f900a16904f3c428449d71710ecaebd (patch)
treeab84b87d775ab0b2a37467d9dd86310b6d4a9e7f /bin/glsa-check
parent*/*: convert to f-strings (run flynt) (diff)
downloadportage-d88ee7e03f900a16904f3c428449d71710ecaebd.tar.gz
portage-d88ee7e03f900a16904f3c428449d71710ecaebd.tar.bz2
portage-d88ee7e03f900a16904f3c428449d71710ecaebd.zip
*/*: run Black post-flynt
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'bin/glsa-check')
-rwxr-xr-xbin/glsa-check16
1 files changed, 4 insertions, 12 deletions
diff --git a/bin/glsa-check b/bin/glsa-check
index 436038702..388651e68 100755
--- a/bin/glsa-check
+++ b/bin/glsa-check
@@ -210,9 +210,7 @@ if "affected" in params:
myglsa = Glsa(x, portage.settings, vardb, portdb)
except (GlsaTypeException, GlsaFormatException) as e:
if verbose:
- sys.stderr.write(
- f"invalid GLSA: {x} (error message was: {e})\n"
- )
+ sys.stderr.write(f"invalid GLSA: {x} (error message was: {e})\n")
continue
if myglsa.isVulnerable():
glsalist.append(x)
@@ -319,9 +317,7 @@ if mode in ["dump", "fix", "inject", "pretend"]:
myglsa = Glsa(myid, portage.settings, vardb, portdb)
except (GlsaTypeException, GlsaFormatException) as e:
if verbose:
- sys.stderr.write(
- f"invalid GLSA: {myid} (error message was: {e})\n"
- )
+ sys.stderr.write(f"invalid GLSA: {myid} (error message was: {e})\n")
continue
if mode == "dump":
myglsa.dump()
@@ -413,9 +409,7 @@ if mode == "test":
myglsa = Glsa(myid, portage.settings, vardb, portdb)
except (GlsaTypeException, GlsaFormatException) as e:
if verbose:
- sys.stderr.write(
- f"invalid GLSA: {myid} (error message was: {e})\n"
- )
+ sys.stderr.write(f"invalid GLSA: {myid} (error message was: {e})\n")
continue
if myglsa.isVulnerable():
outputlist.append(str(myglsa.nr))
@@ -468,9 +462,7 @@ if mode == "mail":
myglsa = Glsa(myid, portage.settings, vardb, portdb)
except (GlsaTypeException, GlsaFormatException) as e:
if verbose:
- sys.stderr.write(
- f"invalid GLSA: {myid} (error message was: {e})\n"
- )
+ sys.stderr.write(f"invalid GLSA: {myid} (error message was: {e})\n")
continue
myfd = BytesIO()
myglsa.dump(outstream=myfd)