Skip to content

Commit 74f75d2

Browse files
committed
Fix py310 and py311 f-string escape sequence issues
1 parent c972d99 commit 74f75d2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/flexidot/app.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,9 @@ def main():
179179
line_width=line_width,
180180
)
181181
if list_of_png_names:
182+
joiner = ',\n\t\t\t'
182183
logging.info(
183-
f'\n-> Image file(s):\t{",\n\t\t\t".join(list_of_png_names)}\n\n{50 * "="}'
184+
f'\n-> Image file(s):\t{joiner.join(list_of_png_names)}\n\n{50 * "="}'
184185
)
185186
else:
186187
logging.warning(f'No image files were created!\n\n{50 * "="}\n')
@@ -247,8 +248,9 @@ def main():
247248
line_width=line_width,
248249
)
249250
if list_of_png_names:
251+
joiner = ',\n\t\t\t'
250252
logging.info(
251-
f'\n-> Image file(s):\t{",\n\t\t\t".join(list_of_png_names)}\n\n{50 * "="}'
253+
f'\n-> Image file(s):\t{joiner.join(list_of_png_names)}\n\n{50 * "="}'
252254
)
253255
else:
254256
logging.warning(f'No image files were created!\n\n{50 * "="}\n')
@@ -288,8 +290,9 @@ def main():
288290
)
289291

290292
if list_of_png_names:
293+
joiner = ',\n\t\t\t'
291294
logging.info(
292-
f'\n-> Image file(s):\t{",\n\t\t\t".join(list_of_png_names)}\n\n{50 * "="}'
295+
f'\n-> Image file(s):\t{joiner.join(list_of_png_names)}\n\n{50 * "="}'
293296
)
294297
else:
295298
logging.warning(f'No image files were created!\n\n{50 * "="}\n')

0 commit comments

Comments
 (0)