File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change
1
+ from libfuturize .fixes .fix_unicode_keep_u import FixUnicodeKeepU
Original file line number Diff line number Diff line change 6
6
the Free Software Foundation; either version 2 of the License, or
7
7
(at your option) any later version.
8
8
"""
9
+ from builtins import chr
10
+ from builtins import range
9
11
__author__ = 'Sebastian Dietrich'
10
12
__date__ = '19/11/2015'
11
13
__copyright__ = 'Copyright 2015, The QGIS Project'
@@ -59,7 +61,7 @@ def test_makeKeyTokens_(self):
59
61
]
60
62
for r in charRanges :
61
63
for c in range (r [0 ], r [1 ]):
62
- validStartChars += unichr (c )
64
+ validStartChars += chr (c )
63
65
64
66
# generate the characters that are only allowed inside a token, not at the start
65
67
validInlineChars = u"-.\xB7 "
@@ -70,7 +72,7 @@ def test_makeKeyTokens_(self):
70
72
]
71
73
for r in charRanges :
72
74
for c in range (r [0 ], r [1 ]):
73
- validInlineChars += unichr (c )
75
+ validInlineChars += chr (c )
74
76
75
77
# test forbidden start characters
76
78
for c in invalidChars + validInlineChars :
You can’t perform that action at this time.
0 commit comments