Merge pull request #141 from nickgashkov/fix/six-print

Fix test incompatibility with Python 3 versions
This commit is contained in:
Eric Lapouyade 2018-09-11 15:44:37 +02:00 committed by GitHub
commit 4b0b1da2eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')