"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Cheetah/Tests/Regressions.py" between
cheetah3-3.2.2.tar.gz and cheetah3-3.2.3.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).

Regressions.py  (cheetah3-3.2.2):Regressions.py  (cheetah3-3.2.3)
#!/usr/bin/env python
try: try:
from cgi import escape as html_escape from cgi import escape as html_escape
except ImportError: # Python 3.8+ except ImportError: # Python 3.8+
from html import escape as html_escape from html import escape as html_escape
import unittest import unittest
import Cheetah.NameMapper import Cheetah.NameMapper
import Cheetah.Template import Cheetah.Template
from Cheetah.compat import unicode # noqa from Cheetah.compat import unicode # noqa
skipping to change at line 248 skipping to change at line 246
if _v is not None: write(_filter(_v, rawExpr=u'$output')) if _v is not None: write(_filter(_v, rawExpr=u'$output'))
######################################## ########################################
## END - generated method body ## END - generated method body
return _dummyTrans and trans.response().getvalue() or "" return _dummyTrans and trans.response().getvalue() or ""
''' '''
template = Cheetah.Template.Template.compile(template) template = Cheetah.Template.Template.compile(template)
assert template assert template
assert template.testMethod(output='bug') assert template.testMethod(output='bug')
if __name__ == '__main__':
unittest.main()
 End of changes. 2 change blocks. 
2 lines changed or deleted 0 lines changed or added

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