mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Refs #23919 -- Replaced kwargs.pop() with keyword-only arguments.
This commit is contained in:
committed by
Tim Graham
parent
0ec4dc91e0
commit
8838d4dd49
@@ -10,10 +10,10 @@ from django.core.mail.backends.console import \
|
||||
|
||||
|
||||
class EmailBackend(ConsoleEmailBackend):
|
||||
def __init__(self, *args, **kwargs):
|
||||
def __init__(self, *args, file_path=None, **kwargs):
|
||||
self._fname = None
|
||||
if 'file_path' in kwargs:
|
||||
self.file_path = kwargs.pop('file_path')
|
||||
if file_path is not None:
|
||||
self.file_path = file_path
|
||||
else:
|
||||
self.file_path = getattr(settings, 'EMAIL_FILE_PATH', None)
|
||||
# Make sure self.file_path is a string.
|
||||
|
||||
Reference in New Issue
Block a user