Fixed shortname -> bugname in becommands/show.py.
authorW. Trevor King <wking@drexel.edu>
Sat, 5 Dec 2009 23:16:05 +0000 (18:16 -0500)
committerW. Trevor King <wking@drexel.edu>
Sat, 5 Dec 2009 23:16:05 +0000 (18:16 -0500)
Fixes
  wking@thor:be.target-as-bug$ be show 22b:7
  Traceback (most recent call last):
    File "/home/wking/bin/be", line 65, in <module>
      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

becommands/show.py

index 557c63a230ab62f072c2099d41e8fcb39dbbf313..cc43f9adb6e47a5c2cc5c8a7a4915fedaed256c4 100644 (file)
@@ -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