Browse files

getstate/setstate now keep the kwargs

  • Loading branch information...
1 parent 4473b1a commit 3ae4bf3083168da6f287acd27522d816ee5bdba1 @mitsuhiko committed Aug 13, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 speaklater.py
View
4 speaklater.py
@@ -177,10 +177,10 @@ def __getattr__(self, name):
return getattr(self.value, name)
def __getstate__(self):
- return self._func, self._args
+ return self._func, self._args, self._kwargs
def __setstate__(self, tup):
- self._func, self._args = tup
+ self._func, self._args, self._kwargs = tup
def __getitem__(self, key):
return self.value[key]

5 comments on commit 3ae4bf3

@kini

If possible, could you release a speaklater 1.3 with this fix in it?

@cbcafiero

Yes, please, that would be lovely.

@kini

@cbcafiero: @mitsuhiko did this a few days ago, actually.

@cbcafiero

A day late and a dollar short. Story of my life. Got it. THANKS.

@kini

I see you recently had a discussion on the flask mailing list about a "recursion depth exceeded" exception and traced it back to this commit. That's exactly the same problem that led me to this commit originally. How ironic that the problem was fixed two years ago! Release early, release often, as they say :)

Please sign in to comment.