Add docstring for _make_binary_encoding().
parent
a6d024ff49
commit
da59707945
|
@ -531,9 +531,13 @@ def _is_gpg2(version):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def _make_binary_stream(s, encoding):
|
def _make_binary_stream(s, encoding=None):
|
||||||
"""
|
"""Encode **s**, then make it stream/file-like.
|
||||||
xxx fill me in
|
|
||||||
|
:param s: The thing to turn into a encoded stream.
|
||||||
|
:rtype: ``io.BytesIO`` or ``io.StringIO``.
|
||||||
|
:returns: The encoded **thing**, wrapped in an ``io.BytesIO`` (if
|
||||||
|
available), otherwise wrapped in a ``io.StringIO``.
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
if _py3k:
|
if _py3k:
|
||||||
|
|
Loading…
Reference in New Issue