diff --git a/python-lxml-2.2.6-3.fc14.src.rpm b/python-lxml-2.2.6-3.fc14.src.rpm deleted file mode 100644 index e7a0c0b..0000000 Binary files a/python-lxml-2.2.6-3.fc14.src.rpm and /dev/null differ diff --git a/python-lxml-2.2.6-fix-2to3.patch b/python-lxml-2.2.6-fix-2to3.patch new file mode 100644 index 0000000..37b7743 --- /dev/null +++ b/python-lxml-2.2.6-fix-2to3.patch @@ -0,0 +1,13 @@ +diff -up lxml-2.2.6/src/lxml/html/__init__.py.fix-2to3 lxml-2.2.6/src/lxml/html/__init__.py +--- lxml-2.2.6/src/lxml/html/__init__.py.fix-2to3 2010-07-26 13:36:42.333672181 -0400 ++++ lxml-2.2.6/src/lxml/html/__init__.py 2010-07-26 13:36:52.379671732 -0400 +@@ -823,7 +823,8 @@ def submit_form(form, extra_values=None, + def open_http_urllib(method, url, values): + ## FIXME: should test that it's not a relative URL or something + try: +- from urllib import urlencode, urlopen ++ from urllib import urlencode ++ from urllib import urlopen + except ImportError: # Python 3 + from urllib.request import urlopen + from urllib.parse import urlencode diff --git a/python-lxml.spec b/python-lxml.spec index eac85e9..79d3789 100644 --- a/python-lxml.spec +++ b/python-lxml.spec @@ -6,7 +6,7 @@ Name: python-lxml Version: 2.2.6 -Release: 3%{?dist} +Release: 4%{?dist} Summary: ElementTree-like Python bindings for libxml2 and libxslt Group: Development/Libraries @@ -135,6 +135,9 @@ rm -rf %{buildroot} %endif %changelog +* Mon Jul 26 2010 David Malcolm - 2.2.6-4 +- actually add the patch this time + * Mon Jul 26 2010 David Malcolm - 2.2.6-3 - workaround for 2to3 issue (patch 0; bug 600036)