summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanXue Lai <laihanxue@sgitg.sgcc.com.cn>2016-06-13 14:16:39 +0800
committerHanXue Lai <laihanxue@sgitg.sgcc.com.cn>2016-06-13 14:16:39 +0800
commita2da070d288fb8e4deb377420dfa2bce85c4b3af (patch)
treec96d08ae5d5cc02ec821457117df6d012d1ad77a
parentc0005aad9543f090c13238a5ac6b0b5611c135d7 (diff)
downloadoslo-db-a2da070d288fb8e4deb377420dfa2bce85c4b3af.tar.gz
Fix typos in comments and docstring
Change-Id: Id58c5ae0647894eecd3bedc4511007e2c0b9e75b
-rw-r--r--oslo_db/sqlalchemy/enginefacade.py2
-rw-r--r--oslo_db/sqlalchemy/update_match.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/oslo_db/sqlalchemy/enginefacade.py b/oslo_db/sqlalchemy/enginefacade.py
index 2c88726..c935602 100644
--- a/oslo_db/sqlalchemy/enginefacade.py
+++ b/oslo_db/sqlalchemy/enginefacade.py
@@ -519,7 +519,7 @@ class _TransactionContext(object):
session.commit()
elif self.rollback_reader_sessions:
session.rollback()
- # In the absense of calling session.rollback(),
+ # In the absence of calling session.rollback(),
# the next call is session.close(). This releases all
# objects from the session into the detached state, and
# releases the connection as well; the connection when returned
diff --git a/oslo_db/sqlalchemy/update_match.py b/oslo_db/sqlalchemy/update_match.py
index 692a72c..5765817 100644
--- a/oslo_db/sqlalchemy/update_match.py
+++ b/oslo_db/sqlalchemy/update_match.py
@@ -72,7 +72,7 @@ def update_on_match(
# try again
return False
- peristent_instance = base_query.update_on_match(
+ persistent_instance = base_query.update_on_match(
specimen,
surrogate_key,
values=values,