chiark / gitweb /
m.code: minor.
authorVladimír Vondruš <mosra@centrum.cz>
Tue, 21 Feb 2023 10:51:49 +0000 (11:51 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Tue, 21 Feb 2023 10:51:49 +0000 (11:51 +0100)
plugins/ansilexer.py

index fd791d26973224a1b6555daece95ee97c55efe9b..c78ea870381da55078c610949abf12bb00da3c73 100644 (file)
@@ -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]