]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Remove many blanket try/except clauses.
authorJeremy Hylton <jeremy@alum.mit.edu>
Mon, 16 Jun 2003 20:19:49 +0000 (20:19 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Mon, 16 Jun 2003 20:19:49 +0000 (20:19 +0000)
commitf00368f9edb4842ef668f4fcfbdcf2f34e3c6226
tree64ae00281f467ea6346a31421c0291aacaf01fc2
parenta1ad5f658c6408c6a80fc648cb8d0fe23b77ed89
Remove many blanket try/except clauses.
SF bug [ 751276 ] cPickle doesn't raise error, pickle does (recursiondepth)

Most of the calls to PyErr_Clear() were intended to catch & clear an
attribute error and try something different.  Guard all those cases
with a PyErr_ExceptionMatches() and fail if some other error
occurred.  The other error is likely a bug in the user code.

This is basically the C equivalent of changing "except:" to
"except AttributeError:"
Modules/cPickle.c