Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit b9ee654d02ef2dc25642b872a79f893b8dcfc62c
Author: Jakub Kadlčík <jkadlcik(a)redhat.com>
Date: Tue Sep 15 13:20:20 2015 +0200
[python] fix missing urllib.parse on el7
---------------------------------------------------------------
python/copr/client/client.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/python/copr/client/client.py b/python/copr/client/client.py
index c9614a3..16b366d 100644
--- a/python/copr/client/client.py
+++ b/python/copr/client/client.py
@@ -14,9 +14,14 @@ import requests
import six
from six.moves import configparser
-from six.moves.urllib.parse import urlparse
from requests_toolbelt.multipart.encoder import MultipartEncoder
+# urlparse from six is not available on el7
+# because it requires at least python-six-1.4.1
+if sys.version_info.major == 2:
+ from urlparse import urlparse
+else:
+ from urllib.parse import urlparse
if sys.version_info < (2, 7):
class NullHandler(logging.Handler):