Ensure that markup is a tuple.

`self.markup` is a list when using the `-m|--markup` cli option, but testing the
extension with `endswith` works only with tuples.
This commit is contained in:
Simon Conseil 2013-05-21 17:15:56 +02:00
commit 3f91165f09
2 changed files with 23 additions and 5 deletions

View file

@ -96,7 +96,7 @@ class Generator(object):
extensions are allowed)
"""
if extensions is None:
extensions = self.markup
extensions = tuple(self.markup)
basename = os.path.basename(path)
if extensions is False or basename.endswith(extensions):
return True