diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-06 23:24:57 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-06 23:24:57 (GMT) |
commit | 4726e40e00ad9c2e333c4dfc5005f410a520834c (patch) | |
tree | c696aaf5ed4c27d43d37049fd54ce8c8c843080d /Modules/mathmodule.c | |
parent | c08ec9fdbaeabb2cedf1245f857a310bdceea7cc (diff) | |
download | cpython-4726e40e00ad9c2e333c4dfc5005f410a520834c.zip cpython-4726e40e00ad9c2e333c4dfc5005f410a520834c.tar.gz cpython-4726e40e00ad9c2e333c4dfc5005f410a520834c.tar.bz2 |
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
Diffstat (limited to 'Modules/mathmodule.c')
0 files changed, 0 insertions, 0 deletions