Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit bb699decaccb5da14807b9eead235cb391966b17
Author: Valentin Gologuzov <vgologuz(a)redhat.com>
Date: Mon Sep 8 09:29:18 2014 +0200
[python-copr] fix: we need to support python 2.6 due to epel-6
---------------------------------------------------------------
python/copr/client/parsers.py | 12 ++++++------
python/docs/index.rst | 2 +-
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/python/copr/client/parsers.py b/python/copr/client/parsers.py
index 84504a9..159653b 100644
--- a/python/copr/client/parsers.py
+++ b/python/copr/client/parsers.py
@@ -23,7 +23,7 @@ class IParser(object):
def fabric_simple_fields_parser(fields, name=None):
class FieldsParser(IParser):
- provided_fields = fields
+ provided_fields = set(fields)
@staticmethod
def parse(data, field, **kwargs):
@@ -48,8 +48,8 @@ CommonMsgErrorOutParser = fabric_simple_fields_parser(
class ProjectDetailsFieldsParser(IParser):
- provided_fields = {"description", "instructions",
"last_modified",
- "name"}
+ provided_fields = set(["description", "instructions",
"last_modified",
+ "name"])
@staticmethod
def parse(data, field, **kwargs):
@@ -67,7 +67,7 @@ class ProjectDetailsFieldsParser(IParser):
class ProjectChrootsParser(IParser):
- provided_fields = {"chroots"}
+ provided_fields = set(["chroots"])
@staticmethod
def parse(data, field, client=None, **kwargs):
@@ -92,7 +92,7 @@ class ProjectChrootsParser(IParser):
class ProjectListParser(IParser):
- provided_fields = {"projects_list"}
+ provided_fields = set(["projects_list"])
@staticmethod
def parse(data, field, client=None, **kwargs):
@@ -124,7 +124,7 @@ class ProjectListParser(IParser):
class NewBuildListParser(IParser):
- provided_fields = {"builds_list"}
+ provided_fields = set(["builds_list"])
@staticmethod
def parse(data, field, client=None, **kwargs):
diff --git a/python/docs/index.rst b/python/docs/index.rst
index d07556b..653c34a 100644
--- a/python/docs/index.rst
+++ b/python/docs/index.rst
@@ -9,7 +9,7 @@ About
Python-copr is a python client to access the Copr build service
through its `API <
http://copr.fedoraproject.org/api>`_.
-Python-copr right now is in alpha stage, so expect lot of changes. Now it targets python
2.7
+Python-copr right now is in alpha stage, so expect lot of changes. Now it targets python
2.6+
and python3.3+.