diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2014-12-06 13:00:09 -0800 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-12-08 07:58:23 -0500 |
| commit | 4468c08d70b5b722f3ebd4872909e56580ec7d68 (patch) | |
| tree | 3da12d757bc9b586df4ba39da20b8793abcae76e /django/utils/termcolors.py | |
| parent | b327a614eb7d885441c6a2575e10b70ac1352aae (diff) | |
Fixed #23968 -- Replaced list comprehension with generators and dict comprehension
Diffstat (limited to 'django/utils/termcolors.py')
| -rw-r--r-- | django/utils/termcolors.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/termcolors.py b/django/utils/termcolors.py index aa2cdc97c3..47bce5244c 100644 --- a/django/utils/termcolors.py +++ b/django/utils/termcolors.py @@ -5,8 +5,8 @@ termcolors.py from django.utils import six color_names = ('black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white') -foreground = dict((color_names[x], '3%s' % x) for x in range(8)) -background = dict((color_names[x], '4%s' % x) for x in range(8)) +foreground = {color_names[x]: '3%s' % x for x in range(8)} +background = {color_names[x]: '4%s' % x for x in range(8)} RESET = '0' opt_dict = {'bold': '1', 'underscore': '4', 'blink': '5', 'reverse': '7', 'conceal': '8'} |
