Skip to content
Myr

remove msys2 and app engine detection (#2554)

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

authored by David Lord · committed by GitHub · parents af1e8d4, daca3cf · Browse files · 2 files+3 added−6 removed
This commit

State

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

Diff stats

2 files+3 added−6 removed

  • other:+3 added−6 removed

2 files+3 added−6 removed

modified:src/click/_compat.py+1 added-6 removed
5 unmodified lines
6import typing as t7from weakref import WeakKeyDictionary89CYGWIN = sys.platform.startswith("cygwin")10MSYS2 = sys.platform.startswith("win") and ("GCC" in sys.version)11# Determine local App Engine environment, per Google's own suggestion12APP_ENGINE = "APPENGINE_RUNTIME" in os.environ and "Development/" in os.environ.get(13 "SERVER_SOFTWARE", ""14)15WIN = sys.platform.startswith("win") and not APP_ENGINE and not MSYS210WIN = sys.platform.startswith("win")11auto_wrap_for_ansi: t.Optional[t.Callable[[t.TextIO], t.TextIO]] = None12_ansi_re = re.compile(r"\033\[[;?0-9]*[a-zA-Z]")1314
604 unmodified lines
modified:CHANGES.rst+2 added
26 unmodified lines
27- Make the decorators returned by ``@argument()`` and ``@option()`` reusable when the28 ``cls`` parameter is used. :issue:`2294`29- Don't fail when writing filenames to streams with strict errors. Replace invalid30 bytes with the replacement character (``�``). :issue:`2395`31- Remove unnecessary attempt to detect MSYS2 environment. :issue:`2355`32- Remove outdated and unnecessary detection of App Engine environment. :pr:`2554`333435Version 8.1.336-------------
1040 unmodified lines