From 41d2d6da0c96d351b47acb64d3e0decdba16cb16 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 2 Oct 2020 10:15:51 +1000 Subject: Cleanup: pep8 (indentation, spacing, long lines) --- source/blender/datatoc/datatoc_icon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/blender/datatoc/datatoc_icon.py') diff --git a/source/blender/datatoc/datatoc_icon.py b/source/blender/datatoc/datatoc_icon.py index 6d8b24924f1..875e5359079 100755 --- a/source/blender/datatoc/datatoc_icon.py +++ b/source/blender/datatoc/datatoc_icon.py @@ -26,7 +26,10 @@ def write_png(buf, width, height): import struct # reverse the vertical line order and add null bytes at the start width_byte_4 = width * 4 - raw_data = b"".join(b'\x00' + buf[span:span + width_byte_4] for span in range((height - 1) * width * 4, -1, - width_byte_4)) + raw_data = b"".join( + b'\x00' + buf[span:span + width_byte_4] + for span in range((height - 1) * width * 4, -1, - width_byte_4) + ) def png_pack(png_tag, data): chunk_head = png_tag + data -- cgit v1.2.3