summaryrefslogtreecommitdiff
path: root/django/core/mail
diff options
context:
space:
mode:
authorVytis Banaitis <vytis.banaitis@gmail.com>2017-02-01 18:41:56 +0200
committerTim Graham <timograham@gmail.com>2017-02-01 11:41:56 -0500
commit8838d4dd498c8f66ea4237fe8a79a5f77d6f95c9 (patch)
treeb75fa27930b8758ad36669b523b084ac09ce290b /django/core/mail
parent0ec4dc91e0e7befdd06aa0613b5d0fbe3c785ee7 (diff)
downloaddjango-8838d4dd498c8f66ea4237fe8a79a5f77d6f95c9.tar.gz
Refs #23919 -- Replaced kwargs.pop() with keyword-only arguments.
Diffstat (limited to 'django/core/mail')
-rw-r--r--django/core/mail/backends/filebased.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/core/mail/backends/filebased.py b/django/core/mail/backends/filebased.py
index b051fe6313..e956a3367a 100644
--- a/django/core/mail/backends/filebased.py
+++ b/django/core/mail/backends/filebased.py
@@ -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.