build/pymake/mkformat.py
author Ralph Giles <giles@mozilla.com>
Tue, 09 May 2017 11:36:13 -0700
changeset 357517 875c064191256b0fa97f32a3de43d0cfe9eddb06
parent 101590 e97779ff22631981d1d593a531de55a7a8655655
permissions -rwxr-xr-x
Bug 1336153 - Remove MOZ_RUST. r=ted We now have code that unconditionally requires the rust compiler and are committed to adding more. Remove this last vestige of conditional support. MozReview-Commit-ID: EK6FBnAbR

#!/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()