summaryrefslogtreecommitdiff
path: root/src/mailman/database
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/database
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/database')
-rw-r--r--src/mailman/database/postgresql.py4
-rw-r--r--src/mailman/database/sqlite.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/database/postgresql.py b/src/mailman/database/postgresql.py
index a09ee3038..5d42c59f8 100644
--- a/src/mailman/database/postgresql.py
+++ b/src/mailman/database/postgresql.py
@@ -41,8 +41,8 @@ class PostgreSQLDatabase(SABaseDatabase):
for table in tables:
for column in table.primary_key:
if (column.autoincrement
- and isinstance(column.type, Integer) # flake8: noqa
- and not column.foreign_keys): # flake8: noqa
+ and isinstance(column.type, Integer) # noqa
+ and not column.foreign_keys): # noqa
store.execute("""\
SELECT setval('"{0}_{1}_seq"', coalesce(max("{1}"), 1),
max("{1}") IS NOT null)
diff --git a/src/mailman/database/sqlite.py b/src/mailman/database/sqlite.py
index e36b2ba75..409545d74 100644
--- a/src/mailman/database/sqlite.py
+++ b/src/mailman/database/sqlite.py
@@ -37,7 +37,7 @@ class SQLiteDatabase(SABaseDatabase):
path = os.path.normpath(parts.path)
fd = os.open(
path,
- os.O_WRONLY | os.O_NONBLOCK | os.O_CREAT, # flake8: noqa
+ os.O_WRONLY | os.O_NONBLOCK | os.O_CREAT, # noqa
0o666)
# Ignore errors
if fd > 0: