diff options
author | Raymond Hettinger <python@rcn.com> | 2002-11-08 05:03:21 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-11-08 05:03:21 (GMT) |
commit | 1eb1fb814b4d5ea12dcffd18bb132a1313a48ccf (patch) | |
tree | 896d6c9b5f20d362f784cb2ea59ad74d08ffe017 /Lib/imghdr.py | |
parent | dde800ec4ee704d0c4d6d0b60d74e72e0ea834d8 (diff) | |
download | cpython-1eb1fb814b4d5ea12dcffd18bb132a1313a48ccf.zip cpython-1eb1fb814b4d5ea12dcffd18bb132a1313a48ccf.tar.gz cpython-1eb1fb814b4d5ea12dcffd18bb132a1313a48ccf.tar.bz2 |
Closes SF bug #628246.
The _update method detected mutable elements by trapping TypeErrors.
Unfortunately, this masked useful TypeErrors raised by the iterable
itself. For cases where it is possible for an iterable to raise
a TypeError, the iterable is pre-converted to a list outside the
try/except so that any TypeErrors propagate through.
Diffstat (limited to 'Lib/imghdr.py')
0 files changed, 0 insertions, 0 deletions