diff options
| author | minusf <minusf@gmail.com> | 2018-11-09 13:26:46 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-11-09 07:26:46 -0500 |
| commit | 545dae24fd01a9165d869a13aad04f5b88d626c1 (patch) | |
| tree | 0485eea40f01053cd95811cacd95b58cab8e828a | |
| parent | 75dfa92a05c7161edd0ba7bc9ceab9b54d3383db (diff) | |
Fixed signing.dumps() example for Python 3.
| -rw-r--r-- | django/core/signing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/signing.py b/django/core/signing.py index 1a55bcda03..1e92838596 100644 --- a/django/core/signing.py +++ b/django/core/signing.py @@ -23,7 +23,7 @@ You can optionally compress the JSON prior to base64 encoding it to save space, using the compress=True argument. This checks if compression actually helps and only applies compression if the result is a shorter string: ->>> signing.dumps(range(1, 20), compress=True) +>>> signing.dumps(list(range(1, 20)), compress=True) '.eJwFwcERACAIwLCF-rCiILN47r-GyZVJsNgkxaFxoDgxcOHGxMKD_T7vhAml:1QaUaL:BA0thEZrp4FQVXIXuOvYJtLJSrQ' The fact that the string is compressed is signalled by the prefixed '.' at the |
