Skip to content

Commit 79e5f47

Browse files
12rambauakhmerov
andauthored
refactor: use f string
Co-authored-by: Anton Akhmerov <anton.akhmerov@gmail.com>
1 parent 3ac289a commit 79e5f47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_sphinx/execute.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def apply(self):
186186
if output["output_type"] == "stream" and output["name"] == "stderr"
187187
]
188188
if stderr and not node.attributes["stderr"]:
189-
js.logger.warning("Cell printed to stderr:\n{}".format(stderr[0]["text"]))
189+
js.logger.warning(f"Cell printed to stderr:\n{stderr[0]['text']}")
190190

191191
# Insert input/output into placeholders for non-executed cells
192192
for node, cell in zip(nodes, notebook.cells):

0 commit comments

Comments
 (0)