projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81e7026
)
Fixed bugdir name collision in cmdutil.bug_from_shortname()
author
W. Trevor King
<wking@drexel.edu>
Wed, 23 Sep 2009 14:07:38 +0000
(10:07 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Wed, 23 Sep 2009 14:07:38 +0000
(10:07 -0400)
libbe/cmdutil.py
patch
|
blob
|
history
diff --git
a/libbe/cmdutil.py
b/libbe/cmdutil.py
index 8c1c6128fce1c3f2a874bc186e168d0982bc3423..9b6414259750565523f98a6bfa5f5ae0b380a28a 100644
(file)
--- a/
libbe/cmdutil.py
+++ b/
libbe/cmdutil.py
@@
-212,12
+212,12
@@
def underlined(instring):
return "%s\n%s" % (instring, "="*len(instring))
-def bug_from_shortname(b
ug
dir, shortname):
+def bug_from_shortname(bdir, shortname):
"""
Exception translation for the command-line interface.
"""
try:
- bug = b
ug
dir.bug_from_shortname(shortname)
+ bug = bdir.bug_from_shortname(shortname)
except (bugdir.MultipleBugMatches, bugdir.NoBugMatches), e:
raise UserError(e.message)
return bug