Skip to content

Commit

Permalink
Fixed signing.dumps() example for Python 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
minusf authored and timgraham committed Nov 9, 2018
1 parent 75dfa92 commit 545dae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/core/signing.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
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
Expand Down

0 comments on commit 545dae2

Please sign in to comment.