diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-06 23:24:57 +0000 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-06 23:24:57 +0000 |
commit | 1a54934cdbc3c18faac60008343c5ab36490d05a (patch) | |
tree | cc294c3de78ccc440206e754973628c613b70b7a /Python/sysmodule.c | |
parent | cb5b45fb8d799d1f1a0cf52325ddc95623534ee5 (diff) | |
download | cpython-1a54934cdbc3c18faac60008343c5ab36490d05a.tar.gz |
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 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions