"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Cheetah/Tools/turbocheetah/cheetahsupport.py" between
cheetah3-3.1.0.tar.gz and cheetah3-3.2.0.tar.gz

About: Cheetah3 is a template engine and code generation tool for e.g. for Web development or Java, SQL, LaTeX, form email ... (written in Python).

cheetahsupport.py  (cheetah3-3.1.0):cheetahsupport.py  (cheetah3-3.2.0)
skipping to change at line 67 skipping to change at line 67
elif template_file: elif template_file:
return self.load_template_file(template_file) return self.load_template_file(template_file)
def load_template_module(self, classname): def load_template_module(self, classname):
ct = self.compiledTemplates ct = self.compiledTemplates
divider = classname.rfind(".") divider = classname.rfind(".")
if divider > -1: if divider > -1:
package = classname[0:divider] package = classname[0:divider]
basename = classname[divider+1:] basename = classname[divider+1:] # noqa: E226,E501 missing whitespa ce around operator
else: else:
raise ValueError("All templates must be in a package") raise ValueError("All templates must be in a package")
if not self.options.get("cheetah.precompiled", False): if not self.options.get("cheetah.precompiled", False):
tfile = pkg_resources.resource_filename(package, tfile = pkg_resources.resource_filename(package,
"%s.%s" % "%s.%s" %
(basename, (basename,
self.extension)) self.extension))
if classname in ct: if classname in ct:
mtime = os.stat(tfile).st_mtime mtime = os.stat(tfile).st_mtime
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)