commit | 4726e40e00ad9c2e333c4dfc5005f410a520834c | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Wed Oct 06 23:24:57 2010 +0000 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Wed Oct 06 23:24:57 2010 +0000 |
tree | c696aaf5ed4c27d43d37049fd54ce8c8c843080d | |
parent | c08ec9fdbaeabb2cedf1245f857a310bdceea7cc [diff] |
Rewrite RunMainFromImporter() * fix argv0 reference counter if PyList_SetItem() fails * don't use complex if conditions, but a simple indentation and "goto error" * simplify error handling (remove Py_XDECREF(importer) from the error label) * don't set sys_path to NULL (it's useless, sys_path is a borrowed reference and sys_path is not a static variable) * try to write only one instruction per line for better readability