From 8b143aa8280181ebdd7b48ac72cda685329f3002 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 21 Jan 2010 17:25:05 -0500 Subject: [PATCH] Don't raise MultipleIDMatches if one of the matches is exact. --- libbe/util/id.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libbe/util/id.py b/libbe/util/id.py index 3945b20..4537c86 100644 --- a/libbe/util/id.py +++ b/libbe/util/id.py @@ -140,6 +140,8 @@ def _expand(truncated_id, common, other_ids): other_ids = list(other_ids) for id in other_ids: if id.startswith(truncated_id): + if id == truncated_id: + return id matches.append(id) if len(matches) > 1: raise MultipleIDMatches(truncated_id, common, matches) -- 2.26.2