Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
72bd1221ed | ||
|
ba388506e7 | ||
|
a9feed2c52 | ||
|
6077484176 | ||
|
9f3c5bb271 | ||
|
b6d23366bb | ||
|
11bdf825fb | ||
|
1512550038 | ||
|
b593277f97 | ||
|
d38aab9468 |
34
base-exception.patch
Normal file
34
base-exception.patch
Normal 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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user