(s)
| 223 | return s.decode() if isinstance(s, bytes) else s |
| 224 | |
| 225 | def encode_text_stream(s): |
| 226 | return s.encode() if isinstance(s, str) else s |
| 227 | else: |
| 228 | # For python2.7, pass read strings as-is, but also allow writing unicode |
| 229 | def decode_text_stream(s): |
no outgoing calls
no test coverage detected