diff options
author | Guido Günther <agx@sigxcpu.org> | 2013-08-28 19:30:12 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2013-08-28 19:30:12 +0200 |
commit | c9d3d93d28f2a1f839770672f5846115d8d0e3c3 (patch) | |
tree | 2b0415593a8ad00a6110134dbdbaee7046481c01 /tests/testutils.py | |
parent | 8f073ebccd35f331981c8e2a396c0999de25a0b2 (diff) |
Use open() instead of file()
since the later doesn't exist in python3
Diffstat (limited to 'tests/testutils.py')
-rw-r--r-- | tests/testutils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testutils.py b/tests/testutils.py index 617a7ab..c863195 100644 --- a/tests/testutils.py +++ b/tests/testutils.py @@ -38,7 +38,7 @@ class DebianGitTestRepo(unittest.TestCase): if not os.path.exists(d): os.makedirs(d) - with file(path, 'w+') as f: + with open(path, 'w+') as f: content == None or f.write(content) self.repo.add_files(name, force=True) self.repo.commit_files(path, msg or "added %s" % name) |