Skip to content
Myr

Replaced redundant mktemp() with mkstemp() (#1754)

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

authored by MIS-Alex · committed by GitHub · parent dd6d1ce · Browse files · 2 files+3 added−1 removed
This commit

State

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

Diff stats

2 files+3 added−1 removed

  • other:+3 added−1 removed

2 files+3 added−1 removed

modified:src/click/_termui_impl.py+1 added-1 removed
422 unmodified lines
423def _tempfilepager(generator, cmd, color):424 """Page through text by invoking a program on a temporary file."""425 import tempfile426427 filename = tempfile.mktemp()427 filename = tempfile.mkstemp()428 # TODO: This never terminates if the passed generator never terminates.429 text = "".join(generator)430 if not color:431 text = strip_ansi(text)
255 unmodified lines
modified:CHANGES.rst+2 added
153 unmodified lines
154- Skip progress bar render steps for efficiency with very fast155 iterators by setting ``update_min_steps``. :issue:`676`156- Respect ``case_sensitive=False`` when doing shell completion for157 ``Choice`` :issue:`1692`158- Use ``mkstemp()`` instead of ``mktemp()`` in pager implementation.159 :issue:`1752`160161162Version 7.1.2163-------------
635 unmodified lines