Skip to content

Commit

Permalink
pep8: Add compliance with rule E261 to replace-tarball-shebang.
Browse files Browse the repository at this point in the history
  • Loading branch information
adnrs96 committed May 17, 2017
1 parent d6f97f0 commit 306e74c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/replace-tarball-shebang
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ new_shebang_bytes = new_shebang.encode()

with tarfile.open(fileobj=stdin, mode='r|*') as in_tar, \
tarfile.open(fileobj=stdout, mode='w', format=tarfile.PAX_FORMAT, pax_headers=in_tar.pax_headers) as out_tar:
for info in in_tar: # type: ignore # https://github.com/python/typeshed/pull/693
for info in in_tar: # type: ignore # https://github.com/python/typeshed/pull/693
if info.isfile():
file = in_tar.extractfile(info)
data = file.read()
Expand Down

0 comments on commit 306e74c

Please sign in to comment.