(parser_list=())
Creates and returns a SAX parser.

    Creates the first parser it is able to instantiate of the ones
    given in the iterable created by chaining parser_list and
    default_parser_list.  The iterables must contain the names of Python
    modules containing both a SAX parser and a create_parser function.
Creates and returns a SAX parser.
Creates and returns a SAX parser .
def make_parser(parser_list=()):
    """Creates and returns a SAX parser.

    Creates the first parser it is able to instantiate of the ones
    given in the iterable created by chaining parser_list and
    default_parser_list.  The iterables must contain the names of Python
    modules containing both a SAX parser and a create_parser function."""

    for parser_name in list(parser_list) + default_parser_list:
        try:
            return _create_parser(parser_name)
        except ImportError:
            import sys
            if parser_name in sys.modules:
                # The parser module was found, but importing it
                # failed unexpectedly, pass this exception through
                raise
        except SAXReaderNotAvailable:
            # The parser module detected that it won't work properly,
            # so try the next one
            pass

    raise SAXReaderNotAvailable("No parsers found", None)
def make_parser ( parser_list = ( ) ) : for parser_name in list ( parser_list ) + default_parser_list : try : return _create_parser ( parser_name ) except ImportError : import sys if parser_name in sys . modules : # The parser module was found, but importing it # failed unexpectedly, pass this exception through raise except SAXReaderNotAvailable : # The parser module detected that it won't work properly, # so try the next one pass raise SAXReaderNotAvailable ( "No parsers found" , None )