diff options
author | Guido Günther <agx@sigxcpu.org> | 2015-02-19 11:29:43 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2015-02-20 12:39:00 +0100 |
commit | 0a4725c045a5a55592dafd41c6ef6f9bab4791cd (patch) | |
tree | ca9f3e8bea00d455e8f8b2c21bba947adc16b976 /tests | |
parent | f7afe1d06c56748c6d9bfcae6166beba21bb3e53 (diff) |
Don't use print as a statement
via
2to3-3.4 -w -f print .
to work towards python3 support
Gbp-Dch: Ignore
Diffstat (limited to 'tests')
-rw-r--r-- | tests/09_test_write_tree.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 |