Mercurial > hg > decoupage
diff decoupage/formatters.py @ 12:9f91acf9874c
* split on space in formatters to be consist with everything else
* break filedata into its own function
author | k0s <k0scist@gmail.com> |
---|---|
date | Fri, 25 Dec 2009 02:59:47 -0500 |
parents | a328cc9d2c74 |
children | 985b3a7e0e88 |
line wrap: on
line diff
--- a/decoupage/formatters.py Fri Dec 25 01:11:38 2009 -0500 +++ b/decoupage/formatters.py Fri Dec 25 02:59:47 2009 -0500 @@ -40,8 +40,7 @@ def __init__(self, ignore): - self.match = [ i.strip() for i in ignore.split(',') - if i.strip() ] + self.match = ignore.split() def __call__(self, request, data): _files = [] @@ -58,11 +57,11 @@ """ only pass files of a certain pattern; the inverse of ignore + calling all with no arguments means only files with descriptions are used """ def __init__(self, pattern): - self.match = [ i.strip() for i in pattern.split(',') - if i.strip() ] + self.match = pattern.split() def __call__(self, request, data):