Commit bed64f31 authored by Julien Muchembled's avatar Julien Muchembled

typos

parent 5dfb6d9c
...@@ -313,11 +313,11 @@ class DB(TM): ...@@ -313,11 +313,11 @@ class DB(TM):
def _query(self, query, allow_reconnect=False): def _query(self, query, allow_reconnect=False):
""" """
Send a query to MySQL server. Send a query to MySQL server.
It reconnects automaticaly if needed and the following conditions are It reconnects automatically if needed and the following conditions are
met: met:
- It has not just tried to reconnect (ie, this function will not - It has not just tried to reconnect (ie, this function will not
attemp to connect twice per call). attempt to connect twice per call).
- This conection is not transactionnal and has set not MySQL locks, - This connection is not transactional and has set not MySQL locks,
because they are bound to the connection. This check can be because they are bound to the connection. This check can be
overridden by passing allow_reconnect with True value. overridden by passing allow_reconnect with True value.
""" """
...@@ -492,7 +492,7 @@ class DB(TM): ...@@ -492,7 +492,7 @@ class DB(TM):
if m is None: if m is None:
return return
name = m.group(2) name = m.group(2)
# Lock automaticaly unless src__ is True, because the caller may have # Lock automatically unless src__ is True, because the caller may have
# already done it (in case that it plans to execute the returned query). # already done it (in case that it plans to execute the returned query).
with (nested if src__ else self.lock)(): with (nested if src__ else self.lock)():
try: try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment