summaryrefslogtreecommitdiff
path: root/src/mailman/rest/helpers.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-01-03 21:59:35 -0500
committerBarry Warsaw2016-01-03 21:59:35 -0500
commitff31bf58804fc984c694f6acfaa302042bc85d89 (patch)
tree5bc6a153bd0604364b931c8c0c70c10faea002c9 /src/mailman/rest/helpers.py
parentf390e08c31477c476e1312d03771b68e22b42675 (diff)
downloadmailman-ff31bf58804fc984c694f6acfaa302042bc85d89.tar.gz
mailman-ff31bf58804fc984c694f6acfaa302042bc85d89.tar.zst
mailman-ff31bf58804fc984c694f6acfaa302042bc85d89.zip
Diffstat (limited to 'src/mailman/rest/helpers.py')
-rw-r--r--src/mailman/rest/helpers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/rest/helpers.py b/src/mailman/rest/helpers.py
index be5a4804b..8de2632bc 100644
--- a/src/mailman/rest/helpers.py
+++ b/src/mailman/rest/helpers.py
@@ -86,7 +86,7 @@ class ExtendedEncoder(json.JSONEncoder):
# It's up to the decoding validator to associate this name with
# the right Enum class.
return obj.name
- return json.JSONEncoder.default(self, obj)
+ return super().default(obj)
def etag(resource):
@@ -130,7 +130,7 @@ class CollectionMixin:
:return: The representation of the resource.
:rtype: dict
"""
- raise NotImplementedError # pragma: no cover
+ raise NotImplementedError
def _resource_as_json(self, resource):
"""Return the JSON formatted representation of the resource."""
@@ -147,7 +147,7 @@ class CollectionMixin:
:return: The collection
:rtype: list
"""
- raise NotImplementedError # pragma: no cover
+ raise NotImplementedError
def _paginate(self, request, collection):
"""Method to paginate through collection result lists.