From 01c69e7e25406583070eee438c1f192d3dbf5676 Mon Sep 17 00:00:00 2001 From: Celine Mercier Date: Fri, 28 Jul 2017 10:01:56 +0200 Subject: [PATCH] Cython API: fixed a bug when printing a column --- python/obitools3/dms/column/column.pyx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/python/obitools3/dms/column/column.pyx b/python/obitools3/dms/column/column.pyx index b4a3847..5451f2d 100644 --- a/python/obitools3/dms/column/column.pyx +++ b/python/obitools3/dms/column/column.pyx @@ -196,8 +196,7 @@ cdef class Column(OBIWrapper) : def __iter__(self): - cdef index_t line_nb - + cdef index_t line_nb for line_nb in range(self.lines_used): yield self[line_nb] @@ -211,8 +210,8 @@ cdef class Column(OBIWrapper) : def __str__(self) : - cdef str to_print - cdef Column_line line + cdef str to_print + cdef object line to_print = '' for line in self : to_print = to_print + str(line) + "\n"