Browse Source

Remove unused 'template' arg to _iter_loaders()

After last changes _iter_loaders makes no use of the 'template' argument.
pull/1226/head
Mieszko 10 years ago
parent
commit
d63c9dd8b0
  1. 2
      flask/templating.py

2
flask/templating.py

@ -75,7 +75,7 @@ class DispatchingJinjaLoader(BaseLoader):
return tmplrv return tmplrv
raise TemplateNotFound(template) raise TemplateNotFound(template)
def _iter_loaders(self, template): def _iter_loaders(self):
loader = self.app.jinja_loader loader = self.app.jinja_loader
if loader is not None: if loader is not None:
yield self.app, loader yield self.app, loader

Loading…
Cancel
Save