diff options
author | W. Trevor King <wking@drexel.edu> | 2010-01-21 17:25:05 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2010-01-21 17:25:05 -0500 |
commit | 8b143aa8280181ebdd7b48ac72cda685329f3002 (patch) | |
tree | b4afd74823ec6c578d086070b42b36fa4483be41 | |
parent | 36b970de8e5a4b2e1b91372742ce86819c4254b5 (diff) | |
download | bugseverywhere-8b143aa8280181ebdd7b48ac72cda685329f3002.tar.gz |
Don't raise MultipleIDMatches if one of the matches is exact.
-rw-r--r-- | libbe/util/id.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |