summaryrefslogtreecommitdiffstats
path: root/Modules/mathmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-10-06 23:24:57 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-10-06 23:24:57 (GMT)
commit4726e40e00ad9c2e333c4dfc5005f410a520834c (patch)
treec696aaf5ed4c27d43d37049fd54ce8c8c843080d /Modules/mathmodule.c
parentc08ec9fdbaeabb2cedf1245f857a310bdceea7cc (diff)
downloadcpython-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