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/
14 lines
238 B
Python
Executable File
14 lines
238 B
Python
Executable File
#!/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())
|