Skip to content

Commit 2467af4

Browse files
authored
Merge pull request matplotlib#27577 from tacaswell/mnt/better_pickle_message
MNT: add the running version to pickle warning message
2 parents 4df729a + d06d04b commit 2467af4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/figure.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3168,8 +3168,8 @@ def __setstate__(self, state):
31683168
if version != mpl.__version__:
31693169
_api.warn_external(
31703170
f"This figure was saved with matplotlib version {version} and "
3171-
f"is unlikely to function correctly.")
3172-
3171+
f"loaded with {mpl.__version__} so may not function correctly."
3172+
)
31733173
self.__dict__ = state
31743174

31753175
# re-initialise some of the unstored state information

0 commit comments

Comments
 (0)