summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Pope <nick.pope@flightdataservices.com>2020-01-29 08:37:08 +0000
committerGitHub <noreply@github.com>2020-01-29 09:37:08 +0100
commitfa6893e9dbb127d70c1376667c700b71bb987fe0 (patch)
tree968e0cc83bff8b4f42629f66b6d955a5158450fb
parent5978de2ec0787c8912349a72a7143c33f62b980b (diff)
Removed "Pocket PC" from terminal color support function.
Introduced over 13 years ago in 9bea530c33e, Pocket PC was surpassed by Windows Mobile, then Windows Phone, which has since been retired. The value "Pocket PC" isn't documented as a value for ``sys.platform`` and it isn't clear whether it ever worked. There are no tests for this.
-rw-r--r--django/core/management/color.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/core/management/color.py b/django/core/management/color.py
index 572329bb0c..c626f10034 100644
--- a/django/core/management/color.py
+++ b/django/core/management/color.py
@@ -14,8 +14,7 @@ def supports_color():
Return True if the running system's terminal supports color,
and False otherwise.
"""
- plat = sys.platform
- supported_platform = plat != 'Pocket PC' and (plat != 'win32' or 'ANSICON' in os.environ)
+ supported_platform = sys.platform != 'win32' or 'ANSICON' in os.environ
# isatty is not always implemented, #6223.
is_a_tty = hasattr(sys.stdout, 'isatty') and sys.stdout.isatty()