mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Another style fix
This commit is contained in:
parent
e4ae04aaa1
commit
b9bf6f2e9e
1 changed files with 8 additions and 2 deletions
|
|
@ -181,15 +181,21 @@ def to_unicode_lines(item):
|
||||||
yield icalendar.parser.foldline(content_line)
|
yield icalendar.parser.foldline(content_line)
|
||||||
|
|
||||||
|
|
||||||
def join_collection(items, wrappers={
|
_default_join_wrappers = {
|
||||||
u'VCALENDAR': (u'VCALENDAR', (u'VTIMEZONE',)),
|
u'VCALENDAR': (u'VCALENDAR', (u'VTIMEZONE',)),
|
||||||
u'VCARD': (u'VADDRESSBOOK', ())
|
u'VCARD': (u'VADDRESSBOOK', ())
|
||||||
}):
|
}
|
||||||
|
|
||||||
|
|
||||||
|
def join_collection(items, wrappers=None):
|
||||||
'''
|
'''
|
||||||
:param wrappers: {
|
:param wrappers: {
|
||||||
item_type: wrapper_type, items_to_inline
|
item_type: wrapper_type, items_to_inline
|
||||||
}
|
}
|
||||||
'''
|
'''
|
||||||
|
if wrappers is None:
|
||||||
|
wrappers = _default_join_wrappers
|
||||||
|
|
||||||
inline = {}
|
inline = {}
|
||||||
components = []
|
components = []
|
||||||
wrapper_type = None
|
wrapper_type = None
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue