m-click / requests_pkcs12

Add PKCS#12 support to the Python requests library in a clean way, without monkey patching or temporary files
ISC License
124 stars 33 forks source link

fixed for python 3.8 #50

Closed yonting closed 1 year ago

yonting commented 1 year ago

The random.randbytes is only included in python 3.9 so I put secrets.token_bytes to fix it for above python 3.6.

https://docs.python.org/3/library/random.html

https://docs.python.org/3/library/secrets.html

vog commented 1 year ago

Thanks for your contribution. We just released version 1.22 containing your improvement, as well as a specification of the required Python version (≥ 3.6).