From 7a388cfe320254735f4ed65ac655caaf0cae8b28 Mon Sep 17 00:00:00 2001 From: Pamela Fox Date: Sun, 29 Jan 2023 01:10:21 +0000 Subject: [PATCH] Remove legacy __future__ import in Alembic templates (Fixes #504) --- src/flask_migrate/templates/aioflask-multidb/env.py | 2 -- src/flask_migrate/templates/aioflask/env.py | 2 -- src/flask_migrate/templates/flask-multidb/env.py | 2 -- src/flask_migrate/templates/flask/env.py | 2 -- tests/custom_template/env.py | 2 -- 5 files changed, 10 deletions(-) diff --git a/src/flask_migrate/templates/aioflask-multidb/env.py b/src/flask_migrate/templates/aioflask-multidb/env.py index 2d90ccd..891ca93 100644 --- a/src/flask_migrate/templates/aioflask-multidb/env.py +++ b/src/flask_migrate/templates/aioflask-multidb/env.py @@ -1,5 +1,3 @@ -from __future__ import with_statement - import asyncio import logging from logging.config import fileConfig diff --git a/src/flask_migrate/templates/aioflask/env.py b/src/flask_migrate/templates/aioflask/env.py index feab4a8..e4d060f 100644 --- a/src/flask_migrate/templates/aioflask/env.py +++ b/src/flask_migrate/templates/aioflask/env.py @@ -1,5 +1,3 @@ -from __future__ import with_statement - import asyncio import logging from logging.config import fileConfig diff --git a/src/flask_migrate/templates/flask-multidb/env.py b/src/flask_migrate/templates/flask-multidb/env.py index 953e2b2..2556d6d 100644 --- a/src/flask_migrate/templates/flask-multidb/env.py +++ b/src/flask_migrate/templates/flask-multidb/env.py @@ -1,5 +1,3 @@ -from __future__ import with_statement - import logging from logging.config import fileConfig diff --git a/src/flask_migrate/templates/flask/env.py b/src/flask_migrate/templates/flask/env.py index fa412e8..0694bc4 100644 --- a/src/flask_migrate/templates/flask/env.py +++ b/src/flask_migrate/templates/flask/env.py @@ -1,5 +1,3 @@ -from __future__ import with_statement - import logging from logging.config import fileConfig diff --git a/tests/custom_template/env.py b/tests/custom_template/env.py index 1011533..3fb81f0 100644 --- a/tests/custom_template/env.py +++ b/tests/custom_template/env.py @@ -1,6 +1,4 @@ # Custom template -from __future__ import with_statement - import logging from logging.config import fileConfig