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