From 8d94611a02c5091875b997680f1c9033376e09d1 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 18 Sep 2008 16:57:56 +0000 Subject: [PATCH] The line_num member was only introduced with python 2.5, so we'll do this a different way. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26445 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/scripts/csv2lyx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/scripts/csv2lyx.py b/lib/scripts/csv2lyx.py index 77706b4efd..b6a8d7db73 100644 --- a/lib/scripts/csv2lyx.py +++ b/lib/scripts/csv2lyx.py @@ -159,7 +159,7 @@ for row in reader: num_cols = max(num_cols, len(row)) rows.append(row) -num_rows = reader.line_num # number of lines +num_rows = len(rows) # number of lines # create a LyX file ##################### -- 2.39.2