summaryrefslogtreecommitdiff
path: root/src/mailman/rest/users.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-11-21 14:08:02 +0000
committerBarry Warsaw2016-11-21 14:08:02 +0000
commit28ee840bbb4ef616fa2655452534a1f1ba687b00 (patch)
treeeb4da32bbfb874f999736d8bf678870e08459818 /src/mailman/rest/users.py
parent54d32b872ee4e67a64a176077dbc49a4f87b9324 (diff)
parent0a5efbdf15a67f6e4065c78b0c70e72202e0d965 (diff)
downloadmailman-28ee840bbb4ef616fa2655452534a1f1ba687b00.tar.gz
mailman-28ee840bbb4ef616fa2655452534a1f1ba687b00.tar.zst
mailman-28ee840bbb4ef616fa2655452534a1f1ba687b00.zip
Merge branch 'flake8-errors' into 'master'
Ignore some Flake8 errors Flake8 implicitely ignores some errors, and new versions tend to add new errors. This change explicitely lists the errors we want to ignore. See merge request !218
Diffstat (limited to '')
-rw-r--r--src/mailman/rest/users.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mailman/rest/users.py b/src/mailman/rest/users.py
index c405a1ede..f9ce9b132 100644
--- a/src/mailman/rest/users.py
+++ b/src/mailman/rest/users.py
@@ -55,7 +55,7 @@ class ListOfDomainOwners(GetterSetter):
def get(self, domain, attribute):
assert attribute == 'owner', (
'Unexpected attribute: {}'.format(attribute))
- def sort_key(owner): # noqa: E301
+ def sort_key(owner): # noqa: E306
return owner.addresses[0].email
return sorted(domain.owners, key=sort_key)