Add docstring for _make_binary_encoding().

master^2
Isis Lovecruft 2015-03-19 00:10:40 +00:00
parent a6d024ff49
commit da59707945
No known key found for this signature in database
GPG Key ID: 18C16EC5F9F1D673
1 changed files with 7 additions and 3 deletions

View File

@ -531,9 +531,13 @@ def _is_gpg2(version):
return True
return False
def _make_binary_stream(s, encoding):
"""
xxx fill me in
def _make_binary_stream(s, encoding=None):
"""Encode **s**, then make it stream/file-like.
: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:
if _py3k: