Skip to content

Commit

Permalink
Document _update_context(dict) --> list of tuples
Browse files Browse the repository at this point in the history
Fix #3024
  • Loading branch information
justinmayer committed Aug 3, 2023
1 parent dcd3045 commit 5435dd0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pelican/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,9 @@ def add_static_links(self, content):
self.context['static_links'] |= content.get_static_links()

def _update_context(self, items):
"""Update the context with the given items from the current
processor.
"""Update the context with the given items from the current processor.
Note that dictionary arguments will be converted to a list of tuples.
"""
for item in items:
value = getattr(self, item)
Expand Down

0 comments on commit 5435dd0

Please sign in to comment.