From 4a238590fc82da7a138ee85085faf57c4938ae40 Mon Sep 17 00:00:00 2001
From: Christoph Groth <christoph.groth@cea.fr>
Date: Wed, 21 Oct 2015 15:21:16 +0200
Subject: [PATCH] silence an unjustified warning by cython (for now)

---
 kwant/graph/slicer.pyx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/kwant/graph/slicer.pyx b/kwant/graph/slicer.pyx
index 68c78f4b..0ddcd48f 100644
--- a/kwant/graph/slicer.pyx
+++ b/kwant/graph/slicer.pyx
@@ -13,7 +13,10 @@ from libc.string cimport memcpy
 from .defs cimport gint
 from .defs import gint_dtype
 from .core cimport CGraph
-from . cimport c_slicer
+
+cimport c_slicer
+# TODO: Once cythonize() no longer warns about it, replace the above be
+# from . cimport c_slicer
 
 __all__ = ['slice']
 
-- 
GitLab