mirror of
https://github.com/oDinZu/callirhoe.git
synced 2025-02-23 00:02:16 -05:00
more pythonic string joining
git-svn-id: https://callirhoe.googlecode.com/svn/branches/next@48 81c8bb96-aa45-f2e2-0eef-c4fa4a15c6df
This commit is contained in:
parent
d7ec93602d
commit
5741066ae6
@ -56,10 +56,7 @@ def _strip_empty(sl):
|
||||
def _flatten(sl):
|
||||
"""join list I{sl} into a comma-separated string"""
|
||||
if not sl: return None
|
||||
res = sl[0]
|
||||
for s in sl[1:]:
|
||||
res += ', ' + s
|
||||
return res
|
||||
return ', '.join(sl)
|
||||
|
||||
class Holiday(object):
|
||||
"""class holding a Holiday object (date is I{not} stored, use L{HolidayProvider} for that)
|
||||
|
Loading…
x
Reference in New Issue
Block a user