From: Mike Bayer Date: Wed, 17 Oct 2018 14:09:50 +0000 (-0400) Subject: Revert "Replace set union_update() references with update()" X-Git-Tag: rel_1_0_1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae38a5a373b8c488072cf972eb431c5efd72f0f3;p=thirdparty%2Fsqlalchemy%2Falembic.git 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 --- 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 )