diff --git a/pystache/locator.py b/pystache/locator.py index 30c5b01e..364b6d55 100644 --- a/pystache/locator.py +++ b/pystache/locator.py @@ -91,7 +91,7 @@ def make_file_name(self, template_name, template_extension=None): if template_extension is None: template_extension = self.template_extension - if template_extension is not False: + if template_extension: file_name += os.path.extsep + template_extension return file_name