summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis Calderon <luis.calderon@semanticbits.com>2018-10-16 09:38:54 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2018-10-16 09:38:54 -0400
commit7e3d032cc92af73988f02f281ab354de7fc8e3ab (patch)
tree03955248e8d72111d059f3847a077338aa67c40a
parent37ef35fbe673d34b5f8d1a0697cf01d10b0abe05 (diff)
downloadalembic-7e3d032cc92af73988f02f281ab354de7fc8e3ab.tar.gz
Replace set union_update() references with update()
The autogenerate api references the `union_update()` method of sets which was removed in Python 2.4. The previous method is actually an alias for the `update()` method. This PR replaces the api reference with the correct one for Python 2.7 Change-Id: Ida8d44bfd2efc9d3c6879ca8237d6b39e2b76987 Pull-request: https://github.com/zzzeek/alembic/pull/46
-rw-r--r--alembic/autogenerate/api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alembic/autogenerate/api.py b/alembic/autogenerate/api.py
index b54e6aa..15b5b6b 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.union_update(migration_script.imports)
+ autogen_context.imports.update(migration_script.imports)
render._render_python_into_templatevars(
autogen_context, migration_script, template_args
)