diff --git a/nikola/plugins/compile/rest/__init__.py b/nikola/plugins/compile/rest/__init__.py index f413ba335c..d6887b1229 100644 --- a/nikola/plugins/compile/rest/__init__.py +++ b/nikola/plugins/compile/rest/__init__.py @@ -104,7 +104,7 @@ def compile_html(self, source, dest, is_two_file=True): out_file.write(output) deps_path = dest + '.dep' if deps.list: - deps.list = [p for p in deps.list if p != dest] #Don't depend on yourself (#1671) + 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: