From: Oleg Broytman Date: Mon, 25 Jul 2016 21:32:39 +0000 (+0300) Subject: Use print function for Python 3 compatibility X-Git-Tag: 2.7.0~40 X-Git-Url: https://git.phdru.name/?p=mimedecode.git;a=commitdiff_plain;h=059486f5e3d34dd43c49e8ec16cb2429e76e39af Use print function for Python 3 compatibility --- diff --git a/test/html2txt.py b/test/html2txt.py index a15c538..4fa49f8 100755 --- a/test/html2txt.py +++ b/test/html2txt.py @@ -1,4 +1,5 @@ #! /usr/bin/env python +from __future__ import print_function import sys from m_lib.net.www.html import HTMLFilter @@ -10,4 +11,4 @@ filter = HTMLFilter() filter.feed(html) filter.close() -print filter.accumulator +print(filter.accumulator)