PythonCharmers/python-future

improve handling of unicode and str in python2 code when using futurize

Open

#381 aperta il 25 set 2018

Vedi su GitHub
 (1 commento) (1 reazione) (0 assegnatari)Python (327 fork)batch import
0.20help wanted

Metriche repository

Star
 (1172 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

If python2 code uses unicode and str (to represent bytes).

When using futurize we add from builtins import str which breaks the behavior of the old str usage.

It would be nice to make it harder to mix up the two types when using futurize.

Guida contributor