diff options
author | W. Trevor King <wking@drexel.edu> | 2009-06-22 10:39:05 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-06-22 10:39:05 -0400 |
commit | cabb531e2300c5643447ccd1ffd311ee5690773a (patch) | |
tree | 37c0a4144c302bba0a885820388db7ef1f96036c /becommands/show.py | |
parent | fb342df1b66897ab17377d6e923049e292149683 (diff) | |
download | bugseverywhere-cabb531e2300c5643447ccd1ffd311ee5690773a.tar.gz |
Escape XML strings.
Since
<creator>John Doe <jdoe@example.com></creator>
is not valid XML.
Diffstat (limited to 'becommands/show.py')
-rw-r--r-- | becommands/show.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/becommands/show.py b/becommands/show.py index 7c48257..0ef09f3 100644 --- a/becommands/show.py +++ b/becommands/show.py @@ -35,17 +35,14 @@ def execute(args, test=False): Created : Wed, 31 Dec 1969 19:00 (Thu, 01 Jan 1970 00:00:00 +0000) Bug A <BLANKLINE> - >>> execute (["--xml", "a"], test=True) + >>> execute (["--xml", "a"], test=True) # doctest: +ELLIPSIS <bug> <uuid>a</uuid> <short-name>a</short-name> <severity>minor</severity> <status>open</status> - <assigned><class 'libbe.settings_object.EMPTY'></assigned> - <target><class 'libbe.settings_object.EMPTY'></target> - <reporter><class 'libbe.settings_object.EMPTY'></reporter> - <creator>John Doe <jdoe@example.com></creator> - <created>Wed, 31 Dec 1969 19:00 (Thu, 01 Jan 1970 00:00:00 +0000)</created> + <creator>John Doe <jdoe@example.com></creator> + <created>...</created> <summary>Bug A</summary> </bug> """ |