From: Vladimír Vondruš Date: Tue, 21 Feb 2023 10:51:49 +0000 (+0100) Subject: m.code: minor. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=59bc6fb161975953b23b2f6e8e15f425d1115fad;p=blog.git m.code: minor. --- diff --git a/plugins/ansilexer.py b/plugins/ansilexer.py index fd791d26..c78ea870 100644 --- a/plugins/ansilexer.py +++ b/plugins/ansilexer.py @@ -261,7 +261,7 @@ class AnsiLexer(RegexLexer): return self._palette_start_colors[offset] elif offset < 232: offset = offset - 16 - offset, b = divmod (offset,6) + offset, b = divmod(offset, 6) r, g = divmod(offset, 6) r = self._palette_cube_steps[r] g = self._palette_cube_steps[g]