summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/schema.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-02-17 00:09:48 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-02-17 00:09:48 +0000
commit67f020f69cbca55150c2d793ba3f9fcb95749838 (patch)
treee3f0df92eea862767eb9358479cab12507b01a04 /lib/sqlalchemy/schema.py
parentf4c7027950cd38d2bf0a65ca830456fdd17903a1 (diff)
downloadsqlalchemy-67f020f69cbca55150c2d793ba3f9fcb95749838.tar.gz
- small fix to BoundMetaData to accept unicode or string URLs
Diffstat (limited to 'lib/sqlalchemy/schema.py')
-rw-r--r--lib/sqlalchemy/schema.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/schema.py b/lib/sqlalchemy/schema.py
index a2d328bf3..323d30da5 100644
--- a/lib/sqlalchemy/schema.py
+++ b/lib/sqlalchemy/schema.py
@@ -914,7 +914,7 @@ class BoundMetaData(MetaData):
"""builds upon MetaData to provide the capability to bind to an Engine implementation."""
def __init__(self, engine_or_url, name=None, **kwargs):
super(BoundMetaData, self).__init__(name, **kwargs)
- if isinstance(engine_or_url, str):
+ if isinstance(engine_or_url, basestring):
self._engine = sqlalchemy.create_engine(engine_or_url, **kwargs)
else:
self._engine = engine_or_url