Skip to content

Commit

Permalink
Add unicode_keep_u fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 15, 2016
1 parent b31e860 commit 1c6b298
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions scripts/qgis_fixes/fix_unicode_keep_u.py
@@ -0,0 +1 @@
from libfuturize.fixes.fix_unicode_keep_u import FixUnicodeKeepU
6 changes: 4 additions & 2 deletions tests/src/python/test_qgsproject.py
Expand Up @@ -6,6 +6,8 @@
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
"""
from builtins import chr
from builtins import range
__author__ = 'Sebastian Dietrich'
__date__ = '19/11/2015'
__copyright__ = 'Copyright 2015, The QGIS Project'
Expand Down Expand Up @@ -59,7 +61,7 @@ def test_makeKeyTokens_(self):
]
for r in charRanges:
for c in range(r[0], r[1]):
validStartChars += unichr(c)
validStartChars += chr(c)

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

# test forbidden start characters
for c in invalidChars + validInlineChars:
Expand Down

0 comments on commit 1c6b298

Please sign in to comment.