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