Skip to content
Browse files

Fixed #1762 -- Fixed Windows error in Thanks,…


git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent b301640 commit cca0e7346d314220e489c156d6a552a75244fbd4 @adrianholovaty adrianholovaty committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/core/
4 django/core/
@@ -45,8 +45,8 @@ def __getattr__(self, attr):
global style
style = dummy()
-# Disable terminal coloring if somebody's piping the output.
-if (not sys.stdout.isatty()) or (sys.platform == 'win32'):
+# Disable terminal coloring on Windows or if somebody's piping the output.
+if sys.platform == 'win32' or not sys.stdout.isatty():
def _is_valid_dir_name(s):

0 comments on commit cca0e73

Please sign in to comment.
Something went wrong with that request. Please try again.