We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f504104 commit 3af0ef8Copy full SHA for 3af0ef8
src/sasctl/utils/pyml2ds/basic/tree.py
@@ -1,7 +1,6 @@
1
import abc
2
import sys
3
import unicodedata
4
-from builtins import str
5
6
import six
7
@@ -93,7 +92,7 @@ def _remove_diacritic(self, input):
93
92
else:
94
# On Python < 3.0.0
95
if type(input) == str:
96
- input = str(input, 'ISO-8859-1')
+ input = six.text_type(input, 'ISO-8859-1')
97
output = unicodedata.normalize('NFKD', input).encode('ASCII', 'ignore')
98
99
return output
0 commit comments