Blacken all Python files

Using the black code reformatter, pass it over all our Python files.
This allows for a consistent style across the code base.

Exception: lumps/dmxgus/stats.py, for readability.
This commit is contained in:
Mike Swanson 2019-09-04 19:36:23 -07:00
parent 6b486b6332
commit 4701d8f351
30 changed files with 2528 additions and 2102 deletions

4
dist/pillow-compose vendored
View file

@ -7,7 +7,7 @@ import sys
from PIL import Image
src = Image.open(sys.argv[1])
img = Image.new('RGBA', (int(sys.argv[3]), int(sys.argv[4])), (0, 0, 0, 0))
img = Image.new("RGBA", (int(sys.argv[3]), int(sys.argv[4])), (0, 0, 0, 0))
# Pillow's compositing won't accept negative values. This can happen
# if the destination image is smaller on at least on axis than the
@ -22,5 +22,5 @@ if img.size[1] - src.size[1] < 0:
else:
off_y = (img.size[1] - src.size[1]) // 2
img.alpha_composite(src.convert('RGBA'), (off_x, off_y))
img.alpha_composite(src.convert("RGBA"), (off_x, off_y))
img.save(sys.argv[2])