Compare commits

...

10 Commits
master ... el6

Author SHA1 Message Date
Pádraig Brady 72bd1221ed Merge branch 'master' into el6
Conflicts:
	python-greenlet.spec
2014-04-22 18:07:03 +01:00
Pádraig Brady ba388506e7 Merge branch 'f18' into el6 2013-01-18 14:51:54 +00:00
Pádraig Brady a9feed2c52 fix base exception type thrown
See: http://pad.lv/1097203
2013-01-18 14:50:23 +00:00
Pádraig Brady 6077484176 Merge branch 'master' into el6 2012-10-11 23:31:58 +01:00
Pádraig Brady 9f3c5bb271 Merge branch 'master' into el6 2011-11-17 12:49:45 +00:00
Pádraig Brady b6d23366bb Merge branch 'master' into el6
Conflicts:
	python-greenlet.spec
2011-11-01 02:37:09 +00:00
dmalcolm 11bdf825fb - Rebuilt for
https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
2011-11-01 02:35:22 +00:00
Fedora Release Engineering 1512550038 dist-git conversion 2010-07-29 10:22:56 +00:00
Dennis Gilmore b593277f97 Initialize branch EL-6 for python-greenlet 2010-05-08 02:18:06 +00:00
Lev Shamardin d38aab9468 Initial import (#580964) 2010-04-19 05:57:44 +00:00
2 changed files with 36 additions and 12 deletions

34
base-exception.patch Normal file
View File

@ -0,0 +1,34 @@
wget https://github.com/python-greenlet/greenlet/commit/2f81f5d.patch
From 2f81f5de275c8dad13c5497c540ab96952a24071 Mon Sep 17 00:00:00 2001
From: Alexey Borzenkov <snaury@gmail.com>
Date: Mon, 28 Feb 2011 00:48:00 +0300
Subject: [PATCH] Make GreenletExit based on BaseException on Python >= 2.5
This way it is more similar to SystemExit and becomes a little
harder to accidentally catch with "except Exception:" statement.
---
greenlet.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/greenlet.c b/greenlet.c
index 25358ce..973a12c 100755
--- a/greenlet.c
+++ b/greenlet.c
@@ -1266,8 +1266,13 @@ void initgreenlet(void)
{
INITERROR;
}
+#if PY_MAJOR_VERSION >= 3 || (PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION >= 5)
+ PyExc_GreenletExit = PyErr_NewException("greenlet.GreenletExit",
+ PyExc_BaseException, NULL);
+#else
PyExc_GreenletExit = PyErr_NewException("greenlet.GreenletExit",
NULL, NULL);
+#endif
if (PyExc_GreenletExit == NULL)
{
INITERROR;
--
1.7.10

View File

@ -70,18 +70,8 @@ PYTHONPATH=$(pwd) %{__python} benchmarks/chain.py
* Thu Jan 23 2014 Orion Poplawski <orion@cora.nwra.com> 0.4.2-1
- Update to 0.4.2
* Mon Aug 05 2013 Kevin Fenzi <kevin@scrye.com> 0.4.1-1
- Update to 0.4.1
- Fix FTBFS bug #993134
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Fri Jan 18 2013 Pádraig Brady <P@draigBrady.com> - 0.4.0-1
- Update to 0.4.0
* Fri Jan 18 2013 Pádraig Brady <P@draigBrady.com> - 0.3.1-12
- Fix base exception type thrown
* Thu Oct 11 2012 Pádraig Brady <P@draigBrady.com> - 0.3.1-11
- Add support for ppc64