Fixed signing.dumps() example for Python 3.

This commit is contained in:
minusf 2018-11-09 13:26:46 +01:00 committed by Tim Graham
parent 75dfa92a05
commit 545dae24fd
1 changed files with 1 additions and 1 deletions

View File

@ -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 space, using the compress=True argument. This checks if compression actually
helps and only applies compression if the result is a shorter string: 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' '.eJwFwcERACAIwLCF-rCiILN47r-GyZVJsNgkxaFxoDgxcOHGxMKD_T7vhAml:1QaUaL:BA0thEZrp4FQVXIXuOvYJtLJSrQ'
The fact that the string is compressed is signalled by the prefixed '.' at the The fact that the string is compressed is signalled by the prefixed '.' at the