Skip to content
Myr

Merge branch '6.x-maintenance'

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

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parents e6f22c6, df0e37d · Browse files · 3 files+13 added−7 removed
This commit

State

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

Diff stats

3 files+13 added−7 removed

  • other:+13 added−7 removed

3 files+13 added−7 removed

modified:click/_compat.py+9 added-3 removed
160 unmodified lines
161 # correct option here.162 #163 # This code also lives in _winconsole for the fallback to the console164 # emulation stream.165 if WIN:165 #166 # There are also Windows environments where the `msvcrt` module is not167 # available (which is why we use try-catch instead of the WIN variable168 # here), such as the Google App Engine development server on Windows. In169 # those cases there is just nothing we can do.170 try:171 import msvcrt172 except ImportError:173 set_binary_mode = lambda x: x174 else:175 def set_binary_mode(f):176 try:177 fileno = f.fileno()178 except Exception:179 pass180 else:181 msvcrt.setmode(fileno, os.O_BINARY)182 return f175 else:176 set_binary_mode = lambda x: x183184 def isidentifier(x):185 return _identifier_re.search(x) is not None186
465 unmodified lines
modified:click/_unicodefun.py+2 added-3 removed
112 unmodified lines
113 ) % bad_locale114115 raise RuntimeError('Click will abort further execution because Python 3 '116 'was configured to use ASCII as encoding for the '117 'environment. Either run this under Python 2 or '118 'consult http://click.pocoo.org/python3/ for '119 'mitigation steps.' + extra)117 'environment. Consult http://click.pocoo.org/python3/'118 'for mitigation steps.' + extra)
modified:CHANGES+2 added-1 removed
21 unmodified lines
2223Version 6.724-----------2526(bugfix release; yet to be released)26(bugfix release; released on January 6th 2017)2728- Make `click.progressbar` work with `codecs.open` files. See #637.29- Fix bug in bash completion with nested subcommands. See #639.30- Fix test runner not saving caller env correctly. See #644.31- Fix handling of SIGPIPE. See #62632- Deal with broken Windows environments such as Google App Engine's. See #711.3334Version 6.635-----------36
331 unmodified lines