mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-18 10:38:11 +00:00
11 lines
241 B
Python
11 lines
241 B
Python
![]() |
#!/usr/bin/env python
|
||
|
|
||
|
import sys
|
||
|
|
||
|
# Normalize file paths in output
|
||
|
for line in sys.stdin:
|
||
|
if line.startswith("..") and line.rstrip().endswith(".rs:"):
|
||
|
print(line.replace("\\", "/"), end='')
|
||
|
else:
|
||
|
print(line, end='')
|