[client-connection] explicit the client part in __repr__
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Thu, 27 Jun 2013 10:44:40 +0200
changeset 9097 39be1e548270
parent 9096 9d1b5f07d9ca
child 9098 5467fb901931
[client-connection] explicit the client part in __repr__ Now that we have real server side connection we need to remove ambiguity.
repoapi.py
--- a/repoapi.py	Tue Jun 25 19:50:16 2013 +0200
+++ b/repoapi.py	Thu Jun 27 10:44:40 2013 +0200
@@ -176,8 +176,8 @@
 
     def __repr__(self):
         if self.anonymous_connection:
-            return '<Connection %s (anonymous)>' % self._cnxid
-        return '<Connection %s>' % self._cnxid
+            return '<ClientConnection %s (anonymous)>' % self._cnx.connectionid
+        return '<ClientConnection %s>' % self._cnx.connectionid
     # end silly BC
 
     @property