Commits

Mike Bayer  committed a462e1e

- absolute imports in connectors, databases

  • Participants
  • Parent commits 78ca659

Comments (0)

Files changed (6)

File lib/sqlalchemy/connectors/mxodbc.py

 import re
 import warnings
 
-from sqlalchemy.connectors import Connector
+from . import Connector
 
 class MxODBCConnector(Connector):
     driver='mxodbc'

File lib/sqlalchemy/connectors/mysqldb.py

 
 """
 
-from sqlalchemy.connectors import Connector
-from sqlalchemy.engine import base as engine_base, default
-from sqlalchemy.sql import operators as sql_operators
-from sqlalchemy import exc, log, schema, sql, types as sqltypes, util
-from sqlalchemy import processors
+from . import Connector
+from ..engine import base as engine_base, default
+from ..sql import operators as sql_operators
+from .. import exc, log, schema, sql, types as sqltypes, util, processors
 import re
 
 # the subclassing of Connector by all classes

File lib/sqlalchemy/connectors/pyodbc.py

 # This module is part of SQLAlchemy and is released under
 # the MIT License: http://www.opensource.org/licenses/mit-license.php
 
-from sqlalchemy.connectors import Connector
-from sqlalchemy.util import asbool
+from . import Connector
+from ..util import asbool
 
 import sys
 import re

File lib/sqlalchemy/connectors/zxJDBC.py

 # the MIT License: http://www.opensource.org/licenses/mit-license.php
 
 import sys
-from sqlalchemy.connectors import Connector
+from . import Connector
 
 class ZxJDBCConnector(Connector):
     driver = 'zxjdbc'

File lib/sqlalchemy/databases/__init__.py

 compatibility with pre 0.6 versions.
 
 """
-from sqlalchemy.dialects.sqlite import base as sqlite
-from sqlalchemy.dialects.postgresql import base as postgresql
+from ..dialects.sqlite import base as sqlite
+from ..dialects.postgresql import base as postgresql
 postgres = postgresql
-from sqlalchemy.dialects.mysql import base as mysql
-from sqlalchemy.dialects.drizzle import base as drizzle
-from sqlalchemy.dialects.oracle import base as oracle
-from sqlalchemy.dialects.firebird import base as firebird
-from sqlalchemy.dialects.maxdb import base as maxdb
-from sqlalchemy.dialects.informix import base as informix
-from sqlalchemy.dialects.mssql import base as mssql
-from sqlalchemy.dialects.access import base as access
-from sqlalchemy.dialects.sybase import base as sybase
+from ..dialects.mysql import base as mysql
+from ..dialects.drizzle import base as drizzle
+from ..dialects.oracle import base as oracle
+from ..dialects.firebird import base as firebird
+from ..dialects.maxdb import base as maxdb
+from ..dialects.informix import base as informix
+from ..dialects.mssql import base as mssql
+from ..dialects.access import base as access
+from ..dialects.sybase import base as sybase
 
 
 __all__ = (

File lib/sqlalchemy/dialects/__init__.py

     'sybase',
     )
 
-from sqlalchemy import util
+from . import util
 
 def _auto_fn(name):
     """default dialect importer.