diff options
Diffstat (limited to 'src/mailman/database')
| -rw-r--r-- | src/mailman/database/postgresql.py | 4 | ||||
| -rw-r--r-- | src/mailman/database/sqlite.py | 2 |
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: |
