[py3k] print function (related to #7794111)
authorRémi Cardona <remi.cardona@logilab.fr>
Wed, 16 Sep 2015 11:08:21 +0200
changeset 345 e7672f2c187e
parent 341 919388e7fe25
child 346 bc416e82ec14
[py3k] print function (related to #7794111)
sobjects.py
--- a/sobjects.py	Thu Jun 11 15:23:16 2015 +0200
+++ b/sobjects.py	Wed Sep 16 11:08:21 2015 +0200
@@ -1,4 +1,5 @@
 # -*- coding: utf-8 -*-
+from __future__ import print_function
 
 import sys
 import re
@@ -78,7 +79,7 @@
         if is_img_spy(img):
             img.drop_tree()
         elif img.get('height') == '1' and img.get('width') == '1':
-            print tostring(img), 'is probably a spy'
+            print(tostring(img), 'is probably a spy')
     for anchor in root.findall('.//a'):
         if is_tweetmeme_spy(anchor):
             anchor.drop_tree()