Browse Source

Merge pull request #541 from tangentlabs/fix/cleanup_json_serialisation

Renamed variable shadowing builtin
master
Maik Hoepfel 13 years ago
parent
commit
c152e18205
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      oscar/apps/customer/history_helpers.py

+ 2
- 2
oscar/apps/customer/history_helpers.py View File

46
     u""" Simple function to convert lists to json """
46
     u""" Simple function to convert lists to json """
47
     return json.loads(cookie_value)
47
     return json.loads(cookie_value)
48
 
48
 
49
-def _get_json_string_from_list(list):
49
+def _get_json_string_from_list(lst):
50
     """ Simple function to convert json to a python list """
50
     """ Simple function to convert json to a python list """
51
-    return json.dumps(list)
51
+    return json.dumps(lst)
52
 
52
 
53
 
53
 
54
 # Receivers
54
 # Receivers

Loading…
Cancel
Save