42
43
medium = transport.get_smart_medium()
43
44
except errors.NoSmartMedium as e:
45
46
client = _SmartClient(medium)
46
47
# Use call_expecting_body (even though we don't expect a body) so that
47
48
# we can see the response headers (if any) via the handler object.
49
50
handler.cancel_read_body()
50
51
self.outf.write('Response: %r\n' % (response,))
51
52
if getattr(handler, 'headers', None) is not None: