summaryrefslogtreecommitdiff
path: root/alembic/__init__.py
diff options
context:
space:
mode:
authorHong Minhee <minhee@dahlia.kr>2013-04-11 05:34:07 +0900
committerHong Minhee <minhee@dahlia.kr>2013-04-11 05:34:07 +0900
commit3c780af24f0e69155edc946e114cbdd1839fb488 (patch)
tree10dfe56e35db0e347c5705d20f1d034149c80d5e /alembic/__init__.py
parent45f013170c345a987efafc6d23b36035a124a8ce (diff)
downloadalembic-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/__init__.py')
-rw-r--r--alembic/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alembic/__init__.py b/alembic/__init__.py
index eb81028..0625c43 100644
--- a/alembic/__init__.py
+++ b/alembic/__init__.py
@@ -5,6 +5,6 @@ __version__ = '0.5.0'
package_dir = path.abspath(path.dirname(__file__))
-from alembic import op
-from alembic import context
+from . import op
+from . import context