equal
deleted
inserted
replaced
30 |
30 |
31 data.extend(args) |
31 data.extend(args) |
32 data.append(settings.SECRET_KEY) |
32 data.append(settings.SECRET_KEY) |
33 |
33 |
34 # Use HIGHEST_PROTOCOL because it's the most efficient. It requires |
34 # Use HIGHEST_PROTOCOL because it's the most efficient. It requires |
35 # Python 2.3, but Django requires 2.3 anyway, so that's OK. |
35 # Python 2.3, but Django requires 2.4 anyway, so that's OK. |
36 pickled = pickle.dumps(data, pickle.HIGHEST_PROTOCOL) |
36 pickled = pickle.dumps(data, pickle.HIGHEST_PROTOCOL) |
37 |
37 |
38 return md5_constructor(pickled).hexdigest() |
38 return md5_constructor(pickled).hexdigest() |
39 |
39 |