Skip to content
Permalink
Browse files
pydocstyle
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jun 4, 2017
1 parent fd1de9b commit 9b0dd100aa736be31cd3dc5e38c7b63117eac20a
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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.