summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2010-12-26 19:54:29 +0000
committerR. David Murray <rdmurray@bitdance.com>2010-12-26 19:54:29 +0000
commit17cb0c19bea0dabd9148ada174b9799356c5cfd3 (patch)
tree6ad2716c7ef4a9080b7ed66dbfa25235d506ee12 /Python/errors.c
parent33363bb9e7b6c6946a7a8f0857daf0cae750ff33 (diff)
downloadcpython-17cb0c19bea0dabd9148ada174b9799356c5cfd3.tar.gz
#5258/#10642: print fn, line, traceback and continue when .pth file is broken
If a .pth file contained an error, it could cause a traceback in site.py, terminating its processing. In 2.7 and 3.2, the interpreter will then not start. Previously, a message would print saying to use -v to get the traceback. In either case, the traceback generated for a failed .pth file did not include the .pth filename, making it difficult to debug the problem. Now site.py reports not only the .pth filename but also the line number causing the error, and just skips the remainder of the file.
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions