[GRASS-SVN] r56901 - grass/trunk/tools

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jun 24 02:08:28 PDT 2013


Author: mmetz
Date: 2013-06-24 02:08:28 -0700 (Mon, 24 Jun 2013)
New Revision: 56901

Modified:
   grass/trunk/tools/thumbnails.py
Log:
thumbnails tool: skip empty lines

Modified: grass/trunk/tools/thumbnails.py
===================================================================
--- grass/trunk/tools/thumbnails.py	2013-06-23 21:00:28 UTC (rev 56900)
+++ grass/trunk/tools/thumbnails.py	2013-06-24 09:08:28 UTC (rev 56901)
@@ -113,6 +113,9 @@
         if line.startswith("#"):
             # skip comments
             continue
+        if len(line) == 0:
+            # skip empty lines
+            continue
         records.append(line.split())
     records = [record for record in records if record[0] != 'nv' and record[0] != 'default']
     relative = False



More information about the grass-commit mailing list