> Not if it includes code that looks like this: > > if type(response) in (str, unicode): ..... > > and it's really true that "[a]nything having to do with the > str->bytes/unicode->str move is so far off-limits" to the upgrade tool. Depends on what the purpose of the test is. If it tests for "is response text", then 2to3 will work just fine on it, converting it to if type(response) in (str, str): This is redundant, but correct. Regards, Martin
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4