Skip to content

Commit 1c6b298

Browse files
committed
Add unicode_keep_u fixer
1 parent b31e860 commit 1c6b298

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from libfuturize.fixes.fix_unicode_keep_u import FixUnicodeKeepU

tests/src/python/test_qgsproject.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
the Free Software Foundation; either version 2 of the License, or
77
(at your option) any later version.
88
"""
9+
from builtins import chr
10+
from builtins import range
911
__author__ = 'Sebastian Dietrich'
1012
__date__ = '19/11/2015'
1113
__copyright__ = 'Copyright 2015, The QGIS Project'
@@ -59,7 +61,7 @@ def test_makeKeyTokens_(self):
5961
]
6062
for r in charRanges:
6163
for c in range(r[0], r[1]):
62-
validStartChars += unichr(c)
64+
validStartChars += chr(c)
6365

6466
# generate the characters that are only allowed inside a token, not at the start
6567
validInlineChars = u"-.\xB7"
@@ -70,7 +72,7 @@ def test_makeKeyTokens_(self):
7072
]
7173
for r in charRanges:
7274
for c in range(r[0], r[1]):
73-
validInlineChars += unichr(c)
75+
validInlineChars += chr(c)
7476

7577
# test forbidden start characters
7678
for c in invalidChars + validInlineChars:

0 commit comments

Comments
 (0)