projects
/
tools
/
git-buildpackage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2778b86
)
Use open() instead of file()
author
Guido Günther
<agx@sigxcpu.org>
Fri, 20 Feb 2015 08:21:26 +0000
(09:21 +0100)
committer
Guido 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
patch
|
blob
|
history
diff --git
a/tests/13_test_gbp_pq.py
b/tests/13_test_gbp_pq.py
index d9fa375eec5c1a3a91658e46d9581c7fab9e534c..57ce83b7184f5ffa607f5c00509b1fb277d6a26c 100644
(file)
--- 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^')