X-Git-Url: http://git.veekun.com/zzz-pokedex.git/blobdiff_plain/012083841930091acb27446ad0c8a320b5f6fecf..0044b9932549d6d52e5e5690c2f8972acdf00c47:/pokedex/db/__init__.py diff --git a/pokedex/db/__init__.py b/pokedex/db/__init__.py index e2790da..aa540a2 100644 --- a/pokedex/db/__init__.py +++ b/pokedex/db/__init__.py @@ -21,7 +21,7 @@ def connect(uri=None, session_args={}, engine_args={}, engine_prefix=''): uri = get_default_db_uri() ### Do some fixery for MySQL - if uri[0:5] == 'mysql': + if uri.startswith('mysql:'): # MySQL uses latin1 for connections by default even if the server is # otherwise oozing with utf8; charset fixes this if 'charset' not in uri: