Commit bb009801 authored by Lukáš Lalinský's avatar Lukáš Lalinský

Add IndexClient.__str__

parent c9a3e3f0
Pipeline #20466 passed with stages
in 3 minutes and 17 seconds
......@@ -38,6 +38,9 @@ class IndexClient(object):
self._buffer = ''
def __str__(self):
return '{}:{}'.format(, self.port)
def __repr__(self):
return '<%s(%s, %s) instance at %s>' % (self.__class__.__name__,, self.port, hex(id(self)))
......@@ -164,6 +167,9 @@ class IndexClientWrapper(object):
self.get_attribute = self._client.get_attribute
self.set_attribute = self._client.set_attribute
def __str__(self):
return str(self._client)
def close(self):
if self._client.in_transaction:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment