Skip to content

Commit 8b47a0a

Browse files
committed
format
1 parent 08c1d4e commit 8b47a0a

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

plotly/io/_kaleido.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def to_image(
157157
if kaleido_major > 0:
158158
# Kaleido v1
159159
# Check if trying to export to EPS format, which is not supported in Kaleido v1
160-
if format == 'eps':
160+
if format == "eps":
161161
raise ValueError(
162162
"""
163163
EPS export is not supported with Kaleido v1.
@@ -288,9 +288,7 @@ def write_image(
288288
289289
>>> import plotly.io as pio
290290
>>> pio.write_image(fig, file_path, format='png')
291-
""".format(
292-
file=file
293-
)
291+
""".format(file=file)
294292
)
295293

296294
# Request image
@@ -319,9 +317,7 @@ def write_image(
319317
raise ValueError(
320318
"""
321319
The 'file' argument '{file}' is not a string, pathlib.Path object, or file descriptor.
322-
""".format(
323-
file=file
324-
)
320+
""".format(file=file)
325321
)
326322
else:
327323
# We previously succeeded in interpreting `file` as a pathlib object.

0 commit comments

Comments
 (0)