Message 76472 - Python tracker (original) (raw)

Terry, I had a feeling Django had something to do with this. I'll have a closer look there. For reference, in my django code, I did not explicitly declare the string as a unicode string. Django must be importing unicode_literals from future as you suggested. I'll have a closer look there.

Just out of curiosity, would the 2to3 tool have resolved this issue come 3.0? Would it have change the type to a bytes? Or, would this issue need to be caught in unit tests?

Thanks!