Skip to content

Commit

Permalink
Merge pull request bottlepy#206 from iurisilvio/master
Browse files Browse the repository at this point in the history
Misspellling: extentions -> extensions
  • Loading branch information
defnull committed Sep 4, 2011
2 parents 0cdb060 + 997794c commit c363d1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bottle.py
Original file line number Diff line number Diff line change
Expand Up @@ -2281,7 +2281,7 @@ def __init__(self, message):

class BaseTemplate(object):
""" Base class and minimal API for template adapters """
extentions = ['tpl','html','thtml','stpl']
extensions = ['tpl','html','thtml','stpl']
settings = {} #used in prepare()
defaults = {} #used in render()

Expand Down Expand Up @@ -2320,7 +2320,7 @@ def search(cls, name, lookup=[]):
fname = os.path.join(spath, name)
if os.path.isfile(fname):
return fname
for ext in cls.extentions:
for ext in cls.extensions:
if os.path.isfile('%s.%s' % (fname, ext)):
return '%s.%s' % (fname, ext)

Expand Down

0 comments on commit c363d1a

Please sign in to comment.