mirror of
https://github.com/Basilisk-Development-Team/UXP-mirror.git
synced 2026-11-12 20:32:03 -05:00
2to3 . --fix print -wn Essentially, print is a function instead of statement. Ref: PEP 3105 https://peps.python.org/pep-3105/
13 lines
224 B
Python
Executable File
13 lines
224 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import sys
|
|
import pymake.parser
|
|
|
|
for f in sys.argv[1:]:
|
|
print("Parsing %s" % f)
|
|
fd = open(f, 'rU')
|
|
s = fd.read()
|
|
fd.close()
|
|
stmts = pymake.parser.parsestring(s, f)
|
|
print(stmts)
|