| 8 | return "FAIL!" |
| 9 | |
| 10 | class MisbehavingBytesSubtype(binary_type): |
| 11 | def decode(self, encoding=None): |
| 12 | return "bad decode" |
| 13 | def __str__(self): |
| 14 | return "bad __str__" |
| 15 | def __bytes__(self): |
| 16 | return b("bad __bytes__") |
| 17 | |
| 18 | def as_text_type(s): |
| 19 | if PY3 and isinstance(s, bytes): |
no outgoing calls
searching dependent graphs…