Revision 9fa2e150 lib/http/client.py

b/lib/http/client.py
95 95
    self.resp_headers = None
96 96
    self.resp_body = None
97 97

  
98
  def __repr__(self):
99
    status = ["%s.%s" % (self.__class__.__module__, self.__class__.__name__),
100
              "%s:%s" % (self.host, self.port),
101
              self.method,
102
              self.path]
103

  
104
    return "<%s at %#x>" % (" ".join(status), id(self))
105

  
98 106

  
99 107
class _HttpClientToServerMessageWriter(http.HttpMessageWriter):
100 108
  pass
......
328 336
    # Thread synchronization
329 337
    self.done = threading.Event()
330 338

  
339
  def __repr__(self):
340
    status = ["%s.%s" % (self.__class__.__module__, self.__class__.__name__),
341
              "req=%r" % self.request]
342

  
343
    return "<%s at %#x>" % (" ".join(status), id(self))
344

  
331 345

  
332 346
class HttpClientWorker(workerpool.BaseWorker):
333 347
  """HTTP client worker class.

Also available in: Unified diff