8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5698325 commit 6d49644Copy full SHA for 6d49644
lib/matplotlib/rcsetup.py
@@ -126,8 +126,8 @@ def _validate_date(s):
126
np.datetime64(s)
127
return s
128
except ValueError:
129
- raise RuntimeError('"%s" should be a string that can be parsed by ',
130
- 'numpy.datetime64.' % s)
+ raise ValueError(
+ f'{s!r} should be a string that can be parsed by numpy.datetime64')
131
132
133
@cbook.deprecated("3.2", alternative="os.path.exists")
0 commit comments