Skip to content

Commit 422dfd8

Browse files
committed
fix style
1 parent c5acb67 commit 422dfd8

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

python/private/py_executable.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -673,16 +673,16 @@ def _create_stage1_bootstrap(
673673
python_binary_actual = venv.interpreter_actual_path if venv else ""
674674

675675
subs = {
676+
"%interpreter_args%": "\n".join([
677+
'"{}"'.format(v)
678+
for v in ctx.attr.interpreter_args
679+
]),
676680
"%is_zipfile%": "1" if is_for_zip else "0",
677681
"%python_binary%": python_binary_path,
678682
"%python_binary_actual%": python_binary_actual,
679683
"%recreate_venv_at_runtime%": str(int(venv.recreate_venv_at_runtime)) if venv else "0",
680684
"%target%": str(ctx.label),
681685
"%workspace_name%": ctx.workspace_name,
682-
"%interpreter_args%": "\n".join([
683-
'"{}"'.format(v)
684-
for v in ctx.attr.interpreter_args
685-
]),
686686
}
687687

688688
if stage2_bootstrap:

tests/bootstrap_impls/interpreter_args_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
import sys
1616
import unittest
1717

18+
1819
class InterpreterArgsTest(unittest.TestCase):
1920
def test_interpreter_args(self):
2021
self.assertEqual(sys._xoptions, {"SPECIAL": "1"})
2122

23+
2224
if __name__ == "__main__":
2325
unittest.main()

0 commit comments

Comments
 (0)