mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 17:31:41 +00:00
parent
c77449785b
commit
6dee3054de
@ -27,7 +27,7 @@ def func_to_regex(accept_func):
|
|||||||
elif category != 'Cn':
|
elif category != 'Cn':
|
||||||
parsing_range = False
|
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):
|
def cache_regex_from_func(filename, func):
|
||||||
|
Loading…
Reference in New Issue
Block a user