Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6c49f24

Browse filesBrowse files
authored
Merge pull request #8287 from tacaswell/fix_picks_rrulewrapper
FIX: add __setstate__ function
2 parents c59edad + eb98d07 commit 6c49f24
Copy full SHA for 6c49f24

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed

‎lib/matplotlib/dates.py

Copy file name to clipboardExpand all lines: lib/matplotlib/dates.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,12 +711,13 @@ def set(self, **kwargs):
711711
self._rrule = rrule(**self._construct)
712712

713713
def __getattr__(self, name):
714-
if name in ['__getstate__', '__setstate__']:
715-
return object.__getattr__(self, name)
716714
if name in self.__dict__:
717715
return self.__dict__[name]
718716
return getattr(self._rrule, name)
719717

718+
def __setstate__(self, state):
719+
self.__dict__.update(state)
720+
720721

721722
class DateLocator(ticker.Locator):
722723
"""

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.