"Fossies" - the Fresh Open Source Software Archive  

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

Unicode.py  (cheetah3-3.2.1):Unicode.py  (cheetah3-3.2.2)
skipping to change at line 16 skipping to change at line 16
from shutil import rmtree from shutil import rmtree
import tempfile import tempfile
import unittest import unittest
from Cheetah.Compiler import Compiler from Cheetah.Compiler import Compiler
from Cheetah.Template import Template from Cheetah.Template import Template
from Cheetah import CheetahWrapper from Cheetah import CheetahWrapper
from Cheetah.compat import PY2, unicode, load_module_from_file from Cheetah.compat import PY2, unicode, load_module_from_file
class CommandLineTest(unittest.TestCase): class CommandLineTest(unittest.TestCase):
def createAndCompile(self, source): def createAndCompile(self, source):
sourcefile = '-' fd, sourcefile = tempfile.mkstemp()
while sourcefile.find('-') != -1: os.close(fd)
sourcefile = tempfile.mktemp() os.remove(sourcefile)
sourcefile = sourcefile.replace('-', '_')
if PY2: if PY2:
fd = open('%s.tmpl' % sourcefile, 'w') fd = open('%s.tmpl' % sourcefile, 'w')
else: else:
fd = open('%s.tmpl' % sourcefile, 'w', encoding='utf-8') fd = open('%s.tmpl' % sourcefile, 'w', encoding='utf-8')
fd.write(source) fd.write(source)
fd.close() fd.close()
wrap = CheetahWrapper.CheetahWrapper() wrap = CheetahWrapper.CheetahWrapper()
wrap.main(['cheetah', 'compile', wrap.main(['cheetah', 'compile',
 End of changes. 1 change blocks. 
3 lines changed or deleted 4 lines changed or added

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