diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-10-11 17:17:19 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-10-11 19:48:58 -0400 |
commit | 6c2934661f38833ec2a325bb43f1dd5cdfec9ca1 (patch) | |
tree | 9bbd5288422d85f548cab1a9fa056edf56bc6836 /alembic/runtime | |
parent | 1b46850adb7004f959b8f894fe4e066b3fef3648 (diff) | |
download | alembic-6c2934661f38833ec2a325bb43f1dd5cdfec9ca1.tar.gz |
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
Diffstat (limited to 'alembic/runtime')
-rw-r--r-- | alembic/runtime/environment.py | 2 | ||||
-rw-r--r-- | alembic/runtime/migration.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/alembic/runtime/environment.py b/alembic/runtime/environment.py index 613b745..ce9be63 100644 --- a/alembic/runtime/environment.py +++ b/alembic/runtime/environment.py @@ -81,7 +81,7 @@ class EnvironmentContext(util.ModuleClsProxy): """ def __init__(self, config, script, **kw): - """Construct a new :class:`.EnvironmentContext`. + r"""Construct a new :class:`.EnvironmentContext`. :param config: a :class:`.Config` instance. :param script: a :class:`.ScriptDirectory` instance. diff --git a/alembic/runtime/migration.py b/alembic/runtime/migration.py index 65b4855..17cc226 100644 --- a/alembic/runtime/migration.py +++ b/alembic/runtime/migration.py @@ -287,7 +287,7 @@ class MigrationContext(object): head_maintainer.update_to_step(step) def run_migrations(self, **kw): - """Run the migration scripts established for this + r"""Run the migration scripts established for this :class:`.MigrationContext`, if any. The commands in :mod:`alembic.command` will set up a function |