mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 09:21:37 +00:00
Whoops -- put back 'file' as a variable name. (The perils of trusting syntax highlighting...)
Former-commit-id: f591e74663
This commit is contained in:
parent
4acf8e0667
commit
8a3638bc59
@ -38,8 +38,8 @@ def cache_regex_from_func(filename, func):
|
|||||||
Generates a regex from a function that accepts a single unicode character,
|
Generates a regex from a function that accepts a single unicode character,
|
||||||
and caches it in the data path at filename.
|
and caches it in the data path at filename.
|
||||||
"""
|
"""
|
||||||
with (DATA_PATH / filename).open(mode='w') as f:
|
with (DATA_PATH / filename).open(mode='w') as file:
|
||||||
f.write(func_to_regex(func))
|
file.write(func_to_regex(func))
|
||||||
|
|
||||||
|
|
||||||
def _is_emoji_codepoint(i):
|
def _is_emoji_codepoint(i):
|
||||||
|
Loading…
Reference in New Issue
Block a user