repoapi.py
changeset 9097 39be1e548270
parent 9096 9d1b5f07d9ca
child 9098 5467fb901931
equal deleted inserted replaced
9096:9d1b5f07d9ca 9097:39be1e548270
   174         if self._open:
   174         if self._open:
   175             self.__exit__(None, None, None)
   175             self.__exit__(None, None, None)
   176 
   176 
   177     def __repr__(self):
   177     def __repr__(self):
   178         if self.anonymous_connection:
   178         if self.anonymous_connection:
   179             return '<Connection %s (anonymous)>' % self._cnxid
   179             return '<ClientConnection %s (anonymous)>' % self._cnx.connectionid
   180         return '<Connection %s>' % self._cnxid
   180         return '<ClientConnection %s>' % self._cnx.connectionid
   181     # end silly BC
   181     # end silly BC
   182 
   182 
   183     @property
   183     @property
   184     @contextmanager
   184     @contextmanager
   185     def _srv_cnx(self):
   185     def _srv_cnx(self):