Hello community,

here is the log from the commit of package python3-Cython for openSUSE:Factory 
checked in at 2016-02-23 16:54:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-Cython (Old)
 and      /work/SRC/openSUSE:Factory/.python3-Cython.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python3-Cython"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-Cython/python3-Cython.changes    
2016-01-30 11:31:36.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python3-Cython.new/python3-Cython.changes       
2016-02-23 16:54:47.000000000 +0100
@@ -1,0 +2,7 @@
+Fri Feb 12 12:16:49 UTC 2016 - toddrme2...@gmail.com
+
+- Add python3-Cython-prevent_swallowing_StopIteration_return.patch
+  to fix compatibility with python 3.5.1.  Should be included in
+  next upstream release.
+
+-------------------------------------------------------------------

New:
----
  python3-Cython-prevent_swallowing_StopIteration_return.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python3-Cython.spec ++++++
--- /var/tmp/diff_new_pack.Y7mnN9/_old  2016-02-23 16:54:48.000000000 +0100
+++ /var/tmp/diff_new_pack.Y7mnN9/_new  2016-02-23 16:54:48.000000000 +0100
@@ -26,6 +26,8 @@
 Source:         
http://pypi.python.org/packages/source/C/Cython/Cython-%{version}.tar.gz
 Source1:        python3-Cython-rpmlintrc
 Patch1:         python3-Cython-c++11.patch
+# PATCH-FIX-UPSTREAM 
python3-Cython-prevent_swallowing_StopIteration_return.patch - fix await 
compatibility for python 3.5.1
+Patch2:         python3-Cython-prevent_swallowing_StopIteration_return.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
@@ -54,6 +56,7 @@
 %prep
 %setup -q -n Cython-%{version}
 %patch1
+%patch2 -p1
 sed -i "s|^#!.*||" Cython/Debugger/{libpython,Cygdb}.py cython.py # Fix 
non-executable scripts
 # Fix EOL encoding
 sed -i "s|\r||" Demos/callback/{README.txt,cheesefinder.h} 
Demos/embed/Makefile.{unix,msc.static} Doc/primes.c # Fix EOL encoding

++++++ python3-Cython-prevent_swallowing_StopIteration_return.patch ++++++
>From 7eed8d8ff9c872bc993a37438beca0f98e3aba38 Mon Sep 17 00:00:00 2001
From: Stefan Behnel <stefan...@behnel.de>
Date: Fri, 12 Feb 2016 11:01:43 +0100
Subject: [PATCH] prevent CPython from swallowing the StopIteration return
 value in Coroutine.send() code

---
 Cython/Utility/Coroutine.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/Cython/Utility/Coroutine.c b/Cython/Utility/Coroutine.c
index 7fdffc5..610f24b 100644
--- a/Cython/Utility/Coroutine.c
+++ b/Cython/Utility/Coroutine.c
@@ -560,8 +560,7 @@ static PyObject *__Pyx_Coroutine_Send(PyObject *self, 
PyObject *value) {
         #endif
         {
             if (value == Py_None)
-                // FIXME - is this the right thing to do?
-                ret = PyIter_Next(yf);
+                ret = Py_TYPE(yf)->tp_iternext(yf);
             else
                 ret = __Pyx_PyObject_CallMethod1(yf, PYIDENT("send"), value);
         }

Reply via email to