aboutsummaryrefslogtreecommitdiff
path: root/gbp/rpm/changelog.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-06-30 14:38:26 +0200
committerGuido Günther <agx@sigxcpu.org>2016-06-30 16:45:22 +0200
commit6732732d3336d067bcaf140862158c56b62b8031 (patch)
treeb362b5e1cb0993ecf26a6d9e195bc20d56baebb5 /gbp/rpm/changelog.py
parentc5cfb5ecc4c0fab706a5fb984ebf60dfa34390f2 (diff)
rpm-ch: Make pylint happy
Diffstat (limited to 'gbp/rpm/changelog.py')
-rw-r--r--gbp/rpm/changelog.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/gbp/rpm/changelog.py b/gbp/rpm/changelog.py
index 3ed89f1..504391a 100644
--- a/gbp/rpm/changelog.py
+++ b/gbp/rpm/changelog.py
@@ -46,7 +46,7 @@ class _ChangelogHeader(object):
def __str__(self):
keys = dict(self._data)
keys['time'] = self._data['time'].strftime(
- self._pkgpolicy.Changelog.header_time_format)
+ self._pkgpolicy.Changelog.header_time_format)
try:
return self._pkgpolicy.Changelog.header_format % keys + '\n'
except KeyError as err:
@@ -93,7 +93,6 @@ class _ChangelogSection(object):
self.entries = []
self._trailer = '\n'
-
def __str__(self):
text = str(self.header)
for entry in self.entries:
@@ -180,7 +179,7 @@ class ChangelogParser(object):
raise ChangelogError("Unable to parse changelog header: %s" % text)
try:
time = datetime.datetime.strptime(match.group('ch_time'),
- "%a %b %d %Y")
+ "%a %b %d %Y")
except ValueError:
raise ChangelogError("Unable to parse changelog header: invalid "
"timestamp '%s'" % match.group('ch_time'))
@@ -225,7 +224,6 @@ class ChangelogParser(object):
return entries
-
def parse_section(self, text):
"""Parse one section"""
# Check that the first line(s) look like a changelog header
@@ -243,4 +241,3 @@ class ChangelogParser(object):
section.append_entry(entry)
return section
-