Skip to content
Myr

secho takes None as an argument like echo

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

authored by her0e1c1 · committed by Markus Unterwaditzer · parent cdea8fc · Browse files · 1 file+4 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+4 added−2 removed

  • other:+4 added−2 removed

1 file+4 added−2 removed

modified:click/termui.py+4 added-2 removed
403 unmodified lines
404 """405 return strip_ansi(text)406407408def secho(text, file=None, nl=True, err=False, color=None, **styles):408def secho(message=None, file=None, nl=True, err=False, color=None, **styles):409 """This function combines :func:`echo` and :func:`style` into one410 call. As such the following two calls are the same::411412 click.secho('Hello World!', fg='green')
3 unmodified lines
416 depending on which one they go with.417418 .. versionadded:: 2.0419 """420 if message is not None:421 message = style(message, **styles)420 return echo(style(text, **styles), file=file, nl=nl, err=err, color=color)422 return echo(message, file=file, nl=nl, err=err, color=color)423424425def edit(text=None, editor=None, env=None, require_save=True,426 extension='.txt', filename=None):
115 unmodified lines