suas
suas copied to clipboard
signedcookie.py - SignedCookie.load definition
This is not really an issue, but a suggestion. You copied the load definition from Cookie.BaseCookie so that your SignedCookie.__ParseString would be used in SignedCookie.load instead of BaseCookie.__ParseString.
Could the following simpler method work? Instead of copying "def load ...", you could write in the class definition:
_BaseCookie__ParseString = __ParseString
Would it work?
Sorry - I am new to markdown. What I meant to say was the following.
Replace in the SignedCookie definition:
def load(self, rawdata):
#...
with
_BaseCookie__ParseString = __ParseString