]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
the "in" was IN-tentional, ha ha
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 27 Feb 2010 17:06:34 +0000 (17:06 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 27 Feb 2010 17:06:34 +0000 (17:06 +0000)
lib/sqlalchemy/connectors/mxodbc.py

index 99126b9f7df4b5193987bbb4dbe2bb62f92fee93..93e323fb93c35379880c3693c2c4c49a40be7897 100644 (file)
@@ -14,7 +14,8 @@ class MxODBCConnector(Connector):
         platform = sys.platform
         if platform == 'win32':
             from mx.ODBC import Windows as module
-        elif platform == 'linux':
+        # this can be the string "linux2", and possibly others
+        elif 'linux' in platform:
             from mx.ODBC import unixODBC as module
         elif platform == 'darwin':
             from mx.ODBC import iODBC as module