summaryrefslogtreecommitdiff
path: root/django/utils
diff options
context:
space:
mode:
authorThomas Chaumeny <thomas.chaumeny@polyconseil.fr>2014-09-26 14:31:50 +0200
committerLoic Bistuer <loic.bistuer@gmail.com>2014-09-29 00:01:38 +0700
commitb2aad7b836bfde012756cca69291c14d2fdbd334 (patch)
tree53c93f9804075ed347d6d83718d37f7dc2a06340 /django/utils
parentcaf5cd7ba7c9d73194e394a26c81f1a677d54a6c (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.py4
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))