"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Cheetah/ErrorCatchers.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).

ErrorCatchers.py  (cheetah3-3.1.0):ErrorCatchers.py  (cheetah3-3.2.0)
skipping to change at line 25 skipping to change at line 25
return self._exceptionsToCatch return self._exceptionsToCatch
def warn(self, exc_val, code, rawCode, lineCol): def warn(self, exc_val, code, rawCode, lineCol):
return rawCode return rawCode
# make an alias # make an alias
Echo = ErrorCatcher Echo = ErrorCatcher
class BigEcho(ErrorCatcher): class BigEcho(ErrorCatcher):
def warn(self, exc_val, code, rawCode, lineCol): def warn(self, exc_val, code, rawCode, lineCol):
return "="*15 + "<" + rawCode + " could not be found>" + "="*15 return "="*15 + "<" + rawCode + " could not be found>" + "="*15 # noqa: E226,E501 missing whitespace around operator
class KeyError(ErrorCatcher): class KeyError(ErrorCatcher):
def warn(self, exc_val, code, rawCode, lineCol): def warn(self, exc_val, code, rawCode, lineCol):
raise KeyError( raise KeyError(
"no '%s' in this Template Object's Search List" % rawCode) "no '%s' in this Template Object's Search List" % rawCode)
class ListErrors(ErrorCatcher): class ListErrors(ErrorCatcher):
"""Accumulate a list of errors.""" """Accumulate a list of errors."""
_timeFormat = "%c" _timeFormat = "%c"
 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)