diff options
author | Guido Günther <agx@sigxcpu.org> | 2015-02-20 09:21:26 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2015-02-20 12:57:15 +0100 |
commit | 7f1b1c6f0a8837ff9175190e8fe254ef64166b88 (patch) | |
tree | 481ea1ceccc75c576107b41782044de3e9f89ab9 | |
parent | 2778b8680783e844934b79bcdf06f1128980cbdf (diff) |
Use open() instead of file()
The former is supported with python3
-rw-r--r-- | tests/13_test_gbp_pq.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/13_test_gbp_pq.py b/tests/13_test_gbp_pq.py index d9fa375e..57ce83b7 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^') |