Browse Source

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/trunk@62305 15284696-431f-4ddb-bdfa-cd5b030d7da7
Luca Delucchi 10 năm trước cách đây
mục cha
commit
3eb77162d9
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      lib/python/script/core.py

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

@@ -720,10 +720,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