summaryrefslogtreecommitdiff
path: root/tests/test_GitVfs.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/test_GitVfs.py
parent8f073ebccd35f331981c8e2a396c0999de25a0b2 (diff)
Use open() instead of file()
since the later doesn't exist in python3
Diffstat (limited to 'tests/test_GitVfs.py')
-rw-r--r--tests/test_GitVfs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_GitVfs.py b/tests/test_GitVfs.py
index dda156d..7004db1 100644
--- a/tests/test_GitVfs.py
+++ b/tests/test_GitVfs.py
@@ -26,7 +26,7 @@ def test_read():
>>> import os, gbp.git.vfs
>>> repo_dir = context.new_tmpdir(__name__)
>>> repo = gbp.git.GitRepository.create(str(repo_dir))
- >>> f = file(os.path.join(repo.path, 'foo.txt'), 'w')
+ >>> f = open(os.path.join(repo.path, 'foo.txt'), 'w')
>>> content = 'al pha\\na\\nb\\nc'
>>> f.write('al pha\\na\\nb\\nc')
>>> f.close()