diff options
| author | monster <[email protected]> | 2022-07-07 14:41:37 +0300 |
|---|---|---|
| committer | monster <[email protected]> | 2022-07-07 14:41:37 +0300 |
| commit | 06e5c21a835c0e923506c4ff27929f34e00761c2 (patch) | |
| tree | 75efcbc6854ef9bd476eb8bf00cc5c900da436a2 /contrib/tools/python3/pycc | |
| parent | 03f024c4412e3aa613bb543cf1660176320ba8f4 (diff) | |
fix ya.make
Diffstat (limited to 'contrib/tools/python3/pycc')
| -rwxr-xr-x | contrib/tools/python3/pycc/main.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/contrib/tools/python3/pycc/main.py b/contrib/tools/python3/pycc/main.py deleted file mode 100755 index 996edb2bdda..00000000000 --- a/contrib/tools/python3/pycc/main.py +++ /dev/null @@ -1,19 +0,0 @@ -import marshal -import sys - - -def main(): - srcpathx, in_fname, out_fname = sys.argv[1:] - srcpath = srcpathx[:-1] - - with open(in_fname, 'r', encoding='utf-8') as in_file: - source = in_file.read() - - code = compile(source, srcpath, 'exec', dont_inherit=True) - - with open(out_fname, 'wb') as out_file: - marshal.dump(code, out_file) - - -if __name__ == '__main__': - main() |
