# HG changeset patch # User Julien Cristau # Date 1390554296 -3600 # Node ID 7863c546b135c5f0411d72dbb10728430276ea4b # Parent dd96b877879dbc18ec6dba55dccb16bebfe5e66c [repoapi] Fix typos in doc strings and comments diff -r dd96b877879d -r 7863c546b135 devtools/testlib.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 diff -r dd96b877879d -r 7863c546b135 repoapi.py --- 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)