+ if self.sort >= 0: # If sorted, truncate the diff output and show the unsorted version
+ difflen = 0;
+ for line in diff:
+ if difflen<250:
+ print(line)
+ difflen += 1
+ if difflen > 100:
+ print("(diff truncated after 250 lines)")
+ print("Unsorted observed output:\n")
+ for line in stdcpy:
+ print(line)
+ else: # If not sorted, just display the diff
+ for line in diff:
+ print(line)
+