From a00dc0dd384e6bf459fbf4e5201ef07f81926102 Mon Sep 17 00:00:00 2001
From: Christoph Groth <christoph.groth@cea.fr>
Date: Wed, 29 Jul 2015 12:29:13 +0200
Subject: [PATCH] fix compilation with Cython 0.22

---
 kwant/graph/core.pyx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kwant/graph/core.pyx b/kwant/graph/core.pyx
index 2ef377be..eca0c49d 100644
--- a/kwant/graph/core.pyx
+++ b/kwant/graph/core.pyx
@@ -72,7 +72,7 @@ cdef class Graph:
             raise MemoryError
         self.capacity = capacity
 
-    cpdef gint add_edge(self, gint tail, gint head):
+    cpdef gint add_edge(self, gint tail, gint head) except -1:
         """Add the directed edge (`tail`, `head`) to the graph.
 
         Parameters
-- 
GitLab