Skip to content

Commit 433e95a

Browse files
Minor cleanup
1 parent fada068 commit 433e95a

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

source/main.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ int main(int argc, char *argv[])
3535
PyObject *sysPath = PySys_GetObject("path");
3636
PyObject *path = PyString_FromString("./");
3737
PyList_Insert(sysPath, 0, path);
38-
39-
/* sanity check */
40-
PyRun_SimpleString("print 'Hello, Python 2.7 world!'\n");
4138

4239
FILE * mainpy = fopen(MAINPY, "r");
4340

@@ -48,7 +45,7 @@ int main(int argc, char *argv[])
4845
PyRun_AnyFile(mainpy, MAINPY);
4946
}
5047

51-
Py_DECREF(path); /* are these decrefs needed? */
48+
Py_DECREF(path); /* are these decrefs needed? Are they in the right place? */
5249
Py_DECREF(sysPath);
5350

5451
Py_Finalize();
@@ -70,4 +67,4 @@ int main(int argc, char *argv[])
7067
gfxExit();
7168

7269
return 0;
73-
}
70+
}

0 commit comments

Comments
 (0)