From 0d54f182f5e792a49e1a48010f20d481f17c8f02 Mon Sep 17 00:00:00 2001 From: kris Date: Thu, 21 Mar 2019 16:02:18 +0000 Subject: [PATCH] Whitespace --- edit_distance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edit_distance.py b/edit_distance.py index 39e571a..8b27c66 100644 --- a/edit_distance.py +++ b/edit_distance.py @@ -58,7 +58,6 @@ def byte_to_nominal_colour_string(b: int, is_odd_offset: bool) -> str: return "".join(pixels) - @functools.lru_cache(None) def byte_to_colour_string_with_white_coalescing( b: int, is_odd_offset: bool) -> str: @@ -105,7 +104,7 @@ def byte_to_colour_string_with_white_coalescing( nominal = byte_to_nominal_colour_string(b, is_odd_offset) for idx in range(3): - pair = nominal[idx:idx+2] + pair = nominal[idx:idx + 2] effective = fringing.get(pair) if not effective: e = [] @@ -187,6 +186,7 @@ def edit_weight(a: int, b: int, is_odd_offset: bool, error: bool): e = _error_ewm if error else _ewm return e[a, b, int(is_odd_offset)] + _even_ewm = {} _odd_ewm = {} _even_error_ewm = {}