comparison piecrust/templating/jinjaengine.py @ 5:474c9882decf

Upgrade to Python 3.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 11 Aug 2014 22:36:47 -0700
parents f485ba500df3
children 343d08ef5668
comparison
equal deleted inserted replaced
4:7dc71c2dc9a8 5:474c9882decf
34 tse.lineno += line_offset 34 tse.lineno += line_offset
35 if filename: 35 if filename:
36 tse.filename = filename 36 tse.filename = filename
37 import sys 37 import sys
38 _, __, traceback = sys.exc_info() 38 _, __, traceback = sys.exc_info()
39 raise tse, None, traceback 39 raise tse.with_traceback(traceback)
40 40
41 def renderFile(self, paths, data): 41 def renderFile(self, paths, data):
42 self._ensureLoaded() 42 self._ensureLoaded()
43 tpl = None 43 tpl = None
44 logger.debug("Looking for template: %s" % paths) 44 logger.debug("Looking for template: %s" % paths)