aboutsummaryrefslogtreecommitdiffstats
path: root/becommands
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-07-12 13:12:08 -0400
committerW. Trevor King <wking@drexel.edu>2009-07-12 13:12:08 -0400
commitd49efee62f70c9f49a5236719fd8c52dabd37dae (patch)
tree1494e0aa3fb78b9d0d370b42752f8983d29ab2f3 /becommands
parent096ab4f25e368641de3c57266d1611797eb7497e (diff)
downloadbugseverywhere-d49efee62f70c9f49a5236719fd8c52dabd37dae.tar.gz
Altered be-xml-to-mbox to work with non-ASCII input.
Now it runs off xml.etree instead of xml.sax. Removed "No matching bugs found" from "be list --xml" output.
Diffstat (limited to 'becommands')
-rw-r--r--becommands/list.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/becommands/list.py b/becommands/list.py
index 0fc0609..76614a0 100644
--- a/becommands/list.py
+++ b/becommands/list.py
@@ -134,11 +134,12 @@ def execute(args, test=False):
return True
bugs = [b for b in bd if filter(b) ]
- if len(bugs) == 0:
+ if len(bugs) == 0 and options.xml == False:
print "No matching bugs found"
def list_bugs(cur_bugs, title=None, just_uuids=False, xml=False):
if xml == True:
+ print '<?xml version="1.0" encoding="%s" ?>' % bd.encoding
print "<bugs>"
if len(cur_bugs) > 0:
if title != None and xml == False: