Skip to content
Myr

'x' and 'a' filemodes use stdout when file is '-' (#929)

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

authored by Brandon Milton · committed by Armin Ronacher · parent 60ef759 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:click/_compat.py+1 added-1 removed
438 unmodified lines
439 atomic=False):440 # Standard streams first. These are simple because they don't need441 # special handling for the atomic flag. It's entirely ignored.442 if filename == '-':443 if 'w' in mode:443 if any(m in mode for m in ['w', 'a', 'x']):444 if 'b' in mode:445 return get_binary_stdout(), False446 return get_text_stdout(encoding=encoding, errors=errors), False447 if 'b' in mode:
221 unmodified lines