# strip all after last : when adding a (non alternative) channel
pos = sname.rfind(':')
if pos != -1:
- if sname[pos-1] == ':'
+ if sname[pos-1] == ':':
pos -= 1
sname = sname[:pos+1]
# strip all after last :
pos = service.rfind(':')
if pos != -1:
- if service[pos-1] == ':'
+ if service[pos-1] == ':':
pos -= 1
service = service[:pos+1]
# strip all after last :
pos = sref.rfind(':')
if pos != -1:
- if sref[pos-1] == ':'
+ if sref[pos-1] == ':':
pos -= 1
sref = sref[:pos+1]