aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/15_test_DebianSource.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2013-08-28 19:30:12 +0200
committerGuido Günther <agx@sigxcpu.org>2013-08-28 19:30:12 +0200
commitc9d3d93d28f2a1f839770672f5846115d8d0e3c3 (patch)
tree2b0415593a8ad00a6110134dbdbaee7046481c01 /tests/15_test_DebianSource.py
parent8f073ebccd35f331981c8e2a396c0999de25a0b2 (diff)
Use open() instead of file()
since the later doesn't exist in python3
Diffstat (limited to 'tests/15_test_DebianSource.py')
-rw-r--r--tests/15_test_DebianSource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/15_test_DebianSource.py b/tests/15_test_DebianSource.py
index 4896b319..feca6256 100644
--- a/tests/15_test_DebianSource.py
+++ b/tests/15_test_DebianSource.py
@@ -52,7 +52,7 @@ class TestDebianSource(testutils.DebianGitTestRepo):
self.assertRaises(DebianSourceError,
source.is_native)
- with file('debian/changelog', 'w') as f:
+ with open('debian/changelog', 'w') as f:
f.write("""git-buildpackage (0.2.3) git-buildpackage; urgency=low
* git doesn't like '~' in tag names so replace this with a dot when tagging