aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-01-21 09:17:40 -0500
committerW. Trevor King <wking@drexel.edu>2010-01-21 09:17:40 -0500
commita7134ad51224e33df79d4589b677ad0718387f48 (patch)
tree234673618f378d3e379885fac5e897319cb4d1e2 /libbe
parentbe2de86f947b7bf2bb44f415df0a6f685633a64b (diff)
downloadbugseverywhere-a7134ad51224e33df79d4589b677ad0718387f48.tar.gz
Converted `be list --xml` to <be-xml> format.
Fixed up be-xml-to-mbox following the recent libbe restructuring. Moved stdout manipulation in be-mail-to-xml into the if __name__ == '__main__' block, in case some other module wants to recycle some of its functions/methods.
Diffstat (limited to 'libbe')
-rw-r--r--libbe/command/list.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbe/command/list.py b/libbe/command/list.py
index c1bcba0..44be71b 100644
--- a/libbe/command/list.py
+++ b/libbe/command/list.py
@@ -228,7 +228,7 @@ class List (libbe.command.Command):
if xml == True:
print >> self.stdout, \
'<?xml version="1.0" encoding="%s" ?>' % self.stdout.encoding
- print >> self.stdout, '<bugs>'
+ print >> self.stdout, '<be-xml>'
if len(bugs) > 0:
for bug in bugs:
if xml == True:
@@ -236,7 +236,7 @@ class List (libbe.command.Command):
else:
print >> self.stdout, bug.string(shortlist=True)
if xml == True:
- print >> self.stdout, '</bugs>'
+ print >> self.stdout, '</be-xml>'
def _long_help(self):
return """