summaryrefslogtreecommitdiff
path: root/pystache
diff options
context:
space:
mode:
authorxgecko <jonathan@xgecko.com>2012-07-20 16:11:17 -0700
committerxgecko <jonathan@xgecko.com>2012-07-20 16:11:17 -0700
commit131c403be4c8d18ad353319497b55901c6e719e9 (patch)
tree4c40d4f9d5785bfad4c0c3283f8153c065f5313c /pystache
parentae68dc1a863d3562ea85de9616c1b212aaa5ee77 (diff)
downloadpystache-131c403be4c8d18ad353319497b55901c6e719e9.tar.gz
Condensed nested if statements
Diffstat (limited to 'pystache')
-rw-r--r--pystache/locator.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pystache/locator.py b/pystache/locator.py
index 6ffc951..04260bd 100644
--- a/pystache/locator.py
+++ b/pystache/locator.py
@@ -91,9 +91,8 @@ class Locator(object):
if template_extension is None:
template_extension = self.template_extension
- if template_extension is not False:
- if not file_name.endswith(template_extension):
- file_name += os.path.extsep + template_extension
+ if template_extension is not False and not file_name.endswith(template_extension):
+ file_name += os.path.extsep + template_extension
return file_name