测试gitnore
This commit is contained in:
@@ -21,12 +21,10 @@ class SimplerXMLGenerator(XMLGenerator):
|
||||
self.endElement(name)
|
||||
|
||||
def characters(self, content):
|
||||
if content and re.search(r"[\x00-\x08\x0B-\x0C\x0E-\x1F]", content):
|
||||
if content and re.search(r'[\x00-\x08\x0B-\x0C\x0E-\x1F]', content):
|
||||
# Fail loudly when content has control chars (unsupported in XML 1.0)
|
||||
# See https://www.w3.org/International/questions/qa-controls
|
||||
raise UnserializableContentError(
|
||||
"Control characters are not supported in XML 1.0"
|
||||
)
|
||||
raise UnserializableContentError("Control characters are not supported in XML 1.0")
|
||||
XMLGenerator.characters(self, content)
|
||||
|
||||
def startElement(self, name, attrs):
|
||||
|
||||
Reference in New Issue
Block a user