summaryrefslogtreecommitdiff
path: root/django/utils/xmlutils.py
diff options
context:
space:
mode:
authordjango-bot <ops@djangoproject.com>2025-07-22 20:41:41 -0700
committernessita <124304+nessita@users.noreply.github.com>2025-07-23 20:17:55 -0300
commit69a93a88edb56ba47f624dac7a21aacc47ea474f (patch)
treef57507a4435d032493cae40e06ecb254790b67b2 /django/utils/xmlutils.py
parent55b0cc21310b76ce4018dd793ba50556eaf0af06 (diff)
Refs #36500 -- Rewrapped long docstrings and block comments via a script.
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
Diffstat (limited to 'django/utils/xmlutils.py')
-rw-r--r--django/utils/xmlutils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/xmlutils.py b/django/utils/xmlutils.py
index c3eb3ba6a3..5c65e580ed 100644
--- a/django/utils/xmlutils.py
+++ b/django/utils/xmlutils.py
@@ -22,8 +22,8 @@ class SimplerXMLGenerator(XMLGenerator):
def characters(self, 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
+ # 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"
)