mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
Support using AnymailMessage with django-mailer
Make UNSET preserve its identity across pickling. (Also make its repr mention "unset", to simplify interpretting stack traces.) Fixes #147.
This commit is contained in:
@@ -26,7 +26,7 @@ from .exceptions import AnymailConfigurationError, AnymailInvalidAddress
|
||||
BASIC_NUMERIC_TYPES = six.integer_types + (float,) # int, float, and (on Python 2) long
|
||||
|
||||
|
||||
UNSET = object() # Used as non-None default value
|
||||
UNSET = type('UNSET', (object,), {}) # Used as non-None default value
|
||||
|
||||
|
||||
def combine(*args):
|
||||
|
||||
Reference in New Issue
Block a user