Skip to content
Myr

Properly forward err to secho

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

authored by Armin Ronacher · committed by Armin Ronacher · parent 1e4438d · Browse files · 2 files+9 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

2 files+9 added−2 removed

  • other:+9 added−2 removed

2 files+9 added−2 removed

modified:click/termui.py+2 added-2 removed
364 unmodified lines
365 """366 return strip_ansi(text)367368369def secho(text, file=None, nl=True, **styles):369def secho(text, file=None, nl=True, err=False, **styles):370 """This function combines :func:`echo` and :func:`style` into one371 call. As such the following two calls are the same::372373 click.secho('Hello World!', fg='green')
4 unmodified lines
378379 .. versionadded:: 2.0380 """381 text = style(text, **styles)382 return echo(text, file=file, nl=nl)382 return echo(text, file=file, nl=nl, err=err)383384385def edit(text=None, editor=None, env=None, require_save=True,386 extension='.txt', filename=None):
110 unmodified lines
modified:CHANGES+7 added
1 unmodified line
2===============34This contains all major version changes between Click releases.56Version 3.27-----------89(bugfix release, release date to be decided)1011- Added missing `err` parameter forwarding to the `secho` function.1213Version 3.114-----------1516(bugfix release, released on August 13th 2014)
152 unmodified lines