From 25988b5af3aa24cdd26bcb6ba14f02afa8b131b5 Mon Sep 17 00:00:00 2001 From: Samir Shaikh Date: Tue, 25 Jul 2023 17:15:57 +0530 Subject: [PATCH] Update polygon_ext.pyx Fixing Python2 print statement, as latest cython interprets language_level as 3 as an default. --- anuga/geometry/polygon_ext.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anuga/geometry/polygon_ext.pyx b/anuga/geometry/polygon_ext.pyx index a426373d2..18ff75b8b 100644 --- a/anuga/geometry/polygon_ext.pyx +++ b/anuga/geometry/polygon_ext.pyx @@ -90,8 +90,8 @@ def _separate_points_by_polygon(np.ndarray[double, ndim=2, mode="c"] points not N = polygon.shape[0] if verbose: - print "Got %d points and %d polygon vertices" % (M,N) + print ("Got %d points and %d polygon vertices") % (M,N) count = __separate_points_by_polygon(M, N, &points[0,0], &polygon[0,0], &indices[0], closed, verbose) - return count \ No newline at end of file + return count