Improve compatibility with CPython 2.7 and 3.x

This commit is contained in:
Noah
2021-01-06 13:37:21 +01:00
parent 3e4dd4c0bc
commit bf0c4087b4
5 changed files with 12 additions and 6 deletions

View File

@@ -95,7 +95,7 @@ class AnimationScene:
"""
Load icon into first available slot
"""
cols = bytearray(' ' * 32)
cols = bytearray(b' ' * 32)
icon_width = 8
padding = 1 if self.display.columns == 32 else 0
for state in self.on_screen_icons: