aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/runtime_py3/main/main.c
diff options
context:
space:
mode:
authorAleksandr <ivansduck@gmail.com>2022-02-10 16:47:52 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:52 +0300
commitb05913d1c3c02a773578bceb7285084d2933ae86 (patch)
treec0748b5dcbade83af788c0abfa89c0383d6b779c /library/python/runtime_py3/main/main.c
parentea6c5b7f172becca389cacaff7d5f45f6adccbe6 (diff)
downloadydb-b05913d1c3c02a773578bceb7285084d2933ae86.tar.gz
Restoring authorship annotation for Aleksandr <ivansduck@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/python/runtime_py3/main/main.c')
-rw-r--r--library/python/runtime_py3/main/main.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/library/python/runtime_py3/main/main.c b/library/python/runtime_py3/main/main.c
index d135e00e99..3159800615 100644
--- a/library/python/runtime_py3/main/main.c
+++ b/library/python/runtime_py3/main/main.c
@@ -160,21 +160,21 @@ static int pymain(int argc, char** argv) {
Py_InitArgcArgv(argc, argv_copy);
PySys_SetArgv(argc, argv_copy);
- {
- PyObject* module = PyImport_ImportModule("library.python.runtime_py3.entry_points");
- if (module == NULL) {
- PyErr_Print();
- } else {
- PyObject* res = PyObject_CallMethod(module, "run_constructors", NULL);
- if (res == NULL) {
- PyErr_Print();
- } else {
- Py_DECREF(res);
- }
- Py_DECREF(module);
- }
- }
-
+ {
+ PyObject* module = PyImport_ImportModule("library.python.runtime_py3.entry_points");
+ if (module == NULL) {
+ PyErr_Print();
+ } else {
+ PyObject* res = PyObject_CallMethod(module, "run_constructors", NULL);
+ if (res == NULL) {
+ PyErr_Print();
+ } else {
+ Py_DECREF(res);
+ }
+ Py_DECREF(module);
+ }
+ }
+
const char* module_name = entry_point_copy;
const char* func_name = NULL;