[GRASS-SVN] r62307 - in grass/branches/releasebranch_7_0: . lib/python/script
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Oct 20 08:14:47 PDT 2014
Author: lucadelu
Date: 2014-10-20 08:14:47 -0700 (Mon, 20 Oct 2014)
New Revision: 62307
Modified:
grass/branches/releasebranch_7_0/
grass/branches/releasebranch_7_0/lib/python/script/core.py
Log:
lib/python/script/core.py: fix check of differences between upper and lower case in units file
Property changes on: grass/branches/releasebranch_7_0
___________________________________________________________________
Modified: svn:mergeinfo
- /grass/trunk:61280,62144,62269,62271,62276,62288
+ /grass/trunk:61280,62141,62144,62269,62271,62276,62288,62305
Modified: grass/branches/releasebranch_7_0/lib/python/script/core.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/script/core.py 2014-10-20 15:13:09 UTC (rev 62306)
+++ grass/branches/releasebranch_7_0/lib/python/script/core.py 2014-10-20 15:14:47 UTC (rev 62307)
@@ -736,10 +736,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