From 90e84bee5f47cbcdb9e9c367c60a877e325ef3e7 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 28 Jul 2016 23:10:56 -0400 Subject: Rebase mailman/mailman!180 and cleanup # noqa --- src/mailman/database/postgresql.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mailman/database/postgresql.py') diff --git a/src/mailman/database/postgresql.py b/src/mailman/database/postgresql.py index 5d42c59f8..b1095e45f 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) # noqa - and not column.foreign_keys): # noqa + and isinstance(column.type, Integer) # noqa: W503 + and not column.foreign_keys): # noqa: W503 store.execute("""\ SELECT setval('"{0}_{1}_seq"', coalesce(max("{1}"), 1), max("{1}") IS NOT null) -- cgit v1.2.3-70-g09d2