From fa6893e9dbb127d70c1376667c700b71bb987fe0 Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Wed, 29 Jan 2020 08:37:08 +0000 Subject: [PATCH] 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. --- django/core/management/color.py | 3 +-- 1 file changed, 1 insertion(+), 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()