def p(v): try: from xpra.util import remove_dupes r = remove_dupes([x.strip() for x in v.split(",")]) #remove empty string if that's the only value: if r and len(r) == 1 and r[0] == "": r = [] return r except: return []
def p(v): try: from xpra.util import remove_dupes r = remove_dupes([x.strip() for x in v.split(",")]) #remove empty string if that's the only value: if r and len(r)==1 and r[0]=="": r = [] return r except: return []
def _nodupes(s): from xpra.util import remove_dupes return remove_dupes(x.strip().lower() for x in s.split(","))