Skip to content

Commit cc59521

Browse files
committed
Fix invalid print in _register_pythonscript_classes
1 parent 49d1eb1 commit cc59521

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/_pythonscript.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ cdef public void _pythonscript_free_instance(
110110
# # print('OS.get_environment("foo")', OS.get_environment("foo"))
111111

112112

113-
# Early init: register `PythonScriptLanguage` & `PythonScript` classes in Godot
113+
# Early init: register `PythonScriptLanguage`/`PythonScript`/`PythonResourceFormat(Saver|Loader)` classes in Godot
114114
cdef void _register_pythonscript_classes():
115115
# Here is how we register Python into Godot:
116116
#
@@ -292,7 +292,7 @@ cdef void _register_pythonscript_language():
292292
)
293293
if ret != Error.OK:
294294
_pythons_script_language = None
295-
print("Failed to register Python into Godot: `Engine::register_script_language` returned error {ret}", flush=True)
295+
print(f"Failed to register Python into Godot: `Engine::register_script_language` returned error {ret}", flush=True)
296296
return
297297

298298

0 commit comments

Comments
 (0)