[tor-commits] [fallback-scripts/master] lookup: py3: Use py3's print function

teor at torproject.org teor at torproject.org
Mon Jan 20 05:32:01 UTC 2020


commit 108d97403fb1194952aab2dd359150f9dbd3f82d
Author: teor <teor at torproject.org>
Date:   Mon Dec 2 14:55:05 2019 +1000

    lookup: py3: Use py3's print function
    
    Part of 28863.
---
 lookupFallbackDirContact.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lookupFallbackDirContact.py b/lookupFallbackDirContact.py
index 88bad62..db17bd7 100755
--- a/lookupFallbackDirContact.py
+++ b/lookupFallbackDirContact.py
@@ -11,7 +11,7 @@ import sys
 import stem.descriptor.remote as remote
 
 if len(sys.argv) <= 1:
-  print "Usage: {} fingerprint ...".format(sys.argv[0])
+  print("Usage: {} fingerprint ...".format(sys.argv[0]))
   sys.exit(-1)
 
 # we need descriptors, because the consensus does not have contact infos
@@ -22,8 +22,8 @@ for d in descriptor_list:
   assert d.fingerprint in sys.argv[1:]
   descriptor_list_fingerprints.append(d.fingerprint)
   contact = d.contact if d.contact else "(no contact)"
-  print "{} {}".format(d.fingerprint, contact)
+  print("{} {}".format(d.fingerprint, contact))
 
 for fingerprint in sys.argv[1:]:
   if fingerprint not in descriptor_list_fingerprints:
-    print "{} # not found in current descriptors".format(fingerprint)
+    print("{} # not found in current descriptors".format(fingerprint))





More information about the tor-commits mailing list