comparison flatten_lines.py @ 318:f44ad8de0d17

more flatten_lines work
author cat@eee
date Thu, 11 Feb 2010 11:25:35 -0500
parents de23e595bb5c
children c58cd7e48db7
comparison
equal deleted inserted replaced
317:de23e595bb5c 318:f44ad8de0d17
11 for text in texts: 11 for text in texts:
12 result.extend(flatten(text)) 12 result.extend(flatten(text))
13 result = [r.strip() for r in result if r.strip()] 13 result = [r.strip() for r in result if r.strip()]
14 return result 14 return result
15 doctest.testmod() 15 doctest.testmod()
16
17 class LineList(list):
18 def __add__(self, newmember):
19