diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2014-08-14 08:16:15 -0300 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2014-08-14 12:22:21 -0300 |
| commit | 0bfb53866199f366ed140d49938fd185e5898156 (patch) | |
| tree | 1ca62a791a2d9b093956f02ff000408f9fbd74b9 | |
| parent | b3660d28f3422a33a84de7a7ccad404b3135a1a8 (diff) | |
Fixed #23291 -- Don't add Unicode varname/value to environment.
Windows doesn't like that and it causes 114 failures in the
admin_scripts tests with Python 2.x.
| -rw-r--r-- | django/core/management/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/management/base.py b/django/core/management/base.py index 059a323165..6e6ec19460 100644 --- a/django/core/management/base.py +++ b/django/core/management/base.py @@ -380,7 +380,7 @@ class BaseCommand(object): if options.get('no_color'): self.style = no_style() self.stderr = OutputWrapper(options.get('stderr', sys.stderr)) - os.environ["DJANGO_COLORS"] = "nocolor" + os.environ[str("DJANGO_COLORS")] = str("nocolor") else: self.stderr = OutputWrapper(options.get('stderr', sys.stderr), self.style.ERROR) |
