suas icon indicating copy to clipboard operation
suas copied to clipboard

signedcookie.py - SignedCookie.load definition

Open cv12 opened this issue 15 years ago • 1 comments

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?

cv12 avatar May 04 '10 07:05 cv12

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

cv12 avatar May 04 '10 15:05 cv12