diff options
| author | Thomas Chaumeny <thomas.chaumeny@polyconseil.fr> | 2014-09-26 14:31:50 +0200 |
|---|---|---|
| committer | Loic Bistuer <loic.bistuer@gmail.com> | 2014-09-29 00:01:38 +0700 |
| commit | b2aad7b836bfde012756cca69291c14d2fdbd334 (patch) | |
| tree | 53c93f9804075ed347d6d83718d37f7dc2a06340 /django/utils | |
| parent | caf5cd7ba7c9d73194e394a26c81f1a677d54a6c (diff) | |
Replaced set([foo, ...]) by {foo, ...} literals. Refs PR 3282.
Thanks Collin Anderson for the review.
Diffstat (limited to 'django/utils')
| -rw-r--r-- | django/utils/formats.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/formats.py b/django/utils/formats.py index 3441f0f420..afbe5da12c 100644 --- a/django/utils/formats.py +++ b/django/utils/formats.py @@ -225,8 +225,8 @@ def sanitize_separators(value): # Special case where we suspect a dot meant decimal separator (see #22171) pass else: - for replacement in set([ - thousand_sep, unicodedata.normalize('NFKD', thousand_sep)]): + for replacement in { + thousand_sep, unicodedata.normalize('NFKD', thousand_sep)}: value = value.replace(replacement, '') parts.append(value) value = '.'.join(reversed(parts)) |
