(name, stripNum=0, upper=False)
return name.replace('_', '-')
Turn a Python name into an iCalendar style name,
    optionally uppercase and with characters stripped off.
Turn a Python name into an iCalendar style name,
    optionally uppercase and with characters stripped off.
Turn a Python name into an iCalendar style name optionally uppercase and with characters stripped off .
def toVName(name, stripNum=0, upper=False):
    """
    Turn a Python name into an iCalendar style name,
    optionally uppercase and with characters stripped off.
    """
    if upper:
        name = name.upper()
    if stripNum != 0:
        name = name[:-stripNum]
    return name.replace('_', '-')
def toVName ( name , stripNum = 0 , upper = False ) : if upper : name = name . upper ( ) if stripNum != 0 : name = name [ : - stripNum ] return name . replace ( '_' , '-' )