From c9d3d93d28f2a1f839770672f5846115d8d0e3c3 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Wed, 28 Aug 2013 19:30:12 +0200 Subject: Use open() instead of file() since the later doesn't exist in python3 --- tests/07_test_fastimport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/07_test_fastimport.py') 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(): -- cgit v1.2.3