def _make_stream_binary(stream):
    try:
        fileno = stream.fileno()
    except _NoFilenoError:
        return
    _make_binary_on_windows(fileno)
Ensure that a stream will be binary safe. See _make_binary_on_windows.
dataset/ETHPy150Open byt3bl33d3r/pth-toolkit/lib/python2.7/site-packages/samba/external/subunit/__init__.py/_make_stream_binary