mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-06 01:25:46 -04:00
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:
parent
6b486b6332
commit
4701d8f351
30 changed files with 2528 additions and 2102 deletions
4
dist/pillow-compose
vendored
4
dist/pillow-compose
vendored
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue