summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org>2018-11-05 15:05:17 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2018-11-05 15:05:17 (GMT)
commit3bfbc03882eea9e02189378edb8b4dec896e9895 (patch) (side-by-side diff)
tree1041b4ccce145bb2a17cdd35989f2f4695d1f029
parentb40849278f8868a0ff9a7ec277b5ce85bdc9766b (diff)
downloadreleaselogparser-3bfbc03882eea9e02189378edb8b4dec896e9895.tar.gz
releaselogparser-3bfbc03882eea9e02189378edb8b4dec896e9895.tar.bz2
Bugfix
* releaselogparser/__init__.py (ReleaseHistory): Convert line to utf-8, if necessary.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--releaselogparser/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/releaselogparser/__init__.py b/releaselogparser/__init__.py
index 015f796..51ee53c 100644
--- a/releaselogparser/__init__.py
+++ b/releaselogparser/__init__.py
@@ -161,6 +161,8 @@ class ReleaseHistory(object):
i = 0
for line in lines:
+ if isinstance(line, bytes):
+ line = line.decode('utf-8')
(d, v, r) = self.parse_header(line)
if d:
if date:

Return to:

Send suggestions and report system problems to the System administrator.