Skip to content

Commit 119369a

Browse files
hugovkradarhere
andauthored
Move comment to correct place
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
1 parent 525ebf7 commit 119369a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/PIL/Image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,8 +1252,8 @@ def convert_transparency(
12521252
if new_im.mode == "P" and new_im.palette:
12531253
try:
12541254
new_im.info["transparency"] = new_im.palette.getcolor(
1255-
cast("tuple[int, ...]", trns),
1256-
new_im, # trns was converted to RGB
1255+
cast("tuple[int, ...]", trns), # trns was converted to RGB
1256+
new_im,
12571257
)
12581258
except ValueError as e:
12591259
del new_im.info["transparency"]

0 commit comments

Comments
 (0)