]> git.lyx.org Git - lyx.git/commitdiff
The line_num member was only introduced with python 2.5, so we'll
authorRichard Heck <rgheck@comcast.net>
Thu, 18 Sep 2008 16:57:56 +0000 (16:57 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 18 Sep 2008 16:57:56 +0000 (16:57 +0000)
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

index 77706b4efd8c2472787a127a7a36f5ea58c6549f..b6a8d7db73e9407e871a495f4926f2aeb9442727 100644 (file)
@@ -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
 #####################