Did I find the right examples for you? yes no

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

        def is_valid_tag(tag):
    return tag.isalnum()
        


src/s/y/synoptic-2013.1/synoptic/__init__.py   synoptic(Download)
        new_name = data["new_name"]
 
        from synoptic.datamodel import is_valid_tag
        if not is_valid_tag(new_name):
            raise RuntimeError("invalid tag")
 
        if not deleting:
            from synoptic.datamodel import is_valid_tag
            for tag in data["tags"]:
                if not is_valid_tag(tag):