mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-03 11:24:36 +00:00
14 lines
317 B
Python
14 lines
317 B
Python
|
|
'''
|
|
Removes local names. When you don't care about local names but do want
|
|
to diff for structural changes, this can help.
|
|
'''
|
|
|
|
import sys
|
|
|
|
for line in open(sys.argv[1]).readlines():
|
|
if '(tee_local ' in line or '(set_local ' in line or '(get_local ' in line:
|
|
print line[:line.find('$')]
|
|
else:
|
|
print line,
|