From 8f8fd6c45821d2a46d161e47183edf8be343e445 Mon Sep 17 00:00:00 2001 From: Chris Jerdonek Date: Sat, 31 Mar 2012 10:39:29 -0700 Subject: [PATCH] Renamed custom to spec inside SpecLoader.load(). --- pystache/template_spec.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pystache/template_spec.py b/pystache/template_spec.py index e31b71f8..e657d421 100644 --- a/pystache/template_spec.py +++ b/pystache/template_spec.py @@ -184,7 +184,7 @@ def get_template_path(self, view): return path - def load(self, custom): + def load(self, spec): """ Find and return the template associated to a TemplateSpec instance. @@ -192,12 +192,12 @@ def load(self, custom): Arguments: - custom: a TemplateSpec instance. + spec: a TemplateSpec instance. """ - if custom.template is not None: - return self.loader.unicode(custom.template, custom.template_encoding) + if spec.template is not None: + return self.loader.unicode(spec.template, spec.template_encoding) - path = self.get_template_path(custom) + path = self.get_template_path(spec) - return self.loader.read(path, custom.template_encoding) + return self.loader.read(path, spec.template_encoding)