Abhilash Raj pushed to branch backport-mr-330 at mailman / Mailman Core

Commits:
64d98f74 by Barry Warsaw at 2017-10-25T01:00:06+00:00
Work around a bug/change in Alembic

In Alembic 0.9.6, they changed something which breaks the @public decorator on
these methods.


(cherry picked from commit 24f2439aeabb5919d387d84aa9f66b5d799a319c)
- - - - -


1 changed file:

- src/mailman/database/alembic/env.py


Changes:

=====================================
src/mailman/database/alembic/env.py
=====================================
--- a/src/mailman/database/alembic/env.py
+++ b/src/mailman/database/alembic/env.py
@@ -23,7 +23,6 @@ from mailman.config import config
 from mailman.core.initialize import initialize_1
 from mailman.database.model import Model
 from mailman.utilities.string import expand
-from public import public
 from sqlalchemy import create_engine
 
 
@@ -35,7 +34,7 @@ except AttributeError:
     url = expand(config.database.url, None, config.paths)
 
 
-@public
+# We can't use @public here.  See GL#423
 def run_migrations_offline():
     """Run migrations in 'offline' mode.
 
@@ -51,7 +50,7 @@ def run_migrations_offline():
         context.run_migrations()
 
 
-@public
+# We can't use @public here.  See GL#423
 def run_migrations_online():
     """Run migrations in 'online' mode.
 



View it on GitLab: 
https://gitlab.com/mailman/mailman/commit/64d98f74cb5f91eafd5330ba03c1ebfbc9ffabaa

---
View it on GitLab: 
https://gitlab.com/mailman/mailman/commit/64d98f74cb5f91eafd5330ba03c1ebfbc9ffabaa
You're receiving this email because of your account on gitlab.com.
_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to