From b87447ffe4a20793e22884a99a7f9afe3a803004 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Fri, 1 Apr 2016 16:40:39 -0400 Subject: Don't use `flake8: noqa`. This suppresses all errors in the file. Use `noqa`, although pep8 doesn't honor this for all errors. There may be a plugin which helps. --- src/mailman/commands/cli_lists.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/mailman/commands/cli_lists.py') diff --git a/src/mailman/commands/cli_lists.py b/src/mailman/commands/cli_lists.py index 8720f91c5..0b077543e 100644 --- a/src/mailman/commands/cli_lists.py +++ b/src/mailman/commands/cli_lists.py @@ -89,7 +89,7 @@ class Lists: if not args.quiet: print(_('No matching mailing lists found')) return - count = len(mailing_lists) # flake8: noqa + count = len(mailing_lists) # noqa if not args.quiet: print(_('$count matching mailing lists found:')) # Calculate the longest identifier. @@ -198,8 +198,7 @@ class Create: invalid_owners = [owner for owner in args.owners if not validator.is_valid(owner)] if invalid_owners: - invalid = COMMASPACE.join( # flake8: noqa - sorted(invalid_owners)) + invalid = COMMASPACE.join(sorted(invalid_owners)) # noqa self.parser.error(_('Illegal owner addresses: $invalid')) return try: -- cgit v1.2.3-70-g09d2