From: W. Trevor King Date: Sat, 5 Dec 2009 23:16:05 +0000 (-0500) Subject: Fixed shortname -> bugname in becommands/show.py. X-Git-Tag: 1.0.0~59^2~58^2~18 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f8e29454d91e1ec818fb14fad3d77a159ebbe22a;p=be.git Fixed shortname -> bugname in becommands/show.py. Fixes wking@thor:be.target-as-bug$ be show 22b:7 Traceback (most recent call last): File "/home/wking/bin/be", line 65, in sys.exit(cmdutil.execute(args[0], args[1:])) File "/home/wking/src/fun/be/be.target-as-bug/libbe/cmdutil.py", line 87, in execute restrict_file_access=restrict_file_access) File "/home/wking/src/fun/be/be.target-as-bug/becommands/show.py", line 82, in execute print output(args, bd, as_xml=options.XML, with_comments=options.comments) File "/home/wking/src/fun/be/be.target-as-bug/becommands/show.py", line 174, in output lines.append(comment.string(shortname=shortname)) NameError: global name 'shortname' is not defined --- diff --git a/becommands/show.py b/becommands/show.py index 557c63a..cc43f9a 100644 --- a/becommands/show.py +++ b/becommands/show.py @@ -171,7 +171,7 @@ def output(ids, bd, as_xml=True, with_comments=True): if as_xml: lines.append(comment.xml(indent=4, shortname=bugname)) else: - lines.append(comment.string(shortname=shortname)) + lines.append(comment.string(shortname=bugname)) if spaces_left > 0: spaces_left -= 1 lines.append('') # add a blank line between bugs/comments