add patch to correct typo in exception handling

This commit is contained in:
Thomas Spura 2013-04-03 01:35:49 +02:00 committed by Terje Røsten
parent a867879339
commit caf4922352
2 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,11 @@
--- pyparsing_py3.py.orig 2013-04-03 01:28:01.927400414 +0200
+++ pyparsing_py3.py 2013-04-03 01:28:23.903443448 +0200
@@ -891,7 +891,7 @@
ParserElement._exprArgCache[ lookup ] = (value[0],value[1].copy())
return value
except ParseBaseException as pe:
- exc.__traceback__ = None
+ pe.__traceback__ = None
ParserElement._exprArgCache[ lookup ] = pe
raise

View File

@ -6,12 +6,13 @@
Name: pyparsing Name: pyparsing
Version: 1.5.6 Version: 1.5.6
Release: 7%{?dist} Release: 8%{?dist}
Summary: An object-oriented approach to text processing Summary: An object-oriented approach to text processing
Group: Development/Libraries Group: Development/Libraries
License: MIT License: MIT
URL: http://pyparsing.wikispaces.com/ URL: http://pyparsing.wikispaces.com/
Source0: http://downloads.sourceforge.net/pyparsing/pyparsing-%{version}.tar.gz Source0: http://downloads.sourceforge.net/pyparsing/pyparsing-%{version}.tar.gz
Patch0: pyparsing-1.5.6-traceback-typo.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
@ -48,6 +49,7 @@ This is the Python 3 version.
%prep %prep
%setup -q %setup -q
%patch0
mv docs/pyparsingClassDiagram.PNG docs/pyparsingClassDiagram.png mv docs/pyparsingClassDiagram.PNG docs/pyparsingClassDiagram.png
rm docs/pyparsingClassDiagram.JPG rm docs/pyparsingClassDiagram.JPG
dos2unix -k CHANGES LICENSE dos2unix -k CHANGES LICENSE
@ -113,6 +115,9 @@ rm -rf %{buildroot}
%doc CHANGES README LICENSE docs/* %doc CHANGES README LICENSE docs/*
%changelog %changelog
* Wed Apr 3 2013 Thomas Spura <tomspur@fedoraproject.org> - 1.5.6-8
- add patch to correct typo in exception handling
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-7 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.6-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild