From 9cf1456fffa59811b6510f229ec9bd9fe4c4dc72 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 28 Jan 2025 15:17:32 -0500 Subject: [PATCH] spelling: occurrences Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- platform/robert/boot/waftools/sparse_length_encoding.py | 4 ++-- waftools/sparse_length_encoding.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/robert/boot/waftools/sparse_length_encoding.py b/platform/robert/boot/waftools/sparse_length_encoding.py index 452da5ec..b06d459d 100755 --- a/platform/robert/boot/waftools/sparse_length_encoding.py +++ b/platform/robert/boot/waftools/sparse_length_encoding.py @@ -58,8 +58,8 @@ def encode(source): frequency.update(source) # most_common() doesn't define what happens if there's a tie in frequency. Let's always pick # the lowest value of that frequency to make the encoding predictable. - occurences = frequency.most_common() - escape = min(x[0] for x in occurences if x[1] == occurences[-1][1]) + occurrences = frequency.most_common() + escape = min(x[0] for x in occurrences if x[1] == occurrences[-1][1]) yield escape for b, g in groupby(source): if b == b'\0': diff --git a/waftools/sparse_length_encoding.py b/waftools/sparse_length_encoding.py index 452da5ec..b06d459d 100755 --- a/waftools/sparse_length_encoding.py +++ b/waftools/sparse_length_encoding.py @@ -58,8 +58,8 @@ def encode(source): frequency.update(source) # most_common() doesn't define what happens if there's a tie in frequency. Let's always pick # the lowest value of that frequency to make the encoding predictable. - occurences = frequency.most_common() - escape = min(x[0] for x in occurences if x[1] == occurences[-1][1]) + occurrences = frequency.most_common() + escape = min(x[0] for x in occurrences if x[1] == occurrences[-1][1]) yield escape for b, g in groupby(source): if b == b'\0':