Skip to content
Permalink
Browse files
Forgot to remove method.
  • Loading branch information
felixfontein committed Feb 16, 2017
1 parent 13424f6 commit cfd953eb85309276ba651efe40905acd0e123c3e
Showing with 0 additions and 15 deletions.
  1. +0 −15 nikola/post.py
@@ -910,21 +910,6 @@ def formatted_updated(self, date_format):
"""Return the updated date as unicode."""
return self.formatted_date(date_format, self.updated)

@staticmethod
def write_depfile(dest, deps_list, post=None, lang=None):
"""Write a depfile for a given language."""
if post is None or lang is None:
deps_path = dest + '.dep'
else:
deps_path = post.compiler.get_dep_filename(post, lang)
if deps_list or (post.compiler.use_dep_file if post else False):
deps_list = [p for p in deps_list if p != dest] # Don't depend on yourself (#1671)
with io.open(deps_path, "w+", encoding="utf8") as deps_file:
deps_file.write('\n'.join(deps_list))
else:
if os.path.isfile(deps_path):
os.unlink(deps_path)

def deps(self, lang):
"""Return a list of file dependencies to build this post's page."""
deps = super(Post, self).deps(lang)

0 comments on commit cfd953e

Please sign in to comment.