diff options
author | Guido Günther <agx@sigxcpu.org> | 2013-08-28 19:30:12 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2013-08-28 19:30:12 +0200 |
commit | c9d3d93d28f2a1f839770672f5846115d8d0e3c3 (patch) | |
tree | 2b0415593a8ad00a6110134dbdbaee7046481c01 /tests/09_test_write_tree.py | |
parent | 8f073ebccd35f331981c8e2a396c0999de25a0b2 (diff) |
Use open() instead of file()
since the later doesn't exist in python3
Diffstat (limited to 'tests/09_test_write_tree.py')
-rw-r--r-- | tests/09_test_write_tree.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/09_test_write_tree.py b/tests/09_test_write_tree.py index 3534f77e..7147da50 100644 --- a/tests/09_test_write_tree.py +++ b/tests/09_test_write_tree.py @@ -19,7 +19,7 @@ class TestWriteTree(testutils.DebianGitTestRepo): paths = [] for i in range(4): path = os.path.join(self.repo.path, 'testfile%d' % i) - with file(path, 'w') as f: + with open(path, 'w') as f: print >>f, "testdata %d" % i paths.append(path) return paths |