Skip to content
Myr

Always close file descriptor to tempfilepager.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jay Crotts · committed by David Lord · parent 9f620f7 · Browse files · 1 file+1 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:src/click/_termui_impl.py+1 added-2 removed
435 unmodified lines
436 f.write(text.encode(encoding))437 try:438 os.system(f'{cmd} "{filename}"')439 finally:440 if WIN:441 os.close(fd)440 os.close(fd)441 os.unlink(filename)442443444def _nullpager(
274 unmodified lines