Skip to content

Commit

Permalink
lit
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Aug 20, 2016
1 parent 70e17e7 commit e543e7f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions nikola/post.py
Expand Up @@ -161,7 +161,6 @@ def __init__(
for lang in sorted(self.translated_to):
default_metadata.update(self.meta[lang])


# Load data field from metadata
self.data = Functionary(lambda: None, self.default_lang)
for lang in self.translations:
Expand Down Expand Up @@ -231,8 +230,6 @@ def __init__(
self.use_in_feeds = use_in_feeds and not is_draft and not is_private \
and not self.publish_later



# Register potential extra dependencies
self.compiler.register_extra_dependencies(self)

Expand Down
1 change: 1 addition & 0 deletions nikola/utils.py
Expand Up @@ -1915,6 +1915,7 @@ def prefixed_lines():
yield (prefix + line if predicate(line) else line)
return ''.join(prefixed_lines())


def load_data(path):
"""Given path to a file, load data from it."""
ext = os.path.splitext(path)[-1]
Expand Down

0 comments on commit e543e7f

Please sign in to comment.