#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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019e7fc433dc-e73c86a7-8c94-446c-b6b7-de6ee1ad2fd9-000000%40eu-central-1.amazonses.com.

Reply via email to