diff options
author | David Lord <davidism@gmail.com> | 2020-04-20 00:31:06 -0700 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2020-04-20 07:12:53 -0700 |
commit | a1d726b5a244a831533e4d27a5be3975288de698 (patch) | |
tree | 556f74bc68f4c97bfe77b4c928c85114f0518c22 /src/click/utils.py | |
parent | 9897d81d0830f2048360cbd45993de1b37ce7371 (diff) | |
download | click-a1d726b5a244a831533e4d27a5be3975288de698.tar.gz |
remove Python 2/3 from docs
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'`` |