build/pymake/mkparse.py

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rwxr-xr-x

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

     1 #!/usr/bin/env python
     3 import sys
     4 import pymake.parser
     6 for f in sys.argv[1:]:
     7     print "Parsing %s" % f
     8     fd = open(f, 'rU')
     9     s = fd.read()
    10     fd.close()
    11     stmts = pymake.parser.parsestring(s, f)
    12     print stmts

mercurial