summaryrefslogtreecommitdiff
path: root/gbp/deb/changelog.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/deb/changelog.py')
-rw-r--r--gbp/deb/changelog.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gbp/deb/changelog.py b/gbp/deb/changelog.py
index 356f74d7..9b3c03bb 100644
--- a/gbp/deb/changelog.py
+++ b/gbp/deb/changelog.py
@@ -166,7 +166,7 @@ class ChangeLog(object):
@return: C{True} if the version has an epoch, C{False} otherwise
@rtype: C{bool}
"""
- return self._cp.has_key('Epoch')
+ return 'Epoch' in self._cp
@property
def author(self):
@@ -264,11 +264,11 @@ class ChangeLog(object):
new_cl = open("debian/changelog.bak", "w")
for line in old_cl:
if line == " * [[[insert-git-dch-commit-message-here]]]\n":
- print >> new_cl, " * " + msg[0]
+ print(" * " + msg[0], file=new_cl)
for line in msg[1:]:
- print >> new_cl, " " + line
+ print(" " + line, file=new_cl)
else:
- print >> new_cl, line,
+ print(line, end=' ', file=new_cl)
os.rename("debian/changelog.bak", "debian/changelog")
def add_entry(self, msg, author=None, email=None, dch_options=[]):