summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine/threadlocal.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/engine/threadlocal.py')
-rw-r--r--lib/sqlalchemy/engine/threadlocal.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqlalchemy/engine/threadlocal.py b/lib/sqlalchemy/engine/threadlocal.py
index 8ad14ad35..27d857623 100644
--- a/lib/sqlalchemy/engine/threadlocal.py
+++ b/lib/sqlalchemy/engine/threadlocal.py
@@ -8,6 +8,7 @@ invoked automatically when the threadlocal engine strategy is used.
from sqlalchemy import util
from sqlalchemy.engine import base
+
class TLSession(object):
def __init__(self, engine):
self.engine = engine
@@ -17,7 +18,8 @@ class TLSession(object):
try:
return self.__transaction._increment_connect()
except AttributeError:
- return self.engine.TLConnection(self, self.engine.pool.connect(), close_with_result=close_with_result)
+ return self.engine.TLConnection(self, self.engine.pool.connect(),
+ close_with_result=close_with_result)
def reset(self):
try: