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/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 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) -- cgit v1.2.3-70-g09d2