aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/07_test_fastimport.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2013-08-28 19:30:12 +0200
committerGuido Günther <agx@sigxcpu.org>2013-08-28 19:30:12 +0200
commitc9d3d93d28f2a1f839770672f5846115d8d0e3c3 (patch)
tree2b0415593a8ad00a6110134dbdbaee7046481c01 /tests/07_test_fastimport.py
parent8f073ebccd35f331981c8e2a396c0999de25a0b2 (diff)
Use open() instead of file()
since the later doesn't exist in python3
Diffstat (limited to 'tests/07_test_fastimport.py')
-rw-r--r--tests/07_test_fastimport.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/07_test_fastimport.py b/tests/07_test_fastimport.py
index 42824f94..0a14d38d 100644
--- a/tests/07_test_fastimport.py
+++ b/tests/07_test_fastimport.py
@@ -38,7 +38,7 @@ def test_add_file():
fastimport.deleteall()
testfile = os.path.join(repo.path, '.git', 'description')
fastimport.add_file('./testfile',
- file(testfile),
+ open(testfile),
os.path.getsize(testfile))
def test_add_symlink():