Skip to content

Commit

Permalink
Enable support for print() for Python 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
panta committed Aug 17, 2017
1 parent d6fb61f commit 27d2033
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test_Rabin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env python

from __future__ import print_function

import os
import random

Expand All @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions test/test_delta.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env python

from __future__ import print_function

import os
import random

Expand Down
2 changes: 2 additions & 0 deletions test/test_insert.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env python

from __future__ import print_function

import os
import random

Expand Down
2 changes: 2 additions & 0 deletions test/test_streaming.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env python

from __future__ import print_function

import os
import random
import resource
Expand Down
2 changes: 2 additions & 0 deletions test/test_swap.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env python

from __future__ import print_function

import os
import random

Expand Down
2 changes: 2 additions & 0 deletions test/test_swap_twofile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env python

from __future__ import print_function

import os
import sys

Expand Down

0 comments on commit 27d2033

Please sign in to comment.