File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -139,18 +139,18 @@ def _is_s3_url(url):
139
139
140
140
141
141
def maybe_read_encoded_stream (reader , encoding = None , compression = None ):
142
- """read an encoded stream from the reader and transform the bytes to
143
- unicode if required based on the encoding
144
-
145
- Parameters
146
- ----------
147
- reader : a streamable file-like object
148
- encoding : optional, the encoding to attempt to read
142
+ """
143
+ Read an encoded stream from the reader and transform the bytes to unicode if
144
+ required based on the encoding.
149
145
150
- Returns
151
- -------
152
- a tuple of (a stream of decoded bytes, the encoding which was used)
146
+ Parameters
147
+ ----------
148
+ reader : a streamable file-like object
149
+ encoding : optional, the encoding to attempt to read
153
150
151
+ Returns
152
+ -------
153
+ a tuple of (a stream of decoded bytes, the encoding which was used)
154
154
"""
155
155
156
156
if compat .PY3 or encoding is not None : # pragma: no cover
You can’t perform that action at this time.
0 commit comments