浏览代码

lib/python/script/core.py: fix check of differences between upper and lower case in units file

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@62307 15284696-431f-4ddb-bdfa-cd5b030d7da7
Luca Delucchi 10 年之前
父节点
当前提交
47cc0a7ebc
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/python/script/core.py

+ 2 - 2
lib/python/script/core.py

@@ -736,10 +736,10 @@ def _compare_units(dic):
               '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