Skip to content

Commit a5034e4

Browse files
committed
Fix Python code style.
1 parent 4363035 commit a5034e4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/png2c.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ def do_bitmap(im, desc):
196196
if onlydata:
197197
return
198198

199-
print('%sconst __data BitmapT %s = {' % ('' if shared else 'static ', name))
199+
print('%sconst __data BitmapT %s = {' %
200+
('' if shared else 'static ', name))
200201
print(f' .width = {width},')
201202
print(f' .height = {height},')
202203
print(f' .depth = {depth},')
@@ -420,7 +421,8 @@ def do_palette(im, desc):
420421

421422
print("#define %s_count %d\n" % (name, len(cmap)))
422423

423-
print('%sconst __data PaletteT %s = {' % ('' if shared else 'static ', name))
424+
print('%sconst __data PaletteT %s = {' %
425+
('' if shared else 'static ', name))
424426
print(' .count = %d,' % len(cmap))
425427
print(' .colors = {')
426428
for r, g, b in cmap:

0 commit comments

Comments
 (0)