summaryrefslogtreecommitdiff
path: root/gbp/git
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 /gbp/git
parent8f073ebccd35f331981c8e2a396c0999de25a0b2 (diff)
Use open() instead of file()
since the later doesn't exist in python3
Diffstat (limited to 'gbp/git')
-rw-r--r--gbp/git/repository.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py
index 3fe8d6f..a9204c5 100644
--- a/gbp/git/repository.py
+++ b/gbp/git/repository.py
@@ -1653,7 +1653,7 @@ class GitRepository(object):
raise GitRepositoryError("Error running git init: %s" % stderr)
if description:
- with file(os.path.join(abspath, git_dir, "description"), 'w') as f:
+ with open(os.path.join(abspath, git_dir, "description"), 'w') as f:
description += '\n' if description[-1] != '\n' else ''
f.write(description)
return klass(abspath)