1 2 3 4 5 6 7 8 9
from libbe import bugdir, cmdutil import os def execute(args): bug_dir = bugdir.tree_root(os.getcwd()) if len(args) !=1: raise cmdutil.UserError("Please specify a bug id.") print cmdutil.bug_summary(cmdutil.get_bug(args[0], bug_dir), list(bug_dir.list()))