You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2006-09-30.09:04:08.000>created_at=<Date2006-09-28.05:47:23.000>labels= ['library']
title="urllib doesn't raise IOError correctly with new IOError"updated_at=<Date2006-09-30.09:04:08.000>user='https://bugs.python.org/gissehel'
While I think every python 2.5 releases are concerned.
On line 357 of urllib.py from 2.5 release, there is a
raise of an IOError with 4 arguments. It look like it
was fine with python 2.4 but it hang up with a
"TypeError: EnvironmentError expected at most 3
arguments, got 4"
Concretly, when you hit a page with a "redirect" using
error 302 for exemple, instead of raising an IOError,
it raise a TypeError, so it break code which expect an
IOError here (as a "normal" behavior for 302 codes)
It look like IOError is totally different between
Python 2.4 and Python 2.5 (it was a class, it's now a
type)
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: