diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
commit | 2d37894b1b037cf24231090eda8589bbb44fb6fc (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /build/scripts/py_compile.py | |
parent | 718c552901d703c502ccbefdfc3c9028d608b947 (diff) | |
download | ydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'build/scripts/py_compile.py')
-rwxr-xr-x | build/scripts/py_compile.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/build/scripts/py_compile.py b/build/scripts/py_compile.py index b1f6e0b7dbf..936dbe8816b 100755 --- a/build/scripts/py_compile.py +++ b/build/scripts/py_compile.py @@ -8,15 +8,15 @@ import sys def main(): - srcpathx, in_fname, out_fname = sys.argv[1:] - srcpath = srcpathx[:-1] - + srcpathx, in_fname, out_fname = sys.argv[1:] + srcpath = srcpathx[:-1] + with open(in_fname, 'r') as in_file: source = in_file.read() - - code = compile(source, srcpath, 'exec', dont_inherit=True) - - with open(out_fname, 'wb') as out_file: + + code = compile(source, srcpath, 'exec', dont_inherit=True) + + with open(out_fname, 'wb') as out_file: marshal.dump(code, out_file) |