Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4c16c0d

Browse files
committed
MNT: use fstring in error message
1 parent 8f8cf4e commit 4c16c0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/figure.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,9 +1509,9 @@ def _process_projection_requirements(
15091509
if polar:
15101510
if projection is not None and projection != 'polar':
15111511
raise ValueError(
1512-
"polar=True, yet projection=%r. "
1513-
"Only one of these arguments should be supplied." %
1514-
projection)
1512+
f"polar={polar}, yet projection={projection!r}. "
1513+
"Only one of these arguments should be supplied."
1514+
)
15151515
projection = 'polar'
15161516

15171517
if isinstance(projection, str) or projection is None:

0 commit comments

Comments
 (0)