From ae38a5a373b8c488072cf972eb431c5efd72f0f3 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 17 Oct 2018 10:09:50 -0400 Subject: [PATCH] Revert "Replace set union_update() references with update()" This reverts commit 7e3d032cc92af73988f02f281ab354de7fc8e3ab. the PR was not provided with a test case or bug report and this is actually an uncovered code bug. will re-submit with a proper bug report --- alembic/autogenerate/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alembic/autogenerate/api.py b/alembic/autogenerate/api.py index 15b5b6b0..b54e6aa2 100644 --- a/alembic/autogenerate/api.py +++ b/alembic/autogenerate/api.py @@ -395,7 +395,7 @@ class RevisionContext(object): # renders autogen_context.imports = set() if migration_script.imports: - autogen_context.imports.update(migration_script.imports) + autogen_context.imports.union_update(migration_script.imports) render._render_python_into_templatevars( autogen_context, migration_script, template_args ) -- 2.47.2