From 84ac1fc05e1b6ab96c5f9ef28c2ffa2c7ec14d8f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20K=C3=A1cha?= <ph@cesnet.cz>
Date: Fri, 27 Nov 2015 16:16:08 +0100
Subject: [PATCH] Some Python/ssl module versions incorrectly initialize
 hashlib, causing weird openssl errors. Importing hashlib explicitly helps.

---
 warden3/warden_client/warden_client.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/warden3/warden_client/warden_client.py b/warden3/warden_client/warden_client.py
index 4eb3d5c..6861d10 100644
--- a/warden3/warden_client/warden_client.py
+++ b/warden3/warden_client/warden_client.py
@@ -4,6 +4,7 @@
 # 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.
 
+import hashlib  # Some Python/ssl versions incorrectly initialize hashes, this helps
 import json, httplib, ssl, socket, logging, logging.handlers, time
 from urlparse import urlparse
 from urllib import urlencode
-- 
GitLab