diff options
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)) |
