From 8a3638bc59931fbadc4676199c8e642af919ec94 Mon Sep 17 00:00:00 2001 From: Andrew Lin Date: Thu, 9 Jul 2015 16:18:56 -0400 Subject: [PATCH] Whoops -- put back 'file' as a variable name. (The perils of trusting syntax highlighting...) Former-commit-id: f591e74663ecf79bad8822055a18a81f158eea0d --- scripts/gen_regex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/gen_regex.py b/scripts/gen_regex.py index 857dd46..0fee536 100644 --- a/scripts/gen_regex.py +++ b/scripts/gen_regex.py @@ -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):