Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Check whether 'string' contains ANY of the chars in 'set'

        def contains_any(string, char_set):
    """Check whether 'string' contains ANY of the chars in 'set'"""
    return 1 in [c in string for c in char_set]
        


src/g/m/gmvault-HEAD/src/gmv/imap_utils.py   gmvault(Download)
            labels_str = '('
            for label in a_labels:
                if gmvault_utils.contains_any(label, ' "*'):
                    label = label.replace('"', '\\"') #replace quote with escaped quotes
                    labels_str += '\"%s\" ' % (label)

src/g/m/gmvault-1.8.1-beta/src/gmv/imap_utils.py   gmvault(Download)
            labels_str = '('
            for label in a_labels:
                if gmvault_utils.contains_any(label, ' "*'):
                    label = label.replace('"', '\\"') #replace quote with escaped quotes
                    labels_str += '\"%s\" ' % (label)