aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/2ping/files/patch-twoping_crc32.py
blob: 02d4ad50f6c3d857d01ba482d19c1b3cc1fd4534 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- twoping/crc32.py.orig	2015-10-25 05:57:43 UTC
+++ twoping/crc32.py
@@ -69,7 +69,7 @@ if __name__ == '__main__':
         c = new()
         for line in sys.stdin.readlines():
             c.update(line)
-        print c.hexdigest()
+        print(c.hexdigest())
     else:
         for file in files:
             with open(file) as f:
@@ -77,6 +77,6 @@ if __name__ == '__main__':
                 for line in f.readlines():
                     c.update(line)
                 if len(files) > 1:
-                    print '%s\t%s' % (c.hexdigest(), file)
+                    print('%s\t%s' % (c.hexdigest(), file))
                 else:
-                    print c.hexdigest()
+                    print(c.hexdigest())