# HG changeset patch # User cat@eee # Date 1265905535 18000 # Node ID f44ad8de0d17681fabf6d619d0abf0e282ab4e7d # Parent de23e595bb5ccd3a138e2264012773c0199ee13b more flatten_lines work diff -r de23e595bb5c -r f44ad8de0d17 flatten_lines.py --- a/flatten_lines.py Thu Feb 11 09:08:22 2010 -0500 +++ b/flatten_lines.py Thu Feb 11 11:25:35 2010 -0500 @@ -13,3 +13,7 @@ result = [r.strip() for r in result if r.strip()] return result doctest.testmod() + +class LineList(list): + def __add__(self, newmember): +