MCPcopy
hub / github.com/pimutils/vdirsyncer / _strip_timezones

Function _strip_timezones

vdirsyncer/vobject.py:121–129  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

119
120
121def _strip_timezones(item):
122 parsed = item.parsed
123 if not parsed or parsed.name != 'VCALENDAR':
124 return item
125
126 parsed.subcomponents = [c for c in parsed.subcomponents
127 if c.name != 'VTIMEZONE']
128
129 return Item('\r\n'.join(parsed.dump_lines()))
130
131
132def hash_item(text):

Callers 1

normalize_itemFunction · 0.85

Calls 3

ItemClass · 0.85
joinMethod · 0.80
dump_linesMethod · 0.80

Tested by

no test coverage detected