Closed ikcam closed 4 years ago
Thanks but that’s what I meant. text_type is different in Python 2 and Python 3.
You mean like:
import sys
PY2 = sys.version_info[0] == 2
def text_type(value):
return unicode(value) if PY2 else str(value)
Yep
Thank you!
Let’s instead drop six entirely and inline the text_type definition for the single place where it’s used.