summaryrefslogtreecommitdiff
path: root/src/mailman/utilities
diff options
context:
space:
mode:
authorBarry Warsaw2016-04-01 16:40:39 -0400
committerBarry Warsaw2016-04-01 16:40:39 -0400
commitb87447ffe4a20793e22884a99a7f9afe3a803004 (patch)
tree332b20714199bc83a9b2d592682e287866ed9a1d /src/mailman/utilities
parentf7e9e4698bdd4cee39c9eb485296cbbfa32369a9 (diff)
downloadmailman-b87447ffe4a20793e22884a99a7f9afe3a803004.tar.gz
mailman-b87447ffe4a20793e22884a99a7f9afe3a803004.tar.zst
mailman-b87447ffe4a20793e22884a99a7f9afe3a803004.zip
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.
Diffstat (limited to 'src/mailman/utilities')
-rw-r--r--src/mailman/utilities/interact.py2
-rw-r--r--src/mailman/utilities/tests/test_templates.py8
-rw-r--r--src/mailman/utilities/tests/test_uid.py2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/mailman/utilities/interact.py b/src/mailman/utilities/interact.py
index 609fe78fb..a28af7c7c 100644
--- a/src/mailman/utilities/interact.py
+++ b/src/mailman/utilities/interact.py
@@ -52,7 +52,7 @@ def interact(upframe=True, banner=DEFAULT_BANNER, overrides=None):
interp = code.InteractiveConsole(namespace)
# Try to import the readline module, but don't worry if it's unavailable.
try:
- import readline # flake8: noqa
+ import readline # noqa
except ImportError:
pass
# Mimic the real interactive interpreter's loading of any $PYTHONSTARTUP
diff --git a/src/mailman/utilities/tests/test_templates.py b/src/mailman/utilities/tests/test_templates.py
index 9fb0aaa16..c2f7dd59a 100644
--- a/src/mailman/utilities/tests/test_templates.py
+++ b/src/mailman/utilities/tests/test_templates.py
@@ -77,7 +77,7 @@ class TestSearchOrder(unittest.TestCase):
def test_fully_specified_search_order(self):
search_order = self._stripped_search_order('foo.txt', self.mlist, 'it')
# For convenience.
- def nexteq(path): # flake8: noqa
+ def nexteq(path): # noqa
self.assertEqual(next(search_order), path)
# 1: Use the given language argument
nexteq('/v/templates/lists/l.example.com/it/foo.txt')
@@ -132,7 +132,7 @@ class TestSearchOrder(unittest.TestCase):
def test_no_mailing_list_argument_search_order(self):
search_order = self._stripped_search_order('foo.txt', language='it')
# For convenience.
- def nexteq(path): # flake8: noqa
+ def nexteq(path): # noqa
self.assertEqual(next(search_order), path)
# 1: Use the given language argument
nexteq('/v/templates/site/it/foo.txt')
@@ -148,7 +148,7 @@ class TestSearchOrder(unittest.TestCase):
def test_no_optional_arguments_search_order(self):
search_order = self._stripped_search_order('foo.txt')
# For convenience.
- def nexteq(path): # flake8: noqa
+ def nexteq(path): # noqa
self.assertEqual(next(search_order), path)
# 1: Use the site's default language
nexteq('/v/templates/site/fr/foo.txt')
@@ -180,7 +180,7 @@ class TestFind(unittest.TestCase):
self.mlist.preferred_language = 'xx'
self.fp = None
# Populate the template directories with a few fake templates.
- def write(text, path): # flake8: noqa
+ def write(text, path): # noqa
os.makedirs(os.path.dirname(path))
with open(path, 'w') as fp:
fp.write(text)
diff --git a/src/mailman/utilities/tests/test_uid.py b/src/mailman/utilities/tests/test_uid.py
index 0ee53a211..c081ac2c5 100644
--- a/src/mailman/utilities/tests/test_uid.py
+++ b/src/mailman/utilities/tests/test_uid.py
@@ -54,7 +54,7 @@ class TestUID(unittest.TestCase):
def test_uid_record_try_again(self):
called = False
- def record_second(ignore): # flake8: noqa
+ def record_second(ignore): # noqa
nonlocal called
if not called:
called = True