aboutsummaryrefslogtreecommitdiffstats
path: root/build/scripts/py_compile.py
diff options
context:
space:
mode:
authorMikhail Borisov <borisov.mikhail@gmail.com>2022-02-10 16:45:40 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:40 +0300
commit5d50718e66d9c037dc587a0211110b7d25a66185 (patch)
treee98df59de24d2ef7c77baed9f41e4875a2fef972 /build/scripts/py_compile.py
parenta6a92afe03e02795227d2641b49819b687f088f8 (diff)
downloadydb-5d50718e66d9c037dc587a0211110b7d25a66185.tar.gz
Restoring authorship annotation for Mikhail Borisov <borisov.mikhail@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'build/scripts/py_compile.py')
-rwxr-xr-xbuild/scripts/py_compile.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/build/scripts/py_compile.py b/build/scripts/py_compile.py
index 5e80045062..936dbe8816 100755
--- a/build/scripts/py_compile.py
+++ b/build/scripts/py_compile.py
@@ -1,24 +1,24 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-
-from __future__ import print_function, absolute_import, division
-
-import marshal
-import sys
-
-
-def main():
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+from __future__ import print_function, absolute_import, division
+
+import marshal
+import sys
+
+
+def main():
srcpathx, in_fname, out_fname = sys.argv[1:]
srcpath = srcpathx[:-1]
with open(in_fname, 'r') as in_file:
- source = in_file.read()
+ 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()
+ marshal.dump(code, out_file)
+
+
+if __name__ == "__main__":
+ main()