@@ -25,9 +25,9 @@ def sort_attributes(root):
25
25
attrib = shallow_element .attrib
26
26
if len (attrib ) > 1 :
27
27
# adjust attribute order, e.g. by sorting
28
- attribs = sorted (attrib .items ())
28
+ attributes = sorted (attrib .items ())
29
29
attrib .clear ()
30
- attrib .update (attribs )
30
+ attrib .update (attributes )
31
31
if shallow_element .tag == "relation" :
32
32
pass
33
33
@@ -41,9 +41,9 @@ def sort_attributes(root):
41
41
attrib = deep_element .attrib
42
42
if len (attrib ) > 1 :
43
43
# adjust attribute order, e.g. by sorting
44
- attribs = sorted (attrib .items ())
44
+ attributes = sorted (attrib .items ())
45
45
attrib .clear ()
46
- attrib .update (attribs )
46
+ attrib .update (attributes )
47
47
48
48
49
49
def remove_diff_to_ignore (osm_root ):
@@ -65,13 +65,13 @@ def remove_diff_to_ignore(osm_root):
65
65
if __name__ == "__main__" :
66
66
parser = argparse .ArgumentParser ()
67
67
parser .add_argument (
68
- "-s" , "--sort-attributes" , action = "store_true" , help = "Sort attribues of LL2 maps"
68
+ "-s" , "--sort-attributes" , action = "store_true" , help = "Sort attributes of LL2 maps"
69
69
)
70
70
parser .add_argument (
71
71
"-i" ,
72
72
"--ignore-minor-attributes" ,
73
73
action = "store_true" ,
74
- help = "Ignore minor attribues of LL2 maps which does not change the map's behavior" ,
74
+ help = "Ignore minor attributes of LL2 maps which does not change the map's behavior" ,
75
75
)
76
76
args = parser .parse_args ()
77
77
0 commit comments