From 440064b0bec6ce4afe5874f22f345c583793cc5d Mon Sep 17 00:00:00 2001 From: Chris Jerdonek Date: Mon, 23 Jul 2012 07:06:03 -0700 Subject: Adjust Locator.find_file() docstring and argument names. --- pystache/locator.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'pystache') diff --git a/pystache/locator.py b/pystache/locator.py index 9bb095a..15fd274 100644 --- a/pystache/locator.py +++ b/pystache/locator.py @@ -123,17 +123,29 @@ class Locator(object): return path - def find_file(self, template_file, search_dirs): + def find_file(self, file_name, search_dirs): """ Return the path to a template with the given file name. + Arguments: + + file_name: the file name of the template. + + search_dirs: the list of directories in which to search. + """ - return self._find_path_required(search_dirs, template_file) + return self._find_path_required(search_dirs, file_name) def find_name(self, template_name, search_dirs): """ Return the path to a template with the given name. + Arguments: + + template_name: the name of the template. + + search_dirs: the list of directories in which to search. + """ file_name = self.make_file_name(template_name) -- cgit v1.2.1