Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-10-02 03:15:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-10-02 04:59:16 +0300
commit41d2d6da0c96d351b47acb64d3e0decdba16cb16 (patch)
tree8f955ed71d907ab9f7ee97627a9a7c91192d139a /source/blender/datatoc
parentbab9de2a52929fe2b45ecddb1eb09da3378e303b (diff)
Cleanup: pep8 (indentation, spacing, long lines)
Diffstat (limited to 'source/blender/datatoc')
-rwxr-xr-xsource/blender/datatoc/datatoc_icon.py5
-rwxr-xr-xsource/blender/datatoc/datatoc_icon_split_to_png.py5
2 files changed, 8 insertions, 2 deletions
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
diff --git a/source/blender/datatoc/datatoc_icon_split_to_png.py b/source/blender/datatoc/datatoc_icon_split_to_png.py
index b583b10b9ff..f8ddcdd216f 100755
--- a/source/blender/datatoc/datatoc_icon_split_to_png.py
+++ b/source/blender/datatoc/datatoc_icon_split_to_png.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