Commit b42ca205 authored by Michael Droettboom's avatar Michael Droettboom

Don't be so pedantic about cleaning up in the main function

parent 50ee86bd
......@@ -54,7 +54,6 @@ main(int argc, char** argv)
return 1;
}
if (PyObject_SetAttrString(sys, "dont_write_bytecode", Py_True)) {
Py_DECREF(sys);
return 1;
}
......@@ -62,13 +61,10 @@ main(int argc, char** argv)
// importing modules, which saves on filesystem I/O time
PyObject *implementation = PyObject_GetAttrString(sys, "implementation");
if (implementation == NULL) {
Py_DECREF(sys);
return 1;
}
if (PyObject_SetAttrString(implementation, "cache_tag", Py_None)) {
Py_DECREF(implementation);
Py_DECREF(sys);
return 1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment