equal
deleted
inserted
replaced
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): |