Skip to content
Permalink
Browse files

Add unicode_keep_u fixer

  • Loading branch information
m-kuhn committed Apr 15, 2016
1 parent b31e860 commit 1c6b2988335af7c0326dce2bd26c9fb016998cce
Showing with 5 additions and 2 deletions.
  1. +1 −0 scripts/qgis_fixes/fix_unicode_keep_u.py
  2. +4 −2 tests/src/python/test_qgsproject.py
@@ -0,0 +1 @@
from libfuturize.fixes.fix_unicode_keep_u import FixUnicodeKeepU
@@ -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'
@@ -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"
@@ -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:

0 comments on commit 1c6b298

Please sign in to comment.
You can’t perform that action at this time.