diff options
Diffstat (limited to 'src/mailman/rest/helpers.py')
| -rw-r--r-- | src/mailman/rest/helpers.py | 6 |
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. |
