summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/click/_termui_impl.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/click/_termui_impl.py b/src/click/_termui_impl.py
index cf03e90..c860101 100644
--- a/src/click/_termui_impl.py
+++ b/src/click/_termui_impl.py
@@ -437,8 +437,7 @@ def _tempfilepager(
try:
os.system(f'{cmd} "{filename}"')
finally:
- if WIN:
- os.close(fd)
+ os.close(fd)
os.unlink(filename)