summaryrefslogtreecommitdiffstats
path: root/mgagnome
diff options
context:
space:
mode:
Diffstat (limited to 'mgagnome')
-rwxr-xr-xmgagnome4
1 files changed, 2 insertions, 2 deletions
diff --git a/mgagnome b/mgagnome
index 16a505e..4dbe61d 100755
--- a/mgagnome
+++ b/mgagnome
@@ -1546,7 +1546,7 @@ def cmd_parse_ftp_release_list(options, parser):
if error:
# XXX - ugly
contents.seek(0)
- lastline = contents.read().rstrip().splitlines()[-1]
+ lastline = contents.read().decode('utf-8').rstrip().splitlines()[-1]
# Remove things like "ERROR: " and so on from the last line
lastline = re.sub(r'^(?:[^ :]+:\s+)+', '', lastline)
# Remove things like " - " (youri output from mgarepo submit)
@@ -1569,7 +1569,7 @@ def cmd_parse_ftp_release_list(options, parser):
cmd = ['/usr/sbin/sendmail', '-oi', '--']
cmd.extend([to])
p = subprocess.Popen(cmd, stdin=subprocess.PIPE)
- p.stdin.write(msg.as_string())
+ p.stdin.write(msg.as_bytes())
p.stdin.flush()
p.stdin.close()
p.wait()