Sets a scanner class that will be used for this 'type'.

def set_scanner (type, scanner):
    """ Sets a scanner class that will be used for this 'type'.
    """
    if __debug__:
        from .scanner import Scanner
        assert isinstance(type, basestring)
        assert issubclass(scanner, Scanner)
    validate (type)
    __types [type]['scanner'] = scanner