def __init__(self, fmt, mapping=None):
try:<EOL><INDENT>self.fmt = unicode(fmt, '<STR_LIT:utf-8>')<EOL><DEDENT>except (TypeError, UnicodeDecodeError):<EOL><INDENT>self.fmt = fmt<EOL><DEDENT>self.mapping = mapping or (lambda _: _)<EOL>self.__engine__ = "<STR_LIT>"<EOL>self.__file__ = None<EOL>self.__text__ = '<STR_LIT>'<EOL>
Create template ADT wrapper object.