summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-10-06 23:24:57 +0000
committerVictor Stinner <victor.stinner@haypocalc.com>2010-10-06 23:24:57 +0000
commit1a54934cdbc3c18faac60008343c5ab36490d05a (patch)
treecc294c3de78ccc440206e754973628c613b70b7a /Python/sysmodule.c
parentcb5b45fb8d799d1f1a0cf52325ddc95623534ee5 (diff)
downloadcpython-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