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, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/engine/threadlocal.py b/lib/sqlalchemy/engine/threadlocal.py
index 610eedeaa..d909cbeda 100644
--- a/lib/sqlalchemy/engine/threadlocal.py
+++ b/lib/sqlalchemy/engine/threadlocal.py
@@ -31,10 +31,10 @@ class TLSession(object):
def commit(self):
if self.__tcount == 1:
try:
- self._trans.commit()
+ self.__trans.commit()
finally:
del self.__transaction
- del self._trans
+ del self.__trans
self.__tcount = 0
elif self.__tcount > 1:
self.__tcount -= 1