Skip to content

Commit 80ea29c

Browse files
committed
feat: Upgrade to pyupgrade --py37-plus
1 parent f0ef028 commit 80ea29c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

cve_bin_tool/package_list_parser.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,7 @@ def check_file(self):
196196
# Simulate installation on Debian based system using apt-get to check if the file is valid
197197
output = run(
198198
["xargs", "-a", input_file, "apt-get", "install", "-s"],
199-
stderr=PIPE,
200-
stdout=PIPE,
199+
capture_output=True,
201200
)
202201

203202
if output.returncode != 0:
@@ -211,8 +210,7 @@ def check_file(self):
211210
elif distro.id() in RPM_DISTROS:
212211
output = run(
213212
["xargs", "-a", input_file, "rpm", "-qi"],
214-
stderr=PIPE,
215-
stdout=PIPE,
213+
capture_output=True,
216214
)
217215

218216
not_installed_packages = re.findall(
@@ -225,8 +223,7 @@ def check_file(self):
225223
elif distro.id() in PACMAN_DISTROS:
226224
output = run(
227225
["xargs", "-a", input_file, "pacman", "-Qk"],
228-
stderr=PIPE,
229-
stdout=PIPE,
226+
capture_output=True,
230227
)
231228

232229
not_installed_packages = re.findall(

0 commit comments

Comments
 (0)