Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def uniquify(doubleList):
    # uniquify the realm list
    uniqueList = []
    for e in doubleList:
        if e.lower() not in uniqueList:
            uniqueList.append(e.lower())

    return uniqueList
        


src/l/i/LinOTP-2.6.1.1/linotp/lib/policy.py   LinOTP(Download)
import string
 
from linotp.lib.util import getParam, uniquify
 
# We need this for the policies:
                              "in these realms: %r" % pol['realms'])
 
                    lowerRealms = uniquify(pol['realms'])
                    for realm, _v in res.items():
                        if ((not realm.lower() in lowerRealms)