Whoops -- put back 'file' as a variable name. (The perils of trusting syntax highlighting...)

This commit is contained in:
Andrew Lin 2015-07-09 16:18:56 -04:00
parent 47ee662e24
commit f591e74663

View File

@ -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):