Skip to content

Commit b9d485c

Browse files
author
Sourcery AI
committed
'Refactored by Sourcery'
1 parent 310ad8f commit b9d485c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wikiteam3/dumpgenerator/dump/xmldump/xml_header.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def getXMLHeader(config: Config, session: requests.Session) -> Tuple[str, Config
4141
f"{config.api}?action=query&export=1&exportnowrap=1&titles={randomtitle}",
4242
timeout=10,
4343
)
44-
xml = str(r.text)
44+
xml = r.text
4545
# Again try without exportnowrap
4646
if not re.match(r"\s*<mediawiki", xml):
4747
r = session.get(

0 commit comments

Comments
 (0)