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:55:09 -0300 |
| commit | d9559fe163791be263bf8ea406fc287cbbfc9e45 (patch) | |
| tree | 6e18322867d411682c0c3bb54caca3f602502112 /django | |
| parent | 63ccf64079f833ff93a3fe9d158df2ec99015147 (diff) | |
[1.7.x] 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.
0bfb53866199f366ed140d49938fd185e5898156 from master.
Diffstat (limited to 'django')
| -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 0734324eb7..5ceeff88cd 100644 --- a/django/core/management/base.py +++ b/django/core/management/base.py @@ -305,7 +305,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) |
