repoapi.py
changeset 10356 a009a31fb1ea
parent 10354 635cfac73d28
child 10568 3914388b2d0f
--- a/repoapi.py	Fri Jun 13 15:42:04 2014 +0200
+++ b/repoapi.py	Fri Jun 13 15:56:08 2014 +0200
@@ -53,10 +53,7 @@
     raise ConnectionError('unknown protocol: `%s`' % protocol)
 
 def connect(repo, login, **kwargs):
-    """Take credential and return associated ClientConnection.
-
-    The ClientConnection is associated to a new Session object that will be
-    closed when the ClientConnection is closed.
+    """Take credential and return associated Connection.
 
     raise AuthenticationError if the credential are invalid."""
     sessionid = repo.connect(login, **kwargs)
@@ -66,10 +63,7 @@
     return Connection(session)
 
 def anonymous_cnx(repo):
-    """return a ClientConnection for Anonymous user.
-
-    The ClientConnection is associated to a new Session object that will be
-    closed when the ClientConnection is closed.
+    """return a Connection for Anonymous user.
 
     raises an AuthenticationError if anonymous usage is not allowed
     """