Skip to content

Commit

Permalink
address linter
Browse files Browse the repository at this point in the history
  • Loading branch information
lcian committed Oct 3, 2024
1 parent 7086616 commit 7b462e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pwnlib/commandline/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from pwn import *
from pwnlib.commandline import common
from pwnlib.util.misc import which, parse_ldd_output, write

from sys import stderr
from mako.lookup import TemplateLookup, Template
Expand Down Expand Up @@ -41,7 +42,7 @@ def get_docker_image_libraries():
Supports regular Docker images as well as jail images.
"""
with log.progress("Extracting challenge libraries from Docker image") as progress:
if not util.misc.which("docker"):
if not which("docker"):
progress.failure("docker command not found")
return None, None
# maps jail image name to the root directory of the child image
Expand Down Expand Up @@ -104,7 +105,7 @@ def get_docker_image_libraries():
stderr=subprocess.PIPE,
shell=False
)
util.misc.write(basename, contents)
write(basename, contents)

except subprocess.CalledProcessError as e:
print(e.stderr.decode())
Expand Down

0 comments on commit 7b462e1

Please sign in to comment.