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':