mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
13 lines
280 B
Python
Executable File
13 lines
280 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
from __future__ import print_function
|
|
|
|
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='')
|