python: Update doc

This commit is contained in:
Tatsuhiro Tsujikawa 2014-02-25 21:28:37 +09:00
parent 57af995fd0
commit 7cf574d0d8
1 changed files with 1 additions and 1 deletions

View File

@ -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'),