diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-01-30 14:22:32 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-01-30 14:22:32 -0500 |
commit | a9aa76a549199fc1f88c4a114ea92f7f5143f92e (patch) | |
tree | 6921083a7e6e5c24fc215c231eed7c643ea9a27a /alembic/migration.py | |
parent | 3ef2c50d4bd2f14cdee71736ab57df67e88a9492 (diff) | |
download | alembic-a9aa76a549199fc1f88c4a114ea92f7f5143f92e.tar.gz |
fix long lines
Diffstat (limited to 'alembic/migration.py')
-rw-r--r-- | alembic/migration.py | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/alembic/migration.py b/alembic/migration.py index 544942c..4e86446 100644 --- a/alembic/migration.py +++ b/alembic/migration.py @@ -60,7 +60,9 @@ class MigrationContext(object): self.output_buffer = opts.get("output_buffer", sys.stdout) self._user_compare_type = opts.get('compare_type', False) - self._user_compare_server_default = opts.get('compare_server_default', False) + self._user_compare_server_default = opts.get( + 'compare_server_default', + False) self._start_from_rev = opts.get("starting_rev") self.impl = ddl.DefaultImpl.get_by_dialect(dialect)( @@ -88,15 +90,16 @@ class MigrationContext(object): This is a factory method usually called by :meth:`.EnvironmentContext.configure`. - :param connection: a :class:`~sqlalchemy.engine.base.Connection` to use - for SQL execution in "online" mode. When present, is also used to - determine the type of dialect in use. - :param url: a string database url, or a :class:`sqlalchemy.engine.url.URL` object. - The type of dialect to be used will be derived from this if ``connection`` is - not passed. - :param dialect_name: string name of a dialect, such as "postgresql", "mssql", etc. - The type of dialect to be used will be derived from this if ``connection`` - and ``url`` are not passed. + :param connection: a :class:`~sqlalchemy.engine.base.Connection` + to use for SQL execution in "online" mode. When present, + is also used to determine the type of dialect in use. + :param url: a string database url, or a + :class:`sqlalchemy.engine.url.URL` object. + The type of dialect to be used will be derived from this if + ``connection`` is not passed. + :param dialect_name: string name of a dialect, such as + "postgresql", "mssql", etc. The type of dialect to be used will be + derived from this if ``connection`` and ``url`` are not passed. :param opts: dictionary of options. Most other options accepted by :meth:`.EnvironmentContext.configure` are passed via this dictionary. |