[repoapi] Fix typos in doc strings and comments
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 24 Jan 2014 10:04:56 +0100
changeset 9475 7863c546b135
parent 9474 dd96b877879d
child 9478 2d7521881d3d
[repoapi] Fix typos in doc strings and comments
devtools/testlib.py
repoapi.py
--- a/devtools/testlib.py	Tue Dec 17 13:43:56 2013 +0100
+++ b/devtools/testlib.py	Fri Jan 24 10:04:56 2014 +0100
@@ -282,7 +282,7 @@
         if cnx is self._admin_clt_cnx:
             self._pop_custom_cnx()
         else:
-            self._cnxs.add(cnx) # register the cns to make sure it is removed
+            self._cnxs.add(cnx) # register the cnx to make sure it is removed
             self._current_session = cnx._session
             self._current_clt_cnx = cnx
 
--- a/repoapi.py	Tue Dec 17 13:43:56 2013 +0100
+++ b/repoapi.py	Fri Jan 24 10:04:56 2014 +0100
@@ -134,12 +134,12 @@
     """A Connection object to be used Client side.
 
     This object is aimed to be used client side (so potential communication
-    with the repo through RTC) and aims to offer some compatibility with the
+    with the repo through RPC) and aims to offer some compatibility with the
     cubicweb.dbapi.Connection interface.
 
-    The autoclose_session paramenter informs the connection that this session
-    have been open explictly and only for this client connection. The
-    connection will close the session of exit.
+    The autoclose_session parameter informs the connection that this session
+    has been opened explicitly and only for this client connection. The
+    connection will close the session on exit.
     """
     # make exceptions available through the connection object
     ProgrammingError = ProgrammingError
@@ -172,8 +172,8 @@
         self._cnx.__exit__(exc_type, exc_val, exc_tb)
         self._cnx = None
         if self._autoclose_session:
-            # we have to call repo.close to unsure the repo properly forget the
-            # session calling session.close() is not enought :-(
+            # we have to call repo.close to ensure the repo properly forgets the
+            # session; calling session.close() is not enough :-(
             self._session.repo.close(self._session.id)