From ca9a3ffc27e98ee21f73f1d327dc3c3818cdc05d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20K=C3=A1cha?= <ph@cesnet.cz>
Date: Tue, 25 Jul 2017 10:20:19 +0200
Subject: [PATCH] More explicit (and correct) py version check

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

diff --git a/warden3/warden_client/warden_client.py b/warden3/warden_client/warden_client.py
index fb2ca3c..3604e56 100644
--- a/warden3/warden_client/warden_client.py
+++ b/warden3/warden_client/warden_client.py
@@ -13,7 +13,7 @@ from operator import itemgetter
 
 fix_logging_filename = str if version_info<(2, 7) else lambda x: x
 
-if version_info > (3, 0):
+if version_info[0] >= 3:
     import http.client as httplib
     from urllib.parse import urlparse
     from urllib.parse import urlencode
-- 
GitLab