Commit 2dc266c0 authored by Jason Madden's avatar Jason Madden Committed by GitHub

Merge pull request #1445 from jparise/resolver-thread-repr

Dynamic class in gevent.resolver.thread.Resolver.__repr__
parents bd7795ad cc21721d
......@@ -47,7 +47,9 @@ class Resolver(object):
hub.NOT_ERROR += (_socket.gaierror, _socket.herror)
def __repr__(self):
return '<gevent.resolver_thread.Resolver at 0x%x pool=%r>' % (id(self), self.pool)
return '<%s.%s at 0x%x pool=%r>' % (type(self).__module__,
type(self).__name__,
id(self), self.pool)
def close(self):
pass
......
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