From: Mike Bayer Date: Tue, 24 Oct 2006 22:32:54 +0000 (+0000) Subject: oops, removed pool debugging code X-Git-Tag: rel_0_3_1~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c1d4dbdaee4d3459ed0dd445e1a4c4c7c3e381b;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git oops, removed pool debugging code --- diff --git a/lib/sqlalchemy/pool.py b/lib/sqlalchemy/pool.py index cd58c10313..d4b0d75d0b 100644 --- a/lib/sqlalchemy/pool.py +++ b/lib/sqlalchemy/pool.py @@ -26,8 +26,6 @@ except: proxies = {} -ERROR_ON_RETURN = False - def manage(module, **params): """given a DBAPI2 module and pool management parameters, returns a proxy for the module that will automatically pool connections, creating new connection pools for each @@ -246,11 +244,6 @@ class _ConnectionFairy(object): # damn mysql -- (todo look for NotSupportedError) pass if self._connection_record is not None: - global ERROR_ON_RETURN - if ERROR_ON_RETURN: - ERROR_ON_RETURN=False - raise "hi" - if self.__pool.echo: self.__pool.log("Connection %s being returned to pool" % repr(self.connection)) self.__pool.return_conn(self)