def remove_debug_line_numbers(contents):
  lines = contents.splitlines()
  # split each line on ":"
  lines = [l.split(":", 3) for l in lines]
  # join each line back together while ignoring the
  # 3rd column which is the line number
  lines = [len(l) > 3 and ":".join(l[3:]) or l for l in lines]
  return "\n".join(lines)
Function to remove the line numbers from the debug output
dataset/ETHPy150Open adblockplus/gyp/test/lib/TestGyp.py/remove_debug_line_numbers