Traceback (most recent call last):


 "template2.py", line 24, in <module>

tpl.render(context)


 "/usr/lib/python2.6/site-packages/docxtpl/__init__.py", line 126, in rend

xml_src = self.build_xml(context,jinja_env)


 "/usr/lib/python2.6/site-packages/docxtpl/__init__.py", line 90, in build

xml = self.patch_xml(xml)


 "/usr/lib/python2.6/site-packages/docxtpl/__init__.py", line 45, in patch

src_xml = re.sub(r'(?<={)(<[^>]*>)+(?=[\{%])|(?<=[%\}])(<[^>]*>)+(?=\})','',
TypeError: sub() got an unexpected keyword argument 'flags'

Traceback (most recent call last):


 "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest

self.test(*self.arg)
TypeError: test_filter_varargs() takes exactly 3 arguments (0 given)
