summaryrefslogtreecommitdiff
path: root/django/core/serializers/json.py
diff options
context:
space:
mode:
authorchillaranand <anand21nanda@gmail.com>2017-01-21 18:43:44 +0530
committerTim Graham <timograham@gmail.com>2017-01-25 12:23:46 -0500
commitd6eaf7c0183cd04b78f2a55e1d60bb7e59598310 (patch)
treeab02fd9949d4bfa23e27dea45e213ce334c883f0 /django/core/serializers/json.py
parentdc165ec8e5698ffc6dee6b510f1f92c9fd7467fe (diff)
downloaddjango-d6eaf7c0183cd04b78f2a55e1d60bb7e59598310.tar.gz
Refs #23919 -- Replaced super(ClassName, self) with super().
Diffstat (limited to 'django/core/serializers/json.py')
-rw-r--r--django/core/serializers/json.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/core/serializers/json.py b/django/core/serializers/json.py
index 79db71cadf..b2ab87b171 100644
--- a/django/core/serializers/json.py
+++ b/django/core/serializers/json.py
@@ -59,7 +59,7 @@ class Serializer(PythonSerializer):
self._current = None
def getvalue(self):
- # Grand-parent super
+ # Grandparent super
return super(PythonSerializer, self).getvalue()
@@ -108,4 +108,4 @@ class DjangoJSONEncoder(json.JSONEncoder):
elif isinstance(o, (decimal.Decimal, uuid.UUID, Promise)):
return str(o)
else:
- return super(DjangoJSONEncoder, self).default(o)
+ return super().default(o)