X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_lcm%2Flcm_utils.py;h=2779a2560c1c09b15ca0e07cd70ad9a7ebd80aaa;hb=e64f7fb3e0efd6fcc78ea322c90106c7403a8a62;hp=bb53d7c2db1c6750854fc492afe024c81de73c8e;hpb=7ab529a15d7b441e5338eaea0f2f567fe67cd34c;p=osm%2FLCM.git diff --git a/osm_lcm/lcm_utils.py b/osm_lcm/lcm_utils.py index bb53d7c..2779a25 100644 --- a/osm_lcm/lcm_utils.py +++ b/osm_lcm/lcm_utils.py @@ -42,7 +42,9 @@ def versiontuple(v): """ filled = [] for point in v.split("."): - filled.append(point.zfill(16)) + point, _, _ = point.partition("+") + point, _, _ = point.partition("-") + filled.append(point.zfill(20)) return tuple(filled)