diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-09-19 11:07:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-09-19 11:07:14 +0400 |
commit | aaf328dc78d69e80d7755b4e64fed136e10079d2 (patch) | |
tree | 73336c77f48f596830d4ef93b005a97aedf6acce /release/bin | |
parent | ce639f18d6cf87fa92b80b61b9a411c53516f4a0 (diff) |
remove redundant []'s for list comprehension's, py2.4+ supports this.
Diffstat (limited to 'release/bin')
-rwxr-xr-x | release/bin/blender-thumbnailer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/bin/blender-thumbnailer.py b/release/bin/blender-thumbnailer.py index 27d6259d172..be870560110 100755 --- a/release/bin/blender-thumbnailer.py +++ b/release/bin/blender-thumbnailer.py @@ -100,7 +100,7 @@ def write_png(buf, width, height): # 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 |