Skip to content

Commit 8efe9fa

Browse files
committed
Shorten variable name
1 parent 7a35ef1 commit 8efe9fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openai-dalle/convert.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313

1414
for index, image_dict in enumerate(response["data"]):
1515
image_data = b64decode(image_dict["b64_json"])
16-
with open(IMAGE_DIR / f"{JSON_FILE.stem}-{index}.png", "wb") as png_file:
17-
png_file.write(image_data)
16+
with open(IMAGE_DIR / f"{JSON_FILE.stem}-{index}.png", "wb") as png:
17+
png.write(image_data)

0 commit comments

Comments
 (0)