diff options
Diffstat (limited to 'src/mailman/rest/helpers.py')
| -rw-r--r-- | src/mailman/rest/helpers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mailman/rest/helpers.py b/src/mailman/rest/helpers.py index e20324cfd..e519e4d7f 100644 --- a/src/mailman/rest/helpers.py +++ b/src/mailman/rest/helpers.py @@ -111,7 +111,7 @@ def etag(resource): # library requires a bytes. Use the safest possible encoding. hashfood = pformat(resource).encode('raw-unicode-escape') etag = hashlib.sha1(hashfood).hexdigest() - resource['http_etag'] = '"{0}"'.format(etag) + resource['http_etag'] = '"{}"'.format(etag) return json.dumps(resource, cls=ExtendedEncoder, sort_keys=as_boolean(config.devmode.enabled)) |
