Changes between Initial Version and Version 1 of Ticket #13476, comment 13


Ignore:
Timestamp:
Nov 15, 2013, 6:27:51 AM (11 years ago)
Author:
Ramiro Morales

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13476, comment 13

    initial v1  
    88{{{
    99diff --git a/django/core/management/color.py b/django/core/management/color.py
    10 index c322614..4276c7d 100644
     10index 20e31ff..4276c7d 100644
    1111--- a/django/core/management/color.py
    1212+++ b/django/core/management/color.py
    13 @@ -14,10 +14,10 @@ def supports_color():
     13@@ -13,10 +13,11 @@ def supports_color():
     14     Returns True if the running system's terminal supports color, and False
    1415     otherwise.
    1516     """
    16      plat = sys.platform
    17 -    unsupported_platform = plat == 'Pocket PC' or plat == 'win32' and 'ANSICON' not in os.environ
     17-    unsupported_platform = (sys.platform in ('win32', 'Pocket PC'))
     18+    plat = sys.platform
    1819+    supported_platform = plat != 'Pocket PC' and (plat != 'win32' or 'ANSICON' in os.environ)
    1920     # isatty is not always implemented, #6223.
Back to Top