summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2013-09-17 14:42:43 +0100
committerJosé Fonseca <jfonseca@vmware.com>2013-09-17 14:42:43 +0100
commitf89548193c9cf504d9d8c6e57627662e3ca05553 (patch)
treed1a10bd69570fc54272fdba372e39a822a734279
parent0eb93d8a59f35c5a659bbc4069003e2f18cebff6 (diff)
junit: Fix valid XML unicode table.
Special characters in the range 0..0x20, not 0..20. This prevents errors like: An invalid XML character (Unicode: 0x1e) was found in the element content of the document. Trivial.
-rw-r--r--framework/junit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/junit.py b/framework/junit.py
index f4a9cbb23..791673150 100644
--- a/framework/junit.py
+++ b/framework/junit.py
@@ -60,7 +60,7 @@ class Error(Exception):
# See http://www.w3.org/TR/xml/#charsets
_validXmlAscii = ''.join([((_c >= 0x20 and _c < 0x80) or _c in (0x9, 0xA, 0xD)) and chr(_c) or '?' for _c in range(256)])
_validXmlUnicode = {}
-for _c in range(20):
+for _c in range(0x20):
if _c not in (0x9, 0xA, 0xD):
_validXmlUnicode[_c] = ord('?')
del _c