From 0a4725c045a5a55592dafd41c6ef6f9bab4791cd Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Thu, 19 Feb 2015 11:29:43 +0100 Subject: Don't use print as a statement via 2to3-3.4 -w -f print . to work towards python3 support Gbp-Dch: Ignore --- tests/09_test_write_tree.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/09_test_write_tree.py b/tests/09_test_write_tree.py index 7147da5..314d76f 100644 --- a/tests/09_test_write_tree.py +++ b/tests/09_test_write_tree.py @@ -2,6 +2,8 @@ """Test L{GitRepository}'s write_tree method""" +from __future__ import print_function + from . import context import os @@ -20,7 +22,7 @@ class TestWriteTree(testutils.DebianGitTestRepo): for i in range(4): path = os.path.join(self.repo.path, 'testfile%d' % i) with open(path, 'w') as f: - print >>f, "testdata %d" % i + print("testdata %d" % i, file=f) paths.append(path) return paths -- cgit v1.2.3