remove redundant []'s for list comprehension's, py2.4+ supports this.

This commit is contained in:
Campbell Barton
2010-09-19 07:07:14 +00:00
parent ce639f18d6
commit aaf328dc78
10 changed files with 17 additions and 17 deletions

View File

@@ -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