diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2010-03-18 13:24:11 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-03-18 13:24:11 +0000 |
| commit | be8a1f612dde1bff3dcdab05c3a916f27946dd31 (patch) | |
| tree | 9015289b300b06c47d27443222fcb2c07e398b27 /django/utils/termcolors.py | |
| parent | 7471dab660d916ab2ebd6b943aec6c2b1145e744 (diff) | |
Fixed #12849 -- Corrected the way strings are encoded for display by the colorizer so that they work with unicode. Thanks to jype for the report, and frasern for his work on the issue.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12803 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/utils/termcolors.py')
| -rw-r--r-- | django/utils/termcolors.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/django/utils/termcolors.py b/django/utils/termcolors.py index ccafb42524..4fb64ac9a0 100644 --- a/django/utils/termcolors.py +++ b/django/utils/termcolors.py @@ -38,7 +38,6 @@ def colorize(text='', opts=(), **kwargs): print colorize('and so should this') print 'this should not be red' """ - text = str(text) code_list = [] if text == '' and len(opts) == 1 and opts[0] == 'reset': return '\x1b[%sm' % RESET |
