487
487
# Convert line-endings to UNIX
488
488
stored_patch = re.sub('\r\n?', '\n', self.patch)
489
490
# Strip trailing whitespace
490
491
calculated_patch = re.sub(' *\n', '\n', calculated_patch)
491
492
stored_patch = re.sub(' *\n', '\n', stored_patch)