Indentation fixes.

This commit is contained in:
Federico Di Gregorio 2005-09-30 16:33:13 +00:00
parent 39136e1af4
commit a6b4a8b092

View File

@ -82,14 +82,14 @@ class AbstractConnectionPool(object):
if self._used.has_key(key): if self._used.has_key(key):
return self._used[key] return self._used[key]
if self._pool: if self._pool:
self._used[key] = conn = self._pool.pop() self._used[key] = conn = self._pool.pop()
self._rused[id(conn)] = key self._rused[id(conn)] = key
return conn return conn
else: else:
if len(self._used) == self.maxconn: if len(self._used) == self.maxconn:
raise PoolError("connection pool exausted") raise PoolError("connection pool exausted")
return self._connect(key) return self._connect(key)
def _putconn(self, conn, key=None, close=False): def _putconn(self, conn, key=None, close=False):
"""Put away a connection.""" """Put away a connection."""