Skip to content
Permalink
Browse files

optimization

  • Loading branch information
ralsina committed Jul 19, 2016
1 parent f46d73c commit 83ea04d45eded3887840033d9781a152a942ed94
Showing with 2 additions and 2 deletions.
  1. +2 −2 nikola/image_processing.py
@@ -66,8 +66,6 @@ def _fill_exif_tag_names(self):

def filter_exif(self, exif, whitelist):
"""Filter EXIF data as described in the documentation."""
self._fill_exif_tag_names()
exif = exif.copy() # Don't modify in-place, it's rude

# Scenario 1: keep everything
if whitelist == {'*': '*'}:
@@ -78,6 +76,8 @@ def filter_exif(self, exif, whitelist):
return None

# Scenario 3: keep some
self._fill_exif_tag_names()
exif = exif.copy() # Don't modify in-place, it's rude
for k in list(exif.keys()):
if type(exif[k]) != dict:
pass # At least thumbnails have no fields

0 comments on commit 83ea04d

Please sign in to comment.