diff options
| author | David Lord <davidism@gmail.com> | 2020-04-20 00:31:06 -0700 |
|---|---|---|
| committer | David Lord <davidism@gmail.com> | 2020-04-20 00:31:06 -0700 |
| commit | 9f34897f4a77f6c5c369962974290c6eea211c76 (patch) | |
| tree | 680ea144c51a0ce524b151972e390a9b1b27b6db /docs/quickstart.rst | |
| parent | 03dabdda8e48f0f87f13d24b9a2e65c1b0807635 (diff) | |
| download | click-drop-python2.tar.gz | |
remove Python 2/3 from docsdrop-python2
Diffstat (limited to 'docs/quickstart.rst')
| -rw-r--r-- | docs/quickstart.rst | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 51f7f22..fd6bce4 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -157,7 +157,7 @@ Echoing Why does this example use :func:`echo` instead of the regular :func:`print` function? The answer to this question is that Click -attempts to support both Python 2 and Python 3 the same way and to be very +attempts to support different environments consistently and to be very robust even when the environment is misconfigured. Click wants to be functional at least on a basic level even if everything is completely broken. @@ -169,9 +169,7 @@ correction in case the terminal is misconfigured instead of dying with an As an added benefit, starting with Click 2.0, the echo function also has good support for ANSI colors. It will automatically strip ANSI codes if the output stream is a file and if colorama is supported, ANSI colors -will also work on Windows. Note that in Python 2, the :func:`echo` function -does not parse color code information from bytearrays. See :ref:`ansi-colors` -for more information. +will also work on Windows. See :ref:`ansi-colors`. If you don't need this, you can also use the `print()` construct / function. |
