[GRASS-SVN] r62305 - grass/trunk/lib/python/script
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Oct 20 08:12:27 PDT 2014
Author: lucadelu
Date: 2014-10-20 08:12:27 -0700 (Mon, 20 Oct 2014)
New Revision: 62305
Modified:
grass/trunk/lib/python/script/core.py
Log:
lib/python/script/core.py: fix check of differences between upper and lower case in units file
Modified: grass/trunk/lib/python/script/core.py
===================================================================
--- grass/trunk/lib/python/script/core.py 2014-10-20 14:49:51 UTC (rev 62304)
+++ grass/trunk/lib/python/script/core.py 2014-10-20 15:12:27 UTC (rev 62305)
@@ -720,10 +720,10 @@
'kilometre'], ['kilometers', 'kilometres']]
for l in lookup:
for n in range(len(dic['unit'])):
- if dic['unit'][n] in l:
+ if dic['unit'][n].lower() in l:
dic['unit'][n] = l[0]
for n in range(len(dic['units'])):
- if dic['units'][n] in l:
+ if dic['units'][n].lower() in l:
dic['units'][n] = l[0]
return dic
More information about the grass-commit
mailing list