build/pymake/mkformat.py
author Simon Sapin <simon.sapin@exyr.org>
Tue, 06 Jun 2017 08:13:39 -0700
changeset 1150023 c6508a9f0fb5f1648b37f299be7f3e481cb26c31
parent 101590 e97779ff22631981d1d593a531de55a7a8655655
child 1987889 0797657470cb868f28dacd2e9fd77baa91cabc2e
child 2031579 87f32dff1213bc32cd117cdca1d95d7a8d7a3b98
child 2103133 11cd910394683e4894f57fe28100d81c22b69862
child 2146945 655c982db0925644c7b970f0200f804037981529
permissions -rwxr-xr-x
servo: Merge #17185 - Fix some "unused" warnings (from servo:unused); r=emilio Source-Repo: https://github.com/servo/servo Source-Revision: 87005a0df33531995635728989c929572de429e7

#!/usr/bin/env python

import sys
import pymake.parser

filename = sys.argv[1]
source = None

with open(filename, 'rU') as fh:
    source = fh.read()

statements = pymake.parser.parsestring(source, filename)
print statements.to_source()