For additional details, see the Python 3.3 release notes:
https://docs.python.org/3/whatsnew/3.3.html#pep-3151-reworking-the-os-and-
io-exception-hierarchy
> You don’t have to worry anymore about choosing the appropriate exception
type between `OSError`, `IOError`, `EnvironmentError`, `WindowsError`,
`mmap.error`, `socket.error` or `select.error`. All these exception types
are now only one: `OSError`. The other names are kept as aliases for
compatibility reasons.
Additionally, since Python 3.4, `SMTPException` is subclass of `OSError`
. So exception handles catching both can be simplified to just `OSError`.
https://docs.python.org/3/library/smtplib.html#smtplib.SMTPException
> Subclass of `OSError` that is the base exception class for all the other
exceptions provided by this module.
>
> Changed in version 3.4: SMTPException became subclass of OSError
--
Ticket URL: <https://code.djangoproject.com/ticket/30137>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* has_patch: 0 => 1
Comment:
https://github.com/django/django/pull/10904
--
Ticket URL: <https://code.djangoproject.com/ticket/30137#comment:1>
* stage: Unreviewed => Accepted
Comment:
Now we're targeting Python ≥ 3.6 for Django 3.0 this is a nice clean up.
--
Ticket URL: <https://code.djangoproject.com/ticket/30137#comment:2>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/30137#comment:3>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"7785e03ba89aafbd949191f126361fb9103cb980" 7785e03b]:
{{{
#!CommitTicketReference repository=""
revision="7785e03ba89aafbd949191f126361fb9103cb980"
Fixed #30137 -- Replaced OSError aliases with the canonical OSError.
Used more specific errors (e.g. FileExistsError) as appropriate.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30137#comment:4>
Comment (by GitHub <noreply@…>):
In [changeset:"9a0cc54524422dbdd9213e83a8ad7e8a4c13bd3e" 9a0cc54]:
{{{
#!CommitTicketReference repository=""
revision="9a0cc54524422dbdd9213e83a8ad7e8a4c13bd3e"
Refs #30137 -- Fixed template test on Windows.
Broken in 7785e03ba89aafbd949191f126361fb9103cb980.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30137#comment:5>