From 5635614284c35eeb5eb3cbfcca8ec9ec112e9e91 Mon Sep 17 00:00:00 2001 From: eric bryant Date: Mon, 22 Apr 2019 15:17:05 -0400 Subject: [PATCH] canonical_waypoint_name: if -> elif In theory, saves a tiny bit of time. In practice, not a noticeable amount. :) --- siteupdate/python-teresco/siteupdate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/siteupdate/python-teresco/siteupdate.py b/siteupdate/python-teresco/siteupdate.py index daea5a2c..7e323ddc 100755 --- a/siteupdate/python-teresco/siteupdate.py +++ b/siteupdate/python-teresco/siteupdate.py @@ -541,7 +541,7 @@ def canonical_waypoint_name(self,log): suffix = colocated[check_index].label[colocated[check_index].label.find('_'):] if colocated[other_index].route.list_entry_name() + suffix == colocated[check_index].label: suffixes[other_index] = suffix - if colocated[check_index].label.startswith(colocated[other_index].route.name_no_abbrev()): + elif colocated[check_index].label.startswith(colocated[other_index].route.name_no_abbrev()): this_match = True if '_' in colocated[check_index].label: suffix = colocated[check_index].label[colocated[check_index].label.find('_'):]