diff options
-rwxr-xr-x | mgagnome | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -695,7 +695,7 @@ def cmd_parse_ftp_release_list(options, parser): if error: # XXX - ugly contents.seek(0) - lastline = contents.read().splitlines()[-1] + lastline = contents.read().rstrip().splitlines()[-1] # Remove things like "ERROR: " and so on from the last line lastline = re.sub(r'^(?:[^ :]+:\s+)+', '', lastline) subjecterror = " (ERROR: %s)" % lastline if lastline else " (ERROR)" @@ -850,4 +850,5 @@ def main(): sys.exit(0) if __name__ == "__main__": + os.environ['PYTHONUNBUFFERED'] = '1' main() |