On Jan 10, 2017, at 08:24 AM, Donald Stufft wrote:
> python3 -c "import urllib.request,json;
> print(json.loads(urllib.request.urlopen('https://www.howsmyssl.com/a/check').read())['tls_version'])"
For Python 3.5:
python3 -c "import urllib.request,json;
print(json.loads(urllib.request.urlopen('https://www.howsmyssl.com/a/check').read().decode('utf-8'))['tls_version'])"
Cheers,
-Barry
pgpGqT0dWZFyc.pgp
Description: OpenPGP digital signature
_______________________________________________ Distutils-SIG maillist - [email protected] https://mail.python.org/mailman/listinfo/distutils-sig
