diff options
author | Hong Minhee <minhee@dahlia.kr> | 2013-04-11 05:34:07 +0900 |
---|---|---|
committer | Hong Minhee <minhee@dahlia.kr> | 2013-04-11 05:34:07 +0900 |
commit | 3c780af24f0e69155edc946e114cbdd1839fb488 (patch) | |
tree | 10dfe56e35db0e347c5705d20f1d034149c80d5e /alembic/ddl/__init__.py | |
parent | 45f013170c345a987efafc6d23b36035a124a8ce (diff) | |
download | alembic-3c780af24f0e69155edc946e114cbdd1839fb488.tar.gz |
Use relative imports
This change does not affect to any behaviors of it, but is just stylish
improvements to remove 2to3 dependency.
1. All old-style absolute imports e.g. `from alembic import util` are
replaced by relative imports e.g. `from . import util`.
2. Use of proxy modules (`alembic.op` and `alembic.context`) are replaced
by deferred import patterns, but these modules still exist.
3. Imports are grouped by 3 types of their origins (standard libraries,
third party libraries, and local modules) and blank lines are put between
each group of imports. This style is from PEP 8:
<http://www.python.org/dev/peps/pep-0008/#imports>
For stylish change, I can't do that much, because it was intentionally done
as it was by the author. If the author will allow me to make it more closer
to PEP 8 style, I will do that as well.
Diffstat (limited to 'alembic/ddl/__init__.py')
-rw-r--r-- | alembic/ddl/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alembic/ddl/__init__.py b/alembic/ddl/__init__.py index e252fae..bfc8ab4 100644 --- a/alembic/ddl/__init__.py +++ b/alembic/ddl/__init__.py @@ -1,2 +1,2 @@ -import postgresql, mysql, sqlite, mssql, oracle -from impl import DefaultImpl
\ No newline at end of file +from . import postgresql, mysql, sqlite, mssql, oracle +from .impl import DefaultImpl |