diff options
Diffstat (limited to 'mgagnome')
-rwxr-xr-x | mgagnome | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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() |