(component, ignore_dtstamp=False)
Recursively walk the component's children, deleting extraneous details like
    X-VOBJ-ORIGINAL-TZID.
Recursively walk the component's children, deleting extraneous details like
    X-VOBJ-ORIGINAL-TZID.
Recursively walk the component s children deleting extraneous details like X - VOBJ - ORIGINAL - TZID .
def deleteExtraneous(component, ignore_dtstamp=False):
    """
    Recursively walk the component's children, deleting extraneous details like
    X-VOBJ-ORIGINAL-TZID.
    """
    for comp in component.components():
        deleteExtraneous(comp, ignore_dtstamp)
    for line in component.lines():
        if 'X-VOBJ-ORIGINAL-TZID' in line.params:
            del line.params['X-VOBJ-ORIGINAL-TZID']
    if ignore_dtstamp and hasattr(component, 'dtstamp_list'):
        del component.dtstamp_list
def deleteExtraneous ( component , ignore_dtstamp = False ) : for comp in component . components ( ) : deleteExtraneous ( comp , ignore_dtstamp ) for line in component . lines ( ) : if 'X-VOBJ-ORIGINAL-TZID' in line . params : del line . params [ 'X-VOBJ-ORIGINAL-TZID' ] if ignore_dtstamp and hasattr ( component , 'dtstamp_list' ) : del component . dtstamp_list