Navigation Menu

Skip to content

Commit

Permalink
pydocstyle
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jun 4, 2017
1 parent fd1de9b commit 9b0dd10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nikola/utils.py
Expand Up @@ -2103,7 +2103,8 @@ def rss_writer(rss_obj, output_path):
def map_metadata(meta, key, config):
"""Map metadata from other platforms to Nikola names.
This uses the METADATA_MAPPING setting (via ``config``) and modifies the dict in place."""
This uses the METADATA_MAPPING setting (via ``config``) and modifies the dict in place.
"""
for foreign, ours in config['METADATA_MAPPING'].get(key, {}).items():
if foreign in meta:
meta[ours] = meta[foreign]

0 comments on commit 9b0dd10

Please sign in to comment.