From 99841be6044a9d6bad7c7de4be6d55811df60a2e Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Mon, 16 Sep 2013 10:23:31 -0400 Subject: [PATCH] Update docstring on ssencrypt.body_string to be more useful. --- lms/djangoapps/verify_student/ssencrypt.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lms/djangoapps/verify_student/ssencrypt.py b/lms/djangoapps/verify_student/ssencrypt.py index 3a110b8d04..aefb4292a0 100644 --- a/lms/djangoapps/verify_student/ssencrypt.py +++ b/lms/djangoapps/verify_student/ssencrypt.py @@ -164,9 +164,9 @@ def header_string(headers_dict): def body_string(body_dict, prefix=""): """ - This version actually doesn't support nested lists and dicts. The code for - that was a little gnarly and we don't use that functionality, so there's no - real test for correctness. + Return a canonical string representation of the body of a JSON request or + response. This canonical representation will be used as an input to the + hashing used to generate a signature. """ body_list = [] for key, value in sorted(body_dict.items()):