[packages/python-PyXML] - added attrs-contains patch (allow using "key in attrs" syntax available in Python 2.7) - release 1
qboosh
qboosh at pld-linux.org
Sun Jul 19 18:33:32 CEST 2015
commit 60d4e4eb8f57aff1ac41c5e46c6394b3d2ecd083
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jul 19 18:34:43 2015 +0200
- added attrs-contains patch (allow using "key in attrs" syntax available in Python 2.7)
- release 13
python-PyXML-attrs-contains.patch | 12 ++++++++++++
python-PyXML.spec | 4 +++-
2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/python-PyXML.spec b/python-PyXML.spec
index 489252e..98128b1 100644
--- a/python-PyXML.spec
+++ b/python-PyXML.spec
@@ -3,12 +3,13 @@ Summary: Python/XML package
Summary(pl.UTF-8): Pakiet Python/XML
Name: python-%{module}
Version: 0.8.4
-Release: 12
+Release: 13
License: BeOpen Python Open Source License
Group: Libraries/Python
Source0: http://downloads.sourceforge.net/pyxml/%{module}-%{version}.tar.gz
# Source0-md5: 1f7655050cebbb664db976405fdba209
Patch0: %{name}-as_is_keyword_in_py26.patch
+Patch1: %{name}-attrs-contains.patch
URL: http://pyxml.sourceforge.net/
BuildRequires: expat-devel >= 1:1.95.8
BuildRequires: python >= 1:2.5
@@ -72,6 +73,7 @@ Przykłady do Python/XML.
%prep
%setup -q -n %{module}-%{version}
%patch0 -p1
+%patch1 -p1
%build
CC="%{__cc}" \
diff --git a/python-PyXML-attrs-contains.patch b/python-PyXML-attrs-contains.patch
new file mode 100644
index 0000000..6c41b51
--- /dev/null
+++ b/python-PyXML-attrs-contains.patch
@@ -0,0 +1,12 @@
+--- PyXML-0.8.4/xml/sax/xmlreader.py.orig 2001-03-22 16:40:12.000000000 +0100
++++ PyXML-0.8.4/xml/sax/xmlreader.py 2015-07-19 18:23:13.400014080 +0200
+@@ -321,6 +321,9 @@
+ def has_key(self, name):
+ return self._attrs.has_key(name)
+
++ def __contains__(self, name):
++ return name in self._attrs
++
+ def get(self, name, alternative=None):
+ return self._attrs.get(name, alternative)
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-PyXML.git/commitdiff/60d4e4eb8f57aff1ac41c5e46c6394b3d2ecd083
More information about the pld-cvs-commit
mailing list