]> granicus.if.org Git - python/commit
When removing indexing/slicing on exceptions some places were changed
authorBrett Cannon <bcannon@gmail.com>
Wed, 21 Mar 2007 22:26:20 +0000 (22:26 +0000)
committerBrett Cannon <bcannon@gmail.com>
Wed, 21 Mar 2007 22:26:20 +0000 (22:26 +0000)
commitca477b228084b9f8f9c8d5818e49261d708dfdcf
tree77859a50d3fddc5e3a4ea7826317511706beb42a
parent3a38362592ee423852d1b32a32d65520bc003ffc
When removing indexing/slicing on exceptions some places were changed
inappropriately from ``e[0]`` to ``e.message`` instead of ``e.args[0]``.  The
reason it needs to be the last option is the dichotomy of 'message' and 'args':
'message' can be the empty string but args[0] can have a value if more than one
argument was passed.
Lib/ConfigParser.py
Lib/test/test_file.py