diff options
author | José Fonseca <jfonseca@vmware.com> | 2013-09-17 14:42:43 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2013-09-17 14:42:43 +0100 |
commit | f89548193c9cf504d9d8c6e57627662e3ca05553 (patch) | |
tree | d1a10bd69570fc54272fdba372e39a822a734279 | |
parent | 0eb93d8a59f35c5a659bbc4069003e2f18cebff6 (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.py | 2 |
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 |