sqlalchemy-bot / test_alembic_1

0 stars 0 forks source link

DeprecationWarning: generator 'RevisionMap._iterate_revisions' raised StopIteration (PEP 479) #458

Closed sqlalchemy-bot closed 7 years ago

sqlalchemy-bot commented 7 years ago

Migrated issue, originally created by Christopher Sang (csang)

Run a downgrade on an initially empty db, using a command like:

python -Wall `which alembic` downgrade base

The following DeprecationWarning occurs:

/usr/local/lib/python3.6/site-packages/alembic/script/base.py:348: DeprecationWarning: generator 'RevisionMap._iterate_revisions' raised StopIteration
    migration.MigrationStep.downgrade_from_script(

Environment:

See https://www.python.org/dev/peps/pep-0479/

sqlalchemy-bot commented 7 years ago

Michael Bayer (zzzeek) wrote:

https://gerrit.sqlalchemy.org/573

sqlalchemy-bot commented 7 years ago

Michael Bayer (zzzeek) wrote:

Clean up all Python 3.6 warnings

Fixed a few Python3.6 deprecation warnings by replacing StopIteration with return, as well as using getfullargspec() instead of getargspec() under Python 3.

Additionally fixed docstrings with backslashes needing r'', filehandles not explicitly closed, accommodate for .pyc files not necessarily present.

Change-Id: Id9791c5fa8b4b1f3e4e36f237a8a8ebcef4aaaba Fixes: #458

→ 6c2934661f38