Skip to content
Snippets Groups Projects
Commit 84ac1fc0 authored by Pavel Kácha's avatar Pavel Kácha
Browse files

Some Python/ssl module versions incorrectly initialize hashlib, causing weird...

Some Python/ssl module versions incorrectly initialize hashlib, causing weird openssl errors. Importing hashlib explicitly helps.
parent c559e17c
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
# Copyright (C) 2011-2015 Cesnet z.s.p.o # Copyright (C) 2011-2015 Cesnet z.s.p.o
# Use of this source is governed by a 3-clause BSD-style license, see LICENSE file. # Use of this source is governed by a 3-clause BSD-style license, see LICENSE file.
import hashlib # Some Python/ssl versions incorrectly initialize hashes, this helps
import json, httplib, ssl, socket, logging, logging.handlers, time import json, httplib, ssl, socket, logging, logging.handlers, time
from urlparse import urlparse from urlparse import urlparse
from urllib import urlencode from urllib import urlencode
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment