From 27d20332cd5e52105573cb35e2951a55a45e1132 Mon Sep 17 00:00:00 2001 From: Marco Pantaleoni Date: Thu, 17 Aug 2017 16:08:37 +0200 Subject: [PATCH] Enable support for print() for Python 2.x --- test/test_Rabin.py | 4 +++- test/test_delta.py | 2 ++ test/test_insert.py | 2 ++ test/test_streaming.py | 2 ++ test/test_swap.py | 2 ++ test/test_swap_twofile.py | 2 ++ 6 files changed, 13 insertions(+), 1 deletion(-) diff --git a/test/test_Rabin.py b/test/test_Rabin.py index a344dc4..b41b7d4 100755 --- a/test/test_Rabin.py +++ b/test/test_Rabin.py @@ -1,5 +1,7 @@ #!/usr/bin/env python +from __future__ import print_function + import os import random @@ -15,7 +17,7 @@ reached = [] def block_reached(start, length, fingerprint): - # print '(%s, %s, %s)' % (start, length, fingerprint) + # print('(%s, %s, %s)' % (start, length, fingerprint)) reached.append((start, length, fingerprint)) r = Rabin() diff --git a/test/test_delta.py b/test/test_delta.py index 64d1d68..dafe7f8 100755 --- a/test/test_delta.py +++ b/test/test_delta.py @@ -1,5 +1,7 @@ #!/usr/bin/env python +from __future__ import print_function + import os import random diff --git a/test/test_insert.py b/test/test_insert.py index 22db496..d636ea2 100755 --- a/test/test_insert.py +++ b/test/test_insert.py @@ -1,5 +1,7 @@ #!/usr/bin/env python +from __future__ import print_function + import os import random diff --git a/test/test_streaming.py b/test/test_streaming.py index 2ea3b9d..e66b298 100755 --- a/test/test_streaming.py +++ b/test/test_streaming.py @@ -1,5 +1,7 @@ #!/usr/bin/env python +from __future__ import print_function + import os import random import resource diff --git a/test/test_swap.py b/test/test_swap.py index 8d3e8cf..4c40b78 100755 --- a/test/test_swap.py +++ b/test/test_swap.py @@ -1,5 +1,7 @@ #!/usr/bin/env python +from __future__ import print_function + import os import random diff --git a/test/test_swap_twofile.py b/test/test_swap_twofile.py index c024da2..ed9f5ac 100755 --- a/test/test_swap_twofile.py +++ b/test/test_swap_twofile.py @@ -1,5 +1,7 @@ #!/usr/bin/env python +from __future__ import print_function + import os import sys