Use open() instead of file()
authorGuido Günther <agx@sigxcpu.org>
Fri, 20 Feb 2015 08:21:26 +0000 (09:21 +0100)
committerGuido Günther <agx@sigxcpu.org>
Fri, 20 Feb 2015 11:57:15 +0000 (12:57 +0100)
The former is supported with python3

tests/13_test_gbp_pq.py

index d9fa375eec5c1a3a91658e46d9581c7fab9e534c..57ce83b7184f5ffa607f5c00509b1fb277d6a26c 100644 (file)
@@ -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^')