Skip to content

Commit 3af0ef8

Browse files
committed
fixed for py27
1 parent f504104 commit 3af0ef8

File tree

1 file changed

+1
-2
lines changed
  • src/sasctl/utils/pyml2ds/basic

1 file changed

+1
-2
lines changed

src/sasctl/utils/pyml2ds/basic/tree.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import abc
22
import sys
33
import unicodedata
4-
from builtins import str
54

65
import six
76

@@ -93,7 +92,7 @@ def _remove_diacritic(self, input):
9392
else:
9493
# On Python < 3.0.0
9594
if type(input) == str:
96-
input = str(input, 'ISO-8859-1')
95+
input = six.text_type(input, 'ISO-8859-1')
9796
output = unicodedata.normalize('NFKD', input).encode('ASCII', 'ignore')
9897

9998
return output

0 commit comments

Comments
 (0)