aboutsummaryrefslogtreecommitdiffstats
path: root/build/scripts/py_compile.py
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:45:01 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:01 +0300
commit2d37894b1b037cf24231090eda8589bbb44fb6fc (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /build/scripts/py_compile.py
parent718c552901d703c502ccbefdfc3c9028d608b947 (diff)
downloadydb-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-xbuild/scripts/py_compile.py14
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)