Announcement: TLSv1.2 will become mandatory in the future for Sites

Oleg Broytman phd at
Tue Jan 10 09:59:45 EST 2017

On Tue, Jan 10, 2017 at 08:27:21AM -0500, Donald Stufft <donald at> wrote:
>     python3 -c "import urllib.request,json; print(json.loads(urllib.request.urlopen('').read())['tls_version'])"

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.4/json/", line 312, in loads
TypeError: the JSON object must be str, not 'bytes'


$ python3 -c "import urllib.request,json; print(json.loads(urllib.request.urlopen('').read().decode('ascii'))['tls_version'])"

     Oleg Broytman              phd at
           Programmers don't die, they just GOSUB without RETURN.

More information about the Python-list mailing list