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

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/i/n/indextank-service-HEAD/api/restapi.py   indextank-service(Download)
        for k,v in category_filters.items():
            if type(v) is str or type(v) is unicode:
                facet_filters.append(ttypes.CategoryFilter(_encode_utf8(k), _encode_utf8(v)))
            elif type(v) is list:
                for element in v:
                    facet_filters.append(ttypes.CategoryFilter(_encode_utf8(k), _encode_utf8(element)))
        for k,v in category_filters.items():
            if type(v) is str or type(v) is unicode:
                facet_filters.append(ttypes.CategoryFilter(_encode_utf8(k), _encode_utf8(v)))
            elif type(v) is list:
                for element in v:
                    facet_filters.append(ttypes.CategoryFilter(_encode_utf8(k), _encode_utf8(element)))