Commit 4ef2be31 authored by Denis Bilenko's avatar Denis Bilenko

resolver_ares: add __repr__ to Resolver

parent 7f3dcbf5
......@@ -24,6 +24,9 @@ class Resolver(object):
self.fork_watcher.start(self._on_fork)
self.fork_watcher.loop.unref()
def __repr__(self):
return '<%s at 0x%x ares=%r>' % (self.__class__.__name__, id(self), self.ares)
def _on_fork(self):
pid = os.getpid()
if pid != self.pid:
......
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