From 802ce668e67f51f904c69fdab2f5565a73c15e8a Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Tue, 26 Jan 2016 15:32:19 -0500 Subject: Super duper. * Python 3-ify super() calls. * Remove a bunch of obsolete exception classes. --- src/mailman/database/postgresql.py | 2 +- src/mailman/database/types.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mailman/database') diff --git a/src/mailman/database/postgresql.py b/src/mailman/database/postgresql.py index 693e7c925..a83119f66 100644 --- a/src/mailman/database/postgresql.py +++ b/src/mailman/database/postgresql.py @@ -37,7 +37,7 @@ class PostgreSQLDatabase(SABaseDatabase): Reset the _id_seq.last_value so that primary key ids restart from zero for new tests. """ - super(PostgreSQLDatabase, self)._post_reset(store) + super()._post_reset(store) tables = reversed(Model.metadata.sorted_tables) # Recipe adapted from # http://stackoverflow.com/questions/544791/ diff --git a/src/mailman/database/types.py b/src/mailman/database/types.py index c6926d0f2..66fbbf9e9 100644 --- a/src/mailman/database/types.py +++ b/src/mailman/database/types.py @@ -40,8 +40,8 @@ class Enum(TypeDecorator): impl = Integer def __init__(self, enum, *args, **kw): + super().__init__(*args, **kw) self.enum = enum - super(Enum, self).__init__(*args, **kw) def process_bind_param(self, value, dialect): if value is None: -- cgit v1.3.1