Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 6c02d68 + 6d49644 commit 2bdfea8Copy full SHA for 2bdfea8
1 file changed
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