700 |
lastline = contents.read().rstrip().splitlines()[-1] |
lastline = contents.read().rstrip().splitlines()[-1] |
701 |
# Remove things like "ERROR: " and so on from the last line |
# Remove things like "ERROR: " and so on from the last line |
702 |
lastline = re.sub(r'^(?:[^ :]+:\s+)+', '', lastline) |
lastline = re.sub(r'^(?:[^ :]+:\s+)+', '', lastline) |
703 |
|
# Remove things like " - " (youri output from mgarepo submit) |
704 |
|
lastline = re.sub(r'^\s+-\s+', '', lastline) |
705 |
subjecterror = " (ERROR: %s)" % lastline if lastline else " (ERROR)" |
subjecterror = " (ERROR: %s)" % lastline if lastline else " (ERROR)" |
706 |
else: |
else: |
707 |
subjecterror = "" |
subjecterror = "" |