From: Scott Schaefer Date: Sat, 7 Sep 2013 00:14:26 +0000 (-0600) Subject: re.match to re.search X-Git-Tag: rel_0_9_0b1~70^2^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f7504bdbad5dc0d2685ada57128ece4ae7690ed3;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git re.match to re.search Convert to re.search to eliminate the restriction on only matching the beginning of the string --- diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index 8938b3193c..01bf6a8293 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -1543,7 +1543,7 @@ class PGDialect(default.DefaultDialect): def _get_server_version_info(self, connection): v = connection.execute("select version()").scalar() - m = re.match( + m = re.search( '(?:PostgreSQL|EnterpriseDB) ' '(\d+)\.(\d+)(?:\.(\d+))?(?:\.\d+)?(?:devel)?', v)