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 /src/click/utils.py | |
| parent | 03dabdda8e48f0f87f13d24b9a2e65c1b0807635 (diff) | |
| download | click-drop-python2.tar.gz | |
remove Python 2/3 from docsdrop-python2
Diffstat (limited to 'src/click/utils.py')
| -rw-r--r-- | src/click/utils.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/click/utils.py b/src/click/utils.py index ffd26b3..bd9dd8e 100644 --- a/src/click/utils.py +++ b/src/click/utils.py @@ -265,11 +265,7 @@ def echo(message=None, file=None, nl=True, err=False, color=None): def get_binary_stream(name): - """Returns a system stream for byte processing. This essentially - returns the stream from the sys module with the given name but it - solves some compatibility issues between different Python versions. - Primarily this function is necessary for getting binary streams on - Python 3. + """Returns a system stream for byte processing. :param name: the name of the stream to open. Valid names are ``'stdin'``, ``'stdout'`` and ``'stderr'`` @@ -283,8 +279,8 @@ def get_binary_stream(name): def get_text_stream(name, encoding=None, errors="strict"): """Returns a system stream for text processing. This usually returns a wrapped stream around a binary stream returned from - :func:`get_binary_stream` but it also can take shortcuts on Python 3 - for already correctly configured streams. + :func:`get_binary_stream` but it also can take shortcuts for already + correctly configured streams. :param name: the name of the stream to open. Valid names are ``'stdin'``, ``'stdout'`` and ``'stderr'`` |
