mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
Remove deprecated <ESP>Backend names
(Deprecated with warnings since v0.8)
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import re
|
||||
import warnings
|
||||
|
||||
from requests.structures import CaseInsensitiveDict
|
||||
|
||||
from ..exceptions import AnymailRequestsAPIError, AnymailDeprecationWarning
|
||||
from ..exceptions import AnymailRequestsAPIError
|
||||
from ..message import AnymailRecipientStatus
|
||||
from ..utils import get_anymail_setting
|
||||
|
||||
@@ -95,15 +94,6 @@ class EmailBackend(AnymailRequestsBackend):
|
||||
return []
|
||||
|
||||
|
||||
# Pre-v0.8 naming (deprecated)
|
||||
class PostmarkBackend(EmailBackend):
|
||||
def __init__(self, **kwargs):
|
||||
warnings.warn(AnymailDeprecationWarning(
|
||||
"Please update your EMAIL_BACKEND setting to "
|
||||
"'anymail.backends.postmark.EmailBackend'"))
|
||||
super(PostmarkBackend, self).__init__(**kwargs)
|
||||
|
||||
|
||||
class PostmarkPayload(RequestsPayload):
|
||||
|
||||
def __init__(self, message, defaults, backend, *args, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user