Skip to content

Commit 23b4580

Browse files
committedSep 7, 2015
Fixed stupid error.
1 parent 993f63d commit 23b4580

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎nikola/plugins/command/import_wordpress.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -763,10 +763,10 @@ def _create_metadata(self, status, excerpt, tags, categories, post_name=None):
763763
def _sanitize(self, tag, is_category):
764764
if self.tag_saniziting_strategy == 'lower':
765765
return tag.lower()
766-
if tag.lower() not in _tag_sanitize_map[is_category]:
767-
_tag_sanitize_map[is_category][tag.lower()] = [tag]
766+
if tag.lower() not in self._tag_sanitize_map[is_category]:
767+
self._tag_sanitize_map[is_category][tag.lower()] = [tag]
768768
return tag
769-
previous = _tag_sanitize_map[is_category][tag.lower()]
769+
previous = self._tag_sanitize_map[is_category][tag.lower()]
770770
if self.tag_saniziting_strategy == 'first':
771771
if tag != previous[0]:
772772
LOGGER.warn("Changing spelling of {0} name '{1}' to {2}.".format('category' if is_category else 'tag', tag, previous[0]))

0 commit comments

Comments
 (0)
Please sign in to comment.