python: Update doc
This commit is contained in:
parent
57af995fd0
commit
7cf574d0d8
|
@ -860,7 +860,7 @@ class BaseRequestHandler:
|
|||
return body
|
||||
else:
|
||||
raise Exception(('body must be None or instance of str or bytes '
|
||||
'or io.BytesIO'))
|
||||
'or io.IOBase'))
|
||||
|
||||
def _encode_headers(headers):
|
||||
return [(k if isinstance(k, bytes) else k.encode('utf-8'),
|
||||
|
|
Loading…
Reference in New Issue