aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/patch_series.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-08-02 01:32:37 -0300
committerGuido Günther <agx@sigxcpu.org>2017-08-02 10:35:05 -0300
commite352cb26730467cb72ed186107a26d3dee77d122 (patch)
treef032c8409dfdf0efdd849147a331b37ee9a8d832 /gbp/patch_series.py
parentd9003c7c7ba5c65b3ad35b3aee589975c28c1270 (diff)
patch_series: port to python3
Diffstat (limited to 'gbp/patch_series.py')
-rw-r--r--gbp/patch_series.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gbp/patch_series.py b/gbp/patch_series.py
index 94699572..21b2ad63 100644
--- a/gbp/patch_series.py
+++ b/gbp/patch_series.py
@@ -1,6 +1,6 @@
# vim: set fileencoding=utf-8 :
#
-# (C) 2011,2015 Guido Guenther <agx@sigxcpu.org>
+# (C) 2011,2015,2017 Guido Guenther <agx@sigxcpu.org>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@@ -68,12 +68,13 @@ class Patch(object):
shell=True,
stdout=subprocess.PIPE).stdout
for line in pipe:
+ line = line.decode()
if ':' in line:
rfc_header, value = line.split(" ", 1)
header = rfc_header[:-1].lower()
self.info[header] = value.strip()
try:
- self.long_desc = "".join([line for line in body])
+ self.long_desc = "".join([l.decode() for l in body])
body.close()
except IOError as msg:
raise GbpError("Failed to read patch header of '%s': %s" %