#37132: Replaced Python 2-style super() call in SafeMIMEText.set_payload()
---------------------------------------+--------------------------
Reporter: anisia19 | Owner: anisia19
Type: Bug | Status: assigned
Component: Core (Mail) | Version: dev
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
---------------------------------------+--------------------------
SafeMIMEText.set_payload() in django/core/mail/message.py calls
MIMEText.set_payload(self, payload, charset = charset), passing self
explicitly as an unbound method call, a Python 2 idiom. This causes issues
when is mocked with autospec, since self is then passed twice (once by the
mock and once explicitly)
--
Ticket URL: <
https://code.djangoproject.com/ticket/37132>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.