From 74abafd592cda3c1dc3950d3805c35657ebf43bb Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Sat, 13 Apr 2013 04:20:23 +0900 Subject: [PATCH] Make metaclass compatible for both 2 and 3 --- alembic/ddl/impl.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/alembic/ddl/impl.py b/alembic/ddl/impl.py index ce248642..22cda2cb 100644 --- a/alembic/ddl/impl.py +++ b/alembic/ddl/impl.py @@ -15,7 +15,7 @@ class ImplMeta(type): _impls = {} -class DefaultImpl(object): +class DefaultImpl(ImplMeta('_ImplBase', (object,), {})): """Provide the entrypoint for major migration operations, including database-specific behavioral variances. @@ -27,7 +27,6 @@ class DefaultImpl(object): bulk inserts. """ - __metaclass__ = ImplMeta __dialect__ = 'default' transactional_ddl = False -- 2.47.2