summaryrefslogtreecommitdiff
path: root/src/mailman/rest/header_matches.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/rest/header_matches.py')
-rw-r--r--src/mailman/rest/header_matches.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/rest/header_matches.py b/src/mailman/rest/header_matches.py
index a9ccd2e35..25c519ef3 100644
--- a/src/mailman/rest/header_matches.py
+++ b/src/mailman/rest/header_matches.py
@@ -82,7 +82,7 @@ class HeaderMatch(_HeaderMatchBase):
else:
no_content(response)
- def patch_put(self, request, response, is_optional):
+ def _patch_put(self, request, response, is_optional):
"""Update the header match."""
try:
header_match = self.header_matches[self._position]
@@ -118,11 +118,11 @@ class HeaderMatch(_HeaderMatchBase):
def on_put(self, request, response):
"""Full update of the header match."""
- self.patch_put(request, response, is_optional=False)
+ self._patch_put(request, response, is_optional=False)
def on_patch(self, request, response):
"""Partial update of the header match."""
- self.patch_put(request, response, is_optional=True)
+ self._patch_put(request, response, is_optional=True)
@public