Amey Pawar
6a15a9b152
fix(python): escape reserved-keyword step ids in wrapper codegen ( #9460 )
...
A flow inline step whose id is a Python keyword (e.g. `in`) crashed with a
`SyntaxError`: the wrapper emits `from {pkg} import {step_id} as inner_script`,
and `from x import in as y` is invalid Python.
The codegen already prefixes `_` to path segments that start with a digit
(`1234` → `_1234`); this extends that guard to Python hard keywords (`in` →
`_in`) in `compute_python_module_dir` and on the leaf in `compute_py_codegen`
and `prepare_wrapper`. The relative-imports write path inherits it for free.
Fixes #8893
2026-06-06 07:56:01 +00:00
..
2026-06-03 09:00:43 +00:00
2025-12-05 23:08:58 +00:00
2026-06-03 09:00:43 +00:00
2026-05-21 15:34:49 +00:00
2026-06-05 08:35:51 +00:00
2026-04-28 20:01:06 +00:00
2026-05-21 15:34:49 +00:00
2026-06-05 08:35:51 +00:00
2024-06-14 13:07:35 +02:00
2026-06-05 09:43:40 +00:00
2025-11-25 17:25:34 +01:00
2026-06-03 17:27:24 +00:00
2026-06-05 13:52:55 +00:00
2026-05-20 14:05:16 +00:00
2026-05-15 21:04:16 +00:00
2026-05-21 15:34:49 +00:00
2025-07-01 15:45:04 +02:00
2026-05-21 04:29:34 +00:00
2026-05-21 15:34:49 +00:00
2025-06-02 22:12:33 +02:00
2025-10-16 09:19:44 +00:00
2026-02-10 17:50:41 +00:00
2026-06-05 08:35:51 +00:00
2026-05-11 10:01:45 +00:00
2026-05-11 10:01:45 +00:00
2026-04-28 20:01:06 +00:00
2026-04-28 20:01:06 +00:00
2026-05-21 15:34:49 +00:00
2026-04-21 17:07:01 +00:00
2026-06-05 16:50:07 +00:00
2026-01-26 19:29:09 +00:00
2026-05-20 16:56:50 +00:00
2026-05-20 16:56:50 +00:00
2026-05-21 15:34:49 +00:00
2026-01-13 15:20:06 +00:00
2026-05-21 15:34:49 +00:00
2026-06-06 07:56:01 +00:00
2026-06-03 08:47:19 +00:00
2026-05-21 15:34:49 +00:00
2026-06-05 16:50:07 +00:00
2026-05-21 15:34:49 +00:00
2026-05-21 15:34:49 +00:00
2025-10-10 18:52:24 +00:00
2026-02-09 15:17:26 +00:00
2026-05-20 06:48:10 +00:00
2026-04-28 20:01:06 +00:00
2026-02-20 12:06:05 +00:00
2026-05-01 17:08:59 +00:00
2026-03-05 06:19:51 +00:00
2026-04-13 23:22:30 +00:00
2026-06-05 16:50:07 +00:00
2026-06-03 13:21:54 +00:00
2026-04-14 00:04:10 +00:00
2026-06-05 16:50:07 +00:00