[pyparsing] add patch to correct typo in exception handling
terjeros
terjeros at fedoraproject.org
Wed Apr 3 17:54:47 UTC 2013
commit caf49223527938b153e9a15fbb57a453339d6337
Author: Thomas Spura <thomas.spura at gmail.com>
Date: Wed Apr 3 01:35:49 2013 +0200
add patch to correct typo in exception handling
pyparsing-1.5.6-traceback-typo.patch | 11 +++++++++++
pyparsing.spec | 7 ++++++-
2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/pyparsing-1.5.6-traceback-typo.patch b/pyparsing-1.5.6-traceback-typo.patch
new file mode 100644
index 0000000..b936d33
--- /dev/null
+++ b/pyparsing-1.5.6-traceback-typo.patch
@@ -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
+
diff --git a/pyparsing.spec b/pyparsing.spec
index 6104863..e2c58a0 100644
--- a/pyparsing.spec
+++ b/pyparsing.spec
@@ -6,12 +6,13 @@
Name: pyparsing
Version: 1.5.6
-Release: 7%{?dist}
+Release: 8%{?dist}
Summary: An object-oriented approach to text processing
Group: Development/Libraries
License: MIT
URL: http://pyparsing.wikispaces.com/
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)
BuildArch: noarch
@@ -48,6 +49,7 @@ This is the Python 3 version.
%prep
%setup -q
+%patch0
mv docs/pyparsingClassDiagram.PNG docs/pyparsingClassDiagram.png
rm docs/pyparsingClassDiagram.JPG
dos2unix -k CHANGES LICENSE
@@ -113,6 +115,9 @@ rm -rf %{buildroot}
%doc CHANGES README LICENSE docs/*
%changelog
+* Wed Apr 3 2013 Thomas Spura <tomspur at fedoraproject.org> - 1.5.6-8
+- add patch to correct typo in exception handling
+
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.5.6-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
More information about the scm-commits
mailing list