Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit 8c21080e8a5ee882c694755cbb4d0016546837ee
Author: Valentin Gologuzov <vgologuz(a)redhat.com>
Date: Wed Aug 27 19:59:00 2014 +0200
[python-copr] small fix due to the old version of python-six in RHEL-7
---------------------------------------------------------------
python/copr/client/client.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/python/copr/client/client.py b/python/copr/client/client.py
index 662c175..2879f5b 100644
--- a/python/copr/client/client.py
+++ b/python/copr/client/client.py
@@ -72,10 +72,10 @@ class CoprClient(object):
"See man copr-cli for more information")
try:
for field in ["username", "login", "token",
"copr_url"]:
- if six.PY2:
- config[field] = raw_config.get("copr-cli", field, None)
- elif six.PY3:
+ if six.PY3:
config[field] = raw_config["copr-cli"].get(field, None)
+ else:
+ config[field] = raw_config.get("copr-cli", field, None)
except configparser.Error as err:
raise CoprConfigException(