diff options
author | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-07-23 07:06:03 -0700 |
---|---|---|
committer | Chris Jerdonek <chris.jerdonek@gmail.com> | 2012-07-23 07:06:03 -0700 |
commit | 440064b0bec6ce4afe5874f22f345c583793cc5d (patch) | |
tree | edc095e8da71c65dd01fb05fef4e30e4b55cd359 | |
parent | 06fa9e75aec3dc60ca589cd2b765075d4b053101 (diff) | |
download | pystache-440064b0bec6ce4afe5874f22f345c583793cc5d.tar.gz |
Adjust Locator.find_file() docstring and argument names.
-rw-r--r-- | pystache/locator.py | 16 |
1 files changed, 14 insertions, 2 deletions
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) |