summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorprettyboy <[email protected]>2026-06-04 20:02:29 +0300
committerprettyboy <[email protected]>2026-06-04 20:45:29 +0300
commite72e073d91745d08058c68ff7cec41f8542e7c8d (patch)
treef194480cf1f7528ad907b92027d5427485f6c7f2 /build
parent80b06bda16e0052c40c670bccc421eafb490c489 (diff)
Fixed PY_CONTRUCTOR
commit_hash:e4ec136c106665159705dc23b92aacb6bd08d314
Diffstat (limited to 'build')
-rw-r--r--build/plugins/pybuild.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/plugins/pybuild.py b/build/plugins/pybuild.py
index 0d95c0d50bc..e37a0848387 100644
--- a/build/plugins/pybuild.py
+++ b/build/plugins/pybuild.py
@@ -792,7 +792,7 @@ def onpy_constructor(unit, arg):
if ':' not in arg:
arg = arg + '=init'
else:
- arg[arg.index(':')] = '='
+ arg = arg.replace(':', '=', 1)
unit.onresource(['DONT_COMPRESS', '-', 'py/constructors/{}'.format(arg)])