Last change
on this file since 34 was
34,
checked in by hartmans, 18 years ago
|
Add xen and xen-common
|
-
Property svn:mime-type set to
text/script
|
File size:
958 bytes
|
Line | |
---|
1 | #!/usr/bin/python |
---|
2 | |
---|
3 | """ |
---|
4 | utils.py - Utilities for reporting xm-test results |
---|
5 | |
---|
6 | Copyright (C) International Business Machines Corp., 2005 |
---|
7 | Author: Dan Smith <danms@us.ibm.com> |
---|
8 | |
---|
9 | This program is free software; you can redistribute it and/or modify |
---|
10 | it under the terms of the GNU General Public License as published by |
---|
11 | the Free Software Foundation; under version 2 of the License. |
---|
12 | |
---|
13 | This program is distributed in the hope that it will be useful, |
---|
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | GNU General Public License for more details. |
---|
17 | |
---|
18 | You should have received a copy of the GNU General Public License |
---|
19 | along with this program; if not, write to the Free Software |
---|
20 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
21 | |
---|
22 | """ |
---|
23 | |
---|
24 | from xml.sax.saxutils import escape |
---|
25 | |
---|
26 | def tagify(tag, string): |
---|
27 | return "<%s>%s</%s>" % (tag, escape(string.strip()), tag) |
---|
28 | |
---|
29 | |
---|
30 | |
---|
31 | |
---|
Note: See
TracBrowser
for help on using the repository browser.