Skip to content

Commit ac32495

Browse files
authored
Fix path escaping bug in HTML report (GH8979) (#9797)
1 parent 9c54cc3 commit ac32495

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def on_finish(self) -> None:
522522
etree.SubElement(root, 'file',
523523
file_info.attrib(),
524524
module=file_info.module,
525-
name=file_info.name,
525+
name=pathname2url(file_info.name),
526526
total=str(file_info.total()))
527527
xslt_path = os.path.relpath('mypy-html.xslt', '.')
528528
transform_pi = etree.ProcessingInstruction('xml-stylesheet',

0 commit comments

Comments
 (0)