From b9d485c786b5cdbbe1dea201aca2cf537345a9e9 Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Fri, 8 Sep 2023 16:41:24 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- wikiteam3/dumpgenerator/dump/xmldump/xml_header.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wikiteam3/dumpgenerator/dump/xmldump/xml_header.py b/wikiteam3/dumpgenerator/dump/xmldump/xml_header.py index e95129a2..2928a484 100644 --- a/wikiteam3/dumpgenerator/dump/xmldump/xml_header.py +++ b/wikiteam3/dumpgenerator/dump/xmldump/xml_header.py @@ -41,7 +41,7 @@ def getXMLHeader(config: Config, session: requests.Session) -> Tuple[str, Config f"{config.api}?action=query&export=1&exportnowrap=1&titles={randomtitle}", timeout=10, ) - xml = str(r.text) + xml = r.text # Again try without exportnowrap if not re.match(r"\s*