blob: 00fb20fe443e681d3d35fd495eef7b6a727a488c (
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 3
text_type = unicode
except NameError:
# Python 2
text_type = str
|