Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Ensuring that config_dependencies is a list of strings.
  • Loading branch information
felixfontein committed Jan 20, 2015
1 parent 300c645 commit c59f5b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nikola/plugins/compile/markdown/__init__.py
Expand Up @@ -64,7 +64,7 @@ def set_site(self, site):
self.extensions.append(plugin_info.plugin_object)
plugin_info.plugin_object.short_help = plugin_info.description

self.config_dependencies.append(site.config.get("MARKDOWN_EXTENSIONS"))
self.config_dependencies.append(str(sorted(site.config.get("MARKDOWN_EXTENSIONS"))))
return super(CompileMarkdown, self).set_site(site)

def compile_html(self, source, dest, is_two_file=True):
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/compile/pandoc.py
Expand Up @@ -46,7 +46,7 @@ class CompilePandoc(PageCompiler):
name = "pandoc"

def set_site(self, site):
self.config_dependencies = [self.site.config['PANDOC_OPTIONS']]
self.config_dependencies = [str(self.site.config['PANDOC_OPTIONS'])]

def compile_html(self, source, dest, is_two_file=True):
makedirs(os.path.dirname(dest))
Expand Down

1 comment on commit c59f5b9

@Kwpolska
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

json.dumps() would be nicer, but this doesn’t really matter here.

Please sign in to comment.