diff options
author | W. Trevor King <wking@drexel.edu> | 2010-01-22 06:40:23 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2010-01-22 06:40:23 -0500 |
commit | e0ce49ffa3d09d37310ce04c50268275b8e2ca54 (patch) | |
tree | e107a4c035956956ec61f27a1b45c15741010532 /libbe/util/id.py | |
parent | 36b970de8e5a4b2e1b91372742ce86819c4254b5 (diff) | |
parent | 6abea58e9359f14b256edb2dca0690b9c3ffe875 (diff) | |
download | bugseverywhere-e0ce49ffa3d09d37310ce04c50268275b8e2ca54.tar.gz |
Bugfix merge: better Comment.xml() & libbe.util.id.parse_user()
Highlights:
* new Comment.safe_in_reply_to to improve comment xml output.
* don't raise MultipleIDMatches if one of the matches is exact.
Diffstat (limited to 'libbe/util/id.py')
-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) |