Skip to content

Commit

Permalink
Please confused pylint in PY2 context
Browse files Browse the repository at this point in the history
Co-authored-by: Arusekk <arek_koz@o2.pl>
  • Loading branch information
peace-maker and Arusekk committed Jul 24, 2023
1 parent 3c8d78f commit 216ce5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwnlib/libcdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def _extract_debfile(cache_dir, package_filename, package):
files_in_deb = subprocess.check_output(['ar', 't', debfile.name]).split(b'\n')
except subprocess.CalledProcessError:
log.error('Failed to list files in .deb archive.')
data_filename = filter(lambda f: f.startswith(b'data.tar'), files_in_deb)[0]
[data_filename] = filter(lambda f: f.startswith(b'data.tar'), files_in_deb)

try:
subprocess.check_call(['ar', 'x', debfile.name, data_filename], cwd=tempdir)
Expand Down

0 comments on commit 216ce5e

Please sign in to comment.