Example #1
0
 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 []
Example #2
0
 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 []
Example #3
0
def _nodupes(s):
    from xpra.util import remove_dupes
    return remove_dupes(x.strip().lower() for x in s.split(","))
Example #4
0
def _nodupes(s):
    from xpra.util import remove_dupes
    return remove_dupes(x.strip().lower() for x in s.split(","))