spacepaste

  1.  
  2. result = []
  3. splitfrom = 0
  4. for i in range(len(data)):
  5. if data[i] == '\n':
  6. result.append(data[splitfrom : i + 1])
  7. splitfrom = i + 1
  8.