diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-05 00:31:19 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-05 00:31:19 +0400 |
commit | 42426f816bafae5d863f16dcb05135dfa773e387 (patch) | |
tree | 4c2db45540a83fc8ee19d323fa611924f379ac1c /io_import_gimp_image_to_scene.py | |
parent | 30ab42921b158414caab48b6c94a3a988be5ed78 (diff) |
code cleanup: python - pass multiple args to string startswith() / endswith() functions rather than calling multiple times.
Diffstat (limited to 'io_import_gimp_image_to_scene.py')
-rw-r--r-- | io_import_gimp_image_to_scene.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_import_gimp_image_to_scene.py b/io_import_gimp_image_to_scene.py index 4605fe1d..bc09c75f 100644 --- a/io_import_gimp_image_to_scene.py +++ b/io_import_gimp_image_to_scene.py @@ -85,7 +85,7 @@ def main(File, Path, LayerViewers, MixerViewers, LayerOffset, for Segment in Line.split(): if Segment.startswith('w/h:'): ResX, ResY = map (int, Segment[4:].split(',')) - if Line.startswith("b'L") or Line.startswith("b'l"): + if Line.startswith(("b'L", "b'l")): """The "nice" method to check if layer has alpha channel sadly GIMP sometimes decides not to export an alpha channel |