(s)
| 124 | |
| 125 | |
| 126 | def tounicode(s): |
| 127 | if hasattr(s, "decode"): |
| 128 | if not isinstance(s, unicode_type): |
| 129 | # Depending on the platform variant we may have decode on string or not. |
| 130 | return s.decode(file_system_encoding) |
| 131 | return s |
| 132 | |
| 133 | |
| 134 | def tobytes(s): |
no test coverage detected