Fixed bugdir name collision in cmdutil.bug_from_shortname()
authorW. Trevor King <wking@drexel.edu>
Wed, 23 Sep 2009 14:07:38 +0000 (10:07 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 23 Sep 2009 14:07:38 +0000 (10:07 -0400)
libbe/cmdutil.py

index 8c1c6128fce1c3f2a874bc186e168d0982bc3423..9b6414259750565523f98a6bfa5f5ae0b380a28a 100644 (file)
@@ -212,12 +212,12 @@ def underlined(instring):
     
     return "%s\n%s" % (instring, "="*len(instring))
 
-def bug_from_shortname(bugdir, shortname):
+def bug_from_shortname(bdir, shortname):
     """
     Exception translation for the command-line interface.
     """
     try:
-        bug = bugdir.bug_from_shortname(shortname)
+        bug = bdir.bug_from_shortname(shortname)
     except (bugdir.MultipleBugMatches, bugdir.NoBugMatches), e:
         raise UserError(e.message)
     return bug