Merge pull request #141 from nickgashkov/fix/six-print
Fix test incompatibility with Python 3 versions
This commit is contained in:
commit
4b0b1da2eb
@ -13,7 +13,7 @@ try:
|
||||
except TemplateError as the_error:
|
||||
six.print_(six.text_type(the_error))
|
||||
if hasattr(the_error, 'docx_context'):
|
||||
print "Context:"
|
||||
six.print_("Context:")
|
||||
for line in the_error.docx_context:
|
||||
six.print_(line)
|
||||
tpl.save('test_files/template_error.docx')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user