blob: f6bf93bed6507adf050ad76ef6067e6db556bce6 (
plain)
1
2
3
4
5
6
7
8
|
# This gives a linting error because unicode is not defined on Python 3:
# text_type = str if bytes is not str else unicode
try:
# Python 2
text_type = unicode
except NameError:
# Python 3
text_type = str
|