summaryrefslogtreecommitdiff
path: root/django/template
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/template
parent0ec4dc91e0e7befdd06aa0613b5d0fbe3c785ee7 (diff)
Refs #23919 -- Replaced kwargs.pop() with keyword-only arguments.
Diffstat (limited to 'django/template')
-rw-r--r--django/template/loader_tags.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/template/loader_tags.py b/django/template/loader_tags.py
index 6a45b8c985..a0b0de54d0 100644
--- a/django/template/loader_tags.py
+++ b/django/template/loader_tags.py
@@ -157,10 +157,10 @@ class ExtendsNode(Node):
class IncludeNode(Node):
context_key = '__include_context'
- def __init__(self, template, *args, **kwargs):
+ def __init__(self, template, *args, extra_context=None, isolated_context=False, **kwargs):
self.template = template
- self.extra_context = kwargs.pop('extra_context', {})
- self.isolated_context = kwargs.pop('isolated_context', False)
+ self.extra_context = extra_context or {}
+ self.isolated_context = isolated_context
super().__init__(*args, **kwargs)
def render(self, context):