ned / cog

No description has been added.

Clone this repository (size: 124.5 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/ned/cog/
commit 21: 25c33b72ca7e
parent 20: 66ff281820a9
branch: default
Remove a use of filter()
Ned Batchelder / ned
10 months ago

Changed (Δ7 bytes):

raw changeset »

cogapp/whiteutils.py (2 lines added, 2 lines removed)

Up to file-list cogapp/whiteutils.py:

@@ -13,8 +13,8 @@ def whitePrefix(strings):
13
13
        in the argument list.
14
14
    """
15
15
    # Remove all blank lines from the list
16
    strings = filter(lambda s: s.strip() != '', strings)
17
    
16
    strings = [s for s in strings if s.strip() != '']
17
18
18
    if not strings: return ''
19
19
20
20
    # Find initial whitespace chunk in the first line.