summaryrefslogtreecommitdiff
path: root/src/mailman/rest/helpers.py
diff options
context:
space:
mode:
authorBarry Warsaw2015-12-30 14:34:18 -0500
committerBarry Warsaw2015-12-30 14:38:10 -0500
commitdac929973fbfc7ac4c807afafc22b992510b4e6d (patch)
tree7deb45c8500cf099215fce8e61055b7e1242fb57 /src/mailman/rest/helpers.py
parent8e69b848270da6ba4852f8c6dfdeeed8124ab024 (diff)
downloadmailman-dac929973fbfc7ac4c807afafc22b992510b4e6d.tar.gz
mailman-dac929973fbfc7ac4c807afafc22b992510b4e6d.tar.zst
mailman-dac929973fbfc7ac4c807afafc22b992510b4e6d.zip
Diffstat (limited to 'src/mailman/rest/helpers.py')
-rw-r--r--src/mailman/rest/helpers.py2
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))