From 7f1b1c6f0a8837ff9175190e8fe254ef64166b88 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 20 Feb 2015 09:21:26 +0100 Subject: Use open() instead of file() The former is supported with python3 --- tests/13_test_gbp_pq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/13_test_gbp_pq.py b/tests/13_test_gbp_pq.py index d9fa375..57ce83b 100644 --- a/tests/13_test_gbp_pq.py +++ b/tests/13_test_gbp_pq.py @@ -121,7 +121,7 @@ class TestWritePatch(testutils.DebianGitTestRepo): expected = os.path.join(str(d), 'gbptest', 'added-foo.patch') self.assertTrue(os.path.exists(expected)) - logging.debug(file(expected).read()) + logging.debug(open(expected).read()) # Reapply the patch to a new branch self.repo.create_branch('testapply', 'HEAD^') -- cgit v1.2.3