From 447fb7aacde1803e8a39be582ff390bac4efbfa9 Mon Sep 17 00:00:00 2001 From: Joshua Chin Date: Fri, 10 Jul 2015 14:23:06 -0400 Subject: [PATCH] %c is a thing --- scripts/gen_regex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gen_regex.py b/scripts/gen_regex.py index 5053f2d..139acf4 100644 --- a/scripts/gen_regex.py +++ b/scripts/gen_regex.py @@ -27,7 +27,7 @@ def func_to_regex(accept_func): elif category != 'Cn': parsing_range = False - return '[%s]' % ''.join('%s-%s' % (chr(r[0]), chr(r[1])) for r in ranges) + return '[%s]' % ''.join('%c-%c' % tuple(r) for r in ranges) def cache_regex_from_func(filename, func):