]> git.phdru.name Git - mimedecode.git/commitdiff
Use print function for Python 3 compatibility
authorOleg Broytman <phd@phdru.name>
Mon, 25 Jul 2016 21:32:39 +0000 (00:32 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 25 Jul 2016 21:32:39 +0000 (00:32 +0300)
test/html2txt.py

index a15c538572b4ae8b5e153992dc3d7883987bf371..4fa49f8cb931067cee9c43fe4f43c949d26c1bed 100755 (executable)
@@ -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)