--- /dev/null
+Search.setIndex({"docnames": ["index", "lxml", "lxml.ElementInclude", "lxml._elementpath", "lxml.builder", "lxml.cssselect", "lxml.doctestcompare", "lxml.etree", "lxml.html", "lxml.html.ElementSoup", "lxml.html._diffcommand", "lxml.html._setmixin", "lxml.html.builder", "lxml.html.clean", "lxml.html.defs", "lxml.html.diff", "lxml.html.formfill", "lxml.html.html5parser", "lxml.html.soupparser", "lxml.isoschematron", "lxml.objectify", "lxml.sax"], "filenames": ["index.rst", "lxml.rst", "lxml.ElementInclude.rst", "lxml._elementpath.rst", "lxml.builder.rst", "lxml.cssselect.rst", "lxml.doctestcompare.rst", "lxml.etree.rst", "lxml.html.rst", "lxml.html.ElementSoup.rst", "lxml.html._diffcommand.rst", "lxml.html._setmixin.rst", "lxml.html.builder.rst", "lxml.html.clean.rst", "lxml.html.defs.rst", "lxml.html.diff.rst", "lxml.html.formfill.rst", "lxml.html.html5parser.rst", "lxml.html.soupparser.rst", "lxml.isoschematron.rst", "lxml.objectify.rst", "lxml.sax.rst"], "titles": ["lxml API Reference", "lxml package", "lxml.ElementInclude module", "lxml._elementpath module", "lxml.builder module", "lxml.cssselect module", "lxml.doctestcompare module", "lxml.etree module", "lxml.html package", "lxml.html.ElementSoup module", "lxml.html._diffcommand module", "lxml.html._setmixin module", "lxml.html.builder module", "lxml.html.clean module", "lxml.html.defs module", "lxml.html.diff module", "lxml.html.formfill module", "lxml.html.html5parser module", "lxml.html.soupparser module", "lxml.isoschematron package", "lxml.objectify module", "lxml.sax module"], "terms": {"packag": [0, 2, 7], "subpackag": 0, "html": [0, 1, 4, 6, 7, 20, 21], "submodul": 0, "modul": 0, "content": [0, 6, 7, 12, 13, 15, 20, 21], "isoschematron": [0, 1], "elementinclud": [0, 1], "fatalincludeerror": [0, 1, 2], "limitedrecursiveincludeerror": [0, 1, 2], "_includ": [0, 1, 2, 19], "_lxml_default_load": [0, 1, 2], "_wrap_et_load": [0, 1, 2], "default_load": [0, 1, 2], "includ": [0, 1, 2, 6, 7, 8, 13, 15, 19, 20], "_elementpath": [0, 1], "_build_path_iter": [0, 1, 3], "find": [0, 1, 3, 7, 8, 15, 19, 20], "findal": [0, 1, 3, 7, 8, 20], "findtext": [0, 1, 3, 7, 8, 20], "iterfind": [0, 1, 3, 7, 8, 20], "prepare_child": [0, 1, 3], "prepare_descend": [0, 1, 3], "prepare_par": [0, 1, 3], "prepare_pred": [0, 1, 3], "prepare_self": [0, 1, 3], "prepare_star": [0, 1, 3], "xpath_token": [0, 1, 3], "builder": [0, 1, 7, 8], "elementmak": [0, 1, 4, 12, 20], "__pyx_unpickle_elementmak": [0, 1, 4], "cssselect": [0, 1, 7, 8, 20], "doctestcompar": [0, 1], "lhtmloutputcheck": [0, 1, 6], "lxmloutputcheck": [0, 1, 6], "_restorecheck": [0, 1, 6], "_find_doctest_fram": [0, 1, 6], "html_fromstr": [0, 1, 6], "instal": [0, 1, 6, 7, 8], "norm_whitespac": [0, 1, 6], "strip": [0, 1, 6, 7, 8, 15], "temp_instal": [0, 1, 6], "etre": [0, 1, 2, 4, 12, 19, 20, 21], "c14nerror": [0, 1, 7], "dtderror": [0, 1, 7], "dtdparseerror": [0, 1, 7], "dtdvalidateerror": [0, 1, 7], "documentinvalid": [0, 1, 7, 19], "error": [0, 1, 7, 8, 15, 16, 19, 21], "lxmlerror": [0, 1, 7, 21], "lxmlregistryerror": [0, 1, 7], "lxmlsyntaxerror": [0, 1, 2, 7], "namespaceregistryerror": [0, 1, 7], "parseerror": [0, 1, 7, 8], "parsererror": [0, 1, 7], "relaxngerror": [0, 1, 7], "relaxngparseerror": [0, 1, 7], "relaxngvalidateerror": [0, 1, 7], "schematronerror": [0, 1, 7], "schematronparseerror": [0, 1, 7], "schematronvalidateerror": [0, 1, 7], "serialisationerror": [0, 1, 7], "xincludeerror": [0, 1, 7], "xmlschemaerror": [0, 1, 7], "xmlschemaparseerror": [0, 1, 7], "xmlschemavalidateerror": [0, 1, 7], "xmlsyntaxassertionerror": [0, 1, 7], "xmlsyntaxerror": [0, 1, 7], "xpatherror": [0, 1, 7], "xpathevalerror": [0, 1, 7], "xpathfunctionerror": [0, 1, 7], "xpathresulterror": [0, 1, 7], "xpathsyntaxerror": [0, 1, 7], "xsltapplyerror": [0, 1, 7], "xslterror": [0, 1, 7], "xsltextensionerror": [0, 1, 7], "xsltparseerror": [0, 1, 7], "xsltsaveerror": [0, 1, 7], "_targetparserresult": [0, 1, 7], "ancestorsiter": [0, 1, 7], "attributebasedelementclasslookup": [0, 1, 7], "c14nwritertarget": [0, 1, 7], "cdata": [0, 1, 7], "commentbas": [0, 1, 7, 8], "customelementclasslookup": [0, 1, 7, 8], "dtd": [0, 1, 7, 8, 20, 21], "docinfo": [0, 1, 7, 8], "etcompatxmlpars": [0, 1, 7], "etxpath": [0, 1, 7], "elementbas": [0, 1, 7, 8, 20], "elementchilditer": [0, 1, 7], "elementclasslookup": [0, 1, 7, 20], "elementdefaultclasslookup": [0, 1, 7], "elementdepthfirstiter": [0, 1, 7], "elementnamespaceclasslookup": [0, 1, 7], "elementtextiter": [0, 1, 7], "entitybas": [0, 1, 7, 8], "errordomain": [0, 1, 7], "errorlevel": [0, 1, 7], "errortyp": [0, 1, 7], "fallbackelementclasslookup": [0, 1, 7], "htmlparser": [0, 1, 7, 8], "htmlpullpars": [0, 1, 7], "pibas": [0, 1, 7, 8], "parserbasedelementclasslookup": [0, 1, 7], "pyerrorlog": [0, 1, 7], "pythonelementclasslookup": [0, 1, 7], "qname": [0, 1, 7, 21], "relaxng": [0, 1, 7, 19], "relaxngerrortyp": [0, 1, 7], "resolv": [0, 1, 2, 7, 8, 15], "schematron": [0, 1, 7, 19], "siblingsiter": [0, 1, 7], "treebuild": [0, 1, 7], "xinclud": [0, 1, 2, 7, 20], "xmlparser": [0, 1, 7, 8, 20], "xmlpullpars": [0, 1, 7], "xmlschema": [0, 1, 7], "xmltreebuild": [0, 1, 7], "xpath": [0, 1, 7, 8, 19, 20], "xpathdocumentevalu": [0, 1, 7], "xpathelementevalu": [0, 1, 7], "xslt": [0, 1, 7, 19], "xsltaccesscontrol": [0, 1, 7], "xsltextens": [0, 1, 7], "_attrib": [0, 1, 7], "_baseerrorlog": [0, 1, 7], "_comment": [0, 1, 7], "_document": [0, 1, 7], "_domainerrorlog": [0, 1, 7], "_element": [0, 1, 7, 20], "_elementiter": [0, 1, 7], "_elementmatchiter": [0, 1, 7], "_elementstringresult": [0, 1, 7], "_elementtagmatch": [0, 1, 7], "_elementtre": [0, 1, 7], "_elementunicoderesult": [0, 1, 7], "_entiti": [0, 1, 7], "_errorlog": [0, 1, 7], "_feedpars": [0, 1, 7], "_iddict": [0, 1, 7], "_listerrorlog": [0, 1, 7], "_logentri": [0, 1, 7], "_processinginstruct": [0, 1, 7], "_rotatingerrorlog": [0, 1, 7], "_saxparsertarget": [0, 1, 7], "_valid": [0, 1, 7, 19], "_xpathevaluatorbas": [0, 1, 7], "_xsltprocessinginstruct": [0, 1, 7], "_xsltresulttre": [0, 1, 7], "htmlfile": [0, 1, 7], "iterpars": [0, 1, 7], "iterwalk": [0, 1, 7], "xmlfile": [0, 1, 7], "comment": [0, 1, 7, 8, 13, 20], "element": [0, 1, 4, 6, 7, 8, 11, 12, 13, 14, 15, 19, 20, 21], "elementtre": [0, 1, 2, 7, 8, 19, 20, 21], "entiti": [0, 1, 7, 8, 20, 21], "extens": [0, 1, 7, 8, 20], "functionnamespac": [0, 1, 7], "pi": [0, 1, 7], "processinginstruct": [0, 1, 7, 8, 20, 21], "subel": [0, 1, 7, 8, 20], "xml": [0, 1, 4, 6, 7, 8, 19, 20, 21], "xmldtdid": [0, 1, 7], "xmlid": [0, 1, 7], "xpathevalu": [0, 1, 7], "adopt_external_docu": [0, 1, 7], "canonic": [0, 1, 7], "cleanup_namespac": [0, 1, 7, 20], "clear_error_log": [0, 1, 7], "dump": [0, 1, 7, 20], "fromstr": [0, 1, 7, 8, 20], "fromstringlist": [0, 1, 7], "get_default_pars": [0, 1, 6, 7], "indent": [0, 1, 6, 7], "isel": [0, 1, 7], "pars": [0, 1, 2, 6, 7, 8, 15, 19, 20, 21], "parseid": [0, 1, 7], "register_namespac": [0, 1, 7], "set_default_pars": [0, 1, 7, 20], "set_element_class_lookup": [0, 1, 7, 8], "strip_attribut": [0, 1, 7], "strip_el": [0, 1, 7], "strip_tag": [0, 1, 7], "tostr": [0, 1, 4, 7, 8, 12, 20], "tostringlist": [0, 1, 7], "tounicod": [0, 1, 7], "use_global_python_log": [0, 1, 7], "objectifi": [0, 1, 7], "boolel": [0, 1, 20], "floatel": [0, 1, 20], "intel": [0, 1, 20], "longel": [0, 1, 20], "noneel": [0, 1, 20], "numberel": [0, 1, 20], "objectpath": [0, 1, 20], "objectifieddatael": [0, 1, 20], "objectifiedel": [0, 1, 20], "objectifyelementclasslookup": [0, 1, 20], "pytyp": [0, 1, 20], "stringel": [0, 1, 20], "datael": [0, 1, 20], "__unpickleelementtre": [0, 1, 20], "annot": [0, 1, 8, 10, 15, 20], "deannot": [0, 1, 20], "enable_recursive_str": [0, 1, 20], "getregisteredtyp": [0, 1, 20], "makepars": [0, 1, 20], "pyannot": [0, 1, 20], "pytypenam": [0, 1, 20], "set_pytype_attribute_tag": [0, 1, 20], "xsiannot": [0, 1, 20], "sax": [0, 1, 7], "saxerror": [0, 1, 21], "elementtreecontenthandl": [0, 1, 21], "elementtreeproduc": [0, 1, 21], "__pyx_unpickle_elementtreeproduc": [0, 1, 21], "saxifi": [0, 1, 21], "get_includ": [0, 1], "index": [0, 1, 7, 8, 14, 15, 20], "search": [0, 7, 8, 13, 15, 21], "page": [0, 4, 8, 13, 15], "elementsoup": [1, 8], "_diffcommand": [1, 8], "main": [1, 7, 8, 10, 12, 19, 20, 21], "read_fil": [1, 7, 8, 10], "split_bodi": [1, 8, 10], "_setmixin": [1, 8], "setmixin": [1, 8, 11], "class": [1, 4, 6, 7, 8, 11, 12, 13, 15, 16, 19, 20, 21], "FOR": [1, 8, 12], "A": [1, 4, 7, 8, 12, 13, 15, 21], "abbr": [1, 8, 12, 13], "acronym": [1, 8, 12], "address": [1, 8, 12], "applet": [1, 8, 12, 13], "area": [1, 6, 8, 12], "b": [1, 4, 7, 8, 12, 15, 19], "base": [1, 2, 4, 6, 7, 8, 11, 12, 13, 15, 16, 19, 20, 21], "basefont": [1, 6, 8, 12], "bdo": [1, 8, 12], "big": [1, 7, 8, 12], "blockquot": [1, 8, 12], "bodi": [1, 4, 6, 8, 12, 13, 15, 20], "br": [1, 6, 8, 12, 20], "button": [1, 8, 12], "caption": [1, 8, 12], "center": [1, 7, 8, 12, 15], "cite": [1, 8, 12, 13], "code": [1, 7, 8, 12, 13, 15, 20], "col": [1, 6, 8, 12, 13], "colgroup": [1, 8, 12], "dd": [1, 8, 12], "del": [1, 8, 12, 15], "dfn": [1, 8, 12], "dir": [1, 8, 12, 13], "div": [1, 8, 12, 15, 16], "dl": [1, 8, 12], "dt": [1, 8, 12], "em": [1, 8, 12], "fieldset": [1, 8, 12], "font": [1, 8, 12, 20], "form": [1, 2, 7, 8, 12, 13, 15, 16], "frame": [1, 8, 12, 13], "frameset": [1, 8, 12], "h1": [1, 4, 8, 12], "h2": [1, 8, 12], "h3": [1, 8, 12], "h4": [1, 8, 12], "h5": [1, 8, 12], "h6": [1, 8, 12], "head": [1, 4, 8, 12, 13, 15], "hr": [1, 8, 12], "i": [1, 4, 6, 7, 8, 11, 12, 13, 15, 19, 20, 21], "ifram": [1, 8, 12, 13], "img": [1, 6, 8, 12, 15], "input": [1, 6, 7, 8, 11, 12, 16, 21], "INS": [1, 8, 12], "isindex": [1, 8, 12], "kbd": [1, 8, 12], "label": [1, 8, 12, 13], "legend": [1, 8, 12], "li": [1, 8, 12], "link": [1, 4, 6, 8, 12, 13], "map": [1, 4, 7, 8, 12, 15, 20, 21], "menu": [1, 8, 12], "meta": [1, 6, 8, 12, 13], "nofram": [1, 8, 12], "noscript": [1, 8, 12], "object": [1, 4, 6, 7, 8, 11, 12, 13, 15, 16, 19, 20, 21], "ol": [1, 8, 12], "optgroup": [1, 8, 12], "option": [1, 4, 6, 7, 8, 10, 12, 13, 15, 20], "p": [1, 4, 8, 12, 13, 15, 20], "param": [1, 6, 8, 12], "pre": [1, 7, 8, 12, 13, 15, 20], "q": [1, 8, 12, 15], "": [1, 4, 6, 7, 8, 11, 12, 13, 15, 20, 21], "samp": [1, 8, 12], "script": [1, 4, 8, 12, 13], "select": [1, 7, 8, 12, 13, 16], "small": [1, 4, 8, 12, 15], "span": [1, 8, 12, 13, 15], "strike": [1, 8, 12], "strong": [1, 8, 12], "style": [1, 7, 8, 12, 13, 20], "sub": [1, 7, 8, 12, 15], "sup": [1, 8, 12], "tabl": [1, 7, 8, 12, 15], "tbodi": [1, 8, 12], "td": [1, 8, 12, 15], "textarea": [1, 8, 12, 13], "tfoot": [1, 8, 12], "th": [1, 8, 12], "thead": [1, 8, 12], "titl": [1, 4, 7, 8, 12, 13, 15, 19], "tr": [1, 8, 12, 14], "tt": [1, 8, 12], "u": [1, 7, 8, 12, 15], "ul": [1, 8, 12], "var": [1, 8, 12], "clean": [1, 7, 8, 15], "cleaner": [1, 8, 13], "_break_text": [1, 8, 13], "_find_image_dataurl": [1, 8, 13], "_has_javascript_schem": [1, 8, 13], "_insert_break": [1, 8, 13], "_is_unsafe_image_typ": [1, 8, 13], "_link_text": [1, 8, 13], "_looks_like_tag_cont": [1, 8, 13], "_possibly_malicious_schem": [1, 8, 13], "_replace_css_import": [1, 8, 13], "_replace_css_javascript": [1, 8, 13], "_substitute_whitespac": [1, 8, 13], "autolink": [1, 8, 13], "autolink_html": [1, 8, 13], "clean_html": [1, 8, 13], "word_break": [1, 8, 13], "word_break_html": [1, 8, 13], "def": [1, 4, 7, 8, 15], "diff": [1, 6, 8], "nodelet": [1, 8, 15], "del_end": [1, 8, 15], "del_start": [1, 8, 15], "insensitivesequencematch": [1, 8, 15], "href_token": [1, 8, 15], "tag_token": [1, 8, 15], "token": [1, 3, 8, 15], "_contains_block_level_tag": [1, 8, 15], "_fixup_ins_del_tag": [1, 8, 15], "_merge_element_cont": [1, 8, 15], "_move_el_inside_block": [1, 8, 15], "cleanup_delet": [1, 8, 15], "cleanup_html": [1, 8, 15], "compress_merge_back": [1, 8, 15], "compress_token": [1, 8, 15], "copy_annot": [1, 8, 15], "default_markup": [1, 8, 15], "end_tag": [1, 8, 15], "expand_token": [1, 8, 15], "fixup_chunk": [1, 8, 15], "fixup_ins_del_tag": [1, 8, 15], "flatten_el": [1, 8, 15], "html_annot": [1, 8, 15], "html_annotate_merge_annot": [1, 8, 15], "htmldiff": [1, 8, 15], "htmldiff_token": [1, 8, 15], "is_end_tag": [1, 8, 15], "is_start_tag": [1, 8, 15], "is_word": [1, 8, 15], "locate_unbalanced_end": [1, 8, 15], "locate_unbalanced_start": [1, 8, 15], "markup_serialize_token": [1, 8, 15], "merge_delet": [1, 8, 15], "merge_insert": [1, 8, 15], "parse_html": [1, 6, 8, 15], "serialize_html_frag": [1, 8, 15], "split_delet": [1, 8, 15], "split_trailing_whitespac": [1, 8, 15], "split_unbalanc": [1, 8, 15], "split_word": [1, 8, 15], "start_tag": [1, 8, 15], "tokenize_annot": [1, 8, 15], "formfil": [1, 8], "formnotfound": [1, 8, 16], "defaulterrorcr": [1, 8, 16], "_add_class": [1, 8, 16], "_check": [1, 8, 16], "_fill_form": [1, 8, 16], "_fill_multipl": [1, 8, 16], "_fill_singl": [1, 8, 16], "_find_elements_for_nam": [1, 8, 16], "_find_form": [1, 8, 16], "_find_form_id": [1, 8, 16], "_insert_error": [1, 8, 16], "_select": [1, 8, 16], "_takes_multipl": [1, 8, 16], "fill_form": [1, 8, 16], "fill_form_html": [1, 8, 16], "insert_error": [1, 8, 16], "insert_errors_html": [1, 8, 16], "html5parser": [1, 8], "souppars": [1, 8], "checkboxgroup": [1, 8], "append": [1, 7, 8, 20], "clear": [1, 7, 8, 11, 13, 20], "copi": [1, 7, 8, 11, 13, 15, 19, 21], "count": [1, 7, 8, 13, 15], "extend": [1, 7, 8, 15, 20], "insert": [1, 4, 7, 8, 12, 13, 15, 20], "pop": [1, 7, 8, 11, 15], "remov": [1, 7, 8, 11, 13, 15, 20], "revers": [1, 7, 8, 20], "sort": [1, 8], "valu": [1, 4, 7, 8, 11, 12, 13, 15, 16, 19, 20, 21], "value_opt": [1, 8], "checkboxvalu": [1, 8], "_from_iter": [1, 8, 11], "_hash": [1, 8, 11], "add": [1, 2, 7, 8, 11, 15, 16, 20, 21], "differ": [1, 6, 7, 8, 11, 20], "difference_upd": [1, 8, 11], "discard": [1, 7, 8, 11, 13, 15, 20], "intersect": [1, 8, 11], "intersection_upd": [1, 8, 11], "isdisjoint": [1, 8, 11], "issubset": [1, 8, 11], "issuperset": [1, 8, 11], "symmetric_differ": [1, 8, 11], "symmetric_difference_upd": [1, 8, 11], "union": [1, 8, 11], "updat": [1, 7, 8, 11, 19], "_abc_impl": [1, 8, 11], "toggl": [1, 8], "fieldsdict": [1, 8], "get": [1, 7, 8, 13, 15, 19, 20], "item": [1, 7, 8, 11, 12, 15, 20], "kei": [1, 4, 7, 8, 15, 20], "popitem": [1, 8], "setdefault": [1, 8], "formel": [1, 8], "_init": [1, 7, 8, 20], "_name": [1, 7, 8], "addnext": [1, 7, 8, 20], "addprevi": [1, 7, 8, 20], "drop_tag": [1, 8], "drop_tre": [1, 8], "find_class": [1, 8], "find_rel_link": [1, 8], "form_valu": [1, 8], "get_element_by_id": [1, 8], "getchildren": [1, 7, 8, 20], "getiter": [1, 7, 8, 20], "getnext": [1, 7, 8, 20], "getpar": [1, 7, 8, 20], "getprevi": [1, 7, 8, 20], "getroottre": [1, 7, 8, 20], "iter": [1, 7, 8, 11, 13, 15, 20], "iterancestor": [1, 7, 8, 20], "iterchildren": [1, 7, 8, 20], "iterdescend": [1, 7, 8, 20], "iterlink": [1, 8], "iters": [1, 7, 8, 20], "itertext": [1, 7, 8, 20], "make_links_absolut": [1, 8], "makeel": [1, 7, 8, 20, 21], "replac": [1, 7, 8, 13, 15, 20, 21], "resolve_base_href": [1, 8], "rewrite_link": [1, 8], "set": [1, 2, 6, 7, 8, 11, 12, 13, 15, 16, 19, 20, 21], "text_cont": [1, 8], "action": [1, 8, 13], "attrib": [1, 7, 8, 20], "base_url": [1, 2, 7, 8, 20], "field": [1, 7, 8, 12, 15], "method": [1, 7, 8, 11, 13, 15, 19, 20, 21], "nsmap": [1, 4, 7, 8, 20], "prefix": [1, 6, 7, 8, 15, 20, 21], "sourcelin": [1, 7, 8, 20], "tag": [1, 4, 6, 7, 8, 12, 13, 15, 20], "tail": [1, 4, 7, 8, 13, 15, 20], "text": [1, 2, 4, 6, 7, 8, 12, 13, 15, 19, 20, 21], "close": [1, 7, 8, 15], "feed": [1, 7, 8], "setelementclasslookup": [1, 7, 8], "error_log": [1, 7, 8, 19], "feed_error_log": [1, 7, 8], "target": [1, 4, 7, 8, 13, 20, 21], "version": [1, 4, 7, 8, 15, 20], "htmlcomment": [1, 8], "htmlelement": [1, 8], "htmlelementclasslookup": [1, 8], "lookup": [1, 7, 8, 15, 20], "set_fallback": [1, 7, 8], "_default_element_class": [1, 8], "fallback": [1, 7, 8], "htmlentiti": [1, 8], "name": [1, 7, 8, 12, 13, 15, 16, 19, 20, 21], "htmlmixin": [1, 8], "htmlprocessinginstruct": [1, 8], "inputel": [1, 8], "checkabl": [1, 8], "check": [1, 6, 7, 8, 13, 16, 20], "type": [1, 6, 7, 8, 11, 13, 19, 20, 21], "inputgett": [1, 8], "inputmixin": [1, 8], "labelel": [1, 8], "for_el": [1, 8], "multipleselectopt": [1, 8], "radiogroup": [1, 8], "selectel": [1, 8], "multipl": [1, 7, 8, 13, 20], "textareael": [1, 8], "xhtmlparser": [1, 8], "_methodfunc": [1, 8], "__bytes_replace_meta_content_typ": [1, 8], "__fix_docstr": [1, 8], "__str_replace_meta_content_typ": [1, 8], "_element_nam": [1, 8], "_iter_css_import": [1, 8], "_iter_css_url": [1, 8], "_looks_like_full_html_byt": [1, 8], "_looks_like_full_html_unicod": [1, 8], "_non": [1, 8], "_parse_meta_refresh_url": [1, 8], "_transform_result": [1, 8], "_unquote_match": [1, 8], "document_fromstr": [1, 8], "fragment_fromstr": [1, 8], "fragments_fromstr": [1, 8], "html_to_xhtml": [1, 8], "open_http_urllib": [1, 8], "open_in_brows": [1, 8], "submit_form": [1, 8], "xhtml_to_html": [1, 8], "_append_log_messag": [1, 7, 19], "_clear_error_log": [1, 7, 19], "_extract": [1, 19], "assertvalid": [1, 7, 19], "assert_": [1, 7, 19], "valid": [1, 7, 8, 15, 19, 20, 21], "asserts_and_report": [1, 19], "asserts_onli": [1, 19], "_compil": [1, 19], "_domain": [1, 19], "_error_typ": [1, 19], "_expand": [1, 19], "_extract_rng": [1, 19], "_extract_xsd": [1, 19], "_level": [1, 19], "_validation_error": [1, 19], "validation_report": [1, 19], "validator_xslt": [1, 19], "_stylesheet_param_dict": [1, 19], "stylesheet_param": [1, 19], "add_not": [1, 2, 7, 8, 15, 16, 21], "with_traceback": [1, 2, 7, 8, 15, 16, 21], "arg": [1, 2, 6, 7, 8, 10, 13, 15, 16, 19, 21], "end_lineno": [1, 2, 7], "end_offset": [1, 2, 7], "filenam": [1, 2, 7, 8, 10, 19], "lineno": [1, 2, 7], "msg": [1, 2, 7], "offset": [1, 2, 7], "print_file_and_lin": [1, 2, 7], "_makeel": [1, 4], "_namespac": [1, 4], "_nsmap": [1, 4], "_typemap": [1, 4], "_do_a_fancy_diff": [1, 6], "_looks_like_markup": [1, 6], "_toascii": [1, 6], "check_output": [1, 6], "collect_diff": [1, 6], "collect_diff_end_tag": [1, 6], "collect_diff_tag": [1, 6], "collect_diff_text": [1, 6], "compare_doc": [1, 6], "format_doc": [1, 6], "format_end_tag": [1, 6], "format_tag": [1, 6], "format_text": [1, 6], "get_pars": [1, 6], "html_empty_tag": [1, 6], "output_differ": [1, 6], "tag_compar": [1, 6], "text_compar": [1, 6], "empty_tag": [1, 6], "call_sup": [1, 6], "install_clon": [1, 6], "install_dt_self": [1, 6], "uninstall_clon": [1, 6], "uninstall_dt_self": [1, 6], "uninstall_modul": [1, 6], "posit": [1, 7, 8, 13, 15, 20, 21], "_iter_namespac": [1, 7], "data": [1, 7, 8, 12, 14, 15, 20, 21], "end": [1, 2, 7, 8, 15, 20, 21], "start": [1, 6, 7, 8, 13, 15, 20, 21], "start_n": [1, 7], "iterel": [1, 7], "iterent": [1, 7], "external_id": [1, 7], "system_url": [1, 7], "url": [1, 2, 7, 8, 13, 20], "doctyp": [1, 7, 8], "encod": [1, 2, 7, 8, 15], "externaldtd": [1, 7], "internaldtd": [1, 7], "public_id": [1, 7], "root_nam": [1, 7], "standalon": [1, 7], "xml_version": [1, 7], "evalu": [1, 7, 8, 20], "path": [1, 3, 7, 8, 19, 20], "comment_class": [1, 7], "element_class": [1, 7], "entity_class": [1, 7], "pi_class": [1, 7], "get_namespac": [1, 7], "_getnam": [1, 7], "buffer": [1, 7, 8], "c14n": [1, 7], "catalog": [1, 7, 8], "datatyp": [1, 7, 20], "ftp": [1, 7], "http": [1, 4, 7, 8, 12, 13, 14, 19, 20, 21], "i18n": [1, 7, 12], "io": [1, 7], "memori": [1, 7], "namespac": [1, 3, 4, 7, 8, 20, 21], "none": [1, 2, 3, 6, 7, 8, 10, 13, 15, 16, 19, 20, 21], "output": [1, 4, 6, 7, 8, 12], "parser": [1, 2, 6, 7, 8, 13, 20, 21], "regexp": [1, 7], "relaxngp": [1, 7], "relaxngv": [1, 7], "schemasp": [1, 7], "schemasv": [1, 7], "schematronv": [1, 7], "tree": [1, 7, 8, 19, 20, 21], "uri": [1, 7, 8, 12, 20, 21], "writer": [1, 7], "xpointer": [1, 7], "fatal": [1, 7], "warn": [1, 7, 19], "buf_overflow": [1, 7], "c14n_create_ctxt": [1, 7], "c14n_create_stack": [1, 7], "c14n_invalid_nod": [1, 7], "c14n_relative_namespac": [1, 7], "c14n_requires_utf8": [1, 7], "c14n_unknow_nod": [1, 7], "catalog_entry_broken": [1, 7], "catalog_missing_attr": [1, 7], "catalog_not_catalog": [1, 7], "catalog_prefer_valu": [1, 7], "catalog_recurs": [1, 7], "check_entity_typ": [1, 7], "check_found_attribut": [1, 7], "check_found_cdata": [1, 7], "check_found_com": [1, 7], "check_found_doctyp": [1, 7], "check_found_el": [1, 7], "check_found_ent": [1, 7], "check_found_entityref": [1, 7], "check_found_frag": [1, 7], "check_found_not": [1, 7], "check_found_pi": [1, 7], "check_found_text": [1, 7], "check_name_not_nul": [1, 7], "check_not_attr": [1, 7], "check_not_attr_decl": [1, 7], "check_not_dtd": [1, 7], "check_not_elem_decl": [1, 7], "check_not_entity_decl": [1, 7], "check_not_ncnam": [1, 7], "check_not_ns_decl": [1, 7], "check_not_utf8": [1, 7], "check_no_dict": [1, 7], "check_no_doc": [1, 7], "check_no_elem": [1, 7], "check_no_href": [1, 7], "check_no_nam": [1, 7], "check_no_next": [1, 7], "check_no_par": [1, 7], "check_no_prev": [1, 7], "check_ns_ancestor": [1, 7], "check_ns_scop": [1, 7], "check_outside_dict": [1, 7], "check_unknown_nod": [1, 7], "check_wrong_doc": [1, 7], "check_wrong_nam": [1, 7], "check_wrong_next": [1, 7], "check_wrong_par": [1, 7], "check_wrong_prev": [1, 7], "dtd_attribute_default": [1, 7], "dtd_attribute_redefin": [1, 7], "dtd_attribute_valu": [1, 7], "dtd_content_error": [1, 7], "dtd_content_model": [1, 7], "dtd_content_not_determinist": [1, 7], "dtd_different_prefix": [1, 7], "dtd_dup_token": [1, 7], "dtd_elem_default_namespac": [1, 7], "dtd_elem_namespac": [1, 7], "dtd_elem_redefin": [1, 7], "dtd_empty_not": [1, 7], "dtd_entity_typ": [1, 7], "dtd_id_fix": [1, 7], "dtd_id_redefin": [1, 7], "dtd_id_subset": [1, 7], "dtd_invalid_child": [1, 7], "dtd_invalid_default": [1, 7], "dtd_load_error": [1, 7], "dtd_missing_attribut": [1, 7], "dtd_mixed_corrupt": [1, 7], "dtd_multiple_id": [1, 7], "dtd_notation_redefin": [1, 7], "dtd_notation_valu": [1, 7], "dtd_not_empti": [1, 7], "dtd_not_pcdata": [1, 7], "dtd_not_standalon": [1, 7], "dtd_no_doc": [1, 7], "dtd_no_dtd": [1, 7], "dtd_no_elem_nam": [1, 7], "dtd_no_prefix": [1, 7], "dtd_no_root": [1, 7], "dtd_root_nam": [1, 7], "dtd_standalone_default": [1, 7], "dtd_standalone_white_spac": [1, 7], "dtd_unknown_attribut": [1, 7], "dtd_unknown_elem": [1, 7], "dtd_unknown_ent": [1, 7], "dtd_unknown_id": [1, 7], "dtd_unknown_not": [1, 7], "dtd_xmlid_typ": [1, 7], "dtd_xmlid_valu": [1, 7], "err_attlist_not_finish": [1, 7], "err_attlist_not_start": [1, 7], "err_attribute_not_finish": [1, 7], "err_attribute_not_start": [1, 7], "err_attribute_redefin": [1, 7], "err_attribute_without_valu": [1, 7], "err_cdata_not_finish": [1, 7], "err_charref_at_eof": [1, 7], "err_charref_in_dtd": [1, 7], "err_charref_in_epilog": [1, 7], "err_charref_in_prolog": [1, 7], "err_comment_abruptly_end": [1, 7], "err_comment_not_finish": [1, 7], "err_condsec_invalid": [1, 7], "err_condsec_invalid_keyword": [1, 7], "err_condsec_not_finish": [1, 7], "err_condsec_not_start": [1, 7], "err_doctype_not_finish": [1, 7], "err_document_empti": [1, 7], "err_document_end": [1, 7], "err_document_start": [1, 7], "err_elemcontent_not_finish": [1, 7], "err_elemcontent_not_start": [1, 7], "err_encoding_nam": [1, 7], "err_entityref_at_eof": [1, 7], "err_entityref_in_dtd": [1, 7], "err_entityref_in_epilog": [1, 7], "err_entityref_in_prolog": [1, 7], "err_entityref_no_nam": [1, 7], "err_entityref_semicol_miss": [1, 7], "err_entity_boundari": [1, 7], "err_entity_char_error": [1, 7], "err_entity_is_extern": [1, 7], "err_entity_is_paramet": [1, 7], "err_entity_loop": [1, 7], "err_entity_not_finish": [1, 7], "err_entity_not_start": [1, 7], "err_entity_pe_intern": [1, 7], "err_entity_process": [1, 7], "err_equal_requir": [1, 7], "err_extra_cont": [1, 7], "err_ext_entity_standalon": [1, 7], "err_ext_subset_not_finish": [1, 7], "err_gt_requir": [1, 7], "err_hyphen_in_com": [1, 7], "err_internal_error": [1, 7], "err_invalid_char": [1, 7], "err_invalid_charref": [1, 7], "err_invalid_dec_charref": [1, 7], "err_invalid_encod": [1, 7], "err_invalid_hex_charref": [1, 7], "err_invalid_uri": [1, 7], "err_literal_not_finish": [1, 7], "err_literal_not_start": [1, 7], "err_ltslash_requir": [1, 7], "err_lt_in_attribut": [1, 7], "err_lt_requir": [1, 7], "err_misplaced_cdata_end": [1, 7], "err_missing_encod": [1, 7], "err_mixed_not_finish": [1, 7], "err_mixed_not_start": [1, 7], "err_name_requir": [1, 7], "err_name_too_long": [1, 7], "err_nmtoken_requir": [1, 7], "err_notation_not_finish": [1, 7], "err_notation_not_start": [1, 7], "err_notation_process": [1, 7], "err_not_standalon": [1, 7], "err_not_well_balanc": [1, 7], "err_no_dtd": [1, 7], "err_no_memori": [1, 7], "err_ns_decl_error": [1, 7], "err_ok": [1, 7], "err_pcdata_requir": [1, 7], "err_peref_at_eof": [1, 7], "err_peref_in_epilog": [1, 7], "err_peref_in_int_subset": [1, 7], "err_peref_in_prolog": [1, 7], "err_peref_no_nam": [1, 7], "err_peref_semicol_miss": [1, 7], "err_pi_not_finish": [1, 7], "err_pi_not_start": [1, 7], "err_pubid_requir": [1, 7], "err_reserved_xml_nam": [1, 7], "err_separator_requir": [1, 7], "err_space_requir": [1, 7], "err_standalone_valu": [1, 7], "err_string_not_clos": [1, 7], "err_string_not_start": [1, 7], "err_tag_name_mismatch": [1, 7], "err_tag_not_finish": [1, 7], "err_undeclared_ent": [1, 7], "err_unknown_encod": [1, 7], "err_unknown_vers": [1, 7], "err_unparsed_ent": [1, 7], "err_unsupported_encod": [1, 7], "err_uri_frag": [1, 7], "err_uri_requir": [1, 7], "err_user_stop": [1, 7], "err_value_requir": [1, 7], "err_version_mismatch": [1, 7], "err_version_miss": [1, 7], "err_xmldecl_not_finish": [1, 7], "err_xmldecl_not_start": [1, 7], "ftp_accnt": [1, 7], "ftp_epsv_answ": [1, 7], "ftp_pasv_answ": [1, 7], "ftp_url_syntax": [1, 7], "html_strucure_error": [1, 7], "html_unknown_tag": [1, 7], "http_unknown_host": [1, 7], "http_url_syntax": [1, 7], "http_use_ip": [1, 7], "i18n_conv_fail": [1, 7], "i18n_excess_handl": [1, 7], "i18n_no_handl": [1, 7], "i18n_no_nam": [1, 7], "i18n_no_output": [1, 7], "io_buffer_ful": [1, 7], "io_eacc": [1, 7], "io_eaddrinus": [1, 7], "io_eafnosupport": [1, 7], "io_eagain": [1, 7], "io_ealreadi": [1, 7], "io_ebadf": [1, 7], "io_ebadmsg": [1, 7], "io_ebusi": [1, 7], "io_ecancel": [1, 7], "io_echild": [1, 7], "io_econnrefus": [1, 7], "io_edeadlk": [1, 7], "io_edom": [1, 7], "io_eexist": [1, 7], "io_efault": [1, 7], "io_efbig": [1, 7], "io_einprogress": [1, 7], "io_eintr": [1, 7], "io_einv": [1, 7], "io_eio": [1, 7], "io_eisconn": [1, 7], "io_eisdir": [1, 7], "io_emfil": [1, 7], "io_emlink": [1, 7], "io_emsgs": [1, 7], "io_enametoolong": [1, 7], "io_encod": [1, 7], "io_enetunreach": [1, 7], "io_enfil": [1, 7], "io_enodev": [1, 7], "io_eno": [1, 7], "io_enoexec": [1, 7], "io_enolck": [1, 7], "io_enomem": [1, 7], "io_enospc": [1, 7], "io_enosi": [1, 7], "io_enotdir": [1, 7], "io_enotempti": [1, 7], "io_enotsock": [1, 7], "io_enotsup": [1, 7], "io_enotti": [1, 7], "io_enxio": [1, 7], "io_eperm": [1, 7], "io_epip": [1, 7], "io_erang": [1, 7], "io_erof": [1, 7], "io_espip": [1, 7], "io_esrch": [1, 7], "io_etimedout": [1, 7], "io_exdev": [1, 7], "io_flush": [1, 7], "io_load_error": [1, 7], "io_network_attempt": [1, 7], "io_no_input": [1, 7], "io_unknown": [1, 7], "io_writ": [1, 7], "module_clos": [1, 7], "module_open": [1, 7], "ns_err_attribute_redefin": [1, 7], "ns_err_colon": [1, 7], "ns_err_empti": [1, 7], "ns_err_qnam": [1, 7], "ns_err_undefined_namespac": [1, 7], "ns_err_xml_namespac": [1, 7], "regexp_compile_error": [1, 7], "rngp_anyname_attr_ancestor": [1, 7], "rngp_attribute_children": [1, 7], "rngp_attribute_cont": [1, 7], "rngp_attribute_empti": [1, 7], "rngp_attribute_noop": [1, 7], "rngp_attr_conflict": [1, 7], "rngp_choice_cont": [1, 7], "rngp_choice_empti": [1, 7], "rngp_create_failur": [1, 7], "rngp_data_cont": [1, 7], "rngp_define_create_fail": [1, 7], "rngp_define_empti": [1, 7], "rngp_define_miss": [1, 7], "rngp_define_name_miss": [1, 7], "rngp_def_choice_and_interleav": [1, 7], "rngp_element_cont": [1, 7], "rngp_element_empti": [1, 7], "rngp_element_nam": [1, 7], "rngp_element_no_cont": [1, 7], "rngp_elem_content_empti": [1, 7], "rngp_elem_content_error": [1, 7], "rngp_elem_text_conflict": [1, 7], "rngp_empti": [1, 7], "rngp_empty_construct": [1, 7], "rngp_empty_cont": [1, 7], "rngp_empty_not_empti": [1, 7], "rngp_error_type_lib": [1, 7], "rngp_except_empti": [1, 7], "rngp_except_miss": [1, 7], "rngp_except_multipl": [1, 7], "rngp_except_no_cont": [1, 7], "rngp_externalref_emtpi": [1, 7], "rngp_externalref_recurs": [1, 7], "rngp_external_ref_failur": [1, 7], "rngp_forbidden_attribut": [1, 7], "rngp_foreign_el": [1, 7], "rngp_grammar_cont": [1, 7], "rngp_grammar_empti": [1, 7], "rngp_grammar_miss": [1, 7], "rngp_grammar_no_start": [1, 7], "rngp_group_attr_conflict": [1, 7], "rngp_href_error": [1, 7], "rngp_include_empti": [1, 7], "rngp_include_failur": [1, 7], "rngp_include_recurs": [1, 7], "rngp_interleave_add": [1, 7], "rngp_interleave_create_fail": [1, 7], "rngp_interleave_empti": [1, 7], "rngp_interleave_no_cont": [1, 7], "rngp_invalid_define_nam": [1, 7], "rngp_invalid_uri": [1, 7], "rngp_invalid_valu": [1, 7], "rngp_missing_href": [1, 7], "rngp_name_miss": [1, 7], "rngp_need_combin": [1, 7], "rngp_notallowed_not_empti": [1, 7], "rngp_nsname_attr_ancestor": [1, 7], "rngp_nsname_no_n": [1, 7], "rngp_param_forbidden": [1, 7], "rngp_param_name_miss": [1, 7], "rngp_parentref_create_fail": [1, 7], "rngp_parentref_name_invalid": [1, 7], "rngp_parentref_not_empti": [1, 7], "rngp_parentref_no_nam": [1, 7], "rngp_parentref_no_par": [1, 7], "rngp_parse_error": [1, 7], "rngp_pat_anyname_except_anynam": [1, 7], "rngp_pat_attr_attr": [1, 7], "rngp_pat_attr_elem": [1, 7], "rngp_pat_data_except_attr": [1, 7], "rngp_pat_data_except_elem": [1, 7], "rngp_pat_data_except_empti": [1, 7], "rngp_pat_data_except_group": [1, 7], "rngp_pat_data_except_interleav": [1, 7], "rngp_pat_data_except_list": [1, 7], "rngp_pat_data_except_onemor": [1, 7], "rngp_pat_data_except_ref": [1, 7], "rngp_pat_data_except_text": [1, 7], "rngp_pat_list_attr": [1, 7], "rngp_pat_list_elem": [1, 7], "rngp_pat_list_interleav": [1, 7], "rngp_pat_list_list": [1, 7], "rngp_pat_list_ref": [1, 7], "rngp_pat_list_text": [1, 7], "rngp_pat_nsname_except_anynam": [1, 7], "rngp_pat_nsname_except_nsnam": [1, 7], "rngp_pat_onemore_group_attr": [1, 7], "rngp_pat_onemore_interleave_attr": [1, 7], "rngp_pat_start_attr": [1, 7], "rngp_pat_start_data": [1, 7], "rngp_pat_start_empti": [1, 7], "rngp_pat_start_group": [1, 7], "rngp_pat_start_interleav": [1, 7], "rngp_pat_start_list": [1, 7], "rngp_pat_start_onemor": [1, 7], "rngp_pat_start_text": [1, 7], "rngp_pat_start_valu": [1, 7], "rngp_prefix_undefin": [1, 7], "rngp_ref_create_fail": [1, 7], "rngp_ref_cycl": [1, 7], "rngp_ref_name_invalid": [1, 7], "rngp_ref_not_empti": [1, 7], "rngp_ref_no_def": [1, 7], "rngp_ref_no_nam": [1, 7], "rngp_start_choice_and_interleav": [1, 7], "rngp_start_cont": [1, 7], "rngp_start_empti": [1, 7], "rngp_start_miss": [1, 7], "rngp_text_expect": [1, 7], "rngp_text_has_child": [1, 7], "rngp_type_miss": [1, 7], "rngp_type_not_found": [1, 7], "rngp_type_valu": [1, 7], "rngp_unknown_attribut": [1, 7], "rngp_unknown_combin": [1, 7], "rngp_unknown_construct": [1, 7], "rngp_unknown_type_lib": [1, 7], "rngp_uri_frag": [1, 7], "rngp_uri_not_absolut": [1, 7], "rngp_value_empti": [1, 7], "rngp_value_no_cont": [1, 7], "rngp_xmlns_name": [1, 7], "rngp_xml_n": [1, 7], "save_char_invalid": [1, 7], "save_not_utf8": [1, 7], "save_no_doctyp": [1, 7], "save_unknown_encod": [1, 7], "schemap_ag_props_correct": [1, 7], "schemap_attrformdefault_valu": [1, 7], "schemap_attrgrp_noname_noref": [1, 7], "schemap_attr_noname_noref": [1, 7], "schemap_au_props_correct": [1, 7], "schemap_au_props_correct_2": [1, 7], "schemap_a_props_correct_2": [1, 7], "schemap_a_props_correct_3": [1, 7], "schemap_complextype_noname_noref": [1, 7], "schemap_cos_all_limit": [1, 7], "schemap_cos_ct_extends_1_1": [1, 7], "schemap_cos_ct_extends_1_2": [1, 7], "schemap_cos_ct_extends_1_3": [1, 7], "schemap_cos_st_derived_ok_2_1": [1, 7], "schemap_cos_st_derived_ok_2_2": [1, 7], "schemap_cos_st_restricts_1_1": [1, 7], "schemap_cos_st_restricts_1_2": [1, 7], "schemap_cos_st_restricts_1_3_1": [1, 7], "schemap_cos_st_restricts_1_3_2": [1, 7], "schemap_cos_st_restricts_2_1": [1, 7], "schemap_cos_st_restricts_2_3_1_1": [1, 7], "schemap_cos_st_restricts_2_3_1_2": [1, 7], "schemap_cos_st_restricts_2_3_2_1": [1, 7], "schemap_cos_st_restricts_2_3_2_2": [1, 7], "schemap_cos_st_restricts_2_3_2_3": [1, 7], "schemap_cos_st_restricts_2_3_2_4": [1, 7], "schemap_cos_st_restricts_2_3_2_5": [1, 7], "schemap_cos_st_restricts_3_1": [1, 7], "schemap_cos_st_restricts_3_3_1": [1, 7], "schemap_cos_st_restricts_3_3_1_2": [1, 7], "schemap_cos_st_restricts_3_3_2_1": [1, 7], "schemap_cos_st_restricts_3_3_2_2": [1, 7], "schemap_cos_st_restricts_3_3_2_3": [1, 7], "schemap_cos_st_restricts_3_3_2_4": [1, 7], "schemap_cos_st_restricts_3_3_2_5": [1, 7], "schemap_cos_valid_default_1": [1, 7], "schemap_cos_valid_default_2_1": [1, 7], "schemap_cos_valid_default_2_2_1": [1, 7], "schemap_cos_valid_default_2_2_2": [1, 7], "schemap_ct_props_correct_1": [1, 7], "schemap_ct_props_correct_2": [1, 7], "schemap_ct_props_correct_3": [1, 7], "schemap_ct_props_correct_4": [1, 7], "schemap_ct_props_correct_5": [1, 7], "schemap_cvc_simple_typ": [1, 7], "schemap_c_props_correct": [1, 7], "schemap_def_and_prefix": [1, 7], "schemap_derivation_ok_restriction_1": [1, 7], "schemap_derivation_ok_restriction_2_1_1": [1, 7], "schemap_derivation_ok_restriction_2_1_2": [1, 7], "schemap_derivation_ok_restriction_2_1_3": [1, 7], "schemap_derivation_ok_restriction_2_2": [1, 7], "schemap_derivation_ok_restriction_3": [1, 7], "schemap_derivation_ok_restriction_4_1": [1, 7], "schemap_derivation_ok_restriction_4_2": [1, 7], "schemap_derivation_ok_restriction_4_3": [1, 7], "schemap_elemformdefault_valu": [1, 7], "schemap_elem_default_fix": [1, 7], "schemap_elem_noname_noref": [1, 7], "schemap_extension_no_bas": [1, 7], "schemap_e_props_correct_2": [1, 7], "schemap_e_props_correct_3": [1, 7], "schemap_e_props_correct_4": [1, 7], "schemap_e_props_correct_5": [1, 7], "schemap_e_props_correct_6": [1, 7], "schemap_facet_no_valu": [1, 7], "schemap_failed_build_import": [1, 7], "schemap_failed_load": [1, 7], "schemap_failed_pars": [1, 7], "schemap_group_noname_noref": [1, 7], "schemap_import_namespace_not_uri": [1, 7], "schemap_import_redefine_nsnam": [1, 7], "schemap_import_schema_not_uri": [1, 7], "schemap_include_schema_not_uri": [1, 7], "schemap_include_schema_no_uri": [1, 7], "schemap_intern": [1, 7], "schemap_intersection_not_express": [1, 7], "schemap_invalid_attr_combin": [1, 7], "schemap_invalid_attr_inline_combin": [1, 7], "schemap_invalid_attr_nam": [1, 7], "schemap_invalid_attr_us": [1, 7], "schemap_invalid_boolean": [1, 7], "schemap_invalid_enum": [1, 7], "schemap_invalid_facet": [1, 7], "schemap_invalid_facet_valu": [1, 7], "schemap_invalid_maxoccur": [1, 7], "schemap_invalid_minoccur": [1, 7], "schemap_invalid_ref_and_subtyp": [1, 7], "schemap_invalid_white_spac": [1, 7], "schemap_mg_props_correct_1": [1, 7], "schemap_mg_props_correct_2": [1, 7], "schemap_missing_simpletype_child": [1, 7], "schemap_noattr_noref": [1, 7], "schemap_noroot": [1, 7], "schemap_notation_no_nam": [1, 7], "schemap_nothing_to_pars": [1, 7], "schemap_notype_noref": [1, 7], "schemap_not_determinist": [1, 7], "schemap_not_schema": [1, 7], "schemap_no_xmln": [1, 7], "schemap_no_xsi": [1, 7], "schemap_prefix_undefin": [1, 7], "schemap_p_props_correct_1": [1, 7], "schemap_p_props_correct_2_1": [1, 7], "schemap_p_props_correct_2_2": [1, 7], "schemap_recurs": [1, 7], "schemap_redefined_attr": [1, 7], "schemap_redefined_attrgroup": [1, 7], "schemap_redefined_el": [1, 7], "schemap_redefined_group": [1, 7], "schemap_redefined_not": [1, 7], "schemap_redefined_typ": [1, 7], "schemap_ref_and_cont": [1, 7], "schemap_ref_and_subtyp": [1, 7], "schemap_regexp_invalid": [1, 7], "schemap_restriction_noname_noref": [1, 7], "schemap_s4s_attr_invalid_valu": [1, 7], "schemap_s4s_attr_miss": [1, 7], "schemap_s4s_attr_not_allow": [1, 7], "schemap_s4s_elem_miss": [1, 7], "schemap_s4s_elem_not_allow": [1, 7], "schemap_simpletype_nonam": [1, 7], "schemap_src_attribute_1": [1, 7], "schemap_src_attribute_2": [1, 7], "schemap_src_attribute_3_1": [1, 7], "schemap_src_attribute_3_2": [1, 7], "schemap_src_attribute_4": [1, 7], "schemap_src_attribute_group_1": [1, 7], "schemap_src_attribute_group_2": [1, 7], "schemap_src_attribute_group_3": [1, 7], "schemap_src_ct_1": [1, 7], "schemap_src_element_1": [1, 7], "schemap_src_element_2_1": [1, 7], "schemap_src_element_2_2": [1, 7], "schemap_src_element_3": [1, 7], "schemap_src_import": [1, 7], "schemap_src_import_1_1": [1, 7], "schemap_src_import_1_2": [1, 7], "schemap_src_import_2": [1, 7], "schemap_src_import_2_1": [1, 7], "schemap_src_import_2_2": [1, 7], "schemap_src_import_3_1": [1, 7], "schemap_src_import_3_2": [1, 7], "schemap_src_includ": [1, 7], "schemap_src_list_itemtype_or_simpletyp": [1, 7], "schemap_src_redefin": [1, 7], "schemap_src_resolv": [1, 7], "schemap_src_restriction_base_or_simpletyp": [1, 7], "schemap_src_simple_type_1": [1, 7], "schemap_src_simple_type_2": [1, 7], "schemap_src_simple_type_3": [1, 7], "schemap_src_simple_type_4": [1, 7], "schemap_src_union_membertypes_or_simpletyp": [1, 7], "schemap_st_props_correct_1": [1, 7], "schemap_st_props_correct_2": [1, 7], "schemap_st_props_correct_3": [1, 7], "schemap_supernumerous_list_item_typ": [1, 7], "schemap_type_and_subtyp": [1, 7], "schemap_union_not_express": [1, 7], "schemap_unknown_all_child": [1, 7], "schemap_unknown_anyattribute_child": [1, 7], "schemap_unknown_attrgrp_child": [1, 7], "schemap_unknown_attribute_group": [1, 7], "schemap_unknown_attr_child": [1, 7], "schemap_unknown_base_typ": [1, 7], "schemap_unknown_choice_child": [1, 7], "schemap_unknown_complexcontent_child": [1, 7], "schemap_unknown_complextype_child": [1, 7], "schemap_unknown_elem_child": [1, 7], "schemap_unknown_extension_child": [1, 7], "schemap_unknown_facet_child": [1, 7], "schemap_unknown_facet_typ": [1, 7], "schemap_unknown_group_child": [1, 7], "schemap_unknown_import_child": [1, 7], "schemap_unknown_include_child": [1, 7], "schemap_unknown_list_child": [1, 7], "schemap_unknown_member_typ": [1, 7], "schemap_unknown_notation_child": [1, 7], "schemap_unknown_prefix": [1, 7], "schemap_unknown_processcontent_child": [1, 7], "schemap_unknown_ref": [1, 7], "schemap_unknown_restriction_child": [1, 7], "schemap_unknown_schemas_child": [1, 7], "schemap_unknown_sequence_child": [1, 7], "schemap_unknown_simplecontent_child": [1, 7], "schemap_unknown_simpletype_child": [1, 7], "schemap_unknown_typ": [1, 7], "schemap_unknown_union_child": [1, 7], "schemap_warn_attr_pointless_proh": [1, 7], "schemap_warn_attr_redecl_proh": [1, 7], "schemap_warn_skip_schema": [1, 7], "schemap_warn_unlocated_schema": [1, 7], "schemap_wildcard_invalid_ns_memb": [1, 7], "schematronv_assert": [1, 7], "schematronv_report": [1, 7], "schemav_attrinvalid": [1, 7], "schemav_attrunknown": [1, 7], "schemav_construct": [1, 7], "schemav_cvc_attribute_1": [1, 7], "schemav_cvc_attribute_2": [1, 7], "schemav_cvc_attribute_3": [1, 7], "schemav_cvc_attribute_4": [1, 7], "schemav_cvc_au": [1, 7], "schemav_cvc_complex_type_1": [1, 7], "schemav_cvc_complex_type_2_1": [1, 7], "schemav_cvc_complex_type_2_2": [1, 7], "schemav_cvc_complex_type_2_3": [1, 7], "schemav_cvc_complex_type_2_4": [1, 7], "schemav_cvc_complex_type_3_1": [1, 7], "schemav_cvc_complex_type_3_2_1": [1, 7], "schemav_cvc_complex_type_3_2_2": [1, 7], "schemav_cvc_complex_type_4": [1, 7], "schemav_cvc_complex_type_5_1": [1, 7], "schemav_cvc_complex_type_5_2": [1, 7], "schemav_cvc_datatype_valid_1_2_1": [1, 7], "schemav_cvc_datatype_valid_1_2_2": [1, 7], "schemav_cvc_datatype_valid_1_2_3": [1, 7], "schemav_cvc_elt_1": [1, 7], "schemav_cvc_elt_2": [1, 7], "schemav_cvc_elt_3_1": [1, 7], "schemav_cvc_elt_3_2_1": [1, 7], "schemav_cvc_elt_3_2_2": [1, 7], "schemav_cvc_elt_4_1": [1, 7], "schemav_cvc_elt_4_2": [1, 7], "schemav_cvc_elt_4_3": [1, 7], "schemav_cvc_elt_5_1_1": [1, 7], "schemav_cvc_elt_5_1_2": [1, 7], "schemav_cvc_elt_5_2_1": [1, 7], "schemav_cvc_elt_5_2_2_1": [1, 7], "schemav_cvc_elt_5_2_2_2_1": [1, 7], "schemav_cvc_elt_5_2_2_2_2": [1, 7], "schemav_cvc_elt_6": [1, 7], "schemav_cvc_elt_7": [1, 7], "schemav_cvc_enumeration_valid": [1, 7], "schemav_cvc_facet_valid": [1, 7], "schemav_cvc_fractiondigits_valid": [1, 7], "schemav_cvc_idc": [1, 7], "schemav_cvc_length_valid": [1, 7], "schemav_cvc_maxexclusive_valid": [1, 7], "schemav_cvc_maxinclusive_valid": [1, 7], "schemav_cvc_maxlength_valid": [1, 7], "schemav_cvc_minexclusive_valid": [1, 7], "schemav_cvc_mininclusive_valid": [1, 7], "schemav_cvc_minlength_valid": [1, 7], "schemav_cvc_pattern_valid": [1, 7], "schemav_cvc_totaldigits_valid": [1, 7], "schemav_cvc_type_1": [1, 7], "schemav_cvc_type_2": [1, 7], "schemav_cvc_type_3_1_1": [1, 7], "schemav_cvc_type_3_1_2": [1, 7], "schemav_cvc_wildcard": [1, 7], "schemav_document_element_miss": [1, 7], "schemav_elemcont": [1, 7], "schemav_element_cont": [1, 7], "schemav_extracont": [1, 7], "schemav_facet": [1, 7], "schemav_havedefault": [1, 7], "schemav_intern": [1, 7], "schemav_invalidattr": [1, 7], "schemav_invalidelem": [1, 7], "schemav_isabstract": [1, 7], "schemav_misc": [1, 7], "schemav_miss": [1, 7], "schemav_norollback": [1, 7], "schemav_noroot": [1, 7], "schemav_notdeterminist": [1, 7], "schemav_notempti": [1, 7], "schemav_notnil": [1, 7], "schemav_notsimpl": [1, 7], "schemav_nottoplevel": [1, 7], "schemav_notyp": [1, 7], "schemav_undeclaredelem": [1, 7], "schemav_valu": [1, 7], "schemav_wrongelem": [1, 7], "tree_invalid_dec": [1, 7], "tree_invalid_hex": [1, 7], "tree_not_utf8": [1, 7], "tree_unterminated_ent": [1, 7], "war_catalog_pi": [1, 7], "war_entity_redefin": [1, 7], "war_lang_valu": [1, 7], "war_ns_column": [1, 7], "war_ns_uri": [1, 7], "war_ns_uri_rel": [1, 7], "war_space_valu": [1, 7], "war_undeclared_ent": [1, 7], "war_unknown_vers": [1, 7], "xinclude_build_fail": [1, 7], "xinclude_deprecated_n": [1, 7], "xinclude_entity_def_mismatch": [1, 7], "xinclude_fallbacks_in_includ": [1, 7], "xinclude_fallback_not_in_includ": [1, 7], "xinclude_fragment_id": [1, 7], "xinclude_href_uri": [1, 7], "xinclude_include_in_includ": [1, 7], "xinclude_invalid_char": [1, 7], "xinclude_multiple_root": [1, 7], "xinclude_no_fallback": [1, 7], "xinclude_no_href": [1, 7], "xinclude_parse_valu": [1, 7], "xinclude_recurs": [1, 7], "xinclude_text_docu": [1, 7], "xinclude_text_frag": [1, 7], "xinclude_unknown_encod": [1, 7], "xinclude_xptr_fail": [1, 7], "xinclude_xptr_result": [1, 7], "xpath_encoding_error": [1, 7], "xpath_expression_ok": [1, 7], "xpath_expr_error": [1, 7], "xpath_invalid_ar": [1, 7], "xpath_invalid_char_error": [1, 7], "xpath_invalid_ctxt_posit": [1, 7], "xpath_invalid_ctxt_s": [1, 7], "xpath_invalid_operand": [1, 7], "xpath_invalid_predicate_error": [1, 7], "xpath_invalid_typ": [1, 7], "xpath_memory_error": [1, 7], "xpath_number_error": [1, 7], "xpath_start_literal_error": [1, 7], "xpath_unclosed_error": [1, 7], "xpath_undef_prefix_error": [1, 7], "xpath_undef_variable_error": [1, 7], "xpath_unfinished_literal_error": [1, 7], "xpath_unknown_func_error": [1, 7], "xpath_variable_ref_error": [1, 7], "xptr_childseq_start": [1, 7], "xptr_eval_fail": [1, 7], "xptr_extra_object": [1, 7], "xptr_resource_error": [1, 7], "xptr_sub_resource_error": [1, 7], "xptr_syntax_error": [1, 7], "xptr_unknown_schem": [1, 7], "read_ev": [1, 7], "log": [1, 7, 8, 19], "receiv": [1, 7, 21], "last_error": [1, 7], "level_map": [1, 7], "localnam": [1, 7, 8, 20, 21], "from_rnc_str": [1, 7], "relaxng_err_attrextran": [1, 7], "relaxng_err_attrnam": [1, 7], "relaxng_err_attrnon": [1, 7], "relaxng_err_attrvalid": [1, 7], "relaxng_err_attrwrongn": [1, 7], "relaxng_err_contentvalid": [1, 7], "relaxng_err_dataelem": [1, 7], "relaxng_err_datatyp": [1, 7], "relaxng_err_dupid": [1, 7], "relaxng_err_elemextran": [1, 7], "relaxng_err_elemnam": [1, 7], "relaxng_err_elemnon": [1, 7], "relaxng_err_elemnotempti": [1, 7], "relaxng_err_elemwrong": [1, 7], "relaxng_err_elemwrongn": [1, 7], "relaxng_err_extracont": [1, 7], "relaxng_err_extradata": [1, 7], "relaxng_err_interextra": [1, 7], "relaxng_err_intern": [1, 7], "relaxng_err_internodata": [1, 7], "relaxng_err_interseq": [1, 7], "relaxng_err_invalidattr": [1, 7], "relaxng_err_lackdata": [1, 7], "relaxng_err_list": [1, 7], "relaxng_err_listelem": [1, 7], "relaxng_err_listempti": [1, 7], "relaxng_err_listextra": [1, 7], "relaxng_err_memori": [1, 7], "relaxng_err_nodefin": [1, 7], "relaxng_err_noelem": [1, 7], "relaxng_err_nogrammar": [1, 7], "relaxng_err_nost": [1, 7], "relaxng_err_notelem": [1, 7], "relaxng_err_textwrong": [1, 7], "relaxng_err_typ": [1, 7], "relaxng_err_typecmp": [1, 7], "relaxng_err_typev": [1, 7], "relaxng_err_valelem": [1, 7], "relaxng_err_valu": [1, 7], "relaxng_ok": [1, 7], "resolve_empti": [1, 7], "resolve_fil": [1, 7], "resolve_filenam": [1, 7], "resolve_str": [1, 7], "appli": [1, 7, 8, 15], "set_global_max_depth": [1, 7], "strparam": [1, 7, 19], "deny_al": [1, 7], "deny_writ": [1, 7], "apply_templ": [1, 7], "execut": [1, 7], "process_children": [1, 7], "has_kei": [1, 7], "iteritem": [1, 7], "iterkei": [1, 7], "itervalu": [1, 7], "filter_domain": [1, 7], "filter_from_error": [1, 7], "filter_from_fat": [1, 7], "filter_from_level": [1, 7], "filter_from_warn": [1, 7], "filter_level": [1, 7], "filter_typ": [1, 7], "capit": [1, 7, 8, 15], "decod": [1, 7, 20], "endswith": [1, 7, 8, 15], "expandtab": [1, 7, 8, 15], "fromhex": [1, 7], "hex": [1, 6, 7], "isalnum": [1, 7, 8, 15], "isalpha": [1, 7, 8, 15], "isascii": [1, 7, 8, 15], "isdigit": [1, 7, 8, 15], "islow": [1, 7, 8, 15], "isspac": [1, 7, 8, 15], "istitl": [1, 7, 8, 15], "isupp": [1, 7, 8, 15], "join": [1, 7, 8, 15], "ljust": [1, 7, 8, 15], "lower": [1, 7, 8, 15], "lstrip": [1, 7, 8, 15], "maketran": [1, 7, 8, 15], "partit": [1, 7, 8, 15], "removeprefix": [1, 7, 8, 15], "removesuffix": [1, 7, 8, 15], "rfind": [1, 7, 8, 15], "rindex": [1, 7, 8, 15], "rjust": [1, 7, 8, 15], "rpartit": [1, 7, 8, 15], "rsplit": [1, 7, 8, 15], "rstrip": [1, 7, 8, 15], "split": [1, 7, 8, 15, 21], "splitlin": [1, 7, 8, 15], "startswith": [1, 7, 8, 15], "swapcas": [1, 7, 8, 15], "translat": [1, 7, 8, 15, 20], "upper": [1, 7, 8, 15], "zfill": [1, 7, 8, 15], "_setroot": [1, 7], "getelementpath": [1, 7], "getpath": [1, 7], "getroot": [1, 7, 8], "write": [1, 4, 7], "write_c14n": [1, 7], "casefold": [1, 7, 8, 15], "format": [1, 7, 8, 15], "format_map": [1, 7, 8, 15], "isdecim": [1, 7, 8, 15], "isidentifi": [1, 7, 8, 15], "isnumer": [1, 7, 8, 15], "isprint": [1, 7, 8, 15], "attrnam": [1, 7], "is_attribut": [1, 7], "is_tail": [1, 7], "is_text": [1, 7], "column": [1, 7, 12], "domain": [1, 7, 19], "domain_nam": [1, 7], "level": [1, 7, 8, 15, 19, 20], "level_nam": [1, 7], "line": [1, 6, 7, 8, 12, 15, 19, 20], "messag": [1, 7, 16, 19], "type_nam": [1, 7], "parsexsl": [1, 7], "write_output": [1, 7], "xslt_profil": [1, 7], "root": [1, 7, 8, 12, 19, 20], "skip_subtre": [1, 7], "_settext": [1, 20], "_setvaluepars": [1, 20], "addattr": [1, 20], "countchildren": [1, 20], "descendantpath": [1, 20], "pyval": [1, 20], "hasattr": [1, 20], "setattr": [1, 20], "regist": [1, 7, 15, 20], "unregist": [1, 20], "stringifi": [1, 20], "type_check": [1, 20], "xmlschematyp": [1, 20], "strlen": [1, 20], "_buildtag": [1, 21], "_get_etre": [1, 21], "charact": [1, 4, 7, 8, 13, 15, 21], "enddocu": [1, 21], "endel": [1, 21], "endelementn": [1, 21], "endprefixmap": [1, 21], "ignorablewhitespac": [1, 21], "setdocumentloc": [1, 21], "skippedent": [1, 21], "startdocu": [1, 21], "startel": [1, 21], "startelementn": [1, 21], "startprefixmap": [1, 21], "sourc": [1, 2, 6, 7, 8, 10, 11, 12, 16, 19, 21], "return": [1, 2, 4, 6, 7, 8, 11, 13, 15, 16, 19, 20, 21], "list": [1, 7, 8, 12, 13, 15, 20], "header": [1, 12, 13], "itself": [1, 7, 8, 13, 15, 19, 20, 21], "libxml2": [1, 7], "libxslt": [1, 7], "need": [1, 7, 8, 13, 15, 20, 21], "compil": [1, 3, 7, 8, 13, 19, 20], "c": [1, 7, 13, 15], "against": [1, 7, 15, 21], "wa": [1, 7, 8, 13, 15, 20, 21], "built": [1, 8, 11, 19], "static": [1, 7, 15], "librari": [1, 7, 21], "limit": [2, 7, 15], "support": [2, 4, 7, 8, 19, 20], "while": [2, 6, 7, 15], "ha": [2, 7, 8, 15, 19, 20, 21], "full": [2, 8], "see": [2, 6, 7, 8, 13, 15, 20, 21], "thi": [2, 4, 6, 7, 8, 11, 13, 15, 19, 20, 21], "provid": [2, 7, 8, 20, 21], "simpler": 2, "pure": [2, 7, 19], "python": [2, 4, 7, 8, 15, 19, 20, 21], "compat": [2, 7, 8, 11, 20], "implement": [2, 7, 8, 11, 13, 15, 19, 20], "simpl": [2, 4, 7, 19], "custom": [2, 7, 8, 19, 20], "except": [2, 6, 7, 8, 11, 15, 16, 21], "note": [2, 6, 7, 8, 11, 13, 15, 16, 20, 21], "tb": [2, 7, 15, 16, 21], "self": [2, 7, 8, 11, 15, 16, 19, 20, 21], "__traceback__": [2, 7, 15, 16, 21], "elem": [2, 3, 7], "loader": 2, "max_depth": [2, 7], "6": [2, 7, 15], "_parent_href": 2, "href": [2, 4, 7, 8, 13, 15], "selector": [3, 12], "pattern": [3, 7, 8, 13, 19], "default": [3, 6, 7, 8, 13, 15, 19, 20, 21], "next": [3, 7, 8, 20], "The": [4, 7, 8, 13, 15, 19, 20, 21], "e": [4, 7, 8, 12, 13, 15, 19, 20], "factori": [4, 7, 8, 13, 20], "gener": [4, 6, 7, 8, 12, 13, 15, 20, 21], "document": [4, 6, 7, 8, 12, 13, 15, 19, 20, 21], "unlik": [4, 7, 8, 15, 20], "ordinari": [4, 7, 8, 20], "allow": [4, 6, 7, 8, 13, 20, 21], "you": [4, 6, 7, 8, 11, 13, 15, 19, 20], "pass": [4, 7, 8, 13, 19, 20], "more": [4, 6, 7, 8, 13, 15], "than": [4, 7, 8, 15], "just": [4, 6, 7, 8, 13, 15, 20, 21], "some": [4, 6, 7, 8, 13, 15, 20], "attribut": [4, 6, 7, 8, 13, 15, 19, 20, 21], "can": [4, 6, 7, 8, 13, 15, 16, 19, 20], "also": [4, 6, 7, 8, 13, 15, 19, 20, 21], "other": [4, 7, 8, 11, 13, 15, 20, 21], "ad": [4, 7, 8, 13, 15, 20], "either": [4, 7, 8, 15, 19, 20, 21], "ar": [4, 6, 7, 8, 11, 13, 15, 19, 20, 21], "right": [4, 7, 8, 15, 20], "spot": 4, "exampl": [4, 6, 7, 8, 15, 19, 20, 21], "from": [4, 6, 7, 8, 11, 12, 13, 14, 15, 19, 20, 21], "import": [4, 6, 7, 8, 12, 15, 19, 20], "et": 4, "subtag": 4, "For": [4, 7, 8, 19, 20], "instead": [4, 6, 7, 8, 15, 20], "here": [4, 7, 8, 15, 19], "somewhat": 4, "larger": 4, "show": [4, 8, 15], "how": [4, 7, 8, 11, 15], "us": [4, 6, 7, 8, 11, 13, 15, 19, 20, 21], "mix": [4, 7, 8, 11], "prepar": 4, "function": [4, 7, 8, 11, 15, 19, 20, 21], "inlin": [4, 12], "nest": [4, 7, 21], "call": [4, 6, 7, 8, 11, 15, 19, 20, 21], "embed": [4, 7, 8, 12, 13, 19], "xhtml": [4, 7, 8, 20], "fragment": [4, 7, 8, 12, 15], "common": [4, 7, 8, 15], "v": [4, 6, 8, 12], "helper": [4, 8, 15, 21], "reserv": [4, 7, 15], "word": [4, 7, 13, 15], "sampl": [4, 12], "hello": [4, 8, 12, 15, 20], "paragraph": [4, 8, 12], "bold": [4, 12, 20], "anoth": [4, 13, 15], "www": [4, 7, 8, 12, 13, 14], "org": [4, 7, 8, 13, 14, 19, 21], "spam": 4, "egg": 4, "And": 4, "final": [4, 7], "an": [4, 6, 7, 8, 11, 13, 15, 19, 20, 21], "print": [4, 7, 8, 12, 15, 20], "prettyprint": 4, "abov": [4, 15], "lt": 4, "amp": 4, "gt": 4, "specif": [4, 7, 8, 13, 15, 20], "my": 4, "n": [4, 7, 8, 11, 13, 15, 20], "test": [4, 6, 7, 13, 15, 19], "xmln": [4, 7, 19], "__pyx_typ": [4, 21], "__pyx_checksum": [4, 21], "__pyx_stat": [4, 21], "doctest": 6, "comparison": [6, 7, 15], "normal": [6, 7, 8, 13, 20, 21], "should": [6, 7, 8, 11, 15, 20, 21], "usedoctest": 6, "within": [6, 7, 8, 15, 20], "one": [6, 7, 8, 13, 15, 20], "To": [6, 7, 8, 15, 19, 20], "directli": [6, 7, 8, 15, 20], "must": [6, 7, 8, 11, 15, 19, 20, 21], "lxmldoctest": 6, "which": [6, 7, 8, 13, 15, 20, 21], "caus": 6, "all": [6, 7, 8, 11, 13, 15, 20, 21], "subsequ": [6, 15], "chang": [6, 7, 8, 12, 15, 19, 20], "wai": [6, 7, 8], "made": [6, 7], "like": [6, 7, 8, 13, 15, 19, 20], "notic": 6, "becaus": [6, 7, 21], "parse_xml": 6, "flag": [6, 7, 8], "forc": [6, 12], "rough": 6, "wildcard": [6, 7, 8, 20], "thing": [6, 8], "whitespac": [6, 7, 8, 15, 21], "ignor": [6, 7, 8, 15, 19, 20, 21], "In": [6, 7, 8, 15, 20], "match": [6, 7, 8, 11, 13, 15, 20, 21], "ani": [6, 7, 8, 11, 13, 15, 20, 21], "trail": [6, 7, 8, 15], "though": [6, 15, 21], "doe": [6, 7, 8, 11, 13, 15, 19, 20, 21], "lead": [6, 7, 8, 15], "mai": [6, 7, 8, 13, 15, 20, 21], "creat": [6, 7, 8, 11, 19, 20], "when": [6, 7, 8, 13, 15, 16, 20, 21], "fail": [6, 7, 8, 19], "reformat": 6, "gotten": 6, "displai": [6, 15], "given": [6, 7, 8, 13, 15, 19, 20], "anyth": [6, 8, 13, 15], "mark": [6, 7], "wasn": 6, "t": [6, 7, 8, 11, 13, 15, 20], "suppos": 6, "similarli": [6, 8, 15], "mean": [6, 7, 15], "its": [6, 7, 8, 11, 15, 19, 20, 21], "disabl": [6, 7, 8, 13, 20], "noparse_markup": 6, "want": [6, 7, 8, 13, 15, 20], "got": 6, "optionflag": 6, "convert": [6, 7, 8, 15, 19, 20], "string": [6, 7, 8, 13, 15, 19, 20, 21], "escap": [6, 7], "ascii": [6, 7, 8, 15, 20], "true": [6, 7, 8, 11, 12, 13, 15, 16, 19, 20, 21], "iff": [6, 20], "actual": [6, 7, 15], "expect": [6, 7], "These": [6, 7], "alwai": [6, 7, 8, 20, 21], "consid": [6, 7, 13, 15, 20], "thei": [6, 7, 8, 11, 13, 15, 20, 21], "ident": [6, 7, 8, 15, 20], "depend": [6, 7, 8, 13, 20, 21], "what": [6, 7, 8, 13, 20], "runner": 6, "sever": [6, 7, 8, 21], "non": [6, 7, 8, 12, 13, 15, 19, 21], "exact": 6, "possibl": [6, 7, 8, 13, 15, 20], "testrunn": 6, "inform": [6, 7, 8, 12, 15, 20, 21], "about": [6, 7, 8, 15], "doc": [6, 7, 8, 13, 15], "el": [6, 7, 8, 13, 15, 16, 20], "describ": [6, 15], "between": [6, 7, 15], "compar": [6, 7, 8, 11, 15, 20], "outputcheck": 6, "dt_self": 6, "old_check": 6, "new_check": 6, "check_func": 6, "clone_func": 6, "del_modul": 6, "kw": [6, 7, 8, 13, 16, 20], "fals": [6, 7, 8, 13, 15, 19, 20], "futur": [6, 7], "If": [6, 7, 8, 11, 13, 15, 19, 20], "otherwis": [6, 7, 8, 15, 20, 21], "insid": [6, 7, 8, 15], "enabl": [6, 7, 8, 20], "checker": 6, "onli": [6, 7, 8, 13, 15, 19, 20, 21], "api": [7, 8, 20], "dure": [7, 21], "serialis": [7, 8], "rais": [7, 8, 11, 15, 16, 19, 20], "inherit": [7, 20], "registri": [7, 8], "syntaxerror": 7, "syntax": 7, "1": [7, 8, 13, 15, 19, 20, 21], "3": [7, 8, 15, 19, 20, 21], "later": [7, 8, 15], "properti": [7, 8, 12, 19, 20, 21], "intern": [7, 8], "schema": [7, 19, 20], "occur": [7, 8, 15, 21], "process": [7, 8, 13, 19, 20, 21], "assertionerror": [7, 19], "addition": [7, 8, 20], "backward": [7, 8, 20], "reason": 7, "plain": [7, 8], "look": [7, 8, 13, 15, 20], "up": [7, 8, 13, 15, 20], "handl": [7, 8, 15, 20], "result": [7, 8, 15, 19, 20], "run": [7, 8, 20], "xsl": [7, 19], "transform": [7, 15], "stylesheet": [7, 8, 13, 19], "node": [7, 8, 20], "over": [7, 8, 12, 20], "ancestor": [7, 8, 20], "parent": [7, 8, 13, 20], "attribute_nam": 7, "class_map": 7, "dictionari": [7, 8, 15, 19, 20], "argument": [7, 8, 12, 15, 19, 20], "dict": [7, 8, 20], "mechan": 7, "miss": 7, "scheme": [7, 8, 15], "event": [7, 21], "2": [7, 8, 15, 19, 20, 21], "0": [7, 8, 13, 15, 19, 20, 21], "configur": [7, 8, 13], "with_com": 7, "strip_text": 7, "befor": [7, 8, 13, 15, 20, 21], "after": [7, 8, 15, 20, 21], "rewrite_prefix": 7, "number": [7, 8, 15, 19, 20], "qname_aware_tag": 7, "awar": [7, 8], "qname_aware_attr": 7, "exclude_attr": 7, "exclude_tag": 7, "ns_stack": 7, "attr": [7, 21], "opaqu": 7, "usual": [7, 13, 20], "unicod": [7, 8, 13, 15, 20], "instanc": [7, 8, 11, 12, 13, 15, 20, 21], "subclass": [7, 8, 13, 19, 20], "overrid": [7, 8, 11, 13, 20], "__init__": [7, 19], "__new__": 7, "absolut": [7, 8, 13, 21], "undefin": [7, 8], "destroi": 7, "persist": 7, "state": 7, "store": [7, 19, 20], "underli": [7, 8], "realli": [7, 8], "initi": [7, 19], "creation": 7, "initialis": [7, 8, 20], "recurs": [7, 8, 20], "superclass": [7, 8, 20], "follow": [7, 8, 15, 19, 20], "sibl": [7, 8, 20], "instruct": [7, 8, 13, 20, 21], "automat": [7, 8, 20, 21], "preced": [7, 8, 15, 19, 20], "keep_tail": [7, 8, 20], "reset": [7, 8, 20], "leav": [7, 8, 20], "untouch": [7, 8, 15, 20], "expr": [7, 8, 13, 20], "css": [7, 8, 20], "express": [7, 8, 13, 15, 19, 20], "children": [7, 8, 20, 21], "equival": [7, 8, 15, 20], "substanti": [7, 8, 20], "speedup": [7, 8, 20], "current": [7, 8, 15, 20], "first": [7, 8, 15, 20], "accept": [7, 8, 11, 13, 15, 20], "usag": [7, 8, 12, 19, 20], "direct": [7, 8, 20], "order": [7, 8, 11, 12, 15, 20, 21], "deprec": [7, 8, 12, 20], "been": [7, 8, 15, 19], "new": [7, 8, 11, 15, 20], "simpli": [7, 8, 20], "sequenc": [7, 8, 15, 20], "subtre": [7, 8, 13, 20], "depth": [7, 8, 20], "restrict": [7, 8, 15, 19, 20], "It": [7, 8, 13, 15, 20], "diverg": [7, 8, 20], "origin": [7, 8, 15, 20, 21], "behaviour": [7, 8, 19, 20], "effici": [7, 8, 20], "requir": [7, 8, 20, 21], "older": [7, 8, 20], "contain": [7, 8, 11, 12, 13, 15, 20, 21], "same": [7, 8, 11, 15, 20, 21], "until": [7, 8, 20, 21], "build": [7, 8, 12, 20, 21], "last": [7, 8, 15, 20, 21], "child": [7, 8, 20], "stop": [7, 8, 15, 20], "part": [7, 8, 13, 15, 20, 21], "both": [7, 8, 15, 20], "empti": [7, 8, 11, 15, 20], "singl": [7, 8, 12, 15, 20, 21], "let": [7, 8, 20], "As": [7, 8, 15, 20], "oppos": [7, 8, 20], "keyword": [7, 8, 15, 19, 20], "descend": [7, 8, 20], "yield": [7, 8, 20], "determin": [7, 8, 15, 20, 21], "forward": [7, 8, 20], "go": [7, 8, 20], "with_tail": [7, 8, 20], "skip": [7, 8, 20, 21], "_tag": [7, 8, 20], "_extra": [7, 8, 20], "associ": [7, 8, 20], "old_el": [7, 8, 20], "new_el": [7, 8, 20], "second": [7, 8, 15, 20], "_path": [7, 8, 20], "smart_str": [7, 8, 20], "_variabl": [7, 8, 20], "context": [7, 8, 13, 15, 19, 20, 21], "unknown": [7, 8, 20], "hold": [7, 8, 20, 21], "regardless": [7, 8, 11, 13, 20], "known": [7, 8, 19, 20], "declar": [7, 8, 20, 21], "effect": [7, 8, 11, 13, 15, 20], "found": [7, 8, 13, 15, 16, 20, 21], "file": [7, 8, 19, 20], "load": [7, 8], "filesystem": 7, "altern": [7, 12, 19], "paramet": [7, 13, 19, 21], "compli": [7, 19], "subset": [7, 21], "extern": [7, 20, 21], "public": [7, 8], "id": [7, 8, 13, 19], "mutabl": 7, "exist": [7, 8, 15, 20], "variabl": [7, 12], "even": [7, 15, 21], "defin": [7, 8, 11, 15, 20], "ye": 7, "truth": 7, "tell": [7, 8], "system": [7, 19], "attribute_default": 7, "dtd_valid": [7, 8], "load_dtd": [7, 8], "no_network": 7, "ns_clean": 7, "recov": 7, "huge_tre": 7, "remove_blank_text": [7, 20], "resolve_ent": 7, "remove_com": 7, "remove_pi": 7, "strip_cdata": 7, "compact": [7, 13], "setup": 7, "detail": [7, 13, 15, 21], "thu": [7, 8, 20], "termin": [7, 8], "remain": [7, 8, 15], "chunk": [7, 8, 15, 21], "interfac": [7, 8, 21], "8": [7, 8, 15, 21], "bit": [7, 8, 13], "although": [7, 8], "long": [7, 8, 12, 13], "entri": [7, 8, 19, 20], "point": [7, 8, 15], "consum": [7, 8], "much": [7, 8, 11], "stream": [7, 8], "each": [7, 8, 13, 15, 21], "finish": [7, 8, 21], "longer": [7, 8, 15, 20], "independ": [7, 8, 12], "concurr": [7, 8], "noth": [7, 8, 15], "local": [7, 8, 12], "special": [7, 8, 15], "notat": [7, 15], "smart": 7, "unless": [7, 8, 15, 20], "_eval_arg": 7, "liter": [7, 20], "fat": 7, "instanti": [7, 20], "By": [7, 15], "modifi": [7, 8, 13, 15], "possibli": [7, 15, 20], "clark": 7, "un": 7, "newli": 7, "user": [7, 12, 15, 20], "latter": 7, "three": [7, 15], "commonli": 7, "hierarchi": 7, "arbitrari": [7, 8, 20], "without": [7, 8, 15, 20], "where": [7, 8, 15, 20, 21], "access": [7, 8, 19, 20], "respect": 7, "inclus": [7, 19], "filter": [7, 19], "them": [7, 8, 13, 15, 20, 21], "out": [7, 8, 15], "boolean": [7, 8, 20], "exclud": 7, "complet": [7, 8, 15, 19], "travers": 7, "ns_element": 7, "movi": 7, "movieel": 7, "explicit": 7, "ns_uri": 7, "retriev": [7, 19, 20], "yet": [7, 8, 20], "g": [7, 8, 12, 15, 19], "know": [7, 8, 20], "pretti": 7, "els": [7, 8, 19], "29": 7, "21": [7, 15], "20": [7, 15], "24": 7, "15": 7, "4": [7, 8, 15, 21], "9": [7, 13, 15], "5": [7, 15, 19], "10": [7, 21], "27": [7, 15], "26": [7, 15], "7": [7, 15], "14": 7, "18": 7, "19": [7, 15], "16": [7, 15], "17": [7, 15], "28": [7, 15, 19], "30": [7, 15], "23": [7, 15], "25": [7, 20], "11": [7, 15], "12": [7, 15], "13": 7, "22": [7, 15], "7000": 7, "1950": 7, "1952": 7, "1953": 7, "1955": 7, "1951": 7, "1954": 7, "1651": 7, "1650": 7, "1653": 7, "1652": 7, "1654": 7, "5012": 7, "5001": 7, "5003": 7, "5007": 7, "5008": 7, "5000": 7, "5005": 7, "5004": 7, "5009": 7, "5010": 7, "5006": 7, "5002": 7, "5037": 7, "5023": 7, "5024": 7, "5022": 7, "5025": 7, "5026": 7, "5034": 7, "5027": 7, "5032": 7, "5033": 7, "5014": 7, "5016": 7, "5028": 7, "5015": 7, "5020": 7, "5013": 7, "5018": 7, "5031": 7, "5030": 7, "5035": 7, "5011": 7, "5017": 7, "5036": 7, "5021": 7, "5029": 7, "5019": 7, "500": 7, "501": 7, "502": 7, "503": 7, "504": 7, "505": 7, "506": 7, "541": 7, "507": 7, "508": 7, "509": 7, "510": 7, "511": 7, "512": 7, "513": 7, "514": 7, "515": 7, "516": 7, "517": 7, "518": 7, "519": 7, "520": 7, "526": 7, "527": 7, "528": 7, "529": 7, "530": 7, "521": 7, "522": 7, "523": 7, "524": 7, "525": 7, "531": 7, "538": 7, "532": 7, "533": 7, "534": 7, "535": 7, "536": 7, "537": 7, "540": 7, "539": 7, "51": 7, "50": 7, "40": [7, 13, 15], "39": 7, "42": 7, "41": 7, "63": 7, "112": 7, "45": 7, "83": 7, "95": 7, "59": 7, "58": 7, "61": 7, "55": 7, "54": 7, "79": 7, "90": 7, "87": 7, "89": 7, "37": 7, "36": 7, "88": 7, "104": 7, "75": [7, 15], "86": 7, "82": 7, "60": 7, "73": 7, "80": 7, "81": 7, "91": 7, "44": 7, "43": 7, "74": 7, "38": [7, 15], "72": 7, "62": 7, "101": 7, "53": 7, "52": 7, "68": 7, "110": 7, "67": 7, "49": 7, "48": 7, "105": 7, "103": 7, "85": 7, "94": 7, "35": [7, 15], "69": 7, "47": 7, "46": 7, "71": 7, "64": 7, "66": 7, "65": 7, "78": 7, "34": [7, 15], "33": 7, "76": 7, "77": 7, "31": [7, 15], "108": 7, "32": 7, "92": 7, "70": 7, "111": 7, "84": 7, "109": 7, "96": 7, "57": 7, "56": 7, "2002": 7, "2001": 7, "2000": 7, "2003": 7, "800": 7, "801": 7, "2022": 7, "2020": 7, "2021": 7, "6003": 7, "6002": 7, "6001": 7, "6000": 7, "6004": 7, "1548": 7, "1501": 7, "1554": 7, "1556": 7, "1502": 7, "1555": 7, "1503": 7, "1504": 7, "1505": 7, "1506": 7, "1507": 7, "1552": 7, "1508": 7, "1509": 7, "1510": 7, "1511": 7, "1512": 7, "1513": 7, "1514": 7, "1515": 7, "1516": 7, "1551": 7, "1517": 7, "1518": 7, "1519": 7, "1520": 7, "1521": 7, "1544": 7, "1553": 7, "1522": 7, "1523": 7, "1524": 7, "1525": 7, "1526": 7, "1527": 7, "1528": 7, "1529": 7, "1530": 7, "1531": 7, "1550": 7, "1532": 7, "1533": 7, "1534": 7, "1535": 7, "1536": 7, "1537": 7, "1538": 7, "1539": 7, "1540": 7, "1541": 7, "1542": 7, "1545": 7, "1549": 7, "1543": 7, "1547": 7, "1500": 7, "1546": 7, "4901": 7, "4900": 7, "203": 7, "205": 7, "204": 7, "202": 7, "201": 7, "200": 7, "1450": 7, "1000": 7, "1002": 7, "1003": 7, "1004": 7, "1005": 7, "1001": 7, "1006": 7, "1007": 7, "1008": 7, "1009": 7, "1011": 7, "1012": 7, "1013": 7, "1014": 7, "1010": 7, "1018": 7, "1017": 7, "1019": 7, "1020": 7, "1015": 7, "1016": 7, "1021": 7, "1022": 7, "1023": 7, "1024": 7, "1025": 7, "1026": 7, "1027": 7, "1028": 7, "1029": 7, "1030": 7, "1031": 7, "1033": 7, "1032": 7, "1034": 7, "1035": 7, "1036": 7, "1037": 7, "1038": 7, "1039": 7, "1040": 7, "1041": 7, "1042": 7, "1043": 7, "1044": 7, "1045": 7, "1046": 7, "1047": 7, "1048": 7, "1049": 7, "1050": 7, "1051": 7, "1052": 7, "1053": 7, "1054": 7, "1055": 7, "1056": 7, "1057": 7, "1058": 7, "1059": 7, "1060": 7, "1061": 7, "1064": 7, "1062": 7, "1063": 7, "1065": 7, "1066": 7, "1067": 7, "1068": 7, "1069": 7, "1070": 7, "1071": 7, "1072": 7, "1073": 7, "1074": 7, "1075": 7, "1076": 7, "1077": 7, "1078": 7, "1079": 7, "1080": 7, "1081": 7, "1082": 7, "1083": 7, "1084": 7, "1085": 7, "1086": 7, "1087": 7, "1088": 7, "1089": 7, "1090": 7, "1091": 7, "1092": 7, "1093": 7, "1094": 7, "1095": 7, "1096": 7, "1097": 7, "1098": 7, "1099": 7, "1100": 7, "1103": 7, "1101": 7, "1102": 7, "1104": 7, "1105": 7, "1106": 7, "1107": 7, "1108": 7, "1109": 7, "1110": 7, "1111": 7, "1112": 7, "1113": 7, "1114": 7, "1115": 7, "1116": 7, "1117": 7, "1118": 7, "1119": 7, "1120": 7, "1121": 7, "1122": 7, "1401": 7, "1400": 7, "1402": 7, "1403": 7, "3087": 7, "1701": 7, "1702": 7, "1703": 7, "3089": 7, "3078": 7, "3079": 7, "3090": 7, "1704": 7, "3091": 7, "3063": 7, "3088": 7, "1800": 7, "3031": 7, "3032": 7, "3011": 7, "3012": 7, "3013": 7, "3014": 7, "3015": 7, "3016": 7, "3017": 7, "3018": 7, "3019": 7, "3020": 7, "3021": 7, "3022": 7, "3023": 7, "3024": 7, "3025": 7, "3027": 7, "3026": 7, "3028": 7, "3029": 7, "3030": 7, "3058": 7, "3059": 7, "3060": 7, "3061": 7, "1782": 7, "1783": 7, "1784": 7, "1785": 7, "1786": 7, "3062": 7, "3080": 7, "1768": 7, "1787": 7, "1788": 7, "1789": 7, "3077": 7, "1790": 7, "1791": 7, "1797": 7, "1798": 7, "1799": 7, "1705": 7, "1755": 7, "1706": 7, "1707": 7, "3045": 7, "3046": 7, "3047": 7, "3048": 7, "3049": 7, "1708": 7, "1709": 7, "1757": 7, "1766": 7, "1710": 7, "1711": 7, "1712": 7, "1713": 7, "1770": 7, "1771": 7, "3069": 7, "1793": 7, "1777": 7, "1778": 7, "1780": 7, "1774": 7, "1714": 7, "1715": 7, "1716": 7, "1717": 7, "1718": 7, "1719": 7, "1720": 7, "1721": 7, "3074": 7, "3075": 7, "1779": 7, "1722": 7, "1759": 7, "1723": 7, "1758": 7, "1724": 7, "3070": 7, "1772": 7, "3056": 7, "3057": 7, "1700": 7, "3042": 7, "3043": 7, "3044": 7, "1775": 7, "1764": 7, "1763": 7, "1762": 7, "1760": 7, "1765": 7, "1761": 7, "1781": 7, "1725": 7, "1756": 7, "1726": 7, "3037": 7, "3036": 7, "3035": 7, "3034": 7, "3033": 7, "1727": 7, "3051": 7, "3052": 7, "3053": 7, "3054": 7, "3055": 7, "3071": 7, "3072": 7, "3073": 7, "3076": 7, "3038": 7, "3039": 7, "3040": 7, "3041": 7, "3082": 7, "3064": 7, "3065": 7, "3066": 7, "3067": 7, "3068": 7, "1795": 7, "1796": 7, "3050": 7, "3006": 7, "3081": 7, "3004": 7, "3005": 7, "3000": 7, "3001": 7, "3002": 7, "3003": 7, "3007": 7, "3008": 7, "3009": 7, "3010": 7, "1776": 7, "1728": 7, "1794": 7, "1729": 7, "1730": 7, "1732": 7, "1733": 7, "1731": 7, "1734": 7, "1735": 7, "1736": 7, "1737": 7, "1738": 7, "1739": 7, "1740": 7, "1741": 7, "1742": 7, "1743": 7, "1769": 7, "1744": 7, "1773": 7, "1745": 7, "1767": 7, "1746": 7, "1747": 7, "1748": 7, "1749": 7, "1750": 7, "1751": 7, "1752": 7, "1753": 7, "1754": 7, "3086": 7, "3085": 7, "3083": 7, "3084": 7, "1792": 7, "4000": [7, 19], "4001": 7, "1821": 7, "1820": 7, "1817": 7, "1861": 7, "1862": 7, "1863": 7, "1864": 7, "1874": 7, "1873": 7, "1841": 7, "1842": 7, "1843": 7, "1844": 7, "1865": 7, "1866": 7, "1867": 7, "1868": 7, "1869": 7, "1870": 7, "1824": 7, "1825": 7, "1826": 7, "1845": 7, "1846": 7, "1847": 7, "1848": 7, "1849": 7, "1850": 7, "1851": 7, "1852": 7, "1853": 7, "1854": 7, "1855": 7, "1856": 7, "1857": 7, "1858": 7, "1859": 7, "1860": 7, "1840": 7, "1829": 7, "1838": 7, "1877": 7, "1830": 7, "1836": 7, "1834": 7, "1832": 7, "1835": 7, "1833": 7, "1831": 7, "1839": 7, "1837": 7, "1875": 7, "1876": 7, "1827": 7, "1828": 7, "1878": 7, "1872": 7, "1810": 7, "1871": 7, "1813": 7, "1823": 7, "1811": 7, "1818": 7, "1814": 7, "1815": 7, "1808": 7, "1879": 7, "1804": 7, "1807": 7, "1801": 7, "1816": 7, "1809": 7, "1812": 7, "1819": 7, "1803": 7, "1806": 7, "1802": 7, "1822": 7, "1805": 7, "1301": 7, "1300": 7, "1303": 7, "1302": 7, "93": 7, "107": 7, "98": 7, "106": 7, "99": 7, "100": 7, "102": 7, "97": 7, "1609": 7, "1617": 7, "1602": 7, "1615": 7, "1616": 7, "1618": 7, "1605": 7, "1614": 7, "1608": 7, "1611": 7, "1604": 7, "1603": 7, "1601": 7, "1600": 7, "1607": 7, "1606": 7, "1610": 7, "1612": 7, "1613": 7, "1220": 7, "1200": 7, "1207": 7, "1212": 7, "1221": 7, "1214": 7, "1213": 7, "1210": 7, "1206": 7, "1211": 7, "1215": 7, "1201": 7, "1203": 7, "1208": 7, "1219": 7, "1205": 7, "1202": 7, "1209": 7, "1204": 7, "1901": 7, "1902": 7, "1903": 7, "1217": 7, "1218": 7, "1216": 7, "1900": 7, "addit": [7, 8, 15, 20], "collect_id": 7, "read": 7, "broken": 7, "well": [7, 8, 15, 19], "capabl": [7, 19, 21], "switch": [7, 19], "off": [7, 19], "avail": [7, 19, 20], "try": [7, 8, 15], "hard": 7, "through": [7, 8, 12, 13, 19, 20], "prevent": [7, 15], "network": 7, "relat": [7, 13, 21], "section": [7, 21], "save": [7, 8], "short": [7, 12], "default_doctyp": 7, "hash": [7, 8, 11], "fast": 7, "secur": 7, "veri": [7, 15, 19], "deep": 7, "affect": 7, "avoid": 7, "share": [7, 15], "thread": 7, "perform": 7, "kwarg": [7, 8, 15, 19], "collect": [7, 8], "block": [7, 8, 15, 16], "sens": 7, "increment": 7, "rel": [7, 8, 13, 15, 20, 21], "pseudo": [7, 8], "conveni": [7, 8, 19], "most": [7, 8], "case": [7, 8, 15, 20, 21], "structur": [7, 8, 13, 15, 19, 20], "pair": [7, 8], "properli": [7, 8, 21], "quot": [7, 8], "guarante": [7, 8, 15, 21], "work": [7, 8, 13, 15], "stai": [7, 8], "logger_nam": 7, "logger": 7, "global": 7, "connect": 7, "stdlib": 7, "constructor": [7, 8, 11, 13], "readili": 7, "critic": 7, "take": [7, 8, 13, 15, 19, 20], "logentri": 7, "log_entri": 7, "format_str": 7, "arg1": 7, "arg2": 7, "appropri": [7, 15, 20], "dummi": [7, 15], "further": 7, "best": 7, "repr": [7, 15], "your": [7, 8], "own": [7, 21], "entir": [7, 13], "mode": [7, 21], "re": [7, 8, 13], "pyclasslookup": 7, "myelementclass": 7, "honkei": 7, "mylookup": 7, "sometag": 7, "someothertag": 7, "deleg": 7, "lightweight": 7, "proxi": 7, "do": [7, 8, 11, 13, 15, 20], "keep": [7, 15], "refer": [7, 8, 19], "onc": [7, 8, 15, 21], "done": [7, 15], "invalid": [7, 16], "cannot": [7, 20, 21], "wrap": [7, 15, 19], "care": 7, "outsid": [7, 8], "featur": [7, 21], "slice": [7, 15], "de": [7, 20, 21], "text_or_uri_or_el": 7, "wrapper": [7, 8], "qualifi": 7, "extract": [7, 15, 19], "tagnam": 7, "wherev": 7, "assign": 7, "help": 7, "languag": [7, 12, 19], "soap": 7, "turn": [7, 13, 15, 19], "relax": 7, "ng": 7, "classmethod": [7, 8, 11], "src": [7, 13, 15], "rnc2rng": 7, "resourc": 7, "third": [7, 15], "resolve_": 7, "f": [7, 8, 15, 20], "open": [7, 8, 15], "especi": 7, "environ": 7, "parsabl": [7, 20], "less": [7, 19], "power": [7, 19], "idea": [7, 19], "put": [7, 19], "ascc": 7, "net": [7, 13, 20], "permit": [7, 19], "rule": [7, 12, 13, 19, 21], "report": [7, 8, 19, 21], "forbidden": [7, 19], "aaa": [7, 19], "bbb": [7, 19], "ccc": [7, 19], "color": [7, 13, 19], "howev": [7, 21], "lack": [7, 8], "stderr": 7, "therefor": 7, "specifi": [7, 8, 15], "element_factori": 7, "comment_factori": 7, "pi_factori": 7, "insert_com": 7, "insert_pi": 7, "callback": 7, "influenc": 7, "flush": 7, "toplevel": 7, "inconsist": 7, "processor": [7, 21], "suppli": [7, 21], "variou": 7, "time": [7, 21], "major": 7, "overhead": 7, "mainli": [7, 8, 15], "request": [7, 8], "inject": 7, "referenc": 7, "redund": 7, "blank": [7, 15, 20], "appear": [7, 15, 20], "harm": 7, "separ": [7, 15], "make": [7, 8, 13, 15, 20], "fix": 7, "alia": 7, "besid": 7, "exslt": 7, "regular": [7, 13, 15], "xslt_input": 7, "access_control": 7, "xsl_tree": 7, "xml_tree": 7, "profile_run": 7, "profil": 7, "_input": 7, "maximum": [7, 15], "engin": [7, 21], "templat": 7, "account": [7, 8], "wide": 7, "per": 7, "strval": 7, "some_strv": 7, "monti": 7, "reus": [7, 20], "result_tre": 7, "str": [7, 15, 20], "write_fil": 7, "create_dir": 7, "read_network": 7, "write_network": 7, "control": [7, 8, 12, 13, 19, 20], "directori": [7, 12], "o": [7, 13], "grant": 7, "deni": 7, "member": [7, 8, 11], "everyth": 7, "output_par": 7, "elements_onli": 7, "were": [7, 8, 15], "consist": 7, "bare": 7, "etc": [7, 8, 12, 13, 15, 20], "safe": [7, 13, 21], "have": [7, 8, 11, 13, 15, 21], "self_nod": 7, "input_nod": 7, "sequence_or_dict": 7, "__contentonlyel": 7, "libxml": 7, "garbag": 7, "shallow": [7, 8], "wors": 7, "kept": 7, "pointer": 7, "dead": 7, "byte": 7, "rest": [7, 15], "width": [7, 13, 15], "fillchar": [7, 15], "length": [7, 15], "pad": [7, 15], "fill": [7, 15], "int": [7, 15, 20], "overlap": [7, 8, 13, 15], "occurr": [7, 8, 13, 15], "subsect": 7, "interpret": [7, 13, 15], "utf": [7, 15], "strict": [7, 8, 15], "codec": [7, 15], "unicodedecodeerror": 7, "register_error": [7, 15], "suffix": [7, 15], "bool": [7, 15, 20], "With": [7, 15, 19], "begin": [7, 8, 15, 21], "tupl": [7, 8, 15, 21], "tabsiz": [7, 15], "tab": [7, 15], "expand": [7, 15, 19, 21], "space": [7, 13, 15], "size": [7, 12, 13, 15], "assum": [7, 15], "lowest": [7, 15], "failur": [7, 8, 15], "hexadecim": 7, "two": [7, 8, 11, 15], "b9": 7, "01ef": 7, "xb9": 7, "x01": 7, "xef": 7, "sep": [7, 15], "bytes_per_sep": 7, "mani": [7, 15], "neg": 7, "left": [7, 15], "xb9x01xef": 7, "b901ef": 7, "01": [7, 8], "ef": 7, "b901": 7, "valueerror": [7, 8, 15, 20], "alphanumer": 7, "least": [7, 15], "alphabet": [7, 15], "digit": [7, 15], "lowercas": [7, 15], "titlecas": [7, 15], "uppercas": [7, 15], "uncas": [7, 15], "ones": [7, 15, 20], "iterable_of_byt": 7, "concaten": [7, 15], "whose": [7, 15], "ab": [7, 15], "pq": [7, 15], "r": [7, 13, 15], "justifi": [7, 15], "omit": 7, "frm": 7, "useabl": 7, "bytearrai": 7, "present": [7, 8, 15], "len": [7, 15, 20], "old": [7, 8, 15], "substr": [7, 15], "highest": [7, 15], "maxsplit": [7, 15], "delimit": [7, 15], "accord": [7, 8], "newlin": 7, "formfe": 7, "vertic": 7, "front": [7, 15], "keepend": [7, 15], "break": [7, 12, 13, 15], "boundari": [7, 15], "vice": 7, "versa": 7, "delet": [7, 8, 12, 15], "256": 7, "numer": [7, 15], "zero": [7, 8, 13, 15], "never": [7, 15, 21], "truncat": [7, 15], "reloc": 7, "elementpath": 7, "along": 7, "immedi": 7, "advantag": 7, "loop": 7, "whether": [7, 13, 15], "succeed": 7, "pretty_print": [7, 8, 12], "xml_declar": 7, "compress": 7, "exclus": 7, "inclusive_ns_prefix": 7, "docstr": 7, "c14n2": 7, "correspond": [7, 8, 13, 20, 21], "gzip": 7, "x": [7, 13, 15], "xsi": [7, 20], "promot": 7, "top": [7, 8, 19], "render": [7, 12, 13], "alreadi": [7, 8, 15], "releas": 7, "There": [7, 21], "due": 7, "nodeset": 7, "float": [7, 15, 20], "_xslt": 7, "_kw": 7, "suitabl": [7, 8, 15, 20], "caseless": [7, 15], "unicodeencodeerror": [7, 15], "xmlcharrefreplac": [7, 15], "substitut": [7, 13, 15], "identifi": [7, 13, 15, 20], "brace": [7, 15], "alpha": [7, 15], "rang": [7, 8, 15], "0000": [7, 15], "007f": [7, 15], "too": [7, 15], "decim": [7, 15], "iskeyword": [7, 15], "printabl": [7, 15], "char": [7, 13, 15], "usabl": [7, 15], "ordin": [7, 15], "integ": [7, 15], "equal": [7, 8, 11, 15], "y": [7, 15], "intention": [7, 15], "natur": [7, 15], "punctuat": [7, 15], "via": [7, 15], "__getitem__": [7, 15], "oper": [7, 15], "lookuperror": [7, 15, 16], "_basepars": 7, "iddict": 7, "mapp": 7, "hand": [7, 19], "id_nam": 7, "immut": [7, 20], "applic": [7, 21], "locat": [7, 15, 21], "detect": 7, "output_fil": 7, "fashion": 7, "those": [7, 15, 21], "impact": 7, "element_or_tre": [7, 20, 21], "walker": 7, "somefil": 7, "xf": 7, "write_declar": 7, "write_doctyp": 7, "generate_some_el": 7, "exit": 7, "manag": 7, "owner": 7, "deliber": 7, "sure": [7, 8, 15], "written": 7, "explicitli": 7, "pend": [7, 15], "serial": [7, 8, 15], "faster": [7, 15], "function_map": 7, "taken": [7, 8, 14, 20], "ns_function": 7, "add2": 7, "add3": 7, "add_thre": 7, "constant": 7, "emb": [7, 13], "_parent": 7, "etree_or_el": 7, "capsul": 7, "unpack": 7, "pycapsul": 7, "No": 7, "xmldoc": 7, "correct": [7, 21], "creator": 7, "correctli": 7, "destructor": 7, "null": [7, 8, 11], "strcmp": 7, "xmlfreedoc": 7, "That": [7, 15], "ownership": 7, "eventu": 7, "modif": [7, 8], "attempt": [7, 13, 21], "transfer": 7, "xml_data": 7, "from_fil": 7, "canon": 7, "tree_or_el": 7, "top_nsmap": 7, "keep_ns_prefix": 7, "cleanup": [7, 13, 15], "move": [7, 8, 15], "bound": [7, 15], "sinc": 7, "sy": 7, "stdout": 7, "debug": [7, 8], "adapt": [7, 21], "higher": 7, "deepli": 7, "protocol": [7, 20], "transpar": 7, "decompress": 7, "whenev": 7, "multi": [7, 8, 12], "pool": 7, "standard": [7, 13, 19, 21], "prefer": 7, "someth": [7, 8], "tool": [7, 8, 13], "reli": 7, "root_el": 7, "simpleattr": 7, "tag_nam": 7, "treat": [7, 15], "some_el": 7, "simpletagnam": 7, "merg": [7, 8, 15], "represent": [7, 8, 15, 20], "py3": 7, "py2": 7, "unencod": 7, "being": [7, 8], "partial": [7, 12], "carri": 7, "necessarili": 7, "suit": 7, "treatment": 7, "continu": 7, "prior": 7, "_has_sneaky_javascript": [8, 13], "_kill_el": [8, 13], "_remove_javascript_link": [8, 13], "_substitute_com": [8, 13], "allow_el": [8, 13], "allow_embedded_url": [8, 13], "allow_follow": [8, 13], "kill_conditional_com": [8, 13], "_tag_link_attr": [8, 13], "add_nofollow": [8, 13], "allow_tag": [8, 13], "annoying_tag": [8, 13], "host_whitelist": [8, 13], "inline_styl": [8, 13], "javascript": [8, 13], "kill_tag": [8, 13], "page_structur": [8, 13], "processing_instruct": [8, 13], "remove_tag": [8, 13], "remove_unknown_tag": [8, 13], "safe_attr": [8, 13], "safe_attrs_onli": [8, 13], "whitelist_tag": [8, 13], "find_longest_match": [8, 15], "get_grouped_opcod": [8, 15], "get_matching_block": [8, 15], "get_opcod": [8, 15], "quick_ratio": [8, 15], "ratio": [8, 15], "real_quick_ratio": [8, 15], "set_seq1": [8, 15], "set_seq2": [8, 15], "set_seq": [8, 15], "threshold": [8, 15], "hide_when_equ": [8, 15], "block_insid": [8, 16], "default_messag": [8, 16], "error_block_class": [8, 16], "error_container_tag": [8, 16], "error_message_class": [8, 16], "insert_befor": [8, 16], "repres": [8, 15, 20], "group": [8, 12, 15], "checkbox": 8, "uncheck": 8, "9223372036854775807": [8, 13], "indexerror": 8, "IN": 8, "place": [8, 13, 15], "ascend": 8, "stabl": 8, "maintain": 8, "individu": 8, "construct": [8, 11, 20], "signatur": [8, 11], "comput": [8, 11, 12, 15], "we": [8, 11, 13, 15], "don": [8, 11, 15, 20], "__hash__": [8, 11], "hashabl": [8, 11], "But": [8, 11], "__eq__": [8, 11], "ought": [8, 11], "so": [8, 11, 13, 15, 21], "freedom": [8, 11], "algorithm": [8, 11], "frozenset": [8, 11, 13], "slow": [8, 11], "absent": [8, 11], "keyerror": [8, 11], "_abc": [8, 11], "_abc_data": [8, 11], "mutableset": [8, 11], "hidden": 8, "larg": [8, 12, 15], "isn": [8, 15], "now": 8, "mutablemap": 8, "d": [8, 15], "k": [8, 15], "view": 8, "h": 8, "world": [8, 12, 15], "previou": [8, 15], "class_nam": [8, 16], "urllib": 8, "urlencod": 8, "uncommon": 8, "wild": 8, "browser": [8, 13], "po": [8, 13], "indic": 8, "often": 8, "sometim": 8, "exactli": 8, "handle_failur": 8, "came": 8, "abort": 8, "link_repl_func": 8, "base_href": 8, "rewrit": 8, "anchor": [8, 12, 13, 15], "mailto": [8, 13], "email": 8, "give": [8, 21], "novalid": 8, "urlpars": 8, "urljoin": 8, "around": [8, 15], "accessor": 8, "mixin": 8, "denot": 8, "radio": 8, "presenc": 8, "field_nam": 8, "won": [8, 13], "similar": [8, 15], "uniqu": 8, "unselect": 8, "xmlsoft": 8, "source_class": 8, "whatev": 8, "repl": [8, 13], "obtain": [8, 13], "leftmost": [8, 13, 15], "endpo": [8, 13], "scan": [8, 13], "typ": 8, "back": 8, "ensure_head_bodi": 8, "create_par": 8, "encapsul": 8, "no_leading_text": 8, "tri": [8, 15, 20], "minim": 8, "web": [8, 13], "temporari": 8, "meant": 8, "filename_or_url": 8, "extra_valu": 8, "open_http": 8, "submit": 8, "urlopen": 8, "geturl": 8, "redirect": 8, "foo": 8, "bar": 8, "respons": [8, 13], "post": [8, 15], "include_meta_content_typ": 8, "equiv": 8, "markup": [8, 15], "helloworld": 8, "w3c": [8, 21], "en": 8, "w3": [8, 14], "html4": 8, "__iter__": 11, "abstract": [11, 19], "functool": 12, "abbrevi": 12, "author": 12, "java": 12, "client": 12, "side": [12, 15], "imag": 12, "bidi": 12, "ride": 12, "quotat": 12, "push": [12, 15], "shorthand": 12, "align": [12, 13], "citat": 12, "definit": [12, 20], "descript": 12, "term": 12, "emphasi": 12, "interact": 12, "subwindow": 12, "window": 12, "subdivis": 12, "horizont": 12, "ital": 12, "ins": [12, 15], "prompt": [12, 13], "enter": 12, "media": [12, 13], "metainform": 12, "choic": 12, "preformat": 12, "program": 12, "statement": 12, "info": 12, "subscript": 12, "superscript": 12, "cell": 12, "footer": 12, "row": [12, 13], "teletyp": 12, "monospac": [12, 13], "underlin": 12, "unord": 12, "unwant": 13, "offend": 13, "onclick": 13, "could": 13, "flash": 13, "aren": 13, "wrong": 13, "annoi": 13, "blink": 13, "marque": 13, "pull": 13, "kill": 13, "whole": 13, "feedpars": 13, "sanitis": 13, "site": 13, "nofollow": 13, "host": [13, 19], "complex": 13, "shown": 13, "might": [13, 15], "intend": 13, "wish": 13, "stuff": 13, "ssion": 13, "typic": [13, 21], "catch": 13, "sneaki": 13, "condit": [13, 15], "decid": 13, "reject": 13, "suppress": 13, "ie": 13, "basic": 13, "doesn": [13, 15], "ll": 13, "layer": 13, "charset": 13, "accesskei": 13, "alt": 13, "axi": 13, "border": 13, "cellpad": 13, "cellspac": 13, "charoff": 13, "colspan": 13, "coord": 13, "datetim": 13, "enctyp": 13, "height": 13, "hreflang": 13, "hspace": 13, "ismap": 13, "lang": 13, "longdesc": 13, "maxlength": 13, "nohref": 13, "noshad": 13, "nowrap": 13, "readonli": 13, "rev": 13, "rowspan": 13, "scope": [13, 21], "shape": 13, "summari": 13, "tabindex": 13, "usemap": 13, "valign": 13, "vspace": 13, "max_width": 13, "break_charact": 13, "link_regex": 13, "avoid_host": 13, "z0": 13, "_": 13, "ignorecas": 13, "9_": 13, "z": 13, "avoid_el": 13, "localhost": 13, "bexampl": 13, "com": 13, "127": 13, "avoid_class": 13, "nolink": 13, "nobreak": 13, "u200b": 13, "8203": 13, "tut": 13, "fi": 13, "jkorpela": 13, "nobr": 13, "discuss": 13, "html401": 14, "commun": 14, "webe": 14, "wiki": 14, "new_html5_el": 14, "html5_tag": 14, "isjunk": 15, "autojunk": 15, "sequencematch": 15, "act": 15, "amidst": 15, "alo": 15, "ahi": 15, "blo": 15, "bhi": 15, "longest": 15, "entireti": 15, "j": 15, "meet": 15, "maxim": 15, "earliest": 15, "abcd": 15, "junk": 15, "Then": [15, 20], "far": 15, "happen": 15, "adjac": 15, "interest": 15, "lambda": 15, "isol": 15, "cluster": 15, "elimin": 15, "pprint": 15, "tripl": 15, "monoton": 15, "increas": 15, "iow": 15, "abxcd": 15, "i1": 15, "i2": 15, "j1": 15, "j2": 15, "likewis": 15, "qabxcd": 15, "abycdf": 15, "cd": 15, "quickli": 15, "beyond": 15, "measur": 15, "total": 15, "m": [15, 20], "expens": 15, "haven": 15, "bcde": 15, "cach": 15, "repeatedli": 15, "pre_tag": 15, "post_tag": 15, "trailing_whitespac": 15, "html_repr": 15, "visibl": 15, "diffabl": 15, "attach": 15, "track": 15, "hi": 15, "marker": 15, "drop": 15, "tok": 15, "combin": 15, "dest": 15, "produc": [15, 21], "include_href": 15, "skip_tag": 15, "outermost": 15, "doclist": 15, "cyfunct": 15, "oldest": 15, "newest": 15, "version1": 15, "version2": 15, "goodby": 15, "utf8": 15, "joe": 15, "tokens_old": 15, "tokens_new": 15, "old_html": 15, "new_html": 15, "preserv": 15, "lose": 15, "dif": 15, "html1_token": 15, "html2_token": 15, "themselv": 15, "unbalanced_end": 15, "pre_delet": 15, "post_delet": 15, "earlier": 15, "unbalanced_start": 15, "implicitli": 15, "onto": 15, "dangl": 15, "throw": 15, "awai": 15, "markup_func": 15, "del_chunk": 15, "ins_chunk": 15, "rid": 15, "skip_out": 15, "stuff_before_del_start": 15, "stuff_inside_del_start_end": 15, "stuff_after_del_end": 15, "balanc": 15, "reorder": 15, "ensur": 15, "incorrect": 15, "guess": [15, 20], "particular": 15, "bad": 15, "confus": 15, "kind": [15, 20], "form_id": 16, "form_index": 16, "error_class": 16, "error_cr": 16, "iso": 19, "skeleton": 19, "include_param": 19, "expand_param": 19, "compile_param": 19, "store_schematron": 19, "store_xslt": 19, "store_report": 19, "phase": 19, "error_find": 19, "svrl": 19, "assert": 19, "step": 19, "expos": 19, "purl": 19, "oclc": 19, "dsdl": 19, "id_only_attribut": 19, "success": 19, "paramsdict": 19, "kwargsdict": 19, "nativ": 19, "typeerror": [19, 20], "mimic": 20, "par": 20, "weight": 20, "tricki": 20, "predefin": 20, "__str__": 20, "c1": 20, "c2": 20, "second_c2": 20, "tree_class": 20, "empty_data_class": 20, "type_class": 20, "stringif": 20, "myintclass": 20, "matter": 20, "fulfil": 20, "str_attr": 20, "real": 20, "_valu": 20, "_pytyp": 20, "_xsi": 20, "_attribut": 20, "among": 20, "py": 20, "redefin": 20, "activ": 20, "ignore_old": 20, "ignore_xsi": 20, "empty_pytyp": 20, "empty_typ": 20, "annotate_xsi": 20, "annotate_pytyp": 20, "fit": 20, "ambigu": 20, "widest": 20, "xsi_nil": 20, "nil": 20, "touch": 20, "unus": 20, "necessari": [20, 21], "interfer": 20, "yourself": 20, "hint": 20, "obj": 20, "new_pars": 20, "attribute_tag": 20, "codespeak": 20, "ignore_pytyp": 20, "fire": 21, "contenthandl": 21, "ns_name_tupl": 21, "notif": 21, "contigu": 21, "come": 21, "invok": 21, "shall": 21, "abandon": 21, "unrecover": 21, "reach": 21, "signal": 21, "ns_name": 21, "recommend": 21, "model": 21, "strongli": 21, "encourag": 21, "documenthandl": 21, "busi": 21, "probabl": 21, "suffici": 21, "invoc": 21, "seen": 21, "dtdhandler": 21, "raw": 21, "reader": 21, "content_handl": 21, "One": 21, "shot": 21}, "objects": {"": [[1, 0, 0, "-", "lxml"]], "lxml": [[2, 0, 0, "-", "ElementInclude"], [3, 0, 0, "-", "_elementpath"], [4, 0, 0, "-", "builder"], [6, 0, 0, "-", "doctestcompare"], [7, 0, 0, "-", "etree"], [1, 4, 1, "", "get_include"], [8, 0, 0, "-", "html"], [19, 0, 0, "-", "isoschematron"], [20, 0, 0, "-", "objectify"], [21, 0, 0, "-", "sax"]], "lxml.ElementInclude": [[2, 1, 1, "", "FatalIncludeError"], [2, 1, 1, "", "LimitedRecursiveIncludeError"], [2, 4, 1, "", "_include"], [2, 4, 1, "", "_lxml_default_loader"], [2, 4, 1, "", "_wrap_et_loader"], [2, 4, 1, "", "default_loader"], [2, 4, 1, "", "include"]], "lxml.ElementInclude.FatalIncludeError": [[2, 2, 1, "", "add_note"], [2, 3, 1, "", "args"], [2, 3, 1, "", "end_lineno"], [2, 3, 1, "", "end_offset"], [2, 3, 1, "", "filename"], [2, 3, 1, "", "lineno"], [2, 3, 1, "", "msg"], [2, 3, 1, "", "offset"], [2, 3, 1, "", "print_file_and_line"], [2, 3, 1, "", "text"], [2, 2, 1, "", "with_traceback"]], "lxml.ElementInclude.LimitedRecursiveIncludeError": [[2, 2, 1, "", "add_note"], [2, 3, 1, "", "args"], [2, 3, 1, "", "end_lineno"], [2, 3, 1, "", "end_offset"], [2, 3, 1, "", "filename"], [2, 3, 1, "", "lineno"], [2, 3, 1, "", "msg"], [2, 3, 1, "", "offset"], [2, 3, 1, "", "print_file_and_line"], [2, 3, 1, "", "text"], [2, 2, 1, "", "with_traceback"]], "lxml._elementpath": [[3, 4, 1, "", "_build_path_iterator"], [3, 4, 1, "", "find"], [3, 4, 1, "", "findall"], [3, 4, 1, "", "findtext"], [3, 4, 1, "", "iterfind"], [3, 4, 1, "", "prepare_child"], [3, 4, 1, "", "prepare_descendant"], [3, 4, 1, "", "prepare_parent"], [3, 4, 1, "", "prepare_predicate"], [3, 4, 1, "", "prepare_self"], [3, 4, 1, "", "prepare_star"], [3, 4, 1, "", "xpath_tokenizer"]], "lxml.builder": [[4, 5, 1, "", "ElementMaker"], [4, 4, 1, "", "__pyx_unpickle_ElementMaker"]], "lxml.builder.ElementMaker": [[4, 3, 1, "", "_makeelement"], [4, 3, 1, "", "_namespace"], [4, 3, 1, "", "_nsmap"], [4, 3, 1, "", "_typemap"]], "lxml.doctestcompare": [[6, 5, 1, "", "LHTMLOutputChecker"], [6, 5, 1, "", "LXMLOutputChecker"], [6, 5, 1, "", "_RestoreChecker"], [6, 4, 1, "", "_find_doctest_frame"], [6, 4, 1, "", "html_fromstring"], [6, 4, 1, "", "install"], [6, 4, 1, "", "norm_whitespace"], [6, 4, 1, "", "strip"], [6, 4, 1, "", "temp_install"]], "lxml.doctestcompare.LHTMLOutputChecker": [[6, 2, 1, "", "_do_a_fancy_diff"], [6, 2, 1, "", "_looks_like_markup"], [6, 2, 1, "", "_toAscii"], [6, 2, 1, "", "check_output"], [6, 2, 1, "", "collect_diff"], [6, 2, 1, "", "collect_diff_end_tag"], [6, 2, 1, "", "collect_diff_tag"], [6, 2, 1, "", "collect_diff_text"], [6, 2, 1, "", "compare_docs"], [6, 3, 1, "", "empty_tags"], [6, 2, 1, "", "format_doc"], [6, 2, 1, "", "format_end_tag"], [6, 2, 1, "", "format_tag"], [6, 2, 1, "", "format_text"], [6, 2, 1, "", "get_default_parser"], [6, 2, 1, "", "get_parser"], [6, 2, 1, "", "html_empty_tag"], [6, 2, 1, "", "output_difference"], [6, 2, 1, "", "tag_compare"], [6, 2, 1, "", "text_compare"]], "lxml.doctestcompare.LXMLOutputChecker": [[6, 2, 1, "", "_do_a_fancy_diff"], [6, 2, 1, "", "_looks_like_markup"], [6, 2, 1, "", "_toAscii"], [6, 2, 1, "", "check_output"], [6, 2, 1, "", "collect_diff"], [6, 2, 1, "", "collect_diff_end_tag"], [6, 2, 1, "", "collect_diff_tag"], [6, 2, 1, "", "collect_diff_text"], [6, 2, 1, "", "compare_docs"], [6, 3, 1, "", "empty_tags"], [6, 2, 1, "", "format_doc"], [6, 2, 1, "", "format_end_tag"], [6, 2, 1, "", "format_tag"], [6, 2, 1, "", "format_text"], [6, 2, 1, "", "get_default_parser"], [6, 2, 1, "", "get_parser"], [6, 2, 1, "", "html_empty_tag"], [6, 2, 1, "", "output_difference"], [6, 2, 1, "", "tag_compare"], [6, 2, 1, "", "text_compare"]], "lxml.doctestcompare._RestoreChecker": [[6, 2, 1, "", "call_super"], [6, 2, 1, "", "install_clone"], [6, 2, 1, "", "install_dt_self"], [6, 2, 1, "", "uninstall_clone"], [6, 2, 1, "", "uninstall_dt_self"], [6, 2, 1, "", "uninstall_module"]], "lxml.etree": [[7, 5, 1, "", "AncestorsIterator"], [7, 5, 1, "", "AttributeBasedElementClassLookup"], [7, 1, 1, "", "C14NError"], [7, 5, 1, "", "C14NWriterTarget"], [7, 5, 1, "", "CDATA"], [7, 4, 1, "", "Comment"], [7, 5, 1, "", "CommentBase"], [7, 5, 1, "", "CustomElementClassLookup"], [7, 5, 1, "", "DTD"], [7, 1, 1, "", "DTDError"], [7, 1, 1, "", "DTDParseError"], [7, 1, 1, "", "DTDValidateError"], [7, 5, 1, "", "DocInfo"], [7, 1, 1, "", "DocumentInvalid"], [7, 5, 1, "", "ETCompatXMLParser"], [7, 5, 1, "", "ETXPath"], [7, 4, 1, "", "Element"], [7, 5, 1, "", "ElementBase"], [7, 5, 1, "", "ElementChildIterator"], [7, 5, 1, "", "ElementClassLookup"], [7, 5, 1, "", "ElementDefaultClassLookup"], [7, 5, 1, "", "ElementDepthFirstIterator"], [7, 5, 1, "", "ElementNamespaceClassLookup"], [7, 5, 1, "", "ElementTextIterator"], [7, 4, 1, "", "ElementTree"], [7, 4, 1, "", "Entity"], [7, 5, 1, "", "EntityBase"], [7, 1, 1, "", "Error"], [7, 5, 1, "", "ErrorDomains"], [7, 5, 1, "", "ErrorLevels"], [7, 5, 1, "", "ErrorTypes"], [7, 4, 1, "", "Extension"], [7, 5, 1, "", "FallbackElementClassLookup"], [7, 4, 1, "", "FunctionNamespace"], [7, 4, 1, "", "HTML"], [7, 5, 1, "", "HTMLParser"], [7, 5, 1, "", "HTMLPullParser"], [7, 1, 1, "", "LxmlError"], [7, 1, 1, "", "LxmlRegistryError"], [7, 1, 1, "", "LxmlSyntaxError"], [7, 1, 1, "", "NamespaceRegistryError"], [7, 4, 1, "", "PI"], [7, 5, 1, "", "PIBase"], [7, 1, 1, "", "ParseError"], [7, 5, 1, "", "ParserBasedElementClassLookup"], [7, 1, 1, "", "ParserError"], [7, 4, 1, "", "ProcessingInstruction"], [7, 5, 1, "", "PyErrorLog"], [7, 5, 1, "", "PythonElementClassLookup"], [7, 5, 1, "", "QName"], [7, 5, 1, "", "RelaxNG"], [7, 1, 1, "", "RelaxNGError"], [7, 5, 1, "", "RelaxNGErrorTypes"], [7, 1, 1, "", "RelaxNGParseError"], [7, 1, 1, "", "RelaxNGValidateError"], [7, 5, 1, "", "Resolver"], [7, 5, 1, "", "Schematron"], [7, 1, 1, "", "SchematronError"], [7, 1, 1, "", "SchematronParseError"], [7, 1, 1, "", "SchematronValidateError"], [7, 1, 1, "", "SerialisationError"], [7, 5, 1, "", "SiblingsIterator"], [7, 4, 1, "", "SubElement"], [7, 5, 1, "", "TreeBuilder"], [7, 5, 1, "", "XInclude"], [7, 1, 1, "", "XIncludeError"], [7, 4, 1, "", "XML"], [7, 4, 1, "", "XMLDTDID"], [7, 4, 1, "", "XMLID"], [7, 5, 1, "", "XMLParser"], [7, 5, 1, "", "XMLPullParser"], [7, 5, 1, "", "XMLSchema"], [7, 1, 1, "", "XMLSchemaError"], [7, 1, 1, "", "XMLSchemaParseError"], [7, 1, 1, "", "XMLSchemaValidateError"], [7, 1, 1, "", "XMLSyntaxAssertionError"], [7, 1, 1, "", "XMLSyntaxError"], [7, 3, 1, "", "XMLTreeBuilder"], [7, 5, 1, "", "XPath"], [7, 5, 1, "", "XPathDocumentEvaluator"], [7, 5, 1, "", "XPathElementEvaluator"], [7, 1, 1, "", "XPathError"], [7, 1, 1, "", "XPathEvalError"], [7, 4, 1, "", "XPathEvaluator"], [7, 1, 1, "", "XPathFunctionError"], [7, 1, 1, "", "XPathResultError"], [7, 1, 1, "", "XPathSyntaxError"], [7, 5, 1, "", "XSLT"], [7, 5, 1, "", "XSLTAccessControl"], [7, 1, 1, "", "XSLTApplyError"], [7, 1, 1, "", "XSLTError"], [7, 5, 1, "", "XSLTExtension"], [7, 1, 1, "", "XSLTExtensionError"], [7, 1, 1, "", "XSLTParseError"], [7, 1, 1, "", "XSLTSaveError"], [7, 5, 1, "", "_Attrib"], [7, 5, 1, "", "_BaseErrorLog"], [7, 5, 1, "", "_Comment"], [7, 5, 1, "", "_Document"], [7, 5, 1, "", "_DomainErrorLog"], [7, 5, 1, "", "_Element"], [7, 5, 1, "", "_ElementIterator"], [7, 5, 1, "", "_ElementMatchIterator"], [7, 5, 1, "", "_ElementStringResult"], [7, 5, 1, "", "_ElementTagMatcher"], [7, 5, 1, "", "_ElementTree"], [7, 5, 1, "", "_ElementUnicodeResult"], [7, 5, 1, "", "_Entity"], [7, 5, 1, "", "_ErrorLog"], [7, 5, 1, "", "_FeedParser"], [7, 5, 1, "", "_IDDict"], [7, 5, 1, "", "_ListErrorLog"], [7, 5, 1, "", "_LogEntry"], [7, 5, 1, "", "_ProcessingInstruction"], [7, 5, 1, "", "_RotatingErrorLog"], [7, 5, 1, "", "_SaxParserTarget"], [7, 1, 1, "", "_TargetParserResult"], [7, 5, 1, "", "_Validator"], [7, 5, 1, "", "_XPathEvaluatorBase"], [7, 5, 1, "", "_XSLTProcessingInstruction"], [7, 5, 1, "", "_XSLTResultTree"], [7, 4, 1, "", "adopt_external_document"], [7, 4, 1, "", "canonicalize"], [7, 4, 1, "", "cleanup_namespaces"], [7, 4, 1, "", "clear_error_log"], [7, 4, 1, "", "dump"], [7, 4, 1, "", "fromstring"], [7, 4, 1, "", "fromstringlist"], [7, 4, 1, "", "get_default_parser"], [7, 5, 1, "", "htmlfile"], [7, 4, 1, "", "indent"], [7, 4, 1, "", "iselement"], [7, 5, 1, "", "iterparse"], [7, 5, 1, "", "iterwalk"], [7, 4, 1, "", "parse"], [7, 4, 1, "", "parseid"], [7, 4, 1, "", "register_namespace"], [7, 4, 1, "", "set_default_parser"], [7, 4, 1, "", "set_element_class_lookup"], [7, 4, 1, "", "strip_attributes"], [7, 4, 1, "", "strip_elements"], [7, 4, 1, "", "strip_tags"], [7, 4, 1, "", "tostring"], [7, 4, 1, "", "tostringlist"], [7, 4, 1, "", "tounicode"], [7, 4, 1, "", "use_global_python_log"], [7, 5, 1, "", "xmlfile"]], "lxml.etree.AttributeBasedElementClassLookup": [[7, 3, 1, "", "fallback"], [7, 2, 1, "", "set_fallback"]], "lxml.etree.C14NError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.C14NWriterTarget": [[7, 2, 1, "", "_iter_namespaces"], [7, 2, 1, "", "close"], [7, 2, 1, "", "comment"], [7, 2, 1, "", "data"], [7, 2, 1, "", "end"], [7, 2, 1, "", "pi"], [7, 2, 1, "", "start"], [7, 2, 1, "", "start_ns"]], "lxml.etree.CommentBase": [[7, 2, 1, "", "_init"], [7, 2, 1, "", "addnext"], [7, 2, 1, "", "addprevious"], [7, 2, 1, "", "append"], [7, 3, 1, "", "attrib"], [7, 3, 1, "", "base"], [7, 2, 1, "", "clear"], [7, 2, 1, "", "cssselect"], [7, 2, 1, "", "extend"], [7, 2, 1, "", "find"], [7, 2, 1, "", "findall"], [7, 2, 1, "", "findtext"], [7, 2, 1, "", "get"], [7, 2, 1, "", "getchildren"], [7, 2, 1, "", "getiterator"], [7, 2, 1, "", "getnext"], [7, 2, 1, "", "getparent"], [7, 2, 1, "", "getprevious"], [7, 2, 1, "", "getroottree"], [7, 2, 1, "", "index"], [7, 2, 1, "", "insert"], [7, 2, 1, "", "items"], [7, 2, 1, "", "iter"], [7, 2, 1, "", "iterancestors"], [7, 2, 1, "", "iterchildren"], [7, 2, 1, "", "iterdescendants"], [7, 2, 1, "", "iterfind"], [7, 2, 1, "", "itersiblings"], [7, 2, 1, "", "itertext"], [7, 2, 1, "", "keys"], [7, 2, 1, "", "makeelement"], [7, 3, 1, "", "nsmap"], [7, 3, 1, "", "prefix"], [7, 2, 1, "", "remove"], [7, 2, 1, "", "replace"], [7, 2, 1, "", "set"], [7, 3, 1, "", "sourceline"], [7, 3, 1, "", "tag"], [7, 3, 1, "", "tail"], [7, 3, 1, "", "text"], [7, 2, 1, "", "values"], [7, 2, 1, "", "xpath"]], "lxml.etree.CustomElementClassLookup": [[7, 3, 1, "", "fallback"], [7, 2, 1, "", "lookup"], [7, 2, 1, "", "set_fallback"]], "lxml.etree.DTD": [[7, 2, 1, "", "_append_log_message"], [7, 2, 1, "", "_clear_error_log"], [7, 2, 1, "", "assertValid"], [7, 2, 1, "", "assert_"], [7, 2, 1, "", "elements"], [7, 2, 1, "", "entities"], [7, 3, 1, "", "error_log"], [7, 3, 1, "", "external_id"], [7, 2, 1, "", "iterelements"], [7, 2, 1, "", "iterentities"], [7, 3, 1, "", "name"], [7, 3, 1, "", "system_url"], [7, 2, 1, "", "validate"]], "lxml.etree.DTDError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.DTDParseError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.DTDValidateError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.DocInfo": [[7, 3, 1, "", "URL"], [7, 2, 1, "", "clear"], [7, 3, 1, "", "doctype"], [7, 3, 1, "", "encoding"], [7, 3, 1, "", "externalDTD"], [7, 3, 1, "", "internalDTD"], [7, 3, 1, "", "public_id"], [7, 3, 1, "", "root_name"], [7, 3, 1, "", "standalone"], [7, 3, 1, "", "system_url"], [7, 3, 1, "", "xml_version"]], "lxml.etree.DocumentInvalid": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.ETCompatXMLParser": [[7, 2, 1, "", "close"], [7, 2, 1, "", "copy"], [7, 3, 1, "", "error_log"], [7, 2, 1, "", "feed"], [7, 3, 1, "", "feed_error_log"], [7, 2, 1, "", "makeelement"], [7, 3, 1, "", "resolvers"], [7, 2, 1, "", "setElementClassLookup"], [7, 2, 1, "", "set_element_class_lookup"], [7, 3, 1, "", "target"], [7, 3, 1, "", "version"]], "lxml.etree.ETXPath": [[7, 3, 1, "", "error_log"], [7, 2, 1, "", "evaluate"], [7, 3, 1, "", "path"]], "lxml.etree.ElementBase": [[7, 2, 1, "", "_init"], [7, 2, 1, "", "addnext"], [7, 2, 1, "", "addprevious"], [7, 2, 1, "", "append"], [7, 3, 1, "", "attrib"], [7, 3, 1, "", "base"], [7, 2, 1, "", "clear"], [7, 2, 1, "", "cssselect"], [7, 2, 1, "", "extend"], [7, 2, 1, "", "find"], [7, 2, 1, "", "findall"], [7, 2, 1, "", "findtext"], [7, 2, 1, "", "get"], [7, 2, 1, "", "getchildren"], [7, 2, 1, "", "getiterator"], [7, 2, 1, "", "getnext"], [7, 2, 1, "", "getparent"], [7, 2, 1, "", "getprevious"], [7, 2, 1, "", "getroottree"], [7, 2, 1, "", "index"], [7, 2, 1, "", "insert"], [7, 2, 1, "", "items"], [7, 2, 1, "", "iter"], [7, 2, 1, "", "iterancestors"], [7, 2, 1, "", "iterchildren"], [7, 2, 1, "", "iterdescendants"], [7, 2, 1, "", "iterfind"], [7, 2, 1, "", "itersiblings"], [7, 2, 1, "", "itertext"], [7, 2, 1, "", "keys"], [7, 2, 1, "", "makeelement"], [7, 3, 1, "", "nsmap"], [7, 3, 1, "", "prefix"], [7, 2, 1, "", "remove"], [7, 2, 1, "", "replace"], [7, 2, 1, "", "set"], [7, 3, 1, "", "sourceline"], [7, 3, 1, "", "tag"], [7, 3, 1, "", "tail"], [7, 3, 1, "", "text"], [7, 2, 1, "", "values"], [7, 2, 1, "", "xpath"]], "lxml.etree.ElementDefaultClassLookup": [[7, 3, 1, "", "comment_class"], [7, 3, 1, "", "element_class"], [7, 3, 1, "", "entity_class"], [7, 3, 1, "", "pi_class"]], "lxml.etree.ElementNamespaceClassLookup": [[7, 3, 1, "", "fallback"], [7, 2, 1, "", "get_namespace"], [7, 2, 1, "", "set_fallback"]], "lxml.etree.EntityBase": [[7, 2, 1, "", "_init"], [7, 2, 1, "", "addnext"], [7, 2, 1, "", "addprevious"], [7, 2, 1, "", "append"], [7, 3, 1, "", "attrib"], [7, 3, 1, "", "base"], [7, 2, 1, "", "clear"], [7, 2, 1, "", "cssselect"], [7, 2, 1, "", "extend"], [7, 2, 1, "", "find"], [7, 2, 1, "", "findall"], [7, 2, 1, "", "findtext"], [7, 2, 1, "", "get"], [7, 2, 1, "", "getchildren"], [7, 2, 1, "", "getiterator"], [7, 2, 1, "", "getnext"], [7, 2, 1, "", "getparent"], [7, 2, 1, "", "getprevious"], [7, 2, 1, "", "getroottree"], [7, 2, 1, "", "index"], [7, 2, 1, "", "insert"], [7, 2, 1, "", "items"], [7, 2, 1, "", "iter"], [7, 2, 1, "", "iterancestors"], [7, 2, 1, "", "iterchildren"], [7, 2, 1, "", "iterdescendants"], [7, 2, 1, "", "iterfind"], [7, 2, 1, "", "itersiblings"], [7, 2, 1, "", "itertext"], [7, 2, 1, "", "keys"], [7, 2, 1, "", "makeelement"], [7, 3, 1, "", "name"], [7, 3, 1, "", "nsmap"], [7, 3, 1, "", "prefix"], [7, 2, 1, "", "remove"], [7, 2, 1, "", "replace"], [7, 2, 1, "", "set"], [7, 3, 1, "", "sourceline"], [7, 3, 1, "", "tag"], [7, 3, 1, "", "tail"], [7, 3, 1, "", "text"], [7, 2, 1, "", "values"], [7, 2, 1, "", "xpath"]], "lxml.etree.Error": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.ErrorDomains": [[7, 3, 1, "", "BUFFER"], [7, 3, 1, "", "C14N"], [7, 3, 1, "", "CATALOG"], [7, 3, 1, "", "CHECK"], [7, 3, 1, "", "DATATYPE"], [7, 3, 1, "", "DTD"], [7, 3, 1, "", "FTP"], [7, 3, 1, "", "HTML"], [7, 3, 1, "", "HTTP"], [7, 3, 1, "", "I18N"], [7, 3, 1, "", "IO"], [7, 3, 1, "", "MEMORY"], [7, 3, 1, "", "MODULE"], [7, 3, 1, "", "NAMESPACE"], [7, 3, 1, "", "NONE"], [7, 3, 1, "", "OUTPUT"], [7, 3, 1, "", "PARSER"], [7, 3, 1, "", "REGEXP"], [7, 3, 1, "", "RELAXNGP"], [7, 3, 1, "", "RELAXNGV"], [7, 3, 1, "", "SCHEMASP"], [7, 3, 1, "", "SCHEMASV"], [7, 3, 1, "", "SCHEMATRONV"], [7, 3, 1, "", "TREE"], [7, 3, 1, "", "URI"], [7, 3, 1, "", "VALID"], [7, 3, 1, "", "WRITER"], [7, 3, 1, "", "XINCLUDE"], [7, 3, 1, "", "XPATH"], [7, 3, 1, "", "XPOINTER"], [7, 3, 1, "", "XSLT"], [7, 2, 1, "", "_getName"], [7, 3, 1, "", "_names"]], "lxml.etree.ErrorLevels": [[7, 3, 1, "", "ERROR"], [7, 3, 1, "", "FATAL"], [7, 3, 1, "", "NONE"], [7, 3, 1, "", "WARNING"], [7, 2, 1, "", "_getName"], [7, 3, 1, "", "_names"]], "lxml.etree.ErrorTypes": [[7, 3, 1, "", "BUF_OVERFLOW"], [7, 3, 1, "", "C14N_CREATE_CTXT"], [7, 3, 1, "", "C14N_CREATE_STACK"], [7, 3, 1, "", "C14N_INVALID_NODE"], [7, 3, 1, "", "C14N_RELATIVE_NAMESPACE"], [7, 3, 1, "", "C14N_REQUIRES_UTF8"], [7, 3, 1, "", "C14N_UNKNOW_NODE"], [7, 3, 1, "", "CATALOG_ENTRY_BROKEN"], [7, 3, 1, "", "CATALOG_MISSING_ATTR"], [7, 3, 1, "", "CATALOG_NOT_CATALOG"], [7, 3, 1, "", "CATALOG_PREFER_VALUE"], [7, 3, 1, "", "CATALOG_RECURSION"], [7, 3, 1, "", "CHECK_ENTITY_TYPE"], [7, 3, 1, "", "CHECK_FOUND_ATTRIBUTE"], [7, 3, 1, "", "CHECK_FOUND_CDATA"], [7, 3, 1, "", "CHECK_FOUND_COMMENT"], [7, 3, 1, "", "CHECK_FOUND_DOCTYPE"], [7, 3, 1, "", "CHECK_FOUND_ELEMENT"], [7, 3, 1, "", "CHECK_FOUND_ENTITY"], [7, 3, 1, "", "CHECK_FOUND_ENTITYREF"], [7, 3, 1, "", "CHECK_FOUND_FRAGMENT"], [7, 3, 1, "", "CHECK_FOUND_NOTATION"], [7, 3, 1, "", "CHECK_FOUND_PI"], [7, 3, 1, "", "CHECK_FOUND_TEXT"], [7, 3, 1, "", "CHECK_NAME_NOT_NULL"], [7, 3, 1, "", "CHECK_NOT_ATTR"], [7, 3, 1, "", "CHECK_NOT_ATTR_DECL"], [7, 3, 1, "", "CHECK_NOT_DTD"], [7, 3, 1, "", "CHECK_NOT_ELEM_DECL"], [7, 3, 1, "", "CHECK_NOT_ENTITY_DECL"], [7, 3, 1, "", "CHECK_NOT_NCNAME"], [7, 3, 1, "", "CHECK_NOT_NS_DECL"], [7, 3, 1, "", "CHECK_NOT_UTF8"], [7, 3, 1, "", "CHECK_NO_DICT"], [7, 3, 1, "", "CHECK_NO_DOC"], [7, 3, 1, "", "CHECK_NO_ELEM"], [7, 3, 1, "", "CHECK_NO_HREF"], [7, 3, 1, "", "CHECK_NO_NAME"], [7, 3, 1, "", "CHECK_NO_NEXT"], [7, 3, 1, "", "CHECK_NO_PARENT"], [7, 3, 1, "", "CHECK_NO_PREV"], [7, 3, 1, "", "CHECK_NS_ANCESTOR"], [7, 3, 1, "", "CHECK_NS_SCOPE"], [7, 3, 1, "", "CHECK_OUTSIDE_DICT"], [7, 3, 1, "", "CHECK_UNKNOWN_NODE"], [7, 3, 1, "", "CHECK_WRONG_DOC"], [7, 3, 1, "", "CHECK_WRONG_NAME"], [7, 3, 1, "", "CHECK_WRONG_NEXT"], [7, 3, 1, "", "CHECK_WRONG_PARENT"], [7, 3, 1, "", "CHECK_WRONG_PREV"], [7, 3, 1, "", "DTD_ATTRIBUTE_DEFAULT"], [7, 3, 1, "", "DTD_ATTRIBUTE_REDEFINED"], [7, 3, 1, "", "DTD_ATTRIBUTE_VALUE"], [7, 3, 1, "", "DTD_CONTENT_ERROR"], [7, 3, 1, "", "DTD_CONTENT_MODEL"], [7, 3, 1, "", "DTD_CONTENT_NOT_DETERMINIST"], [7, 3, 1, "", "DTD_DIFFERENT_PREFIX"], [7, 3, 1, "", "DTD_DUP_TOKEN"], [7, 3, 1, "", "DTD_ELEM_DEFAULT_NAMESPACE"], [7, 3, 1, "", "DTD_ELEM_NAMESPACE"], [7, 3, 1, "", "DTD_ELEM_REDEFINED"], [7, 3, 1, "", "DTD_EMPTY_NOTATION"], [7, 3, 1, "", "DTD_ENTITY_TYPE"], [7, 3, 1, "", "DTD_ID_FIXED"], [7, 3, 1, "", "DTD_ID_REDEFINED"], [7, 3, 1, "", "DTD_ID_SUBSET"], [7, 3, 1, "", "DTD_INVALID_CHILD"], [7, 3, 1, "", "DTD_INVALID_DEFAULT"], [7, 3, 1, "", "DTD_LOAD_ERROR"], [7, 3, 1, "", "DTD_MISSING_ATTRIBUTE"], [7, 3, 1, "", "DTD_MIXED_CORRUPT"], [7, 3, 1, "", "DTD_MULTIPLE_ID"], [7, 3, 1, "", "DTD_NOTATION_REDEFINED"], [7, 3, 1, "", "DTD_NOTATION_VALUE"], [7, 3, 1, "", "DTD_NOT_EMPTY"], [7, 3, 1, "", "DTD_NOT_PCDATA"], [7, 3, 1, "", "DTD_NOT_STANDALONE"], [7, 3, 1, "", "DTD_NO_DOC"], [7, 3, 1, "", "DTD_NO_DTD"], [7, 3, 1, "", "DTD_NO_ELEM_NAME"], [7, 3, 1, "", "DTD_NO_PREFIX"], [7, 3, 1, "", "DTD_NO_ROOT"], [7, 3, 1, "", "DTD_ROOT_NAME"], [7, 3, 1, "", "DTD_STANDALONE_DEFAULTED"], [7, 3, 1, "", "DTD_STANDALONE_WHITE_SPACE"], [7, 3, 1, "", "DTD_UNKNOWN_ATTRIBUTE"], [7, 3, 1, "", "DTD_UNKNOWN_ELEM"], [7, 3, 1, "", "DTD_UNKNOWN_ENTITY"], [7, 3, 1, "", "DTD_UNKNOWN_ID"], [7, 3, 1, "", "DTD_UNKNOWN_NOTATION"], [7, 3, 1, "", "DTD_XMLID_TYPE"], [7, 3, 1, "", "DTD_XMLID_VALUE"], [7, 3, 1, "", "ERR_ATTLIST_NOT_FINISHED"], [7, 3, 1, "", "ERR_ATTLIST_NOT_STARTED"], [7, 3, 1, "", "ERR_ATTRIBUTE_NOT_FINISHED"], [7, 3, 1, "", "ERR_ATTRIBUTE_NOT_STARTED"], [7, 3, 1, "", "ERR_ATTRIBUTE_REDEFINED"], [7, 3, 1, "", "ERR_ATTRIBUTE_WITHOUT_VALUE"], [7, 3, 1, "", "ERR_CDATA_NOT_FINISHED"], [7, 3, 1, "", "ERR_CHARREF_AT_EOF"], [7, 3, 1, "", "ERR_CHARREF_IN_DTD"], [7, 3, 1, "", "ERR_CHARREF_IN_EPILOG"], [7, 3, 1, "", "ERR_CHARREF_IN_PROLOG"], [7, 3, 1, "", "ERR_COMMENT_ABRUPTLY_ENDED"], [7, 3, 1, "", "ERR_COMMENT_NOT_FINISHED"], [7, 3, 1, "", "ERR_CONDSEC_INVALID"], [7, 3, 1, "", "ERR_CONDSEC_INVALID_KEYWORD"], [7, 3, 1, "", "ERR_CONDSEC_NOT_FINISHED"], [7, 3, 1, "", "ERR_CONDSEC_NOT_STARTED"], [7, 3, 1, "", "ERR_DOCTYPE_NOT_FINISHED"], [7, 3, 1, "", "ERR_DOCUMENT_EMPTY"], [7, 3, 1, "", "ERR_DOCUMENT_END"], [7, 3, 1, "", "ERR_DOCUMENT_START"], [7, 3, 1, "", "ERR_ELEMCONTENT_NOT_FINISHED"], [7, 3, 1, "", "ERR_ELEMCONTENT_NOT_STARTED"], [7, 3, 1, "", "ERR_ENCODING_NAME"], [7, 3, 1, "", "ERR_ENTITYREF_AT_EOF"], [7, 3, 1, "", "ERR_ENTITYREF_IN_DTD"], [7, 3, 1, "", "ERR_ENTITYREF_IN_EPILOG"], [7, 3, 1, "", "ERR_ENTITYREF_IN_PROLOG"], [7, 3, 1, "", "ERR_ENTITYREF_NO_NAME"], [7, 3, 1, "", "ERR_ENTITYREF_SEMICOL_MISSING"], [7, 3, 1, "", "ERR_ENTITY_BOUNDARY"], [7, 3, 1, "", "ERR_ENTITY_CHAR_ERROR"], [7, 3, 1, "", "ERR_ENTITY_IS_EXTERNAL"], [7, 3, 1, "", "ERR_ENTITY_IS_PARAMETER"], [7, 3, 1, "", "ERR_ENTITY_LOOP"], [7, 3, 1, "", "ERR_ENTITY_NOT_FINISHED"], [7, 3, 1, "", "ERR_ENTITY_NOT_STARTED"], [7, 3, 1, "", "ERR_ENTITY_PE_INTERNAL"], [7, 3, 1, "", "ERR_ENTITY_PROCESSING"], [7, 3, 1, "", "ERR_EQUAL_REQUIRED"], [7, 3, 1, "", "ERR_EXTRA_CONTENT"], [7, 3, 1, "", "ERR_EXT_ENTITY_STANDALONE"], [7, 3, 1, "", "ERR_EXT_SUBSET_NOT_FINISHED"], [7, 3, 1, "", "ERR_GT_REQUIRED"], [7, 3, 1, "", "ERR_HYPHEN_IN_COMMENT"], [7, 3, 1, "", "ERR_INTERNAL_ERROR"], [7, 3, 1, "", "ERR_INVALID_CHAR"], [7, 3, 1, "", "ERR_INVALID_CHARREF"], [7, 3, 1, "", "ERR_INVALID_DEC_CHARREF"], [7, 3, 1, "", "ERR_INVALID_ENCODING"], [7, 3, 1, "", "ERR_INVALID_HEX_CHARREF"], [7, 3, 1, "", "ERR_INVALID_URI"], [7, 3, 1, "", "ERR_LITERAL_NOT_FINISHED"], [7, 3, 1, "", "ERR_LITERAL_NOT_STARTED"], [7, 3, 1, "", "ERR_LTSLASH_REQUIRED"], [7, 3, 1, "", "ERR_LT_IN_ATTRIBUTE"], [7, 3, 1, "", "ERR_LT_REQUIRED"], [7, 3, 1, "", "ERR_MISPLACED_CDATA_END"], [7, 3, 1, "", "ERR_MISSING_ENCODING"], [7, 3, 1, "", "ERR_MIXED_NOT_FINISHED"], [7, 3, 1, "", "ERR_MIXED_NOT_STARTED"], [7, 3, 1, "", "ERR_NAME_REQUIRED"], [7, 3, 1, "", "ERR_NAME_TOO_LONG"], [7, 3, 1, "", "ERR_NMTOKEN_REQUIRED"], [7, 3, 1, "", "ERR_NOTATION_NOT_FINISHED"], [7, 3, 1, "", "ERR_NOTATION_NOT_STARTED"], [7, 3, 1, "", "ERR_NOTATION_PROCESSING"], [7, 3, 1, "", "ERR_NOT_STANDALONE"], [7, 3, 1, "", "ERR_NOT_WELL_BALANCED"], [7, 3, 1, "", "ERR_NO_DTD"], [7, 3, 1, "", "ERR_NO_MEMORY"], [7, 3, 1, "", "ERR_NS_DECL_ERROR"], [7, 3, 1, "", "ERR_OK"], [7, 3, 1, "", "ERR_PCDATA_REQUIRED"], [7, 3, 1, "", "ERR_PEREF_AT_EOF"], [7, 3, 1, "", "ERR_PEREF_IN_EPILOG"], [7, 3, 1, "", "ERR_PEREF_IN_INT_SUBSET"], [7, 3, 1, "", "ERR_PEREF_IN_PROLOG"], [7, 3, 1, "", "ERR_PEREF_NO_NAME"], [7, 3, 1, "", "ERR_PEREF_SEMICOL_MISSING"], [7, 3, 1, "", "ERR_PI_NOT_FINISHED"], [7, 3, 1, "", "ERR_PI_NOT_STARTED"], [7, 3, 1, "", "ERR_PUBID_REQUIRED"], [7, 3, 1, "", "ERR_RESERVED_XML_NAME"], [7, 3, 1, "", "ERR_SEPARATOR_REQUIRED"], [7, 3, 1, "", "ERR_SPACE_REQUIRED"], [7, 3, 1, "", "ERR_STANDALONE_VALUE"], [7, 3, 1, "", "ERR_STRING_NOT_CLOSED"], [7, 3, 1, "", "ERR_STRING_NOT_STARTED"], [7, 3, 1, "", "ERR_TAG_NAME_MISMATCH"], [7, 3, 1, "", "ERR_TAG_NOT_FINISHED"], [7, 3, 1, "", "ERR_UNDECLARED_ENTITY"], [7, 3, 1, "", "ERR_UNKNOWN_ENCODING"], [7, 3, 1, "", "ERR_UNKNOWN_VERSION"], [7, 3, 1, "", "ERR_UNPARSED_ENTITY"], [7, 3, 1, "", "ERR_UNSUPPORTED_ENCODING"], [7, 3, 1, "", "ERR_URI_FRAGMENT"], [7, 3, 1, "", "ERR_URI_REQUIRED"], [7, 3, 1, "", "ERR_USER_STOP"], [7, 3, 1, "", "ERR_VALUE_REQUIRED"], [7, 3, 1, "", "ERR_VERSION_MISMATCH"], [7, 3, 1, "", "ERR_VERSION_MISSING"], [7, 3, 1, "", "ERR_XMLDECL_NOT_FINISHED"], [7, 3, 1, "", "ERR_XMLDECL_NOT_STARTED"], [7, 3, 1, "", "FTP_ACCNT"], [7, 3, 1, "", "FTP_EPSV_ANSWER"], [7, 3, 1, "", "FTP_PASV_ANSWER"], [7, 3, 1, "", "FTP_URL_SYNTAX"], [7, 3, 1, "", "HTML_STRUCURE_ERROR"], [7, 3, 1, "", "HTML_UNKNOWN_TAG"], [7, 3, 1, "", "HTTP_UNKNOWN_HOST"], [7, 3, 1, "", "HTTP_URL_SYNTAX"], [7, 3, 1, "", "HTTP_USE_IP"], [7, 3, 1, "", "I18N_CONV_FAILED"], [7, 3, 1, "", "I18N_EXCESS_HANDLER"], [7, 3, 1, "", "I18N_NO_HANDLER"], [7, 3, 1, "", "I18N_NO_NAME"], [7, 3, 1, "", "I18N_NO_OUTPUT"], [7, 3, 1, "", "IO_BUFFER_FULL"], [7, 3, 1, "", "IO_EACCES"], [7, 3, 1, "", "IO_EADDRINUSE"], [7, 3, 1, "", "IO_EAFNOSUPPORT"], [7, 3, 1, "", "IO_EAGAIN"], [7, 3, 1, "", "IO_EALREADY"], [7, 3, 1, "", "IO_EBADF"], [7, 3, 1, "", "IO_EBADMSG"], [7, 3, 1, "", "IO_EBUSY"], [7, 3, 1, "", "IO_ECANCELED"], [7, 3, 1, "", "IO_ECHILD"], [7, 3, 1, "", "IO_ECONNREFUSED"], [7, 3, 1, "", "IO_EDEADLK"], [7, 3, 1, "", "IO_EDOM"], [7, 3, 1, "", "IO_EEXIST"], [7, 3, 1, "", "IO_EFAULT"], [7, 3, 1, "", "IO_EFBIG"], [7, 3, 1, "", "IO_EINPROGRESS"], [7, 3, 1, "", "IO_EINTR"], [7, 3, 1, "", "IO_EINVAL"], [7, 3, 1, "", "IO_EIO"], [7, 3, 1, "", "IO_EISCONN"], [7, 3, 1, "", "IO_EISDIR"], [7, 3, 1, "", "IO_EMFILE"], [7, 3, 1, "", "IO_EMLINK"], [7, 3, 1, "", "IO_EMSGSIZE"], [7, 3, 1, "", "IO_ENAMETOOLONG"], [7, 3, 1, "", "IO_ENCODER"], [7, 3, 1, "", "IO_ENETUNREACH"], [7, 3, 1, "", "IO_ENFILE"], [7, 3, 1, "", "IO_ENODEV"], [7, 3, 1, "", "IO_ENOENT"], [7, 3, 1, "", "IO_ENOEXEC"], [7, 3, 1, "", "IO_ENOLCK"], [7, 3, 1, "", "IO_ENOMEM"], [7, 3, 1, "", "IO_ENOSPC"], [7, 3, 1, "", "IO_ENOSYS"], [7, 3, 1, "", "IO_ENOTDIR"], [7, 3, 1, "", "IO_ENOTEMPTY"], [7, 3, 1, "", "IO_ENOTSOCK"], [7, 3, 1, "", "IO_ENOTSUP"], [7, 3, 1, "", "IO_ENOTTY"], [7, 3, 1, "", "IO_ENXIO"], [7, 3, 1, "", "IO_EPERM"], [7, 3, 1, "", "IO_EPIPE"], [7, 3, 1, "", "IO_ERANGE"], [7, 3, 1, "", "IO_EROFS"], [7, 3, 1, "", "IO_ESPIPE"], [7, 3, 1, "", "IO_ESRCH"], [7, 3, 1, "", "IO_ETIMEDOUT"], [7, 3, 1, "", "IO_EXDEV"], [7, 3, 1, "", "IO_FLUSH"], [7, 3, 1, "", "IO_LOAD_ERROR"], [7, 3, 1, "", "IO_NETWORK_ATTEMPT"], [7, 3, 1, "", "IO_NO_INPUT"], [7, 3, 1, "", "IO_UNKNOWN"], [7, 3, 1, "", "IO_WRITE"], [7, 3, 1, "", "MODULE_CLOSE"], [7, 3, 1, "", "MODULE_OPEN"], [7, 3, 1, "", "NS_ERR_ATTRIBUTE_REDEFINED"], [7, 3, 1, "", "NS_ERR_COLON"], [7, 3, 1, "", "NS_ERR_EMPTY"], [7, 3, 1, "", "NS_ERR_QNAME"], [7, 3, 1, "", "NS_ERR_UNDEFINED_NAMESPACE"], [7, 3, 1, "", "NS_ERR_XML_NAMESPACE"], [7, 3, 1, "", "REGEXP_COMPILE_ERROR"], [7, 3, 1, "", "RNGP_ANYNAME_ATTR_ANCESTOR"], [7, 3, 1, "", "RNGP_ATTRIBUTE_CHILDREN"], [7, 3, 1, "", "RNGP_ATTRIBUTE_CONTENT"], [7, 3, 1, "", "RNGP_ATTRIBUTE_EMPTY"], [7, 3, 1, "", "RNGP_ATTRIBUTE_NOOP"], [7, 3, 1, "", "RNGP_ATTR_CONFLICT"], [7, 3, 1, "", "RNGP_CHOICE_CONTENT"], [7, 3, 1, "", "RNGP_CHOICE_EMPTY"], [7, 3, 1, "", "RNGP_CREATE_FAILURE"], [7, 3, 1, "", "RNGP_DATA_CONTENT"], [7, 3, 1, "", "RNGP_DEFINE_CREATE_FAILED"], [7, 3, 1, "", "RNGP_DEFINE_EMPTY"], [7, 3, 1, "", "RNGP_DEFINE_MISSING"], [7, 3, 1, "", "RNGP_DEFINE_NAME_MISSING"], [7, 3, 1, "", "RNGP_DEF_CHOICE_AND_INTERLEAVE"], [7, 3, 1, "", "RNGP_ELEMENT_CONTENT"], [7, 3, 1, "", "RNGP_ELEMENT_EMPTY"], [7, 3, 1, "", "RNGP_ELEMENT_NAME"], [7, 3, 1, "", "RNGP_ELEMENT_NO_CONTENT"], [7, 3, 1, "", "RNGP_ELEM_CONTENT_EMPTY"], [7, 3, 1, "", "RNGP_ELEM_CONTENT_ERROR"], [7, 3, 1, "", "RNGP_ELEM_TEXT_CONFLICT"], [7, 3, 1, "", "RNGP_EMPTY"], [7, 3, 1, "", "RNGP_EMPTY_CONSTRUCT"], [7, 3, 1, "", "RNGP_EMPTY_CONTENT"], [7, 3, 1, "", "RNGP_EMPTY_NOT_EMPTY"], [7, 3, 1, "", "RNGP_ERROR_TYPE_LIB"], [7, 3, 1, "", "RNGP_EXCEPT_EMPTY"], [7, 3, 1, "", "RNGP_EXCEPT_MISSING"], [7, 3, 1, "", "RNGP_EXCEPT_MULTIPLE"], [7, 3, 1, "", "RNGP_EXCEPT_NO_CONTENT"], [7, 3, 1, "", "RNGP_EXTERNALREF_EMTPY"], [7, 3, 1, "", "RNGP_EXTERNALREF_RECURSE"], [7, 3, 1, "", "RNGP_EXTERNAL_REF_FAILURE"], [7, 3, 1, "", "RNGP_FORBIDDEN_ATTRIBUTE"], [7, 3, 1, "", "RNGP_FOREIGN_ELEMENT"], [7, 3, 1, "", "RNGP_GRAMMAR_CONTENT"], [7, 3, 1, "", "RNGP_GRAMMAR_EMPTY"], [7, 3, 1, "", "RNGP_GRAMMAR_MISSING"], [7, 3, 1, "", "RNGP_GRAMMAR_NO_START"], [7, 3, 1, "", "RNGP_GROUP_ATTR_CONFLICT"], [7, 3, 1, "", "RNGP_HREF_ERROR"], [7, 3, 1, "", "RNGP_INCLUDE_EMPTY"], [7, 3, 1, "", "RNGP_INCLUDE_FAILURE"], [7, 3, 1, "", "RNGP_INCLUDE_RECURSE"], [7, 3, 1, "", "RNGP_INTERLEAVE_ADD"], [7, 3, 1, "", "RNGP_INTERLEAVE_CREATE_FAILED"], [7, 3, 1, "", "RNGP_INTERLEAVE_EMPTY"], [7, 3, 1, "", "RNGP_INTERLEAVE_NO_CONTENT"], [7, 3, 1, "", "RNGP_INVALID_DEFINE_NAME"], [7, 3, 1, "", "RNGP_INVALID_URI"], [7, 3, 1, "", "RNGP_INVALID_VALUE"], [7, 3, 1, "", "RNGP_MISSING_HREF"], [7, 3, 1, "", "RNGP_NAME_MISSING"], [7, 3, 1, "", "RNGP_NEED_COMBINE"], [7, 3, 1, "", "RNGP_NOTALLOWED_NOT_EMPTY"], [7, 3, 1, "", "RNGP_NSNAME_ATTR_ANCESTOR"], [7, 3, 1, "", "RNGP_NSNAME_NO_NS"], [7, 3, 1, "", "RNGP_PARAM_FORBIDDEN"], [7, 3, 1, "", "RNGP_PARAM_NAME_MISSING"], [7, 3, 1, "", "RNGP_PARENTREF_CREATE_FAILED"], [7, 3, 1, "", "RNGP_PARENTREF_NAME_INVALID"], [7, 3, 1, "", "RNGP_PARENTREF_NOT_EMPTY"], [7, 3, 1, "", "RNGP_PARENTREF_NO_NAME"], [7, 3, 1, "", "RNGP_PARENTREF_NO_PARENT"], [7, 3, 1, "", "RNGP_PARSE_ERROR"], [7, 3, 1, "", "RNGP_PAT_ANYNAME_EXCEPT_ANYNAME"], [7, 3, 1, "", "RNGP_PAT_ATTR_ATTR"], [7, 3, 1, "", "RNGP_PAT_ATTR_ELEM"], [7, 3, 1, "", "RNGP_PAT_DATA_EXCEPT_ATTR"], [7, 3, 1, "", "RNGP_PAT_DATA_EXCEPT_ELEM"], [7, 3, 1, "", "RNGP_PAT_DATA_EXCEPT_EMPTY"], [7, 3, 1, "", "RNGP_PAT_DATA_EXCEPT_GROUP"], [7, 3, 1, "", "RNGP_PAT_DATA_EXCEPT_INTERLEAVE"], [7, 3, 1, "", "RNGP_PAT_DATA_EXCEPT_LIST"], [7, 3, 1, "", "RNGP_PAT_DATA_EXCEPT_ONEMORE"], [7, 3, 1, "", "RNGP_PAT_DATA_EXCEPT_REF"], [7, 3, 1, "", "RNGP_PAT_DATA_EXCEPT_TEXT"], [7, 3, 1, "", "RNGP_PAT_LIST_ATTR"], [7, 3, 1, "", "RNGP_PAT_LIST_ELEM"], [7, 3, 1, "", "RNGP_PAT_LIST_INTERLEAVE"], [7, 3, 1, "", "RNGP_PAT_LIST_LIST"], [7, 3, 1, "", "RNGP_PAT_LIST_REF"], [7, 3, 1, "", "RNGP_PAT_LIST_TEXT"], [7, 3, 1, "", "RNGP_PAT_NSNAME_EXCEPT_ANYNAME"], [7, 3, 1, "", "RNGP_PAT_NSNAME_EXCEPT_NSNAME"], [7, 3, 1, "", "RNGP_PAT_ONEMORE_GROUP_ATTR"], [7, 3, 1, "", "RNGP_PAT_ONEMORE_INTERLEAVE_ATTR"], [7, 3, 1, "", "RNGP_PAT_START_ATTR"], [7, 3, 1, "", "RNGP_PAT_START_DATA"], [7, 3, 1, "", "RNGP_PAT_START_EMPTY"], [7, 3, 1, "", "RNGP_PAT_START_GROUP"], [7, 3, 1, "", "RNGP_PAT_START_INTERLEAVE"], [7, 3, 1, "", "RNGP_PAT_START_LIST"], [7, 3, 1, "", "RNGP_PAT_START_ONEMORE"], [7, 3, 1, "", "RNGP_PAT_START_TEXT"], [7, 3, 1, "", "RNGP_PAT_START_VALUE"], [7, 3, 1, "", "RNGP_PREFIX_UNDEFINED"], [7, 3, 1, "", "RNGP_REF_CREATE_FAILED"], [7, 3, 1, "", "RNGP_REF_CYCLE"], [7, 3, 1, "", "RNGP_REF_NAME_INVALID"], [7, 3, 1, "", "RNGP_REF_NOT_EMPTY"], [7, 3, 1, "", "RNGP_REF_NO_DEF"], [7, 3, 1, "", "RNGP_REF_NO_NAME"], [7, 3, 1, "", "RNGP_START_CHOICE_AND_INTERLEAVE"], [7, 3, 1, "", "RNGP_START_CONTENT"], [7, 3, 1, "", "RNGP_START_EMPTY"], [7, 3, 1, "", "RNGP_START_MISSING"], [7, 3, 1, "", "RNGP_TEXT_EXPECTED"], [7, 3, 1, "", "RNGP_TEXT_HAS_CHILD"], [7, 3, 1, "", "RNGP_TYPE_MISSING"], [7, 3, 1, "", "RNGP_TYPE_NOT_FOUND"], [7, 3, 1, "", "RNGP_TYPE_VALUE"], [7, 3, 1, "", "RNGP_UNKNOWN_ATTRIBUTE"], [7, 3, 1, "", "RNGP_UNKNOWN_COMBINE"], [7, 3, 1, "", "RNGP_UNKNOWN_CONSTRUCT"], [7, 3, 1, "", "RNGP_UNKNOWN_TYPE_LIB"], [7, 3, 1, "", "RNGP_URI_FRAGMENT"], [7, 3, 1, "", "RNGP_URI_NOT_ABSOLUTE"], [7, 3, 1, "", "RNGP_VALUE_EMPTY"], [7, 3, 1, "", "RNGP_VALUE_NO_CONTENT"], [7, 3, 1, "", "RNGP_XMLNS_NAME"], [7, 3, 1, "", "RNGP_XML_NS"], [7, 3, 1, "", "SAVE_CHAR_INVALID"], [7, 3, 1, "", "SAVE_NOT_UTF8"], [7, 3, 1, "", "SAVE_NO_DOCTYPE"], [7, 3, 1, "", "SAVE_UNKNOWN_ENCODING"], [7, 3, 1, "", "SCHEMAP_AG_PROPS_CORRECT"], [7, 3, 1, "", "SCHEMAP_ATTRFORMDEFAULT_VALUE"], [7, 3, 1, "", "SCHEMAP_ATTRGRP_NONAME_NOREF"], [7, 3, 1, "", "SCHEMAP_ATTR_NONAME_NOREF"], [7, 3, 1, "", "SCHEMAP_AU_PROPS_CORRECT"], [7, 3, 1, "", "SCHEMAP_AU_PROPS_CORRECT_2"], [7, 3, 1, "", "SCHEMAP_A_PROPS_CORRECT_2"], [7, 3, 1, "", "SCHEMAP_A_PROPS_CORRECT_3"], [7, 3, 1, "", "SCHEMAP_COMPLEXTYPE_NONAME_NOREF"], [7, 3, 1, "", "SCHEMAP_COS_ALL_LIMITED"], [7, 3, 1, "", "SCHEMAP_COS_CT_EXTENDS_1_1"], [7, 3, 1, "", "SCHEMAP_COS_CT_EXTENDS_1_2"], [7, 3, 1, "", "SCHEMAP_COS_CT_EXTENDS_1_3"], [7, 3, 1, "", "SCHEMAP_COS_ST_DERIVED_OK_2_1"], [7, 3, 1, "", "SCHEMAP_COS_ST_DERIVED_OK_2_2"], [7, 3, 1, "", "SCHEMAP_COS_ST_RESTRICTS_1_1"], [7, 3, 1, "", "SCHEMAP_COS_ST_RESTRICTS_1_2"], [7, 3, 1, "", "SCHEMAP_COS_ST_RESTRICTS_1_3_1"], [7, 3, 1, "", "SCHEMAP_COS_ST_RESTRICTS_1_3_2"], [7, 3, 1, "", "SCHEMAP_COS_ST_RESTRICTS_2_1"], [7, 3, 1, "", "SCHEMAP_COS_ST_RESTRICTS_2_3_1_1"], [7, 3, 1, "", "SCHEMAP_COS_ST_RESTRICTS_2_3_1_2"], [7, 3, 1, "", "SCHEMAP_COS_ST_RESTRICTS_2_3_2_1"], [7, 3, 1, "", "SCHEMAP_COS_ST_RESTRICTS_2_3_2_2"], [7, 3, 1, "", "SCHEMAP_COS_ST_RESTRICTS_2_3_2_3"], [7, 3, 1, "", "SCHEMAP_COS_ST_RESTRICTS_2_3_2_4"], [7, 3, 1, "", "SCHEMAP_COS_ST_RESTRICTS_2_3_2_5"], [7, 3, 1, "", "SCHEMAP_COS_ST_RESTRICTS_3_1"], [7, 3, 1, "", "SCHEMAP_COS_ST_RESTRICTS_3_3_1"], [7, 3, 1, "", "SCHEMAP_COS_ST_RESTRICTS_3_3_1_2"], [7, 3, 1, "", "SCHEMAP_COS_ST_RESTRICTS_3_3_2_1"], [7, 3, 1, "", "SCHEMAP_COS_ST_RESTRICTS_3_3_2_2"], [7, 3, 1, "", "SCHEMAP_COS_ST_RESTRICTS_3_3_2_3"], [7, 3, 1, "", "SCHEMAP_COS_ST_RESTRICTS_3_3_2_4"], [7, 3, 1, "", "SCHEMAP_COS_ST_RESTRICTS_3_3_2_5"], [7, 3, 1, "", "SCHEMAP_COS_VALID_DEFAULT_1"], [7, 3, 1, "", "SCHEMAP_COS_VALID_DEFAULT_2_1"], [7, 3, 1, "", "SCHEMAP_COS_VALID_DEFAULT_2_2_1"], [7, 3, 1, "", "SCHEMAP_COS_VALID_DEFAULT_2_2_2"], [7, 3, 1, "", "SCHEMAP_CT_PROPS_CORRECT_1"], [7, 3, 1, "", "SCHEMAP_CT_PROPS_CORRECT_2"], [7, 3, 1, "", "SCHEMAP_CT_PROPS_CORRECT_3"], [7, 3, 1, "", "SCHEMAP_CT_PROPS_CORRECT_4"], [7, 3, 1, "", "SCHEMAP_CT_PROPS_CORRECT_5"], [7, 3, 1, "", "SCHEMAP_CVC_SIMPLE_TYPE"], [7, 3, 1, "", "SCHEMAP_C_PROPS_CORRECT"], [7, 3, 1, "", "SCHEMAP_DEF_AND_PREFIX"], [7, 3, 1, "", "SCHEMAP_DERIVATION_OK_RESTRICTION_1"], [7, 3, 1, "", "SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_1"], [7, 3, 1, "", "SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_2"], [7, 3, 1, "", "SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_3"], [7, 3, 1, "", "SCHEMAP_DERIVATION_OK_RESTRICTION_2_2"], [7, 3, 1, "", "SCHEMAP_DERIVATION_OK_RESTRICTION_3"], [7, 3, 1, "", "SCHEMAP_DERIVATION_OK_RESTRICTION_4_1"], [7, 3, 1, "", "SCHEMAP_DERIVATION_OK_RESTRICTION_4_2"], [7, 3, 1, "", "SCHEMAP_DERIVATION_OK_RESTRICTION_4_3"], [7, 3, 1, "", "SCHEMAP_ELEMFORMDEFAULT_VALUE"], [7, 3, 1, "", "SCHEMAP_ELEM_DEFAULT_FIXED"], [7, 3, 1, "", "SCHEMAP_ELEM_NONAME_NOREF"], [7, 3, 1, "", "SCHEMAP_EXTENSION_NO_BASE"], [7, 3, 1, "", "SCHEMAP_E_PROPS_CORRECT_2"], [7, 3, 1, "", "SCHEMAP_E_PROPS_CORRECT_3"], [7, 3, 1, "", "SCHEMAP_E_PROPS_CORRECT_4"], [7, 3, 1, "", "SCHEMAP_E_PROPS_CORRECT_5"], [7, 3, 1, "", "SCHEMAP_E_PROPS_CORRECT_6"], [7, 3, 1, "", "SCHEMAP_FACET_NO_VALUE"], [7, 3, 1, "", "SCHEMAP_FAILED_BUILD_IMPORT"], [7, 3, 1, "", "SCHEMAP_FAILED_LOAD"], [7, 3, 1, "", "SCHEMAP_FAILED_PARSE"], [7, 3, 1, "", "SCHEMAP_GROUP_NONAME_NOREF"], [7, 3, 1, "", "SCHEMAP_IMPORT_NAMESPACE_NOT_URI"], [7, 3, 1, "", "SCHEMAP_IMPORT_REDEFINE_NSNAME"], [7, 3, 1, "", "SCHEMAP_IMPORT_SCHEMA_NOT_URI"], [7, 3, 1, "", "SCHEMAP_INCLUDE_SCHEMA_NOT_URI"], [7, 3, 1, "", "SCHEMAP_INCLUDE_SCHEMA_NO_URI"], [7, 3, 1, "", "SCHEMAP_INTERNAL"], [7, 3, 1, "", "SCHEMAP_INTERSECTION_NOT_EXPRESSIBLE"], [7, 3, 1, "", "SCHEMAP_INVALID_ATTR_COMBINATION"], [7, 3, 1, "", "SCHEMAP_INVALID_ATTR_INLINE_COMBINATION"], [7, 3, 1, "", "SCHEMAP_INVALID_ATTR_NAME"], [7, 3, 1, "", "SCHEMAP_INVALID_ATTR_USE"], [7, 3, 1, "", "SCHEMAP_INVALID_BOOLEAN"], [7, 3, 1, "", "SCHEMAP_INVALID_ENUM"], [7, 3, 1, "", "SCHEMAP_INVALID_FACET"], [7, 3, 1, "", "SCHEMAP_INVALID_FACET_VALUE"], [7, 3, 1, "", "SCHEMAP_INVALID_MAXOCCURS"], [7, 3, 1, "", "SCHEMAP_INVALID_MINOCCURS"], [7, 3, 1, "", "SCHEMAP_INVALID_REF_AND_SUBTYPE"], [7, 3, 1, "", "SCHEMAP_INVALID_WHITE_SPACE"], [7, 3, 1, "", "SCHEMAP_MG_PROPS_CORRECT_1"], [7, 3, 1, "", "SCHEMAP_MG_PROPS_CORRECT_2"], [7, 3, 1, "", "SCHEMAP_MISSING_SIMPLETYPE_CHILD"], [7, 3, 1, "", "SCHEMAP_NOATTR_NOREF"], [7, 3, 1, "", "SCHEMAP_NOROOT"], [7, 3, 1, "", "SCHEMAP_NOTATION_NO_NAME"], [7, 3, 1, "", "SCHEMAP_NOTHING_TO_PARSE"], [7, 3, 1, "", "SCHEMAP_NOTYPE_NOREF"], [7, 3, 1, "", "SCHEMAP_NOT_DETERMINISTIC"], [7, 3, 1, "", "SCHEMAP_NOT_SCHEMA"], [7, 3, 1, "", "SCHEMAP_NO_XMLNS"], [7, 3, 1, "", "SCHEMAP_NO_XSI"], [7, 3, 1, "", "SCHEMAP_PREFIX_UNDEFINED"], [7, 3, 1, "", "SCHEMAP_P_PROPS_CORRECT_1"], [7, 3, 1, "", "SCHEMAP_P_PROPS_CORRECT_2_1"], [7, 3, 1, "", "SCHEMAP_P_PROPS_CORRECT_2_2"], [7, 3, 1, "", "SCHEMAP_RECURSIVE"], [7, 3, 1, "", "SCHEMAP_REDEFINED_ATTR"], [7, 3, 1, "", "SCHEMAP_REDEFINED_ATTRGROUP"], [7, 3, 1, "", "SCHEMAP_REDEFINED_ELEMENT"], [7, 3, 1, "", "SCHEMAP_REDEFINED_GROUP"], [7, 3, 1, "", "SCHEMAP_REDEFINED_NOTATION"], [7, 3, 1, "", "SCHEMAP_REDEFINED_TYPE"], [7, 3, 1, "", "SCHEMAP_REF_AND_CONTENT"], [7, 3, 1, "", "SCHEMAP_REF_AND_SUBTYPE"], [7, 3, 1, "", "SCHEMAP_REGEXP_INVALID"], [7, 3, 1, "", "SCHEMAP_RESTRICTION_NONAME_NOREF"], [7, 3, 1, "", "SCHEMAP_S4S_ATTR_INVALID_VALUE"], [7, 3, 1, "", "SCHEMAP_S4S_ATTR_MISSING"], [7, 3, 1, "", "SCHEMAP_S4S_ATTR_NOT_ALLOWED"], [7, 3, 1, "", "SCHEMAP_S4S_ELEM_MISSING"], [7, 3, 1, "", "SCHEMAP_S4S_ELEM_NOT_ALLOWED"], [7, 3, 1, "", "SCHEMAP_SIMPLETYPE_NONAME"], [7, 3, 1, "", "SCHEMAP_SRC_ATTRIBUTE_1"], [7, 3, 1, "", "SCHEMAP_SRC_ATTRIBUTE_2"], [7, 3, 1, "", "SCHEMAP_SRC_ATTRIBUTE_3_1"], [7, 3, 1, "", "SCHEMAP_SRC_ATTRIBUTE_3_2"], [7, 3, 1, "", "SCHEMAP_SRC_ATTRIBUTE_4"], [7, 3, 1, "", "SCHEMAP_SRC_ATTRIBUTE_GROUP_1"], [7, 3, 1, "", "SCHEMAP_SRC_ATTRIBUTE_GROUP_2"], [7, 3, 1, "", "SCHEMAP_SRC_ATTRIBUTE_GROUP_3"], [7, 3, 1, "", "SCHEMAP_SRC_CT_1"], [7, 3, 1, "", "SCHEMAP_SRC_ELEMENT_1"], [7, 3, 1, "", "SCHEMAP_SRC_ELEMENT_2_1"], [7, 3, 1, "", "SCHEMAP_SRC_ELEMENT_2_2"], [7, 3, 1, "", "SCHEMAP_SRC_ELEMENT_3"], [7, 3, 1, "", "SCHEMAP_SRC_IMPORT"], [7, 3, 1, "", "SCHEMAP_SRC_IMPORT_1_1"], [7, 3, 1, "", "SCHEMAP_SRC_IMPORT_1_2"], [7, 3, 1, "", "SCHEMAP_SRC_IMPORT_2"], [7, 3, 1, "", "SCHEMAP_SRC_IMPORT_2_1"], [7, 3, 1, "", "SCHEMAP_SRC_IMPORT_2_2"], [7, 3, 1, "", "SCHEMAP_SRC_IMPORT_3_1"], [7, 3, 1, "", "SCHEMAP_SRC_IMPORT_3_2"], [7, 3, 1, "", "SCHEMAP_SRC_INCLUDE"], [7, 3, 1, "", "SCHEMAP_SRC_LIST_ITEMTYPE_OR_SIMPLETYPE"], [7, 3, 1, "", "SCHEMAP_SRC_REDEFINE"], [7, 3, 1, "", "SCHEMAP_SRC_RESOLVE"], [7, 3, 1, "", "SCHEMAP_SRC_RESTRICTION_BASE_OR_SIMPLETYPE"], [7, 3, 1, "", "SCHEMAP_SRC_SIMPLE_TYPE_1"], [7, 3, 1, "", "SCHEMAP_SRC_SIMPLE_TYPE_2"], [7, 3, 1, "", "SCHEMAP_SRC_SIMPLE_TYPE_3"], [7, 3, 1, "", "SCHEMAP_SRC_SIMPLE_TYPE_4"], [7, 3, 1, "", "SCHEMAP_SRC_UNION_MEMBERTYPES_OR_SIMPLETYPES"], [7, 3, 1, "", "SCHEMAP_ST_PROPS_CORRECT_1"], [7, 3, 1, "", "SCHEMAP_ST_PROPS_CORRECT_2"], [7, 3, 1, "", "SCHEMAP_ST_PROPS_CORRECT_3"], [7, 3, 1, "", "SCHEMAP_SUPERNUMEROUS_LIST_ITEM_TYPE"], [7, 3, 1, "", "SCHEMAP_TYPE_AND_SUBTYPE"], [7, 3, 1, "", "SCHEMAP_UNION_NOT_EXPRESSIBLE"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_ALL_CHILD"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_ANYATTRIBUTE_CHILD"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_ATTRGRP_CHILD"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_ATTRIBUTE_GROUP"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_ATTR_CHILD"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_BASE_TYPE"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_CHOICE_CHILD"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_COMPLEXCONTENT_CHILD"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_COMPLEXTYPE_CHILD"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_ELEM_CHILD"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_EXTENSION_CHILD"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_FACET_CHILD"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_FACET_TYPE"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_GROUP_CHILD"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_IMPORT_CHILD"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_INCLUDE_CHILD"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_LIST_CHILD"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_MEMBER_TYPE"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_NOTATION_CHILD"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_PREFIX"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_PROCESSCONTENT_CHILD"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_REF"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_RESTRICTION_CHILD"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_SCHEMAS_CHILD"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_SEQUENCE_CHILD"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_SIMPLECONTENT_CHILD"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_SIMPLETYPE_CHILD"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_TYPE"], [7, 3, 1, "", "SCHEMAP_UNKNOWN_UNION_CHILD"], [7, 3, 1, "", "SCHEMAP_WARN_ATTR_POINTLESS_PROH"], [7, 3, 1, "", "SCHEMAP_WARN_ATTR_REDECL_PROH"], [7, 3, 1, "", "SCHEMAP_WARN_SKIP_SCHEMA"], [7, 3, 1, "", "SCHEMAP_WARN_UNLOCATED_SCHEMA"], [7, 3, 1, "", "SCHEMAP_WILDCARD_INVALID_NS_MEMBER"], [7, 3, 1, "", "SCHEMATRONV_ASSERT"], [7, 3, 1, "", "SCHEMATRONV_REPORT"], [7, 3, 1, "", "SCHEMAV_ATTRINVALID"], [7, 3, 1, "", "SCHEMAV_ATTRUNKNOWN"], [7, 3, 1, "", "SCHEMAV_CONSTRUCT"], [7, 3, 1, "", "SCHEMAV_CVC_ATTRIBUTE_1"], [7, 3, 1, "", "SCHEMAV_CVC_ATTRIBUTE_2"], [7, 3, 1, "", "SCHEMAV_CVC_ATTRIBUTE_3"], [7, 3, 1, "", "SCHEMAV_CVC_ATTRIBUTE_4"], [7, 3, 1, "", "SCHEMAV_CVC_AU"], [7, 3, 1, "", "SCHEMAV_CVC_COMPLEX_TYPE_1"], [7, 3, 1, "", "SCHEMAV_CVC_COMPLEX_TYPE_2_1"], [7, 3, 1, "", "SCHEMAV_CVC_COMPLEX_TYPE_2_2"], [7, 3, 1, "", "SCHEMAV_CVC_COMPLEX_TYPE_2_3"], [7, 3, 1, "", "SCHEMAV_CVC_COMPLEX_TYPE_2_4"], [7, 3, 1, "", "SCHEMAV_CVC_COMPLEX_TYPE_3_1"], [7, 3, 1, "", "SCHEMAV_CVC_COMPLEX_TYPE_3_2_1"], [7, 3, 1, "", "SCHEMAV_CVC_COMPLEX_TYPE_3_2_2"], [7, 3, 1, "", "SCHEMAV_CVC_COMPLEX_TYPE_4"], [7, 3, 1, "", "SCHEMAV_CVC_COMPLEX_TYPE_5_1"], [7, 3, 1, "", "SCHEMAV_CVC_COMPLEX_TYPE_5_2"], [7, 3, 1, "", "SCHEMAV_CVC_DATATYPE_VALID_1_2_1"], [7, 3, 1, "", "SCHEMAV_CVC_DATATYPE_VALID_1_2_2"], [7, 3, 1, "", "SCHEMAV_CVC_DATATYPE_VALID_1_2_3"], [7, 3, 1, "", "SCHEMAV_CVC_ELT_1"], [7, 3, 1, "", "SCHEMAV_CVC_ELT_2"], [7, 3, 1, "", "SCHEMAV_CVC_ELT_3_1"], [7, 3, 1, "", "SCHEMAV_CVC_ELT_3_2_1"], [7, 3, 1, "", "SCHEMAV_CVC_ELT_3_2_2"], [7, 3, 1, "", "SCHEMAV_CVC_ELT_4_1"], [7, 3, 1, "", "SCHEMAV_CVC_ELT_4_2"], [7, 3, 1, "", "SCHEMAV_CVC_ELT_4_3"], [7, 3, 1, "", "SCHEMAV_CVC_ELT_5_1_1"], [7, 3, 1, "", "SCHEMAV_CVC_ELT_5_1_2"], [7, 3, 1, "", "SCHEMAV_CVC_ELT_5_2_1"], [7, 3, 1, "", "SCHEMAV_CVC_ELT_5_2_2_1"], [7, 3, 1, "", "SCHEMAV_CVC_ELT_5_2_2_2_1"], [7, 3, 1, "", "SCHEMAV_CVC_ELT_5_2_2_2_2"], [7, 3, 1, "", "SCHEMAV_CVC_ELT_6"], [7, 3, 1, "", "SCHEMAV_CVC_ELT_7"], [7, 3, 1, "", "SCHEMAV_CVC_ENUMERATION_VALID"], [7, 3, 1, "", "SCHEMAV_CVC_FACET_VALID"], [7, 3, 1, "", "SCHEMAV_CVC_FRACTIONDIGITS_VALID"], [7, 3, 1, "", "SCHEMAV_CVC_IDC"], [7, 3, 1, "", "SCHEMAV_CVC_LENGTH_VALID"], [7, 3, 1, "", "SCHEMAV_CVC_MAXEXCLUSIVE_VALID"], [7, 3, 1, "", "SCHEMAV_CVC_MAXINCLUSIVE_VALID"], [7, 3, 1, "", "SCHEMAV_CVC_MAXLENGTH_VALID"], [7, 3, 1, "", "SCHEMAV_CVC_MINEXCLUSIVE_VALID"], [7, 3, 1, "", "SCHEMAV_CVC_MININCLUSIVE_VALID"], [7, 3, 1, "", "SCHEMAV_CVC_MINLENGTH_VALID"], [7, 3, 1, "", "SCHEMAV_CVC_PATTERN_VALID"], [7, 3, 1, "", "SCHEMAV_CVC_TOTALDIGITS_VALID"], [7, 3, 1, "", "SCHEMAV_CVC_TYPE_1"], [7, 3, 1, "", "SCHEMAV_CVC_TYPE_2"], [7, 3, 1, "", "SCHEMAV_CVC_TYPE_3_1_1"], [7, 3, 1, "", "SCHEMAV_CVC_TYPE_3_1_2"], [7, 3, 1, "", "SCHEMAV_CVC_WILDCARD"], [7, 3, 1, "", "SCHEMAV_DOCUMENT_ELEMENT_MISSING"], [7, 3, 1, "", "SCHEMAV_ELEMCONT"], [7, 3, 1, "", "SCHEMAV_ELEMENT_CONTENT"], [7, 3, 1, "", "SCHEMAV_EXTRACONTENT"], [7, 3, 1, "", "SCHEMAV_FACET"], [7, 3, 1, "", "SCHEMAV_HAVEDEFAULT"], [7, 3, 1, "", "SCHEMAV_INTERNAL"], [7, 3, 1, "", "SCHEMAV_INVALIDATTR"], [7, 3, 1, "", "SCHEMAV_INVALIDELEM"], [7, 3, 1, "", "SCHEMAV_ISABSTRACT"], [7, 3, 1, "", "SCHEMAV_MISC"], [7, 3, 1, "", "SCHEMAV_MISSING"], [7, 3, 1, "", "SCHEMAV_NOROLLBACK"], [7, 3, 1, "", "SCHEMAV_NOROOT"], [7, 3, 1, "", "SCHEMAV_NOTDETERMINIST"], [7, 3, 1, "", "SCHEMAV_NOTEMPTY"], [7, 3, 1, "", "SCHEMAV_NOTNILLABLE"], [7, 3, 1, "", "SCHEMAV_NOTSIMPLE"], [7, 3, 1, "", "SCHEMAV_NOTTOPLEVEL"], [7, 3, 1, "", "SCHEMAV_NOTYPE"], [7, 3, 1, "", "SCHEMAV_UNDECLAREDELEM"], [7, 3, 1, "", "SCHEMAV_VALUE"], [7, 3, 1, "", "SCHEMAV_WRONGELEM"], [7, 3, 1, "", "TREE_INVALID_DEC"], [7, 3, 1, "", "TREE_INVALID_HEX"], [7, 3, 1, "", "TREE_NOT_UTF8"], [7, 3, 1, "", "TREE_UNTERMINATED_ENTITY"], [7, 3, 1, "", "WAR_CATALOG_PI"], [7, 3, 1, "", "WAR_ENTITY_REDEFINED"], [7, 3, 1, "", "WAR_LANG_VALUE"], [7, 3, 1, "", "WAR_NS_COLUMN"], [7, 3, 1, "", "WAR_NS_URI"], [7, 3, 1, "", "WAR_NS_URI_RELATIVE"], [7, 3, 1, "", "WAR_SPACE_VALUE"], [7, 3, 1, "", "WAR_UNDECLARED_ENTITY"], [7, 3, 1, "", "WAR_UNKNOWN_VERSION"], [7, 3, 1, "", "XINCLUDE_BUILD_FAILED"], [7, 3, 1, "", "XINCLUDE_DEPRECATED_NS"], [7, 3, 1, "", "XINCLUDE_ENTITY_DEF_MISMATCH"], [7, 3, 1, "", "XINCLUDE_FALLBACKS_IN_INCLUDE"], [7, 3, 1, "", "XINCLUDE_FALLBACK_NOT_IN_INCLUDE"], [7, 3, 1, "", "XINCLUDE_FRAGMENT_ID"], [7, 3, 1, "", "XINCLUDE_HREF_URI"], [7, 3, 1, "", "XINCLUDE_INCLUDE_IN_INCLUDE"], [7, 3, 1, "", "XINCLUDE_INVALID_CHAR"], [7, 3, 1, "", "XINCLUDE_MULTIPLE_ROOT"], [7, 3, 1, "", "XINCLUDE_NO_FALLBACK"], [7, 3, 1, "", "XINCLUDE_NO_HREF"], [7, 3, 1, "", "XINCLUDE_PARSE_VALUE"], [7, 3, 1, "", "XINCLUDE_RECURSION"], [7, 3, 1, "", "XINCLUDE_TEXT_DOCUMENT"], [7, 3, 1, "", "XINCLUDE_TEXT_FRAGMENT"], [7, 3, 1, "", "XINCLUDE_UNKNOWN_ENCODING"], [7, 3, 1, "", "XINCLUDE_XPTR_FAILED"], [7, 3, 1, "", "XINCLUDE_XPTR_RESULT"], [7, 3, 1, "", "XPATH_ENCODING_ERROR"], [7, 3, 1, "", "XPATH_EXPRESSION_OK"], [7, 3, 1, "", "XPATH_EXPR_ERROR"], [7, 3, 1, "", "XPATH_INVALID_ARITY"], [7, 3, 1, "", "XPATH_INVALID_CHAR_ERROR"], [7, 3, 1, "", "XPATH_INVALID_CTXT_POSITION"], [7, 3, 1, "", "XPATH_INVALID_CTXT_SIZE"], [7, 3, 1, "", "XPATH_INVALID_OPERAND"], [7, 3, 1, "", "XPATH_INVALID_PREDICATE_ERROR"], [7, 3, 1, "", "XPATH_INVALID_TYPE"], [7, 3, 1, "", "XPATH_MEMORY_ERROR"], [7, 3, 1, "", "XPATH_NUMBER_ERROR"], [7, 3, 1, "", "XPATH_START_LITERAL_ERROR"], [7, 3, 1, "", "XPATH_UNCLOSED_ERROR"], [7, 3, 1, "", "XPATH_UNDEF_PREFIX_ERROR"], [7, 3, 1, "", "XPATH_UNDEF_VARIABLE_ERROR"], [7, 3, 1, "", "XPATH_UNFINISHED_LITERAL_ERROR"], [7, 3, 1, "", "XPATH_UNKNOWN_FUNC_ERROR"], [7, 3, 1, "", "XPATH_VARIABLE_REF_ERROR"], [7, 3, 1, "", "XPTR_CHILDSEQ_START"], [7, 3, 1, "", "XPTR_EVAL_FAILED"], [7, 3, 1, "", "XPTR_EXTRA_OBJECTS"], [7, 3, 1, "", "XPTR_RESOURCE_ERROR"], [7, 3, 1, "", "XPTR_SUB_RESOURCE_ERROR"], [7, 3, 1, "", "XPTR_SYNTAX_ERROR"], [7, 3, 1, "", "XPTR_UNKNOWN_SCHEME"], [7, 2, 1, "", "_getName"], [7, 3, 1, "", "_names"]], "lxml.etree.FallbackElementClassLookup": [[7, 3, 1, "", "fallback"], [7, 2, 1, "", "set_fallback"]], "lxml.etree.HTMLParser": [[7, 2, 1, "", "close"], [7, 2, 1, "", "copy"], [7, 3, 1, "", "error_log"], [7, 2, 1, "", "feed"], [7, 3, 1, "", "feed_error_log"], [7, 2, 1, "", "makeelement"], [7, 3, 1, "", "resolvers"], [7, 2, 1, "", "setElementClassLookup"], [7, 2, 1, "", "set_element_class_lookup"], [7, 3, 1, "", "target"], [7, 3, 1, "", "version"]], "lxml.etree.HTMLPullParser": [[7, 2, 1, "", "close"], [7, 2, 1, "", "copy"], [7, 3, 1, "", "error_log"], [7, 2, 1, "", "feed"], [7, 3, 1, "", "feed_error_log"], [7, 2, 1, "", "makeelement"], [7, 2, 1, "", "read_events"], [7, 3, 1, "", "resolvers"], [7, 2, 1, "", "setElementClassLookup"], [7, 2, 1, "", "set_element_class_lookup"], [7, 3, 1, "", "target"], [7, 3, 1, "", "version"]], "lxml.etree.LxmlError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.LxmlRegistryError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.LxmlSyntaxError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 3, 1, "", "end_lineno"], [7, 3, 1, "", "end_offset"], [7, 3, 1, "", "filename"], [7, 3, 1, "", "lineno"], [7, 3, 1, "", "msg"], [7, 3, 1, "", "offset"], [7, 3, 1, "", "print_file_and_line"], [7, 3, 1, "", "text"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.NamespaceRegistryError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.PIBase": [[7, 2, 1, "", "_init"], [7, 2, 1, "", "addnext"], [7, 2, 1, "", "addprevious"], [7, 2, 1, "", "append"], [7, 3, 1, "", "attrib"], [7, 3, 1, "", "base"], [7, 2, 1, "", "clear"], [7, 2, 1, "", "cssselect"], [7, 2, 1, "", "extend"], [7, 2, 1, "", "find"], [7, 2, 1, "", "findall"], [7, 2, 1, "", "findtext"], [7, 2, 1, "", "get"], [7, 2, 1, "", "getchildren"], [7, 2, 1, "", "getiterator"], [7, 2, 1, "", "getnext"], [7, 2, 1, "", "getparent"], [7, 2, 1, "", "getprevious"], [7, 2, 1, "", "getroottree"], [7, 2, 1, "", "index"], [7, 2, 1, "", "insert"], [7, 2, 1, "", "items"], [7, 2, 1, "", "iter"], [7, 2, 1, "", "iterancestors"], [7, 2, 1, "", "iterchildren"], [7, 2, 1, "", "iterdescendants"], [7, 2, 1, "", "iterfind"], [7, 2, 1, "", "itersiblings"], [7, 2, 1, "", "itertext"], [7, 2, 1, "", "keys"], [7, 2, 1, "", "makeelement"], [7, 3, 1, "", "nsmap"], [7, 3, 1, "", "prefix"], [7, 2, 1, "", "remove"], [7, 2, 1, "", "replace"], [7, 2, 1, "", "set"], [7, 3, 1, "", "sourceline"], [7, 3, 1, "", "tag"], [7, 3, 1, "", "tail"], [7, 3, 1, "", "target"], [7, 3, 1, "", "text"], [7, 2, 1, "", "values"], [7, 2, 1, "", "xpath"]], "lxml.etree.ParseError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 3, 1, "", "end_lineno"], [7, 3, 1, "", "end_offset"], [7, 3, 1, "", "filename"], [7, 3, 1, "", "lineno"], [7, 3, 1, "", "msg"], [7, 3, 1, "", "offset"], [7, 6, 1, "", "position"], [7, 3, 1, "", "print_file_and_line"], [7, 3, 1, "", "text"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.ParserBasedElementClassLookup": [[7, 3, 1, "", "fallback"], [7, 2, 1, "", "set_fallback"]], "lxml.etree.ParserError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.PyErrorLog": [[7, 2, 1, "", "copy"], [7, 3, 1, "", "last_error"], [7, 3, 1, "", "level_map"], [7, 2, 1, "", "log"], [7, 2, 1, "", "receive"]], "lxml.etree.PythonElementClassLookup": [[7, 3, 1, "", "fallback"], [7, 2, 1, "", "lookup"], [7, 2, 1, "", "set_fallback"]], "lxml.etree.QName": [[7, 3, 1, "", "localname"], [7, 3, 1, "", "namespace"], [7, 3, 1, "", "text"]], "lxml.etree.RelaxNG": [[7, 2, 1, "", "_append_log_message"], [7, 2, 1, "", "_clear_error_log"], [7, 2, 1, "", "assertValid"], [7, 2, 1, "", "assert_"], [7, 3, 1, "", "error_log"], [7, 2, 1, "", "from_rnc_string"], [7, 2, 1, "", "validate"]], "lxml.etree.RelaxNGError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.RelaxNGErrorTypes": [[7, 3, 1, "", "RELAXNG_ERR_ATTREXTRANS"], [7, 3, 1, "", "RELAXNG_ERR_ATTRNAME"], [7, 3, 1, "", "RELAXNG_ERR_ATTRNONS"], [7, 3, 1, "", "RELAXNG_ERR_ATTRVALID"], [7, 3, 1, "", "RELAXNG_ERR_ATTRWRONGNS"], [7, 3, 1, "", "RELAXNG_ERR_CONTENTVALID"], [7, 3, 1, "", "RELAXNG_ERR_DATAELEM"], [7, 3, 1, "", "RELAXNG_ERR_DATATYPE"], [7, 3, 1, "", "RELAXNG_ERR_DUPID"], [7, 3, 1, "", "RELAXNG_ERR_ELEMEXTRANS"], [7, 3, 1, "", "RELAXNG_ERR_ELEMNAME"], [7, 3, 1, "", "RELAXNG_ERR_ELEMNONS"], [7, 3, 1, "", "RELAXNG_ERR_ELEMNOTEMPTY"], [7, 3, 1, "", "RELAXNG_ERR_ELEMWRONG"], [7, 3, 1, "", "RELAXNG_ERR_ELEMWRONGNS"], [7, 3, 1, "", "RELAXNG_ERR_EXTRACONTENT"], [7, 3, 1, "", "RELAXNG_ERR_EXTRADATA"], [7, 3, 1, "", "RELAXNG_ERR_INTEREXTRA"], [7, 3, 1, "", "RELAXNG_ERR_INTERNAL"], [7, 3, 1, "", "RELAXNG_ERR_INTERNODATA"], [7, 3, 1, "", "RELAXNG_ERR_INTERSEQ"], [7, 3, 1, "", "RELAXNG_ERR_INVALIDATTR"], [7, 3, 1, "", "RELAXNG_ERR_LACKDATA"], [7, 3, 1, "", "RELAXNG_ERR_LIST"], [7, 3, 1, "", "RELAXNG_ERR_LISTELEM"], [7, 3, 1, "", "RELAXNG_ERR_LISTEMPTY"], [7, 3, 1, "", "RELAXNG_ERR_LISTEXTRA"], [7, 3, 1, "", "RELAXNG_ERR_MEMORY"], [7, 3, 1, "", "RELAXNG_ERR_NODEFINE"], [7, 3, 1, "", "RELAXNG_ERR_NOELEM"], [7, 3, 1, "", "RELAXNG_ERR_NOGRAMMAR"], [7, 3, 1, "", "RELAXNG_ERR_NOSTATE"], [7, 3, 1, "", "RELAXNG_ERR_NOTELEM"], [7, 3, 1, "", "RELAXNG_ERR_TEXTWRONG"], [7, 3, 1, "", "RELAXNG_ERR_TYPE"], [7, 3, 1, "", "RELAXNG_ERR_TYPECMP"], [7, 3, 1, "", "RELAXNG_ERR_TYPEVAL"], [7, 3, 1, "", "RELAXNG_ERR_VALELEM"], [7, 3, 1, "", "RELAXNG_ERR_VALUE"], [7, 3, 1, "", "RELAXNG_OK"], [7, 2, 1, "", "_getName"], [7, 3, 1, "", "_names"]], "lxml.etree.RelaxNGParseError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.RelaxNGValidateError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.Resolver": [[7, 2, 1, "", "resolve"], [7, 2, 1, "", "resolve_empty"], [7, 2, 1, "", "resolve_file"], [7, 2, 1, "", "resolve_filename"], [7, 2, 1, "", "resolve_string"]], "lxml.etree.Schematron": [[7, 2, 1, "", "_append_log_message"], [7, 2, 1, "", "_clear_error_log"], [7, 2, 1, "", "assertValid"], [7, 2, 1, "", "assert_"], [7, 3, 1, "", "error_log"], [7, 2, 1, "", "validate"]], "lxml.etree.SchematronError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.SchematronParseError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.SchematronValidateError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.SerialisationError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.TreeBuilder": [[7, 2, 1, "", "close"], [7, 2, 1, "", "comment"], [7, 2, 1, "", "data"], [7, 2, 1, "", "end"], [7, 2, 1, "", "pi"], [7, 2, 1, "", "start"]], "lxml.etree.XInclude": [[7, 3, 1, "", "error_log"]], "lxml.etree.XIncludeError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.XMLParser": [[7, 2, 1, "", "close"], [7, 2, 1, "", "copy"], [7, 3, 1, "", "error_log"], [7, 2, 1, "", "feed"], [7, 3, 1, "", "feed_error_log"], [7, 2, 1, "", "makeelement"], [7, 3, 1, "", "resolvers"], [7, 2, 1, "", "setElementClassLookup"], [7, 2, 1, "", "set_element_class_lookup"], [7, 3, 1, "", "target"], [7, 3, 1, "", "version"]], "lxml.etree.XMLPullParser": [[7, 2, 1, "", "close"], [7, 2, 1, "", "copy"], [7, 3, 1, "", "error_log"], [7, 2, 1, "", "feed"], [7, 3, 1, "", "feed_error_log"], [7, 2, 1, "", "makeelement"], [7, 2, 1, "", "read_events"], [7, 3, 1, "", "resolvers"], [7, 2, 1, "", "setElementClassLookup"], [7, 2, 1, "", "set_element_class_lookup"], [7, 3, 1, "", "target"], [7, 3, 1, "", "version"]], "lxml.etree.XMLSchema": [[7, 2, 1, "", "_append_log_message"], [7, 2, 1, "", "_clear_error_log"], [7, 2, 1, "", "assertValid"], [7, 2, 1, "", "assert_"], [7, 3, 1, "", "error_log"], [7, 2, 1, "", "validate"]], "lxml.etree.XMLSchemaError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.XMLSchemaParseError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.XMLSchemaValidateError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.XMLSyntaxAssertionError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 3, 1, "", "end_lineno"], [7, 3, 1, "", "end_offset"], [7, 3, 1, "", "filename"], [7, 3, 1, "", "lineno"], [7, 3, 1, "", "msg"], [7, 3, 1, "", "offset"], [7, 6, 1, "", "position"], [7, 3, 1, "", "print_file_and_line"], [7, 3, 1, "", "text"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.XMLSyntaxError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 3, 1, "", "end_lineno"], [7, 3, 1, "", "end_offset"], [7, 3, 1, "", "filename"], [7, 3, 1, "", "lineno"], [7, 3, 1, "", "msg"], [7, 3, 1, "", "offset"], [7, 6, 1, "", "position"], [7, 3, 1, "", "print_file_and_line"], [7, 3, 1, "", "text"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.XPath": [[7, 3, 1, "", "error_log"], [7, 2, 1, "", "evaluate"], [7, 3, 1, "", "path"]], "lxml.etree.XPathDocumentEvaluator": [[7, 3, 1, "", "error_log"], [7, 2, 1, "", "evaluate"], [7, 2, 1, "", "register_namespace"], [7, 2, 1, "", "register_namespaces"]], "lxml.etree.XPathElementEvaluator": [[7, 3, 1, "", "error_log"], [7, 2, 1, "", "evaluate"], [7, 2, 1, "", "register_namespace"], [7, 2, 1, "", "register_namespaces"]], "lxml.etree.XPathError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.XPathEvalError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.XPathFunctionError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.XPathResultError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.XPathSyntaxError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 3, 1, "", "end_lineno"], [7, 3, 1, "", "end_offset"], [7, 3, 1, "", "filename"], [7, 3, 1, "", "lineno"], [7, 3, 1, "", "msg"], [7, 3, 1, "", "offset"], [7, 3, 1, "", "print_file_and_line"], [7, 3, 1, "", "text"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.XSLT": [[7, 2, 1, "", "apply"], [7, 3, 1, "", "error_log"], [7, 2, 1, "", "set_global_max_depth"], [7, 2, 1, "", "strparam"], [7, 2, 1, "", "tostring"]], "lxml.etree.XSLTAccessControl": [[7, 3, 1, "", "DENY_ALL"], [7, 3, 1, "", "DENY_WRITE"], [7, 3, 1, "", "options"]], "lxml.etree.XSLTApplyError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.XSLTError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.XSLTExtension": [[7, 2, 1, "", "apply_templates"], [7, 2, 1, "", "execute"], [7, 2, 1, "", "process_children"]], "lxml.etree.XSLTExtensionError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.XSLTParseError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree.XSLTSaveError": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree._Attrib": [[7, 2, 1, "", "clear"], [7, 2, 1, "", "get"], [7, 2, 1, "", "has_key"], [7, 2, 1, "", "items"], [7, 2, 1, "", "iteritems"], [7, 2, 1, "", "iterkeys"], [7, 2, 1, "", "itervalues"], [7, 2, 1, "", "keys"], [7, 2, 1, "", "pop"], [7, 2, 1, "", "update"], [7, 2, 1, "", "values"]], "lxml.etree._BaseErrorLog": [[7, 2, 1, "", "copy"], [7, 3, 1, "", "last_error"], [7, 2, 1, "", "receive"]], "lxml.etree._Comment": [[7, 2, 1, "", "_init"], [7, 2, 1, "", "addnext"], [7, 2, 1, "", "addprevious"], [7, 2, 1, "", "append"], [7, 3, 1, "", "attrib"], [7, 3, 1, "", "base"], [7, 2, 1, "", "clear"], [7, 2, 1, "", "cssselect"], [7, 2, 1, "", "extend"], [7, 2, 1, "", "find"], [7, 2, 1, "", "findall"], [7, 2, 1, "", "findtext"], [7, 2, 1, "", "get"], [7, 2, 1, "", "getchildren"], [7, 2, 1, "", "getiterator"], [7, 2, 1, "", "getnext"], [7, 2, 1, "", "getparent"], [7, 2, 1, "", "getprevious"], [7, 2, 1, "", "getroottree"], [7, 2, 1, "", "index"], [7, 2, 1, "", "insert"], [7, 2, 1, "", "items"], [7, 2, 1, "", "iter"], [7, 2, 1, "", "iterancestors"], [7, 2, 1, "", "iterchildren"], [7, 2, 1, "", "iterdescendants"], [7, 2, 1, "", "iterfind"], [7, 2, 1, "", "itersiblings"], [7, 2, 1, "", "itertext"], [7, 2, 1, "", "keys"], [7, 2, 1, "", "makeelement"], [7, 3, 1, "", "nsmap"], [7, 3, 1, "", "prefix"], [7, 2, 1, "", "remove"], [7, 2, 1, "", "replace"], [7, 2, 1, "", "set"], [7, 3, 1, "", "sourceline"], [7, 3, 1, "", "tag"], [7, 3, 1, "", "tail"], [7, 3, 1, "", "text"], [7, 2, 1, "", "values"], [7, 2, 1, "", "xpath"]], "lxml.etree._DomainErrorLog": [[7, 2, 1, "", "clear"], [7, 2, 1, "", "copy"], [7, 2, 1, "", "filter_domains"], [7, 2, 1, "", "filter_from_errors"], [7, 2, 1, "", "filter_from_fatals"], [7, 2, 1, "", "filter_from_level"], [7, 2, 1, "", "filter_from_warnings"], [7, 2, 1, "", "filter_levels"], [7, 2, 1, "", "filter_types"], [7, 3, 1, "", "last_error"], [7, 2, 1, "", "receive"]], "lxml.etree._Element": [[7, 2, 1, "", "_init"], [7, 2, 1, "", "addnext"], [7, 2, 1, "", "addprevious"], [7, 2, 1, "", "append"], [7, 3, 1, "", "attrib"], [7, 3, 1, "", "base"], [7, 2, 1, "", "clear"], [7, 2, 1, "", "cssselect"], [7, 2, 1, "", "extend"], [7, 2, 1, "", "find"], [7, 2, 1, "", "findall"], [7, 2, 1, "", "findtext"], [7, 2, 1, "", "get"], [7, 2, 1, "", "getchildren"], [7, 2, 1, "", "getiterator"], [7, 2, 1, "", "getnext"], [7, 2, 1, "", "getparent"], [7, 2, 1, "", "getprevious"], [7, 2, 1, "", "getroottree"], [7, 2, 1, "", "index"], [7, 2, 1, "", "insert"], [7, 2, 1, "", "items"], [7, 2, 1, "", "iter"], [7, 2, 1, "", "iterancestors"], [7, 2, 1, "", "iterchildren"], [7, 2, 1, "", "iterdescendants"], [7, 2, 1, "", "iterfind"], [7, 2, 1, "", "itersiblings"], [7, 2, 1, "", "itertext"], [7, 2, 1, "", "keys"], [7, 2, 1, "", "makeelement"], [7, 3, 1, "", "nsmap"], [7, 3, 1, "", "prefix"], [7, 2, 1, "", "remove"], [7, 2, 1, "", "replace"], [7, 2, 1, "", "set"], [7, 3, 1, "", "sourceline"], [7, 3, 1, "", "tag"], [7, 3, 1, "", "tail"], [7, 3, 1, "", "text"], [7, 2, 1, "", "values"], [7, 2, 1, "", "xpath"]], "lxml.etree._ElementStringResult": [[7, 2, 1, "", "capitalize"], [7, 2, 1, "", "center"], [7, 2, 1, "", "count"], [7, 2, 1, "", "decode"], [7, 2, 1, "", "endswith"], [7, 2, 1, "", "expandtabs"], [7, 2, 1, "", "find"], [7, 2, 1, "", "fromhex"], [7, 2, 1, "", "getparent"], [7, 2, 1, "", "hex"], [7, 2, 1, "", "index"], [7, 2, 1, "", "isalnum"], [7, 2, 1, "", "isalpha"], [7, 2, 1, "", "isascii"], [7, 2, 1, "", "isdigit"], [7, 2, 1, "", "islower"], [7, 2, 1, "", "isspace"], [7, 2, 1, "", "istitle"], [7, 2, 1, "", "isupper"], [7, 2, 1, "", "join"], [7, 2, 1, "", "ljust"], [7, 2, 1, "", "lower"], [7, 2, 1, "", "lstrip"], [7, 2, 1, "", "maketrans"], [7, 2, 1, "", "partition"], [7, 2, 1, "", "removeprefix"], [7, 2, 1, "", "removesuffix"], [7, 2, 1, "", "replace"], [7, 2, 1, "", "rfind"], [7, 2, 1, "", "rindex"], [7, 2, 1, "", "rjust"], [7, 2, 1, "", "rpartition"], [7, 2, 1, "", "rsplit"], [7, 2, 1, "", "rstrip"], [7, 2, 1, "", "split"], [7, 2, 1, "", "splitlines"], [7, 2, 1, "", "startswith"], [7, 2, 1, "", "strip"], [7, 2, 1, "", "swapcase"], [7, 2, 1, "", "title"], [7, 2, 1, "", "translate"], [7, 2, 1, "", "upper"], [7, 2, 1, "", "zfill"]], "lxml.etree._ElementTree": [[7, 2, 1, "", "_setroot"], [7, 3, 1, "", "docinfo"], [7, 2, 1, "", "find"], [7, 2, 1, "", "findall"], [7, 2, 1, "", "findtext"], [7, 2, 1, "", "getelementpath"], [7, 2, 1, "", "getiterator"], [7, 2, 1, "", "getpath"], [7, 2, 1, "", "getroot"], [7, 2, 1, "", "iter"], [7, 2, 1, "", "iterfind"], [7, 2, 1, "", "parse"], [7, 3, 1, "", "parser"], [7, 2, 1, "", "relaxng"], [7, 2, 1, "", "write"], [7, 2, 1, "", "write_c14n"], [7, 2, 1, "", "xinclude"], [7, 2, 1, "", "xmlschema"], [7, 2, 1, "", "xpath"], [7, 2, 1, "", "xslt"]], "lxml.etree._ElementUnicodeResult": [[7, 3, 1, "", "attrname"], [7, 2, 1, "", "capitalize"], [7, 2, 1, "", "casefold"], [7, 2, 1, "", "center"], [7, 2, 1, "", "count"], [7, 2, 1, "", "encode"], [7, 2, 1, "", "endswith"], [7, 2, 1, "", "expandtabs"], [7, 2, 1, "", "find"], [7, 2, 1, "", "format"], [7, 2, 1, "", "format_map"], [7, 2, 1, "", "getparent"], [7, 2, 1, "", "index"], [7, 3, 1, "", "is_attribute"], [7, 3, 1, "", "is_tail"], [7, 3, 1, "", "is_text"], [7, 2, 1, "", "isalnum"], [7, 2, 1, "", "isalpha"], [7, 2, 1, "", "isascii"], [7, 2, 1, "", "isdecimal"], [7, 2, 1, "", "isdigit"], [7, 2, 1, "", "isidentifier"], [7, 2, 1, "", "islower"], [7, 2, 1, "", "isnumeric"], [7, 2, 1, "", "isprintable"], [7, 2, 1, "", "isspace"], [7, 2, 1, "", "istitle"], [7, 2, 1, "", "isupper"], [7, 2, 1, "", "join"], [7, 2, 1, "", "ljust"], [7, 2, 1, "", "lower"], [7, 2, 1, "", "lstrip"], [7, 2, 1, "", "maketrans"], [7, 2, 1, "", "partition"], [7, 2, 1, "", "removeprefix"], [7, 2, 1, "", "removesuffix"], [7, 2, 1, "", "replace"], [7, 2, 1, "", "rfind"], [7, 2, 1, "", "rindex"], [7, 2, 1, "", "rjust"], [7, 2, 1, "", "rpartition"], [7, 2, 1, "", "rsplit"], [7, 2, 1, "", "rstrip"], [7, 2, 1, "", "split"], [7, 2, 1, "", "splitlines"], [7, 2, 1, "", "startswith"], [7, 2, 1, "", "strip"], [7, 2, 1, "", "swapcase"], [7, 2, 1, "", "title"], [7, 2, 1, "", "translate"], [7, 2, 1, "", "upper"], [7, 2, 1, "", "zfill"]], "lxml.etree._Entity": [[7, 2, 1, "", "_init"], [7, 2, 1, "", "addnext"], [7, 2, 1, "", "addprevious"], [7, 2, 1, "", "append"], [7, 3, 1, "", "attrib"], [7, 3, 1, "", "base"], [7, 2, 1, "", "clear"], [7, 2, 1, "", "cssselect"], [7, 2, 1, "", "extend"], [7, 2, 1, "", "find"], [7, 2, 1, "", "findall"], [7, 2, 1, "", "findtext"], [7, 2, 1, "", "get"], [7, 2, 1, "", "getchildren"], [7, 2, 1, "", "getiterator"], [7, 2, 1, "", "getnext"], [7, 2, 1, "", "getparent"], [7, 2, 1, "", "getprevious"], [7, 2, 1, "", "getroottree"], [7, 2, 1, "", "index"], [7, 2, 1, "", "insert"], [7, 2, 1, "", "items"], [7, 2, 1, "", "iter"], [7, 2, 1, "", "iterancestors"], [7, 2, 1, "", "iterchildren"], [7, 2, 1, "", "iterdescendants"], [7, 2, 1, "", "iterfind"], [7, 2, 1, "", "itersiblings"], [7, 2, 1, "", "itertext"], [7, 2, 1, "", "keys"], [7, 2, 1, "", "makeelement"], [7, 3, 1, "", "name"], [7, 3, 1, "", "nsmap"], [7, 3, 1, "", "prefix"], [7, 2, 1, "", "remove"], [7, 2, 1, "", "replace"], [7, 2, 1, "", "set"], [7, 3, 1, "", "sourceline"], [7, 3, 1, "", "tag"], [7, 3, 1, "", "tail"], [7, 3, 1, "", "text"], [7, 2, 1, "", "values"], [7, 2, 1, "", "xpath"]], "lxml.etree._ErrorLog": [[7, 2, 1, "", "clear"], [7, 2, 1, "", "copy"], [7, 2, 1, "", "filter_domains"], [7, 2, 1, "", "filter_from_errors"], [7, 2, 1, "", "filter_from_fatals"], [7, 2, 1, "", "filter_from_level"], [7, 2, 1, "", "filter_from_warnings"], [7, 2, 1, "", "filter_levels"], [7, 2, 1, "", "filter_types"], [7, 3, 1, "", "last_error"], [7, 2, 1, "", "receive"]], "lxml.etree._FeedParser": [[7, 2, 1, "", "close"], [7, 2, 1, "", "copy"], [7, 3, 1, "", "error_log"], [7, 2, 1, "", "feed"], [7, 3, 1, "", "feed_error_log"], [7, 2, 1, "", "makeelement"], [7, 3, 1, "", "resolvers"], [7, 2, 1, "", "setElementClassLookup"], [7, 2, 1, "", "set_element_class_lookup"], [7, 3, 1, "", "target"], [7, 3, 1, "", "version"]], "lxml.etree._IDDict": [[7, 2, 1, "", "copy"], [7, 2, 1, "", "get"], [7, 2, 1, "", "has_key"], [7, 2, 1, "", "items"], [7, 2, 1, "", "iteritems"], [7, 2, 1, "", "iterkeys"], [7, 2, 1, "", "itervalues"], [7, 2, 1, "", "keys"], [7, 2, 1, "", "values"]], "lxml.etree._ListErrorLog": [[7, 2, 1, "", "copy"], [7, 2, 1, "", "filter_domains"], [7, 2, 1, "", "filter_from_errors"], [7, 2, 1, "", "filter_from_fatals"], [7, 2, 1, "", "filter_from_level"], [7, 2, 1, "", "filter_from_warnings"], [7, 2, 1, "", "filter_levels"], [7, 2, 1, "", "filter_types"], [7, 3, 1, "", "last_error"], [7, 2, 1, "", "receive"]], "lxml.etree._LogEntry": [[7, 3, 1, "", "column"], [7, 3, 1, "", "domain"], [7, 3, 1, "", "domain_name"], [7, 3, 1, "", "filename"], [7, 3, 1, "", "level"], [7, 3, 1, "", "level_name"], [7, 3, 1, "", "line"], [7, 3, 1, "", "message"], [7, 3, 1, "", "path"], [7, 3, 1, "", "type"], [7, 3, 1, "", "type_name"]], "lxml.etree._ProcessingInstruction": [[7, 2, 1, "", "_init"], [7, 2, 1, "", "addnext"], [7, 2, 1, "", "addprevious"], [7, 2, 1, "", "append"], [7, 3, 1, "", "attrib"], [7, 3, 1, "", "base"], [7, 2, 1, "", "clear"], [7, 2, 1, "", "cssselect"], [7, 2, 1, "", "extend"], [7, 2, 1, "", "find"], [7, 2, 1, "", "findall"], [7, 2, 1, "", "findtext"], [7, 2, 1, "", "get"], [7, 2, 1, "", "getchildren"], [7, 2, 1, "", "getiterator"], [7, 2, 1, "", "getnext"], [7, 2, 1, "", "getparent"], [7, 2, 1, "", "getprevious"], [7, 2, 1, "", "getroottree"], [7, 2, 1, "", "index"], [7, 2, 1, "", "insert"], [7, 2, 1, "", "items"], [7, 2, 1, "", "iter"], [7, 2, 1, "", "iterancestors"], [7, 2, 1, "", "iterchildren"], [7, 2, 1, "", "iterdescendants"], [7, 2, 1, "", "iterfind"], [7, 2, 1, "", "itersiblings"], [7, 2, 1, "", "itertext"], [7, 2, 1, "", "keys"], [7, 2, 1, "", "makeelement"], [7, 3, 1, "", "nsmap"], [7, 3, 1, "", "prefix"], [7, 2, 1, "", "remove"], [7, 2, 1, "", "replace"], [7, 2, 1, "", "set"], [7, 3, 1, "", "sourceline"], [7, 3, 1, "", "tag"], [7, 3, 1, "", "tail"], [7, 3, 1, "", "target"], [7, 3, 1, "", "text"], [7, 2, 1, "", "values"], [7, 2, 1, "", "xpath"]], "lxml.etree._RotatingErrorLog": [[7, 2, 1, "", "clear"], [7, 2, 1, "", "copy"], [7, 2, 1, "", "filter_domains"], [7, 2, 1, "", "filter_from_errors"], [7, 2, 1, "", "filter_from_fatals"], [7, 2, 1, "", "filter_from_level"], [7, 2, 1, "", "filter_from_warnings"], [7, 2, 1, "", "filter_levels"], [7, 2, 1, "", "filter_types"], [7, 3, 1, "", "last_error"], [7, 2, 1, "", "receive"]], "lxml.etree._TargetParserResult": [[7, 2, 1, "", "add_note"], [7, 3, 1, "", "args"], [7, 2, 1, "", "with_traceback"]], "lxml.etree._Validator": [[7, 2, 1, "", "_append_log_message"], [7, 2, 1, "", "_clear_error_log"], [7, 2, 1, "", "assertValid"], [7, 2, 1, "", "assert_"], [7, 3, 1, "", "error_log"], [7, 2, 1, "", "validate"]], "lxml.etree._XPathEvaluatorBase": [[7, 3, 1, "", "error_log"], [7, 2, 1, "", "evaluate"]], "lxml.etree._XSLTProcessingInstruction": [[7, 2, 1, "", "_init"], [7, 2, 1, "", "addnext"], [7, 2, 1, "", "addprevious"], [7, 2, 1, "", "append"], [7, 3, 1, "", "attrib"], [7, 3, 1, "", "base"], [7, 2, 1, "", "clear"], [7, 2, 1, "", "cssselect"], [7, 2, 1, "", "extend"], [7, 2, 1, "", "find"], [7, 2, 1, "", "findall"], [7, 2, 1, "", "findtext"], [7, 2, 1, "", "get"], [7, 2, 1, "", "getchildren"], [7, 2, 1, "", "getiterator"], [7, 2, 1, "", "getnext"], [7, 2, 1, "", "getparent"], [7, 2, 1, "", "getprevious"], [7, 2, 1, "", "getroottree"], [7, 2, 1, "", "index"], [7, 2, 1, "", "insert"], [7, 2, 1, "", "items"], [7, 2, 1, "", "iter"], [7, 2, 1, "", "iterancestors"], [7, 2, 1, "", "iterchildren"], [7, 2, 1, "", "iterdescendants"], [7, 2, 1, "", "iterfind"], [7, 2, 1, "", "itersiblings"], [7, 2, 1, "", "itertext"], [7, 2, 1, "", "keys"], [7, 2, 1, "", "makeelement"], [7, 3, 1, "", "nsmap"], [7, 2, 1, "", "parseXSL"], [7, 3, 1, "", "prefix"], [7, 2, 1, "", "remove"], [7, 2, 1, "", "replace"], [7, 2, 1, "", "set"], [7, 3, 1, "", "sourceline"], [7, 3, 1, "", "tag"], [7, 3, 1, "", "tail"], [7, 3, 1, "", "target"], [7, 3, 1, "", "text"], [7, 2, 1, "", "values"], [7, 2, 1, "", "xpath"]], "lxml.etree._XSLTResultTree": [[7, 2, 1, "", "_setroot"], [7, 3, 1, "", "docinfo"], [7, 2, 1, "", "find"], [7, 2, 1, "", "findall"], [7, 2, 1, "", "findtext"], [7, 2, 1, "", "getelementpath"], [7, 2, 1, "", "getiterator"], [7, 2, 1, "", "getpath"], [7, 2, 1, "", "getroot"], [7, 2, 1, "", "iter"], [7, 2, 1, "", "iterfind"], [7, 2, 1, "", "parse"], [7, 3, 1, "", "parser"], [7, 2, 1, "", "relaxng"], [7, 2, 1, "", "write"], [7, 2, 1, "", "write_c14n"], [7, 2, 1, "", "write_output"], [7, 2, 1, "", "xinclude"], [7, 2, 1, "", "xmlschema"], [7, 2, 1, "", "xpath"], [7, 2, 1, "", "xslt"], [7, 3, 1, "", "xslt_profile"]], "lxml.etree.iterparse": [[7, 3, 1, "", "error_log"], [7, 2, 1, "", "makeelement"], [7, 3, 1, "", "resolvers"], [7, 3, 1, "", "root"], [7, 2, 1, "", "set_element_class_lookup"], [7, 3, 1, "", "version"]], "lxml.etree.iterwalk": [[7, 2, 1, "", "skip_subtree"]], "lxml.html": [[8, 5, 1, "", "CheckboxGroup"], [8, 5, 1, "", "CheckboxValues"], [8, 5, 1, "", "Classes"], [8, 4, 1, "", "Element"], [8, 5, 1, "", "FieldsDict"], [8, 5, 1, "", "FormElement"], [8, 5, 1, "", "HTMLParser"], [8, 5, 1, "", "HtmlComment"], [8, 5, 1, "", "HtmlElement"], [8, 5, 1, "", "HtmlElementClassLookup"], [8, 5, 1, "", "HtmlEntity"], [8, 5, 1, "", "HtmlMixin"], [8, 5, 1, "", "HtmlProcessingInstruction"], [8, 5, 1, "", "InputElement"], [8, 5, 1, "", "InputGetter"], [8, 5, 1, "", "InputMixin"], [8, 5, 1, "", "LabelElement"], [8, 5, 1, "", "MultipleSelectOptions"], [8, 5, 1, "", "RadioGroup"], [8, 5, 1, "", "SelectElement"], [8, 5, 1, "", "TextareaElement"], [8, 5, 1, "", "XHTMLParser"], [8, 5, 1, "", "_MethodFunc"], [8, 4, 1, "", "__bytes_replace_meta_content_type"], [8, 4, 1, "", "__fix_docstring"], [8, 4, 1, "", "__str_replace_meta_content_type"], [8, 4, 1, "", "_contains_block_level_tag"], [10, 0, 0, "-", "_diffcommand"], [8, 4, 1, "", "_element_name"], [8, 4, 1, "", "_iter_css_imports"], [8, 4, 1, "", "_iter_css_urls"], [8, 4, 1, "", "_looks_like_full_html_bytes"], [8, 4, 1, "", "_looks_like_full_html_unicode"], [8, 4, 1, "", "_nons"], [8, 4, 1, "", "_parse_meta_refresh_url"], [11, 0, 0, "-", "_setmixin"], [8, 4, 1, "", "_transform_result"], [8, 4, 1, "", "_unquote_match"], [12, 0, 0, "-", "builder"], [13, 0, 0, "-", "clean"], [14, 0, 0, "-", "defs"], [15, 0, 0, "-", "diff"], [8, 4, 1, "", "document_fromstring"], [16, 0, 0, "-", "formfill"], [8, 4, 1, "", "fragment_fromstring"], [8, 4, 1, "", "fragments_fromstring"], [8, 4, 1, "", "fromstring"], [8, 4, 1, "", "html_to_xhtml"], [8, 4, 1, "", "open_http_urllib"], [8, 4, 1, "", "open_in_browser"], [8, 4, 1, "", "parse"], [8, 4, 1, "", "submit_form"], [8, 4, 1, "", "tostring"], [8, 4, 1, "", "xhtml_to_html"]], "lxml.html.CheckboxGroup": [[8, 2, 1, "", "append"], [8, 2, 1, "", "clear"], [8, 2, 1, "", "copy"], [8, 2, 1, "", "count"], [8, 2, 1, "", "extend"], [8, 2, 1, "", "index"], [8, 2, 1, "", "insert"], [8, 2, 1, "", "pop"], [8, 2, 1, "", "remove"], [8, 2, 1, "", "reverse"], [8, 2, 1, "", "sort"], [8, 6, 1, "", "value"], [8, 6, 1, "", "value_options"]], "lxml.html.CheckboxValues": [[8, 3, 1, "", "_abc_impl"], [8, 2, 1, "", "_from_iterable"], [8, 2, 1, "", "_hash"], [8, 2, 1, "", "add"], [8, 2, 1, "", "clear"], [8, 2, 1, "", "copy"], [8, 2, 1, "", "difference"], [8, 2, 1, "", "difference_update"], [8, 2, 1, "", "discard"], [8, 2, 1, "", "intersection"], [8, 2, 1, "", "intersection_update"], [8, 2, 1, "", "isdisjoint"], [8, 2, 1, "", "issubset"], [8, 2, 1, "", "issuperset"], [8, 2, 1, "", "pop"], [8, 2, 1, "", "remove"], [8, 2, 1, "", "symmetric_difference"], [8, 2, 1, "", "symmetric_difference_update"], [8, 2, 1, "", "union"], [8, 2, 1, "", "update"]], "lxml.html.Classes": [[8, 3, 1, "", "_abc_impl"], [8, 2, 1, "", "_from_iterable"], [8, 2, 1, "", "_hash"], [8, 2, 1, "", "add"], [8, 2, 1, "", "clear"], [8, 2, 1, "", "discard"], [8, 2, 1, "", "isdisjoint"], [8, 2, 1, "", "pop"], [8, 2, 1, "", "remove"], [8, 2, 1, "", "toggle"], [8, 2, 1, "", "update"]], "lxml.html.FieldsDict": [[8, 3, 1, "", "_abc_impl"], [8, 2, 1, "", "clear"], [8, 2, 1, "", "get"], [8, 2, 1, "", "items"], [8, 2, 1, "", "keys"], [8, 2, 1, "", "pop"], [8, 2, 1, "", "popitem"], [8, 2, 1, "", "setdefault"], [8, 2, 1, "", "update"], [8, 2, 1, "", "values"]], "lxml.html.FormElement": [[8, 2, 1, "", "_init"], [8, 2, 1, "", "_name"], [8, 6, 1, "", "action"], [8, 2, 1, "", "addnext"], [8, 2, 1, "", "addprevious"], [8, 2, 1, "", "append"], [8, 3, 1, "", "attrib"], [8, 3, 1, "", "base"], [8, 6, 1, "", "base_url"], [8, 6, 1, "", "body"], [8, 6, 1, "", "classes"], [8, 2, 1, "", "clear"], [8, 2, 1, "", "cssselect"], [8, 2, 1, "", "drop_tag"], [8, 2, 1, "", "drop_tree"], [8, 2, 1, "", "extend"], [8, 6, 1, "", "fields"], [8, 2, 1, "", "find"], [8, 2, 1, "", "find_class"], [8, 2, 1, "", "find_rel_links"], [8, 2, 1, "", "findall"], [8, 2, 1, "", "findtext"], [8, 2, 1, "", "form_values"], [8, 6, 1, "", "forms"], [8, 2, 1, "", "get"], [8, 2, 1, "", "get_element_by_id"], [8, 2, 1, "", "getchildren"], [8, 2, 1, "", "getiterator"], [8, 2, 1, "", "getnext"], [8, 2, 1, "", "getparent"], [8, 2, 1, "", "getprevious"], [8, 2, 1, "", "getroottree"], [8, 6, 1, "", "head"], [8, 2, 1, "", "index"], [8, 6, 1, "", "inputs"], [8, 2, 1, "", "insert"], [8, 2, 1, "", "items"], [8, 2, 1, "", "iter"], [8, 2, 1, "", "iterancestors"], [8, 2, 1, "", "iterchildren"], [8, 2, 1, "", "iterdescendants"], [8, 2, 1, "", "iterfind"], [8, 2, 1, "", "iterlinks"], [8, 2, 1, "", "itersiblings"], [8, 2, 1, "", "itertext"], [8, 2, 1, "", "keys"], [8, 6, 1, "", "label"], [8, 2, 1, "", "make_links_absolute"], [8, 2, 1, "", "makeelement"], [8, 6, 1, "", "method"], [8, 3, 1, "", "nsmap"], [8, 3, 1, "", "prefix"], [8, 2, 1, "", "remove"], [8, 2, 1, "", "replace"], [8, 2, 1, "", "resolve_base_href"], [8, 2, 1, "", "rewrite_links"], [8, 2, 1, "", "set"], [8, 3, 1, "", "sourceline"], [8, 3, 1, "", "tag"], [8, 3, 1, "", "tail"], [8, 3, 1, "", "text"], [8, 2, 1, "", "text_content"], [8, 2, 1, "", "values"], [8, 2, 1, "", "xpath"]], "lxml.html.HTMLParser": [[8, 2, 1, "", "close"], [8, 2, 1, "", "copy"], [8, 3, 1, "", "error_log"], [8, 2, 1, "", "feed"], [8, 3, 1, "", "feed_error_log"], [8, 2, 1, "", "makeelement"], [8, 3, 1, "", "resolvers"], [8, 2, 1, "", "setElementClassLookup"], [8, 2, 1, "", "set_element_class_lookup"], [8, 3, 1, "", "target"], [8, 3, 1, "", "version"]], "lxml.html.HtmlComment": [[8, 2, 1, "", "_init"], [8, 2, 1, "", "addnext"], [8, 2, 1, "", "addprevious"], [8, 2, 1, "", "append"], [8, 3, 1, "", "attrib"], [8, 3, 1, "", "base"], [8, 6, 1, "", "base_url"], [8, 6, 1, "", "body"], [8, 6, 1, "", "classes"], [8, 2, 1, "", "clear"], [8, 2, 1, "", "cssselect"], [8, 2, 1, "", "drop_tag"], [8, 2, 1, "", "drop_tree"], [8, 2, 1, "", "extend"], [8, 2, 1, "", "find"], [8, 2, 1, "", "find_class"], [8, 2, 1, "", "find_rel_links"], [8, 2, 1, "", "findall"], [8, 2, 1, "", "findtext"], [8, 6, 1, "", "forms"], [8, 2, 1, "", "get"], [8, 2, 1, "", "get_element_by_id"], [8, 2, 1, "", "getchildren"], [8, 2, 1, "", "getiterator"], [8, 2, 1, "", "getnext"], [8, 2, 1, "", "getparent"], [8, 2, 1, "", "getprevious"], [8, 2, 1, "", "getroottree"], [8, 6, 1, "", "head"], [8, 2, 1, "", "index"], [8, 2, 1, "", "insert"], [8, 2, 1, "", "items"], [8, 2, 1, "", "iter"], [8, 2, 1, "", "iterancestors"], [8, 2, 1, "", "iterchildren"], [8, 2, 1, "", "iterdescendants"], [8, 2, 1, "", "iterfind"], [8, 2, 1, "", "iterlinks"], [8, 2, 1, "", "itersiblings"], [8, 2, 1, "", "itertext"], [8, 2, 1, "", "keys"], [8, 6, 1, "", "label"], [8, 2, 1, "", "make_links_absolute"], [8, 2, 1, "", "makeelement"], [8, 3, 1, "", "nsmap"], [8, 3, 1, "", "prefix"], [8, 2, 1, "", "remove"], [8, 2, 1, "", "replace"], [8, 2, 1, "", "resolve_base_href"], [8, 2, 1, "", "rewrite_links"], [8, 2, 1, "", "set"], [8, 3, 1, "", "sourceline"], [8, 3, 1, "", "tag"], [8, 3, 1, "", "tail"], [8, 3, 1, "", "text"], [8, 2, 1, "", "text_content"], [8, 2, 1, "", "values"], [8, 2, 1, "", "xpath"]], "lxml.html.HtmlElement": [[8, 2, 1, "", "_init"], [8, 2, 1, "", "addnext"], [8, 2, 1, "", "addprevious"], [8, 2, 1, "", "append"], [8, 3, 1, "", "attrib"], [8, 3, 1, "", "base"], [8, 6, 1, "", "base_url"], [8, 6, 1, "", "body"], [8, 6, 1, "", "classes"], [8, 2, 1, "", "clear"], [8, 2, 1, "", "cssselect"], [8, 2, 1, "", "drop_tag"], [8, 2, 1, "", "drop_tree"], [8, 2, 1, "", "extend"], [8, 2, 1, "", "find"], [8, 2, 1, "", "find_class"], [8, 2, 1, "", "find_rel_links"], [8, 2, 1, "", "findall"], [8, 2, 1, "", "findtext"], [8, 6, 1, "", "forms"], [8, 2, 1, "", "get"], [8, 2, 1, "", "get_element_by_id"], [8, 2, 1, "", "getchildren"], [8, 2, 1, "", "getiterator"], [8, 2, 1, "", "getnext"], [8, 2, 1, "", "getparent"], [8, 2, 1, "", "getprevious"], [8, 2, 1, "", "getroottree"], [8, 6, 1, "", "head"], [8, 2, 1, "", "index"], [8, 2, 1, "", "insert"], [8, 2, 1, "", "items"], [8, 2, 1, "", "iter"], [8, 2, 1, "", "iterancestors"], [8, 2, 1, "", "iterchildren"], [8, 2, 1, "", "iterdescendants"], [8, 2, 1, "", "iterfind"], [8, 2, 1, "", "iterlinks"], [8, 2, 1, "", "itersiblings"], [8, 2, 1, "", "itertext"], [8, 2, 1, "", "keys"], [8, 6, 1, "", "label"], [8, 2, 1, "", "make_links_absolute"], [8, 2, 1, "", "makeelement"], [8, 3, 1, "", "nsmap"], [8, 3, 1, "", "prefix"], [8, 2, 1, "", "remove"], [8, 2, 1, "", "replace"], [8, 2, 1, "", "resolve_base_href"], [8, 2, 1, "", "rewrite_links"], [8, 2, 1, "", "set"], [8, 3, 1, "", "sourceline"], [8, 3, 1, "", "tag"], [8, 3, 1, "", "tail"], [8, 3, 1, "", "text"], [8, 2, 1, "", "text_content"], [8, 2, 1, "", "values"], [8, 2, 1, "", "xpath"]], "lxml.html.HtmlElementClassLookup": [[8, 3, 1, "", "_default_element_classes"], [8, 3, 1, "", "fallback"], [8, 2, 1, "", "lookup"], [8, 2, 1, "", "set_fallback"]], "lxml.html.HtmlEntity": [[8, 2, 1, "", "_init"], [8, 2, 1, "", "addnext"], [8, 2, 1, "", "addprevious"], [8, 2, 1, "", "append"], [8, 3, 1, "", "attrib"], [8, 3, 1, "", "base"], [8, 6, 1, "", "base_url"], [8, 6, 1, "", "body"], [8, 6, 1, "", "classes"], [8, 2, 1, "", "clear"], [8, 2, 1, "", "cssselect"], [8, 2, 1, "", "drop_tag"], [8, 2, 1, "", "drop_tree"], [8, 2, 1, "", "extend"], [8, 2, 1, "", "find"], [8, 2, 1, "", "find_class"], [8, 2, 1, "", "find_rel_links"], [8, 2, 1, "", "findall"], [8, 2, 1, "", "findtext"], [8, 6, 1, "", "forms"], [8, 2, 1, "", "get"], [8, 2, 1, "", "get_element_by_id"], [8, 2, 1, "", "getchildren"], [8, 2, 1, "", "getiterator"], [8, 2, 1, "", "getnext"], [8, 2, 1, "", "getparent"], [8, 2, 1, "", "getprevious"], [8, 2, 1, "", "getroottree"], [8, 6, 1, "", "head"], [8, 2, 1, "", "index"], [8, 2, 1, "", "insert"], [8, 2, 1, "", "items"], [8, 2, 1, "", "iter"], [8, 2, 1, "", "iterancestors"], [8, 2, 1, "", "iterchildren"], [8, 2, 1, "", "iterdescendants"], [8, 2, 1, "", "iterfind"], [8, 2, 1, "", "iterlinks"], [8, 2, 1, "", "itersiblings"], [8, 2, 1, "", "itertext"], [8, 2, 1, "", "keys"], [8, 6, 1, "", "label"], [8, 2, 1, "", "make_links_absolute"], [8, 2, 1, "", "makeelement"], [8, 3, 1, "", "name"], [8, 3, 1, "", "nsmap"], [8, 3, 1, "", "prefix"], [8, 2, 1, "", "remove"], [8, 2, 1, "", "replace"], [8, 2, 1, "", "resolve_base_href"], [8, 2, 1, "", "rewrite_links"], [8, 2, 1, "", "set"], [8, 3, 1, "", "sourceline"], [8, 3, 1, "", "tag"], [8, 3, 1, "", "tail"], [8, 3, 1, "", "text"], [8, 2, 1, "", "text_content"], [8, 2, 1, "", "values"], [8, 2, 1, "", "xpath"]], "lxml.html.HtmlMixin": [[8, 6, 1, "", "base_url"], [8, 6, 1, "", "body"], [8, 6, 1, "", "classes"], [8, 2, 1, "", "cssselect"], [8, 2, 1, "", "drop_tag"], [8, 2, 1, "", "drop_tree"], [8, 2, 1, "", "find_class"], [8, 2, 1, "", "find_rel_links"], [8, 6, 1, "", "forms"], [8, 2, 1, "", "get_element_by_id"], [8, 6, 1, "", "head"], [8, 2, 1, "", "iterlinks"], [8, 6, 1, "", "label"], [8, 2, 1, "", "make_links_absolute"], [8, 2, 1, "", "resolve_base_href"], [8, 2, 1, "", "rewrite_links"], [8, 2, 1, "", "set"], [8, 2, 1, "", "text_content"]], "lxml.html.HtmlProcessingInstruction": [[8, 2, 1, "", "_init"], [8, 2, 1, "", "addnext"], [8, 2, 1, "", "addprevious"], [8, 2, 1, "", "append"], [8, 3, 1, "", "attrib"], [8, 3, 1, "", "base"], [8, 6, 1, "", "base_url"], [8, 6, 1, "", "body"], [8, 6, 1, "", "classes"], [8, 2, 1, "", "clear"], [8, 2, 1, "", "cssselect"], [8, 2, 1, "", "drop_tag"], [8, 2, 1, "", "drop_tree"], [8, 2, 1, "", "extend"], [8, 2, 1, "", "find"], [8, 2, 1, "", "find_class"], [8, 2, 1, "", "find_rel_links"], [8, 2, 1, "", "findall"], [8, 2, 1, "", "findtext"], [8, 6, 1, "", "forms"], [8, 2, 1, "", "get"], [8, 2, 1, "", "get_element_by_id"], [8, 2, 1, "", "getchildren"], [8, 2, 1, "", "getiterator"], [8, 2, 1, "", "getnext"], [8, 2, 1, "", "getparent"], [8, 2, 1, "", "getprevious"], [8, 2, 1, "", "getroottree"], [8, 6, 1, "", "head"], [8, 2, 1, "", "index"], [8, 2, 1, "", "insert"], [8, 2, 1, "", "items"], [8, 2, 1, "", "iter"], [8, 2, 1, "", "iterancestors"], [8, 2, 1, "", "iterchildren"], [8, 2, 1, "", "iterdescendants"], [8, 2, 1, "", "iterfind"], [8, 2, 1, "", "iterlinks"], [8, 2, 1, "", "itersiblings"], [8, 2, 1, "", "itertext"], [8, 2, 1, "", "keys"], [8, 6, 1, "", "label"], [8, 2, 1, "", "make_links_absolute"], [8, 2, 1, "", "makeelement"], [8, 3, 1, "", "nsmap"], [8, 3, 1, "", "prefix"], [8, 2, 1, "", "remove"], [8, 2, 1, "", "replace"], [8, 2, 1, "", "resolve_base_href"], [8, 2, 1, "", "rewrite_links"], [8, 2, 1, "", "set"], [8, 3, 1, "", "sourceline"], [8, 3, 1, "", "tag"], [8, 3, 1, "", "tail"], [8, 3, 1, "", "target"], [8, 3, 1, "", "text"], [8, 2, 1, "", "text_content"], [8, 2, 1, "", "values"], [8, 2, 1, "", "xpath"]], "lxml.html.InputElement": [[8, 2, 1, "", "_init"], [8, 2, 1, "", "addnext"], [8, 2, 1, "", "addprevious"], [8, 2, 1, "", "append"], [8, 3, 1, "", "attrib"], [8, 3, 1, "", "base"], [8, 6, 1, "", "base_url"], [8, 6, 1, "", "body"], [8, 6, 1, "", "checkable"], [8, 6, 1, "", "checked"], [8, 6, 1, "", "classes"], [8, 2, 1, "", "clear"], [8, 2, 1, "", "cssselect"], [8, 2, 1, "", "drop_tag"], [8, 2, 1, "", "drop_tree"], [8, 2, 1, "", "extend"], [8, 2, 1, "", "find"], [8, 2, 1, "", "find_class"], [8, 2, 1, "", "find_rel_links"], [8, 2, 1, "", "findall"], [8, 2, 1, "", "findtext"], [8, 6, 1, "", "forms"], [8, 2, 1, "", "get"], [8, 2, 1, "", "get_element_by_id"], [8, 2, 1, "", "getchildren"], [8, 2, 1, "", "getiterator"], [8, 2, 1, "", "getnext"], [8, 2, 1, "", "getparent"], [8, 2, 1, "", "getprevious"], [8, 2, 1, "", "getroottree"], [8, 6, 1, "", "head"], [8, 2, 1, "", "index"], [8, 2, 1, "", "insert"], [8, 2, 1, "", "items"], [8, 2, 1, "", "iter"], [8, 2, 1, "", "iterancestors"], [8, 2, 1, "", "iterchildren"], [8, 2, 1, "", "iterdescendants"], [8, 2, 1, "", "iterfind"], [8, 2, 1, "", "iterlinks"], [8, 2, 1, "", "itersiblings"], [8, 2, 1, "", "itertext"], [8, 2, 1, "", "keys"], [8, 6, 1, "", "label"], [8, 2, 1, "", "make_links_absolute"], [8, 2, 1, "", "makeelement"], [8, 6, 1, "", "name"], [8, 3, 1, "", "nsmap"], [8, 3, 1, "", "prefix"], [8, 2, 1, "", "remove"], [8, 2, 1, "", "replace"], [8, 2, 1, "", "resolve_base_href"], [8, 2, 1, "", "rewrite_links"], [8, 2, 1, "", "set"], [8, 3, 1, "", "sourceline"], [8, 3, 1, "", "tag"], [8, 3, 1, "", "tail"], [8, 3, 1, "", "text"], [8, 2, 1, "", "text_content"], [8, 6, 1, "", "type"], [8, 6, 1, "", "value"], [8, 2, 1, "", "values"], [8, 2, 1, "", "xpath"]], "lxml.html.InputGetter": [[8, 2, 1, "", "items"], [8, 2, 1, "", "keys"]], "lxml.html.InputMixin": [[8, 6, 1, "", "name"]], "lxml.html.LabelElement": [[8, 2, 1, "", "_init"], [8, 2, 1, "", "addnext"], [8, 2, 1, "", "addprevious"], [8, 2, 1, "", "append"], [8, 3, 1, "", "attrib"], [8, 3, 1, "", "base"], [8, 6, 1, "", "base_url"], [8, 6, 1, "", "body"], [8, 6, 1, "", "classes"], [8, 2, 1, "", "clear"], [8, 2, 1, "", "cssselect"], [8, 2, 1, "", "drop_tag"], [8, 2, 1, "", "drop_tree"], [8, 2, 1, "", "extend"], [8, 2, 1, "", "find"], [8, 2, 1, "", "find_class"], [8, 2, 1, "", "find_rel_links"], [8, 2, 1, "", "findall"], [8, 2, 1, "", "findtext"], [8, 6, 1, "", "for_element"], [8, 6, 1, "", "forms"], [8, 2, 1, "", "get"], [8, 2, 1, "", "get_element_by_id"], [8, 2, 1, "", "getchildren"], [8, 2, 1, "", "getiterator"], [8, 2, 1, "", "getnext"], [8, 2, 1, "", "getparent"], [8, 2, 1, "", "getprevious"], [8, 2, 1, "", "getroottree"], [8, 6, 1, "", "head"], [8, 2, 1, "", "index"], [8, 2, 1, "", "insert"], [8, 2, 1, "", "items"], [8, 2, 1, "", "iter"], [8, 2, 1, "", "iterancestors"], [8, 2, 1, "", "iterchildren"], [8, 2, 1, "", "iterdescendants"], [8, 2, 1, "", "iterfind"], [8, 2, 1, "", "iterlinks"], [8, 2, 1, "", "itersiblings"], [8, 2, 1, "", "itertext"], [8, 2, 1, "", "keys"], [8, 6, 1, "", "label"], [8, 2, 1, "", "make_links_absolute"], [8, 2, 1, "", "makeelement"], [8, 3, 1, "", "nsmap"], [8, 3, 1, "", "prefix"], [8, 2, 1, "", "remove"], [8, 2, 1, "", "replace"], [8, 2, 1, "", "resolve_base_href"], [8, 2, 1, "", "rewrite_links"], [8, 2, 1, "", "set"], [8, 3, 1, "", "sourceline"], [8, 3, 1, "", "tag"], [8, 3, 1, "", "tail"], [8, 3, 1, "", "text"], [8, 2, 1, "", "text_content"], [8, 2, 1, "", "values"], [8, 2, 1, "", "xpath"]], "lxml.html.MultipleSelectOptions": [[8, 3, 1, "", "_abc_impl"], [8, 2, 1, "", "_from_iterable"], [8, 2, 1, "", "_hash"], [8, 2, 1, "", "add"], [8, 2, 1, "", "clear"], [8, 2, 1, "", "copy"], [8, 2, 1, "", "difference"], [8, 2, 1, "", "difference_update"], [8, 2, 1, "", "discard"], [8, 2, 1, "", "intersection"], [8, 2, 1, "", "intersection_update"], [8, 2, 1, "", "isdisjoint"], [8, 2, 1, "", "issubset"], [8, 2, 1, "", "issuperset"], [8, 6, 1, "", "options"], [8, 2, 1, "", "pop"], [8, 2, 1, "", "remove"], [8, 2, 1, "", "symmetric_difference"], [8, 2, 1, "", "symmetric_difference_update"], [8, 2, 1, "", "union"], [8, 2, 1, "", "update"]], "lxml.html.RadioGroup": [[8, 2, 1, "", "append"], [8, 2, 1, "", "clear"], [8, 2, 1, "", "copy"], [8, 2, 1, "", "count"], [8, 2, 1, "", "extend"], [8, 2, 1, "", "index"], [8, 2, 1, "", "insert"], [8, 2, 1, "", "pop"], [8, 2, 1, "", "remove"], [8, 2, 1, "", "reverse"], [8, 2, 1, "", "sort"], [8, 6, 1, "", "value"], [8, 6, 1, "", "value_options"]], "lxml.html.SelectElement": [[8, 2, 1, "", "_init"], [8, 2, 1, "", "addnext"], [8, 2, 1, "", "addprevious"], [8, 2, 1, "", "append"], [8, 3, 1, "", "attrib"], [8, 3, 1, "", "base"], [8, 6, 1, "", "base_url"], [8, 6, 1, "", "body"], [8, 6, 1, "", "classes"], [8, 2, 1, "", "clear"], [8, 2, 1, "", "cssselect"], [8, 2, 1, "", "drop_tag"], [8, 2, 1, "", "drop_tree"], [8, 2, 1, "", "extend"], [8, 2, 1, "", "find"], [8, 2, 1, "", "find_class"], [8, 2, 1, "", "find_rel_links"], [8, 2, 1, "", "findall"], [8, 2, 1, "", "findtext"], [8, 6, 1, "", "forms"], [8, 2, 1, "", "get"], [8, 2, 1, "", "get_element_by_id"], [8, 2, 1, "", "getchildren"], [8, 2, 1, "", "getiterator"], [8, 2, 1, "", "getnext"], [8, 2, 1, "", "getparent"], [8, 2, 1, "", "getprevious"], [8, 2, 1, "", "getroottree"], [8, 6, 1, "", "head"], [8, 2, 1, "", "index"], [8, 2, 1, "", "insert"], [8, 2, 1, "", "items"], [8, 2, 1, "", "iter"], [8, 2, 1, "", "iterancestors"], [8, 2, 1, "", "iterchildren"], [8, 2, 1, "", "iterdescendants"], [8, 2, 1, "", "iterfind"], [8, 2, 1, "", "iterlinks"], [8, 2, 1, "", "itersiblings"], [8, 2, 1, "", "itertext"], [8, 2, 1, "", "keys"], [8, 6, 1, "", "label"], [8, 2, 1, "", "make_links_absolute"], [8, 2, 1, "", "makeelement"], [8, 6, 1, "", "multiple"], [8, 6, 1, "", "name"], [8, 3, 1, "", "nsmap"], [8, 3, 1, "", "prefix"], [8, 2, 1, "", "remove"], [8, 2, 1, "", "replace"], [8, 2, 1, "", "resolve_base_href"], [8, 2, 1, "", "rewrite_links"], [8, 2, 1, "", "set"], [8, 3, 1, "", "sourceline"], [8, 3, 1, "", "tag"], [8, 3, 1, "", "tail"], [8, 3, 1, "", "text"], [8, 2, 1, "", "text_content"], [8, 6, 1, "", "value"], [8, 6, 1, "", "value_options"], [8, 2, 1, "", "values"], [8, 2, 1, "", "xpath"]], "lxml.html.TextareaElement": [[8, 2, 1, "", "_init"], [8, 2, 1, "", "addnext"], [8, 2, 1, "", "addprevious"], [8, 2, 1, "", "append"], [8, 3, 1, "", "attrib"], [8, 3, 1, "", "base"], [8, 6, 1, "", "base_url"], [8, 6, 1, "", "body"], [8, 6, 1, "", "classes"], [8, 2, 1, "", "clear"], [8, 2, 1, "", "cssselect"], [8, 2, 1, "", "drop_tag"], [8, 2, 1, "", "drop_tree"], [8, 2, 1, "", "extend"], [8, 2, 1, "", "find"], [8, 2, 1, "", "find_class"], [8, 2, 1, "", "find_rel_links"], [8, 2, 1, "", "findall"], [8, 2, 1, "", "findtext"], [8, 6, 1, "", "forms"], [8, 2, 1, "", "get"], [8, 2, 1, "", "get_element_by_id"], [8, 2, 1, "", "getchildren"], [8, 2, 1, "", "getiterator"], [8, 2, 1, "", "getnext"], [8, 2, 1, "", "getparent"], [8, 2, 1, "", "getprevious"], [8, 2, 1, "", "getroottree"], [8, 6, 1, "", "head"], [8, 2, 1, "", "index"], [8, 2, 1, "", "insert"], [8, 2, 1, "", "items"], [8, 2, 1, "", "iter"], [8, 2, 1, "", "iterancestors"], [8, 2, 1, "", "iterchildren"], [8, 2, 1, "", "iterdescendants"], [8, 2, 1, "", "iterfind"], [8, 2, 1, "", "iterlinks"], [8, 2, 1, "", "itersiblings"], [8, 2, 1, "", "itertext"], [8, 2, 1, "", "keys"], [8, 6, 1, "", "label"], [8, 2, 1, "", "make_links_absolute"], [8, 2, 1, "", "makeelement"], [8, 6, 1, "", "name"], [8, 3, 1, "", "nsmap"], [8, 3, 1, "", "prefix"], [8, 2, 1, "", "remove"], [8, 2, 1, "", "replace"], [8, 2, 1, "", "resolve_base_href"], [8, 2, 1, "", "rewrite_links"], [8, 2, 1, "", "set"], [8, 3, 1, "", "sourceline"], [8, 3, 1, "", "tag"], [8, 3, 1, "", "tail"], [8, 3, 1, "", "text"], [8, 2, 1, "", "text_content"], [8, 6, 1, "", "value"], [8, 2, 1, "", "values"], [8, 2, 1, "", "xpath"]], "lxml.html.XHTMLParser": [[8, 2, 1, "", "close"], [8, 2, 1, "", "copy"], [8, 3, 1, "", "error_log"], [8, 2, 1, "", "feed"], [8, 3, 1, "", "feed_error_log"], [8, 2, 1, "", "makeelement"], [8, 3, 1, "", "resolvers"], [8, 2, 1, "", "setElementClassLookup"], [8, 2, 1, "", "set_element_class_lookup"], [8, 3, 1, "", "target"], [8, 3, 1, "", "version"]], "lxml.html._diffcommand": [[10, 4, 1, "", "annotate"], [10, 4, 1, "", "main"], [10, 4, 1, "", "read_file"], [10, 4, 1, "", "split_body"]], "lxml.html._setmixin": [[11, 5, 1, "", "SetMixin"]], "lxml.html._setmixin.SetMixin": [[11, 3, 1, "", "_abc_impl"], [11, 2, 1, "", "_from_iterable"], [11, 2, 1, "", "_hash"], [11, 2, 1, "", "add"], [11, 2, 1, "", "clear"], [11, 2, 1, "", "copy"], [11, 2, 1, "", "difference"], [11, 2, 1, "", "difference_update"], [11, 2, 1, "", "discard"], [11, 2, 1, "", "intersection"], [11, 2, 1, "", "intersection_update"], [11, 2, 1, "", "isdisjoint"], [11, 2, 1, "", "issubset"], [11, 2, 1, "", "issuperset"], [11, 2, 1, "", "pop"], [11, 2, 1, "", "remove"], [11, 2, 1, "", "symmetric_difference"], [11, 2, 1, "", "symmetric_difference_update"], [11, 2, 1, "", "union"], [11, 2, 1, "", "update"]], "lxml.html.builder": [[12, 7, 1, "", "A"], [12, 7, 1, "", "ABBR"], [12, 7, 1, "", "ACRONYM"], [12, 7, 1, "", "ADDRESS"], [12, 7, 1, "", "APPLET"], [12, 7, 1, "", "AREA"], [12, 7, 1, "", "B"], [12, 7, 1, "", "BASE"], [12, 7, 1, "", "BASEFONT"], [12, 7, 1, "", "BDO"], [12, 7, 1, "", "BIG"], [12, 7, 1, "", "BLOCKQUOTE"], [12, 7, 1, "", "BODY"], [12, 7, 1, "", "BR"], [12, 7, 1, "", "BUTTON"], [12, 7, 1, "", "CAPTION"], [12, 7, 1, "", "CENTER"], [12, 7, 1, "", "CITE"], [12, 4, 1, "", "CLASS"], [12, 7, 1, "", "CODE"], [12, 7, 1, "", "COL"], [12, 7, 1, "", "COLGROUP"], [12, 7, 1, "", "DD"], [12, 7, 1, "", "DEL"], [12, 7, 1, "", "DFN"], [12, 7, 1, "", "DIR"], [12, 7, 1, "", "DIV"], [12, 7, 1, "", "DL"], [12, 7, 1, "", "DT"], [12, 7, 1, "", "EM"], [12, 7, 1, "", "FIELDSET"], [12, 7, 1, "", "FONT"], [12, 4, 1, "", "FOR"], [12, 7, 1, "", "FORM"], [12, 7, 1, "", "FRAME"], [12, 7, 1, "", "FRAMESET"], [12, 7, 1, "", "H1"], [12, 7, 1, "", "H2"], [12, 7, 1, "", "H3"], [12, 7, 1, "", "H4"], [12, 7, 1, "", "H5"], [12, 7, 1, "", "H6"], [12, 7, 1, "", "HEAD"], [12, 7, 1, "", "HR"], [12, 7, 1, "", "HTML"], [12, 7, 1, "", "I"], [12, 7, 1, "", "IFRAME"], [12, 7, 1, "", "IMG"], [12, 7, 1, "", "INPUT"], [12, 7, 1, "", "INS"], [12, 7, 1, "", "ISINDEX"], [12, 7, 1, "", "KBD"], [12, 7, 1, "", "LABEL"], [12, 7, 1, "", "LEGEND"], [12, 7, 1, "", "LI"], [12, 7, 1, "", "LINK"], [12, 7, 1, "", "MAP"], [12, 7, 1, "", "MENU"], [12, 7, 1, "", "META"], [12, 7, 1, "", "NOFRAMES"], [12, 7, 1, "", "NOSCRIPT"], [12, 7, 1, "", "OBJECT"], [12, 7, 1, "", "OL"], [12, 7, 1, "", "OPTGROUP"], [12, 7, 1, "", "OPTION"], [12, 7, 1, "", "P"], [12, 7, 1, "", "PARAM"], [12, 7, 1, "", "PRE"], [12, 7, 1, "", "Q"], [12, 7, 1, "", "S"], [12, 7, 1, "", "SAMP"], [12, 7, 1, "", "SCRIPT"], [12, 7, 1, "", "SELECT"], [12, 7, 1, "", "SMALL"], [12, 7, 1, "", "SPAN"], [12, 7, 1, "", "STRIKE"], [12, 7, 1, "", "STRONG"], [12, 7, 1, "", "STYLE"], [12, 7, 1, "", "SUB"], [12, 7, 1, "", "SUP"], [12, 7, 1, "", "TABLE"], [12, 7, 1, "", "TBODY"], [12, 7, 1, "", "TD"], [12, 7, 1, "", "TEXTAREA"], [12, 7, 1, "", "TFOOT"], [12, 7, 1, "", "TH"], [12, 7, 1, "", "THEAD"], [12, 7, 1, "", "TITLE"], [12, 7, 1, "", "TR"], [12, 7, 1, "", "TT"], [12, 7, 1, "", "U"], [12, 7, 1, "", "UL"], [12, 7, 1, "", "VAR"]], "lxml.html.clean": [[13, 5, 1, "", "Cleaner"], [13, 4, 1, "", "_break_text"], [13, 4, 1, "", "_find_image_dataurls"], [13, 4, 1, "", "_has_javascript_scheme"], [13, 4, 1, "", "_insert_break"], [13, 4, 1, "", "_is_unsafe_image_type"], [13, 4, 1, "", "_link_text"], [13, 4, 1, "", "_looks_like_tag_content"], [13, 4, 1, "", "_possibly_malicious_schemes"], [13, 4, 1, "", "_replace_css_import"], [13, 4, 1, "", "_replace_css_javascript"], [13, 4, 1, "", "_substitute_whitespace"], [13, 4, 1, "", "autolink"], [13, 4, 1, "", "autolink_html"], [13, 4, 1, "", "clean_html"], [13, 4, 1, "", "word_break"], [13, 4, 1, "", "word_break_html"]], "lxml.html.clean.Cleaner": [[13, 2, 1, "", "_has_sneaky_javascript"], [13, 2, 1, "", "_kill_elements"], [13, 2, 1, "", "_remove_javascript_link"], [13, 2, 1, "", "_substitute_comments"], [13, 3, 1, "", "_tag_link_attrs"], [13, 3, 1, "", "add_nofollow"], [13, 2, 1, "", "allow_element"], [13, 2, 1, "", "allow_embedded_url"], [13, 2, 1, "", "allow_follow"], [13, 3, 1, "", "allow_tags"], [13, 3, 1, "", "annoying_tags"], [13, 2, 1, "", "clean_html"], [13, 3, 1, "", "comments"], [13, 3, 1, "", "embedded"], [13, 3, 1, "", "forms"], [13, 3, 1, "", "frames"], [13, 3, 1, "", "host_whitelist"], [13, 3, 1, "", "inline_style"], [13, 3, 1, "", "javascript"], [13, 2, 1, "", "kill_conditional_comments"], [13, 3, 1, "", "kill_tags"], [13, 3, 1, "", "links"], [13, 3, 1, "", "meta"], [13, 3, 1, "", "page_structure"], [13, 3, 1, "", "processing_instructions"], [13, 3, 1, "", "remove_tags"], [13, 3, 1, "", "remove_unknown_tags"], [13, 3, 1, "", "safe_attrs"], [13, 3, 1, "", "safe_attrs_only"], [13, 3, 1, "", "scripts"], [13, 3, 1, "", "style"], [13, 3, 1, "", "whitelist_tags"]], "lxml.html.diff": [[15, 5, 1, "", "DEL_END"], [15, 5, 1, "", "DEL_START"], [15, 5, 1, "", "InsensitiveSequenceMatcher"], [15, 1, 1, "", "NoDeletes"], [15, 4, 1, "", "_contains_block_level_tag"], [15, 4, 1, "", "_fixup_ins_del_tags"], [15, 4, 1, "", "_merge_element_contents"], [15, 4, 1, "", "_move_el_inside_block"], [15, 4, 1, "", "cleanup_delete"], [15, 4, 1, "", "cleanup_html"], [15, 4, 1, "", "compress_merge_back"], [15, 4, 1, "", "compress_tokens"], [15, 4, 1, "", "copy_annotations"], [15, 4, 1, "", "default_markup"], [15, 4, 1, "", "end_tag"], [15, 4, 1, "", "expand_tokens"], [15, 4, 1, "", "fixup_chunks"], [15, 4, 1, "", "fixup_ins_del_tags"], [15, 4, 1, "", "flatten_el"], [15, 5, 1, "", "href_token"], [15, 4, 1, "", "html_annotate"], [15, 4, 1, "", "html_annotate_merge_annotations"], [15, 4, 1, "", "htmldiff"], [15, 4, 1, "", "htmldiff_tokens"], [15, 4, 1, "", "is_end_tag"], [15, 4, 1, "", "is_start_tag"], [15, 4, 1, "", "is_word"], [15, 4, 1, "", "locate_unbalanced_end"], [15, 4, 1, "", "locate_unbalanced_start"], [15, 4, 1, "", "markup_serialize_tokens"], [15, 4, 1, "", "merge_delete"], [15, 4, 1, "", "merge_insert"], [15, 4, 1, "", "parse_html"], [15, 4, 1, "", "serialize_html_fragment"], [15, 4, 1, "", "split_delete"], [15, 4, 1, "", "split_trailing_whitespace"], [15, 4, 1, "", "split_unbalanced"], [15, 4, 1, "", "split_words"], [15, 4, 1, "", "start_tag"], [15, 5, 1, "", "tag_token"], [15, 5, 1, "", "token"], [15, 4, 1, "", "tokenize"], [15, 4, 1, "", "tokenize_annotated"]], "lxml.html.diff.InsensitiveSequenceMatcher": [[15, 2, 1, "", "find_longest_match"], [15, 2, 1, "", "get_grouped_opcodes"], [15, 2, 1, "", "get_matching_blocks"], [15, 2, 1, "", "get_opcodes"], [15, 2, 1, "", "quick_ratio"], [15, 2, 1, "", "ratio"], [15, 2, 1, "", "real_quick_ratio"], [15, 2, 1, "", "set_seq1"], [15, 2, 1, "", "set_seq2"], [15, 2, 1, "", "set_seqs"], [15, 3, 1, "", "threshold"]], "lxml.html.diff.NoDeletes": [[15, 2, 1, "", "add_note"], [15, 3, 1, "", "args"], [15, 2, 1, "", "with_traceback"]], "lxml.html.diff.href_token": [[15, 2, 1, "", "capitalize"], [15, 2, 1, "", "casefold"], [15, 2, 1, "", "center"], [15, 2, 1, "", "count"], [15, 2, 1, "", "encode"], [15, 2, 1, "", "endswith"], [15, 2, 1, "", "expandtabs"], [15, 2, 1, "", "find"], [15, 2, 1, "", "format"], [15, 2, 1, "", "format_map"], [15, 3, 1, "", "hide_when_equal"], [15, 2, 1, "", "html"], [15, 2, 1, "", "index"], [15, 2, 1, "", "isalnum"], [15, 2, 1, "", "isalpha"], [15, 2, 1, "", "isascii"], [15, 2, 1, "", "isdecimal"], [15, 2, 1, "", "isdigit"], [15, 2, 1, "", "isidentifier"], [15, 2, 1, "", "islower"], [15, 2, 1, "", "isnumeric"], [15, 2, 1, "", "isprintable"], [15, 2, 1, "", "isspace"], [15, 2, 1, "", "istitle"], [15, 2, 1, "", "isupper"], [15, 2, 1, "", "join"], [15, 2, 1, "", "ljust"], [15, 2, 1, "", "lower"], [15, 2, 1, "", "lstrip"], [15, 2, 1, "", "maketrans"], [15, 2, 1, "", "partition"], [15, 2, 1, "", "removeprefix"], [15, 2, 1, "", "removesuffix"], [15, 2, 1, "", "replace"], [15, 2, 1, "", "rfind"], [15, 2, 1, "", "rindex"], [15, 2, 1, "", "rjust"], [15, 2, 1, "", "rpartition"], [15, 2, 1, "", "rsplit"], [15, 2, 1, "", "rstrip"], [15, 2, 1, "", "split"], [15, 2, 1, "", "splitlines"], [15, 2, 1, "", "startswith"], [15, 2, 1, "", "strip"], [15, 2, 1, "", "swapcase"], [15, 2, 1, "", "title"], [15, 2, 1, "", "translate"], [15, 2, 1, "", "upper"], [15, 2, 1, "", "zfill"]], "lxml.html.diff.tag_token": [[15, 2, 1, "", "capitalize"], [15, 2, 1, "", "casefold"], [15, 2, 1, "", "center"], [15, 2, 1, "", "count"], [15, 2, 1, "", "encode"], [15, 2, 1, "", "endswith"], [15, 2, 1, "", "expandtabs"], [15, 2, 1, "", "find"], [15, 2, 1, "", "format"], [15, 2, 1, "", "format_map"], [15, 3, 1, "", "hide_when_equal"], [15, 2, 1, "", "html"], [15, 2, 1, "", "index"], [15, 2, 1, "", "isalnum"], [15, 2, 1, "", "isalpha"], [15, 2, 1, "", "isascii"], [15, 2, 1, "", "isdecimal"], [15, 2, 1, "", "isdigit"], [15, 2, 1, "", "isidentifier"], [15, 2, 1, "", "islower"], [15, 2, 1, "", "isnumeric"], [15, 2, 1, "", "isprintable"], [15, 2, 1, "", "isspace"], [15, 2, 1, "", "istitle"], [15, 2, 1, "", "isupper"], [15, 2, 1, "", "join"], [15, 2, 1, "", "ljust"], [15, 2, 1, "", "lower"], [15, 2, 1, "", "lstrip"], [15, 2, 1, "", "maketrans"], [15, 2, 1, "", "partition"], [15, 2, 1, "", "removeprefix"], [15, 2, 1, "", "removesuffix"], [15, 2, 1, "", "replace"], [15, 2, 1, "", "rfind"], [15, 2, 1, "", "rindex"], [15, 2, 1, "", "rjust"], [15, 2, 1, "", "rpartition"], [15, 2, 1, "", "rsplit"], [15, 2, 1, "", "rstrip"], [15, 2, 1, "", "split"], [15, 2, 1, "", "splitlines"], [15, 2, 1, "", "startswith"], [15, 2, 1, "", "strip"], [15, 2, 1, "", "swapcase"], [15, 2, 1, "", "title"], [15, 2, 1, "", "translate"], [15, 2, 1, "", "upper"], [15, 2, 1, "", "zfill"]], "lxml.html.diff.token": [[15, 2, 1, "", "capitalize"], [15, 2, 1, "", "casefold"], [15, 2, 1, "", "center"], [15, 2, 1, "", "count"], [15, 2, 1, "", "encode"], [15, 2, 1, "", "endswith"], [15, 2, 1, "", "expandtabs"], [15, 2, 1, "", "find"], [15, 2, 1, "", "format"], [15, 2, 1, "", "format_map"], [15, 3, 1, "", "hide_when_equal"], [15, 2, 1, "", "html"], [15, 2, 1, "", "index"], [15, 2, 1, "", "isalnum"], [15, 2, 1, "", "isalpha"], [15, 2, 1, "", "isascii"], [15, 2, 1, "", "isdecimal"], [15, 2, 1, "", "isdigit"], [15, 2, 1, "", "isidentifier"], [15, 2, 1, "", "islower"], [15, 2, 1, "", "isnumeric"], [15, 2, 1, "", "isprintable"], [15, 2, 1, "", "isspace"], [15, 2, 1, "", "istitle"], [15, 2, 1, "", "isupper"], [15, 2, 1, "", "join"], [15, 2, 1, "", "ljust"], [15, 2, 1, "", "lower"], [15, 2, 1, "", "lstrip"], [15, 2, 1, "", "maketrans"], [15, 2, 1, "", "partition"], [15, 2, 1, "", "removeprefix"], [15, 2, 1, "", "removesuffix"], [15, 2, 1, "", "replace"], [15, 2, 1, "", "rfind"], [15, 2, 1, "", "rindex"], [15, 2, 1, "", "rjust"], [15, 2, 1, "", "rpartition"], [15, 2, 1, "", "rsplit"], [15, 2, 1, "", "rstrip"], [15, 2, 1, "", "split"], [15, 2, 1, "", "splitlines"], [15, 2, 1, "", "startswith"], [15, 2, 1, "", "strip"], [15, 2, 1, "", "swapcase"], [15, 2, 1, "", "title"], [15, 2, 1, "", "translate"], [15, 2, 1, "", "upper"], [15, 2, 1, "", "zfill"]], "lxml.html.formfill": [[16, 5, 1, "", "DefaultErrorCreator"], [16, 1, 1, "", "FormNotFound"], [16, 4, 1, "", "_add_class"], [16, 4, 1, "", "_check"], [16, 4, 1, "", "_fill_form"], [16, 4, 1, "", "_fill_multiple"], [16, 4, 1, "", "_fill_single"], [16, 4, 1, "", "_find_elements_for_name"], [16, 4, 1, "", "_find_form"], [16, 4, 1, "", "_find_form_ids"], [16, 4, 1, "", "_insert_error"], [16, 4, 1, "", "_select"], [16, 4, 1, "", "_takes_multiple"], [16, 4, 1, "", "fill_form"], [16, 4, 1, "", "fill_form_html"], [16, 4, 1, "", "insert_errors"], [16, 4, 1, "", "insert_errors_html"]], "lxml.html.formfill.DefaultErrorCreator": [[16, 3, 1, "", "block_inside"], [16, 3, 1, "", "default_message"], [16, 3, 1, "", "error_block_class"], [16, 3, 1, "", "error_container_tag"], [16, 3, 1, "", "error_message_class"], [16, 3, 1, "", "insert_before"]], "lxml.html.formfill.FormNotFound": [[16, 2, 1, "", "add_note"], [16, 3, 1, "", "args"], [16, 2, 1, "", "with_traceback"]], "lxml.isoschematron": [[19, 5, 1, "", "Schematron"], [19, 4, 1, "", "_stylesheet_param_dict"], [19, 4, 1, "", "stylesheet_params"]], "lxml.isoschematron.Schematron": [[19, 3, 1, "", "ASSERTS_AND_REPORTS"], [19, 3, 1, "", "ASSERTS_ONLY"], [19, 2, 1, "", "_append_log_message"], [19, 2, 1, "", "_clear_error_log"], [19, 3, 1, "", "_compile"], [19, 3, 1, "", "_domain"], [19, 3, 1, "", "_error_type"], [19, 3, 1, "", "_expand"], [19, 2, 1, "", "_extract"], [19, 3, 1, "", "_extract_rng"], [19, 3, 1, "", "_extract_xsd"], [19, 3, 1, "", "_include"], [19, 3, 1, "", "_level"], [19, 3, 1, "", "_validation_errors"], [19, 2, 1, "", "assertValid"], [19, 2, 1, "", "assert_"], [19, 3, 1, "", "error_log"], [19, 6, 1, "", "schematron"], [19, 2, 1, "", "validate"], [19, 6, 1, "", "validation_report"], [19, 6, 1, "", "validator_xslt"]], "lxml.objectify": [[20, 5, 1, "", "BoolElement"], [20, 4, 1, "", "DataElement"], [20, 4, 1, "", "Element"], [20, 5, 1, "", "ElementMaker"], [20, 5, 1, "", "FloatElement"], [20, 5, 1, "", "IntElement"], [20, 5, 1, "", "LongElement"], [20, 5, 1, "", "NoneElement"], [20, 5, 1, "", "NumberElement"], [20, 5, 1, "", "ObjectPath"], [20, 5, 1, "", "ObjectifiedDataElement"], [20, 5, 1, "", "ObjectifiedElement"], [20, 5, 1, "", "ObjectifyElementClassLookup"], [20, 5, 1, "", "PyType"], [20, 5, 1, "", "StringElement"], [20, 4, 1, "", "XML"], [20, 4, 1, "", "__unpickleElementTree"], [20, 4, 1, "", "annotate"], [20, 4, 1, "", "deannotate"], [20, 4, 1, "", "dump"], [20, 4, 1, "", "enable_recursive_str"], [20, 4, 1, "", "fromstring"], [20, 4, 1, "", "getRegisteredTypes"], [20, 4, 1, "", "makeparser"], [20, 4, 1, "", "parse"], [20, 4, 1, "", "pyannotate"], [20, 4, 1, "", "pytypename"], [20, 4, 1, "", "set_default_parser"], [20, 4, 1, "", "set_pytype_attribute_tag"], [20, 4, 1, "", "xsiannotate"]], "lxml.objectify.BoolElement": [[20, 2, 1, "", "_init"], [20, 2, 1, "", "_setText"], [20, 2, 1, "", "_setValueParser"], [20, 2, 1, "", "addattr"], [20, 2, 1, "", "addnext"], [20, 2, 1, "", "addprevious"], [20, 2, 1, "", "append"], [20, 3, 1, "", "attrib"], [20, 3, 1, "", "base"], [20, 2, 1, "", "clear"], [20, 2, 1, "", "countchildren"], [20, 2, 1, "", "cssselect"], [20, 2, 1, "", "descendantpaths"], [20, 2, 1, "", "extend"], [20, 2, 1, "", "find"], [20, 2, 1, "", "findall"], [20, 2, 1, "", "findtext"], [20, 2, 1, "", "get"], [20, 2, 1, "", "getchildren"], [20, 2, 1, "", "getiterator"], [20, 2, 1, "", "getnext"], [20, 2, 1, "", "getparent"], [20, 2, 1, "", "getprevious"], [20, 2, 1, "", "getroottree"], [20, 2, 1, "", "index"], [20, 2, 1, "", "insert"], [20, 2, 1, "", "items"], [20, 2, 1, "", "iter"], [20, 2, 1, "", "iterancestors"], [20, 2, 1, "", "iterchildren"], [20, 2, 1, "", "iterdescendants"], [20, 2, 1, "", "iterfind"], [20, 2, 1, "", "itersiblings"], [20, 2, 1, "", "itertext"], [20, 2, 1, "", "keys"], [20, 2, 1, "", "makeelement"], [20, 3, 1, "", "nsmap"], [20, 3, 1, "", "prefix"], [20, 3, 1, "", "pyval"], [20, 2, 1, "", "remove"], [20, 2, 1, "", "replace"], [20, 2, 1, "", "set"], [20, 3, 1, "", "sourceline"], [20, 3, 1, "", "tag"], [20, 3, 1, "", "tail"], [20, 3, 1, "", "text"], [20, 2, 1, "", "values"], [20, 2, 1, "", "xpath"]], "lxml.objectify.FloatElement": [[20, 2, 1, "", "_init"], [20, 2, 1, "", "_setText"], [20, 2, 1, "", "_setValueParser"], [20, 2, 1, "", "addattr"], [20, 2, 1, "", "addnext"], [20, 2, 1, "", "addprevious"], [20, 2, 1, "", "append"], [20, 3, 1, "", "attrib"], [20, 3, 1, "", "base"], [20, 2, 1, "", "clear"], [20, 2, 1, "", "countchildren"], [20, 2, 1, "", "cssselect"], [20, 2, 1, "", "descendantpaths"], [20, 2, 1, "", "extend"], [20, 2, 1, "", "find"], [20, 2, 1, "", "findall"], [20, 2, 1, "", "findtext"], [20, 2, 1, "", "get"], [20, 2, 1, "", "getchildren"], [20, 2, 1, "", "getiterator"], [20, 2, 1, "", "getnext"], [20, 2, 1, "", "getparent"], [20, 2, 1, "", "getprevious"], [20, 2, 1, "", "getroottree"], [20, 2, 1, "", "index"], [20, 2, 1, "", "insert"], [20, 2, 1, "", "items"], [20, 2, 1, "", "iter"], [20, 2, 1, "", "iterancestors"], [20, 2, 1, "", "iterchildren"], [20, 2, 1, "", "iterdescendants"], [20, 2, 1, "", "iterfind"], [20, 2, 1, "", "itersiblings"], [20, 2, 1, "", "itertext"], [20, 2, 1, "", "keys"], [20, 2, 1, "", "makeelement"], [20, 3, 1, "", "nsmap"], [20, 3, 1, "", "prefix"], [20, 3, 1, "", "pyval"], [20, 2, 1, "", "remove"], [20, 2, 1, "", "replace"], [20, 2, 1, "", "set"], [20, 3, 1, "", "sourceline"], [20, 3, 1, "", "tag"], [20, 3, 1, "", "tail"], [20, 3, 1, "", "text"], [20, 2, 1, "", "values"], [20, 2, 1, "", "xpath"]], "lxml.objectify.IntElement": [[20, 2, 1, "", "_init"], [20, 2, 1, "", "_setText"], [20, 2, 1, "", "_setValueParser"], [20, 2, 1, "", "addattr"], [20, 2, 1, "", "addnext"], [20, 2, 1, "", "addprevious"], [20, 2, 1, "", "append"], [20, 3, 1, "", "attrib"], [20, 3, 1, "", "base"], [20, 2, 1, "", "clear"], [20, 2, 1, "", "countchildren"], [20, 2, 1, "", "cssselect"], [20, 2, 1, "", "descendantpaths"], [20, 2, 1, "", "extend"], [20, 2, 1, "", "find"], [20, 2, 1, "", "findall"], [20, 2, 1, "", "findtext"], [20, 2, 1, "", "get"], [20, 2, 1, "", "getchildren"], [20, 2, 1, "", "getiterator"], [20, 2, 1, "", "getnext"], [20, 2, 1, "", "getparent"], [20, 2, 1, "", "getprevious"], [20, 2, 1, "", "getroottree"], [20, 2, 1, "", "index"], [20, 2, 1, "", "insert"], [20, 2, 1, "", "items"], [20, 2, 1, "", "iter"], [20, 2, 1, "", "iterancestors"], [20, 2, 1, "", "iterchildren"], [20, 2, 1, "", "iterdescendants"], [20, 2, 1, "", "iterfind"], [20, 2, 1, "", "itersiblings"], [20, 2, 1, "", "itertext"], [20, 2, 1, "", "keys"], [20, 2, 1, "", "makeelement"], [20, 3, 1, "", "nsmap"], [20, 3, 1, "", "prefix"], [20, 3, 1, "", "pyval"], [20, 2, 1, "", "remove"], [20, 2, 1, "", "replace"], [20, 2, 1, "", "set"], [20, 3, 1, "", "sourceline"], [20, 3, 1, "", "tag"], [20, 3, 1, "", "tail"], [20, 3, 1, "", "text"], [20, 2, 1, "", "values"], [20, 2, 1, "", "xpath"]], "lxml.objectify.LongElement": [[20, 2, 1, "", "_init"], [20, 2, 1, "", "_setText"], [20, 2, 1, "", "_setValueParser"], [20, 2, 1, "", "addattr"], [20, 2, 1, "", "addnext"], [20, 2, 1, "", "addprevious"], [20, 2, 1, "", "append"], [20, 3, 1, "", "attrib"], [20, 3, 1, "", "base"], [20, 2, 1, "", "clear"], [20, 2, 1, "", "countchildren"], [20, 2, 1, "", "cssselect"], [20, 2, 1, "", "descendantpaths"], [20, 2, 1, "", "extend"], [20, 2, 1, "", "find"], [20, 2, 1, "", "findall"], [20, 2, 1, "", "findtext"], [20, 2, 1, "", "get"], [20, 2, 1, "", "getchildren"], [20, 2, 1, "", "getiterator"], [20, 2, 1, "", "getnext"], [20, 2, 1, "", "getparent"], [20, 2, 1, "", "getprevious"], [20, 2, 1, "", "getroottree"], [20, 2, 1, "", "index"], [20, 2, 1, "", "insert"], [20, 2, 1, "", "items"], [20, 2, 1, "", "iter"], [20, 2, 1, "", "iterancestors"], [20, 2, 1, "", "iterchildren"], [20, 2, 1, "", "iterdescendants"], [20, 2, 1, "", "iterfind"], [20, 2, 1, "", "itersiblings"], [20, 2, 1, "", "itertext"], [20, 2, 1, "", "keys"], [20, 2, 1, "", "makeelement"], [20, 3, 1, "", "nsmap"], [20, 3, 1, "", "prefix"], [20, 3, 1, "", "pyval"], [20, 2, 1, "", "remove"], [20, 2, 1, "", "replace"], [20, 2, 1, "", "set"], [20, 3, 1, "", "sourceline"], [20, 3, 1, "", "tag"], [20, 3, 1, "", "tail"], [20, 3, 1, "", "text"], [20, 2, 1, "", "values"], [20, 2, 1, "", "xpath"]], "lxml.objectify.NoneElement": [[20, 2, 1, "", "_init"], [20, 2, 1, "", "_setText"], [20, 2, 1, "", "addattr"], [20, 2, 1, "", "addnext"], [20, 2, 1, "", "addprevious"], [20, 2, 1, "", "append"], [20, 3, 1, "", "attrib"], [20, 3, 1, "", "base"], [20, 2, 1, "", "clear"], [20, 2, 1, "", "countchildren"], [20, 2, 1, "", "cssselect"], [20, 2, 1, "", "descendantpaths"], [20, 2, 1, "", "extend"], [20, 2, 1, "", "find"], [20, 2, 1, "", "findall"], [20, 2, 1, "", "findtext"], [20, 2, 1, "", "get"], [20, 2, 1, "", "getchildren"], [20, 2, 1, "", "getiterator"], [20, 2, 1, "", "getnext"], [20, 2, 1, "", "getparent"], [20, 2, 1, "", "getprevious"], [20, 2, 1, "", "getroottree"], [20, 2, 1, "", "index"], [20, 2, 1, "", "insert"], [20, 2, 1, "", "items"], [20, 2, 1, "", "iter"], [20, 2, 1, "", "iterancestors"], [20, 2, 1, "", "iterchildren"], [20, 2, 1, "", "iterdescendants"], [20, 2, 1, "", "iterfind"], [20, 2, 1, "", "itersiblings"], [20, 2, 1, "", "itertext"], [20, 2, 1, "", "keys"], [20, 2, 1, "", "makeelement"], [20, 3, 1, "", "nsmap"], [20, 3, 1, "", "prefix"], [20, 3, 1, "", "pyval"], [20, 2, 1, "", "remove"], [20, 2, 1, "", "replace"], [20, 2, 1, "", "set"], [20, 3, 1, "", "sourceline"], [20, 3, 1, "", "tag"], [20, 3, 1, "", "tail"], [20, 3, 1, "", "text"], [20, 2, 1, "", "values"], [20, 2, 1, "", "xpath"]], "lxml.objectify.NumberElement": [[20, 2, 1, "", "_init"], [20, 2, 1, "", "_setText"], [20, 2, 1, "", "_setValueParser"], [20, 2, 1, "", "addattr"], [20, 2, 1, "", "addnext"], [20, 2, 1, "", "addprevious"], [20, 2, 1, "", "append"], [20, 3, 1, "", "attrib"], [20, 3, 1, "", "base"], [20, 2, 1, "", "clear"], [20, 2, 1, "", "countchildren"], [20, 2, 1, "", "cssselect"], [20, 2, 1, "", "descendantpaths"], [20, 2, 1, "", "extend"], [20, 2, 1, "", "find"], [20, 2, 1, "", "findall"], [20, 2, 1, "", "findtext"], [20, 2, 1, "", "get"], [20, 2, 1, "", "getchildren"], [20, 2, 1, "", "getiterator"], [20, 2, 1, "", "getnext"], [20, 2, 1, "", "getparent"], [20, 2, 1, "", "getprevious"], [20, 2, 1, "", "getroottree"], [20, 2, 1, "", "index"], [20, 2, 1, "", "insert"], [20, 2, 1, "", "items"], [20, 2, 1, "", "iter"], [20, 2, 1, "", "iterancestors"], [20, 2, 1, "", "iterchildren"], [20, 2, 1, "", "iterdescendants"], [20, 2, 1, "", "iterfind"], [20, 2, 1, "", "itersiblings"], [20, 2, 1, "", "itertext"], [20, 2, 1, "", "keys"], [20, 2, 1, "", "makeelement"], [20, 3, 1, "", "nsmap"], [20, 3, 1, "", "prefix"], [20, 3, 1, "", "pyval"], [20, 2, 1, "", "remove"], [20, 2, 1, "", "replace"], [20, 2, 1, "", "set"], [20, 3, 1, "", "sourceline"], [20, 3, 1, "", "tag"], [20, 3, 1, "", "tail"], [20, 3, 1, "", "text"], [20, 2, 1, "", "values"], [20, 2, 1, "", "xpath"]], "lxml.objectify.ObjectPath": [[20, 2, 1, "", "addattr"], [20, 3, 1, "", "find"], [20, 2, 1, "", "hasattr"], [20, 2, 1, "", "setattr"]], "lxml.objectify.ObjectifiedDataElement": [[20, 2, 1, "", "_init"], [20, 2, 1, "", "_setText"], [20, 2, 1, "", "addattr"], [20, 2, 1, "", "addnext"], [20, 2, 1, "", "addprevious"], [20, 2, 1, "", "append"], [20, 3, 1, "", "attrib"], [20, 3, 1, "", "base"], [20, 2, 1, "", "clear"], [20, 2, 1, "", "countchildren"], [20, 2, 1, "", "cssselect"], [20, 2, 1, "", "descendantpaths"], [20, 2, 1, "", "extend"], [20, 2, 1, "", "find"], [20, 2, 1, "", "findall"], [20, 2, 1, "", "findtext"], [20, 2, 1, "", "get"], [20, 2, 1, "", "getchildren"], [20, 2, 1, "", "getiterator"], [20, 2, 1, "", "getnext"], [20, 2, 1, "", "getparent"], [20, 2, 1, "", "getprevious"], [20, 2, 1, "", "getroottree"], [20, 2, 1, "", "index"], [20, 2, 1, "", "insert"], [20, 2, 1, "", "items"], [20, 2, 1, "", "iter"], [20, 2, 1, "", "iterancestors"], [20, 2, 1, "", "iterchildren"], [20, 2, 1, "", "iterdescendants"], [20, 2, 1, "", "iterfind"], [20, 2, 1, "", "itersiblings"], [20, 2, 1, "", "itertext"], [20, 2, 1, "", "keys"], [20, 2, 1, "", "makeelement"], [20, 3, 1, "", "nsmap"], [20, 3, 1, "", "prefix"], [20, 3, 1, "", "pyval"], [20, 2, 1, "", "remove"], [20, 2, 1, "", "replace"], [20, 2, 1, "", "set"], [20, 3, 1, "", "sourceline"], [20, 3, 1, "", "tag"], [20, 3, 1, "", "tail"], [20, 3, 1, "", "text"], [20, 2, 1, "", "values"], [20, 2, 1, "", "xpath"]], "lxml.objectify.ObjectifiedElement": [[20, 2, 1, "", "_init"], [20, 2, 1, "", "addattr"], [20, 2, 1, "", "addnext"], [20, 2, 1, "", "addprevious"], [20, 2, 1, "", "append"], [20, 3, 1, "", "attrib"], [20, 3, 1, "", "base"], [20, 2, 1, "", "clear"], [20, 2, 1, "", "countchildren"], [20, 2, 1, "", "cssselect"], [20, 2, 1, "", "descendantpaths"], [20, 2, 1, "", "extend"], [20, 2, 1, "", "find"], [20, 2, 1, "", "findall"], [20, 2, 1, "", "findtext"], [20, 2, 1, "", "get"], [20, 2, 1, "", "getchildren"], [20, 2, 1, "", "getiterator"], [20, 2, 1, "", "getnext"], [20, 2, 1, "", "getparent"], [20, 2, 1, "", "getprevious"], [20, 2, 1, "", "getroottree"], [20, 2, 1, "", "index"], [20, 2, 1, "", "insert"], [20, 2, 1, "", "items"], [20, 2, 1, "", "iter"], [20, 2, 1, "", "iterancestors"], [20, 2, 1, "", "iterchildren"], [20, 2, 1, "", "iterdescendants"], [20, 2, 1, "", "iterfind"], [20, 2, 1, "", "itersiblings"], [20, 2, 1, "", "itertext"], [20, 2, 1, "", "keys"], [20, 2, 1, "", "makeelement"], [20, 3, 1, "", "nsmap"], [20, 3, 1, "", "prefix"], [20, 2, 1, "", "remove"], [20, 2, 1, "", "replace"], [20, 2, 1, "", "set"], [20, 3, 1, "", "sourceline"], [20, 3, 1, "", "tag"], [20, 3, 1, "", "tail"], [20, 3, 1, "", "text"], [20, 2, 1, "", "values"], [20, 2, 1, "", "xpath"]], "lxml.objectify.PyType": [[20, 3, 1, "", "name"], [20, 2, 1, "", "register"], [20, 3, 1, "", "stringify"], [20, 3, 1, "", "type_check"], [20, 2, 1, "", "unregister"], [20, 3, 1, "", "xmlSchemaTypes"]], "lxml.objectify.StringElement": [[20, 2, 1, "", "_init"], [20, 2, 1, "", "_setText"], [20, 2, 1, "", "addattr"], [20, 2, 1, "", "addnext"], [20, 2, 1, "", "addprevious"], [20, 2, 1, "", "append"], [20, 3, 1, "", "attrib"], [20, 3, 1, "", "base"], [20, 2, 1, "", "clear"], [20, 2, 1, "", "countchildren"], [20, 2, 1, "", "cssselect"], [20, 2, 1, "", "descendantpaths"], [20, 2, 1, "", "extend"], [20, 2, 1, "", "find"], [20, 2, 1, "", "findall"], [20, 2, 1, "", "findtext"], [20, 2, 1, "", "get"], [20, 2, 1, "", "getchildren"], [20, 2, 1, "", "getiterator"], [20, 2, 1, "", "getnext"], [20, 2, 1, "", "getparent"], [20, 2, 1, "", "getprevious"], [20, 2, 1, "", "getroottree"], [20, 2, 1, "", "index"], [20, 2, 1, "", "insert"], [20, 2, 1, "", "items"], [20, 2, 1, "", "iter"], [20, 2, 1, "", "iterancestors"], [20, 2, 1, "", "iterchildren"], [20, 2, 1, "", "iterdescendants"], [20, 2, 1, "", "iterfind"], [20, 2, 1, "", "itersiblings"], [20, 2, 1, "", "itertext"], [20, 2, 1, "", "keys"], [20, 2, 1, "", "makeelement"], [20, 3, 1, "", "nsmap"], [20, 3, 1, "", "prefix"], [20, 3, 1, "", "pyval"], [20, 2, 1, "", "remove"], [20, 2, 1, "", "replace"], [20, 2, 1, "", "set"], [20, 3, 1, "", "sourceline"], [20, 2, 1, "", "strlen"], [20, 3, 1, "", "tag"], [20, 3, 1, "", "tail"], [20, 3, 1, "", "text"], [20, 2, 1, "", "values"], [20, 2, 1, "", "xpath"]], "lxml.sax": [[21, 5, 1, "", "ElementTreeContentHandler"], [21, 5, 1, "", "ElementTreeProducer"], [21, 1, 1, "", "SaxError"], [21, 4, 1, "", "__pyx_unpickle_ElementTreeProducer"], [21, 4, 1, "", "saxify"]], "lxml.sax.ElementTreeContentHandler": [[21, 2, 1, "", "_buildTag"], [21, 2, 1, "", "_get_etree"], [21, 2, 1, "", "characters"], [21, 2, 1, "", "endDocument"], [21, 2, 1, "", "endElement"], [21, 2, 1, "", "endElementNS"], [21, 2, 1, "", "endPrefixMapping"], [21, 6, 1, "", "etree"], [21, 2, 1, "", "ignorableWhitespace"], [21, 2, 1, "", "processingInstruction"], [21, 2, 1, "", "setDocumentLocator"], [21, 2, 1, "", "skippedEntity"], [21, 2, 1, "", "startDocument"], [21, 2, 1, "", "startElement"], [21, 2, 1, "", "startElementNS"], [21, 2, 1, "", "startPrefixMapping"]], "lxml.sax.ElementTreeProducer": [[21, 2, 1, "", "saxify"]], "lxml.sax.SaxError": [[21, 2, 1, "", "add_note"], [21, 3, 1, "", "args"], [21, 2, 1, "", "with_traceback"]]}, "objtypes": {"0": "py:module", "1": "py:exception", "2": "py:method", "3": "py:attribute", "4": "py:function", "5": "py:class", "6": "py:property", "7": "py:data"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "exception", "Python exception"], "2": ["py", "method", "Python method"], "3": ["py", "attribute", "Python attribute"], "4": ["py", "function", "Python function"], "5": ["py", "class", "Python class"], "6": ["py", "property", "Python property"], "7": ["py", "data", "Python data"]}, "titleterms": {"lxml": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21], "api": 0, "refer": 0, "indic": 0, "tabl": 0, "packag": [1, 8, 19], "subpackag": 1, "submodul": [1, 8], "modul": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21], "content": [1, 8, 19], "elementinclud": 2, "_elementpath": 3, "builder": [4, 12], "cssselect": 5, "doctestcompar": 6, "etre": 7, "html": [8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "elementsoup": 9, "_diffcommand": 10, "_setmixin": 11, "clean": 13, "def": 14, "diff": 15, "formfil": 16, "html5parser": 17, "souppars": 18, "isoschematron": 19, "objectifi": 20, "sax": 21}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.viewcode": 1, "sphinx": 57}, "alltitles": {"lxml API Reference": [[0, "lxml-api-reference"]], "Indices and tables": [[0, "indices-and-tables"]], "lxml package": [[1, "lxml-package"]], "Subpackages": [[1, "subpackages"]], "Submodules": [[1, "submodules"], [8, "submodules"]], "Module contents": [[1, "module-lxml"], [8, "module-lxml.html"], [19, "module-lxml.isoschematron"]], "lxml.ElementInclude module": [[2, "module-lxml.ElementInclude"]], "lxml._elementpath module": [[3, "module-lxml._elementpath"]], "lxml.builder module": [[4, "module-lxml.builder"]], "lxml.cssselect module": [[5, "lxml-cssselect-module"]], "lxml.doctestcompare module": [[6, "module-lxml.doctestcompare"]], "lxml.etree module": [[7, "module-lxml.etree"]], "lxml.html package": [[8, "lxml-html-package"]], "lxml.html.ElementSoup module": [[9, "lxml-html-elementsoup-module"]], "lxml.html._diffcommand module": [[10, "module-lxml.html._diffcommand"]], "lxml.html._setmixin module": [[11, "module-lxml.html._setmixin"]], "lxml.html.builder module": [[12, "module-lxml.html.builder"]], "lxml.html.clean module": [[13, "module-lxml.html.clean"]], "lxml.html.defs module": [[14, "module-lxml.html.defs"]], "lxml.html.diff module": [[15, "module-lxml.html.diff"]], "lxml.html.formfill module": [[16, "module-lxml.html.formfill"]], "lxml.html.html5parser module": [[17, "lxml-html-html5parser-module"]], "lxml.html.soupparser module": [[18, "lxml-html-soupparser-module"]], "lxml.isoschematron package": [[19, "lxml-isoschematron-package"]], "lxml.objectify module": [[20, "module-lxml.objectify"]], "lxml.sax module": [[21, "module-lxml.sax"]]}, "indexentries": {"get_include() (in module lxml)": [[1, "lxml.get_include"]], "lxml": [[1, "module-lxml"]], "module": [[1, "module-lxml"], [2, "module-lxml.ElementInclude"], [3, "module-lxml._elementpath"], [4, "module-lxml.builder"], [6, "module-lxml.doctestcompare"], [7, "module-lxml.etree"], [8, "module-lxml.html"], [10, "module-lxml.html._diffcommand"], [11, "module-lxml.html._setmixin"], [12, "module-lxml.html.builder"], [13, "module-lxml.html.clean"], [14, "module-lxml.html.defs"], [15, "module-lxml.html.diff"], [16, "module-lxml.html.formfill"], [19, "module-lxml.isoschematron"], [20, "module-lxml.objectify"], [21, "module-lxml.sax"]], "fatalincludeerror": [[2, "lxml.ElementInclude.FatalIncludeError"]], "limitedrecursiveincludeerror": [[2, "lxml.ElementInclude.LimitedRecursiveIncludeError"]], "_include() (in module lxml.elementinclude)": [[2, "lxml.ElementInclude._include"]], "_lxml_default_loader() (in module lxml.elementinclude)": [[2, "lxml.ElementInclude._lxml_default_loader"]], "_wrap_et_loader() (in module lxml.elementinclude)": [[2, "lxml.ElementInclude._wrap_et_loader"]], "add_note() (lxml.elementinclude.fatalincludeerror method)": [[2, "lxml.ElementInclude.FatalIncludeError.add_note"]], "add_note() (lxml.elementinclude.limitedrecursiveincludeerror method)": [[2, "lxml.ElementInclude.LimitedRecursiveIncludeError.add_note"]], "args (lxml.elementinclude.fatalincludeerror attribute)": [[2, "lxml.ElementInclude.FatalIncludeError.args"]], "args (lxml.elementinclude.limitedrecursiveincludeerror attribute)": [[2, "lxml.ElementInclude.LimitedRecursiveIncludeError.args"]], "default_loader() (in module lxml.elementinclude)": [[2, "lxml.ElementInclude.default_loader"]], "end_lineno (lxml.elementinclude.fatalincludeerror attribute)": [[2, "lxml.ElementInclude.FatalIncludeError.end_lineno"]], "end_lineno (lxml.elementinclude.limitedrecursiveincludeerror attribute)": [[2, "lxml.ElementInclude.LimitedRecursiveIncludeError.end_lineno"]], "end_offset (lxml.elementinclude.fatalincludeerror attribute)": [[2, "lxml.ElementInclude.FatalIncludeError.end_offset"]], "end_offset (lxml.elementinclude.limitedrecursiveincludeerror attribute)": [[2, "lxml.ElementInclude.LimitedRecursiveIncludeError.end_offset"]], "filename (lxml.elementinclude.fatalincludeerror attribute)": [[2, "lxml.ElementInclude.FatalIncludeError.filename"]], "filename (lxml.elementinclude.limitedrecursiveincludeerror attribute)": [[2, "lxml.ElementInclude.LimitedRecursiveIncludeError.filename"]], "include() (in module lxml.elementinclude)": [[2, "lxml.ElementInclude.include"]], "lineno (lxml.elementinclude.fatalincludeerror attribute)": [[2, "lxml.ElementInclude.FatalIncludeError.lineno"]], "lineno (lxml.elementinclude.limitedrecursiveincludeerror attribute)": [[2, "lxml.ElementInclude.LimitedRecursiveIncludeError.lineno"]], "lxml.elementinclude": [[2, "module-lxml.ElementInclude"]], "msg (lxml.elementinclude.fatalincludeerror attribute)": [[2, "lxml.ElementInclude.FatalIncludeError.msg"]], "msg (lxml.elementinclude.limitedrecursiveincludeerror attribute)": [[2, "lxml.ElementInclude.LimitedRecursiveIncludeError.msg"]], "offset (lxml.elementinclude.fatalincludeerror attribute)": [[2, "lxml.ElementInclude.FatalIncludeError.offset"]], "offset (lxml.elementinclude.limitedrecursiveincludeerror attribute)": [[2, "lxml.ElementInclude.LimitedRecursiveIncludeError.offset"]], "print_file_and_line (lxml.elementinclude.fatalincludeerror attribute)": [[2, "lxml.ElementInclude.FatalIncludeError.print_file_and_line"]], "print_file_and_line (lxml.elementinclude.limitedrecursiveincludeerror attribute)": [[2, "lxml.ElementInclude.LimitedRecursiveIncludeError.print_file_and_line"]], "text (lxml.elementinclude.fatalincludeerror attribute)": [[2, "lxml.ElementInclude.FatalIncludeError.text"]], "text (lxml.elementinclude.limitedrecursiveincludeerror attribute)": [[2, "lxml.ElementInclude.LimitedRecursiveIncludeError.text"]], "with_traceback() (lxml.elementinclude.fatalincludeerror method)": [[2, "lxml.ElementInclude.FatalIncludeError.with_traceback"]], "with_traceback() (lxml.elementinclude.limitedrecursiveincludeerror method)": [[2, "lxml.ElementInclude.LimitedRecursiveIncludeError.with_traceback"]], "_build_path_iterator() (in module lxml._elementpath)": [[3, "lxml._elementpath._build_path_iterator"]], "find() (in module lxml._elementpath)": [[3, "lxml._elementpath.find"]], "findall() (in module lxml._elementpath)": [[3, "lxml._elementpath.findall"]], "findtext() (in module lxml._elementpath)": [[3, "lxml._elementpath.findtext"]], "iterfind() (in module lxml._elementpath)": [[3, "lxml._elementpath.iterfind"]], "lxml._elementpath": [[3, "module-lxml._elementpath"]], "prepare_child() (in module lxml._elementpath)": [[3, "lxml._elementpath.prepare_child"]], "prepare_descendant() (in module lxml._elementpath)": [[3, "lxml._elementpath.prepare_descendant"]], "prepare_parent() (in module lxml._elementpath)": [[3, "lxml._elementpath.prepare_parent"]], "prepare_predicate() (in module lxml._elementpath)": [[3, "lxml._elementpath.prepare_predicate"]], "prepare_self() (in module lxml._elementpath)": [[3, "lxml._elementpath.prepare_self"]], "prepare_star() (in module lxml._elementpath)": [[3, "lxml._elementpath.prepare_star"]], "xpath_tokenizer() (in module lxml._elementpath)": [[3, "lxml._elementpath.xpath_tokenizer"]], "elementmaker (class in lxml.builder)": [[4, "lxml.builder.ElementMaker"]], "__pyx_unpickle_elementmaker() (in module lxml.builder)": [[4, "lxml.builder.__pyx_unpickle_ElementMaker"]], "_makeelement (lxml.builder.elementmaker attribute)": [[4, "lxml.builder.ElementMaker._makeelement"]], "_namespace (lxml.builder.elementmaker attribute)": [[4, "lxml.builder.ElementMaker._namespace"]], "_nsmap (lxml.builder.elementmaker attribute)": [[4, "lxml.builder.ElementMaker._nsmap"]], "_typemap (lxml.builder.elementmaker attribute)": [[4, "lxml.builder.ElementMaker._typemap"]], "lxml.builder": [[4, "module-lxml.builder"]], "lhtmloutputchecker (class in lxml.doctestcompare)": [[6, "lxml.doctestcompare.LHTMLOutputChecker"]], "lxmloutputchecker (class in lxml.doctestcompare)": [[6, "lxml.doctestcompare.LXMLOutputChecker"]], "_restorechecker (class in lxml.doctestcompare)": [[6, "lxml.doctestcompare._RestoreChecker"]], "_do_a_fancy_diff() (lxml.doctestcompare.lhtmloutputchecker method)": [[6, "lxml.doctestcompare.LHTMLOutputChecker._do_a_fancy_diff"]], "_do_a_fancy_diff() (lxml.doctestcompare.lxmloutputchecker method)": [[6, "lxml.doctestcompare.LXMLOutputChecker._do_a_fancy_diff"]], "_find_doctest_frame() (in module lxml.doctestcompare)": [[6, "lxml.doctestcompare._find_doctest_frame"]], "_looks_like_markup() (lxml.doctestcompare.lhtmloutputchecker method)": [[6, "lxml.doctestcompare.LHTMLOutputChecker._looks_like_markup"]], "_looks_like_markup() (lxml.doctestcompare.lxmloutputchecker method)": [[6, "lxml.doctestcompare.LXMLOutputChecker._looks_like_markup"]], "_toascii() (lxml.doctestcompare.lhtmloutputchecker method)": [[6, "lxml.doctestcompare.LHTMLOutputChecker._toAscii"]], "_toascii() (lxml.doctestcompare.lxmloutputchecker method)": [[6, "lxml.doctestcompare.LXMLOutputChecker._toAscii"]], "call_super() (lxml.doctestcompare._restorechecker method)": [[6, "lxml.doctestcompare._RestoreChecker.call_super"]], "check_output() (lxml.doctestcompare.lhtmloutputchecker method)": [[6, "lxml.doctestcompare.LHTMLOutputChecker.check_output"]], "check_output() (lxml.doctestcompare.lxmloutputchecker method)": [[6, "lxml.doctestcompare.LXMLOutputChecker.check_output"]], "collect_diff() (lxml.doctestcompare.lhtmloutputchecker method)": [[6, "lxml.doctestcompare.LHTMLOutputChecker.collect_diff"]], "collect_diff() (lxml.doctestcompare.lxmloutputchecker method)": [[6, "lxml.doctestcompare.LXMLOutputChecker.collect_diff"]], "collect_diff_end_tag() (lxml.doctestcompare.lhtmloutputchecker method)": [[6, "lxml.doctestcompare.LHTMLOutputChecker.collect_diff_end_tag"]], "collect_diff_end_tag() (lxml.doctestcompare.lxmloutputchecker method)": [[6, "lxml.doctestcompare.LXMLOutputChecker.collect_diff_end_tag"]], "collect_diff_tag() (lxml.doctestcompare.lhtmloutputchecker method)": [[6, "lxml.doctestcompare.LHTMLOutputChecker.collect_diff_tag"]], "collect_diff_tag() (lxml.doctestcompare.lxmloutputchecker method)": [[6, "lxml.doctestcompare.LXMLOutputChecker.collect_diff_tag"]], "collect_diff_text() (lxml.doctestcompare.lhtmloutputchecker method)": [[6, "lxml.doctestcompare.LHTMLOutputChecker.collect_diff_text"]], "collect_diff_text() (lxml.doctestcompare.lxmloutputchecker method)": [[6, "lxml.doctestcompare.LXMLOutputChecker.collect_diff_text"]], "compare_docs() (lxml.doctestcompare.lhtmloutputchecker method)": [[6, "lxml.doctestcompare.LHTMLOutputChecker.compare_docs"]], "compare_docs() (lxml.doctestcompare.lxmloutputchecker method)": [[6, "lxml.doctestcompare.LXMLOutputChecker.compare_docs"]], "empty_tags (lxml.doctestcompare.lhtmloutputchecker attribute)": [[6, "lxml.doctestcompare.LHTMLOutputChecker.empty_tags"]], "empty_tags (lxml.doctestcompare.lxmloutputchecker attribute)": [[6, "lxml.doctestcompare.LXMLOutputChecker.empty_tags"]], "format_doc() (lxml.doctestcompare.lhtmloutputchecker method)": [[6, "lxml.doctestcompare.LHTMLOutputChecker.format_doc"]], "format_doc() (lxml.doctestcompare.lxmloutputchecker method)": [[6, "lxml.doctestcompare.LXMLOutputChecker.format_doc"]], "format_end_tag() (lxml.doctestcompare.lhtmloutputchecker method)": [[6, "lxml.doctestcompare.LHTMLOutputChecker.format_end_tag"]], "format_end_tag() (lxml.doctestcompare.lxmloutputchecker method)": [[6, "lxml.doctestcompare.LXMLOutputChecker.format_end_tag"]], "format_tag() (lxml.doctestcompare.lhtmloutputchecker method)": [[6, "lxml.doctestcompare.LHTMLOutputChecker.format_tag"]], "format_tag() (lxml.doctestcompare.lxmloutputchecker method)": [[6, "lxml.doctestcompare.LXMLOutputChecker.format_tag"]], "format_text() (lxml.doctestcompare.lhtmloutputchecker method)": [[6, "lxml.doctestcompare.LHTMLOutputChecker.format_text"]], "format_text() (lxml.doctestcompare.lxmloutputchecker method)": [[6, "lxml.doctestcompare.LXMLOutputChecker.format_text"]], "get_default_parser() (lxml.doctestcompare.lhtmloutputchecker method)": [[6, "lxml.doctestcompare.LHTMLOutputChecker.get_default_parser"]], "get_default_parser() (lxml.doctestcompare.lxmloutputchecker method)": [[6, "lxml.doctestcompare.LXMLOutputChecker.get_default_parser"]], "get_parser() (lxml.doctestcompare.lhtmloutputchecker method)": [[6, "lxml.doctestcompare.LHTMLOutputChecker.get_parser"]], "get_parser() (lxml.doctestcompare.lxmloutputchecker method)": [[6, "lxml.doctestcompare.LXMLOutputChecker.get_parser"]], "html_empty_tag() (lxml.doctestcompare.lhtmloutputchecker method)": [[6, "lxml.doctestcompare.LHTMLOutputChecker.html_empty_tag"]], "html_empty_tag() (lxml.doctestcompare.lxmloutputchecker method)": [[6, "lxml.doctestcompare.LXMLOutputChecker.html_empty_tag"]], "html_fromstring() (in module lxml.doctestcompare)": [[6, "lxml.doctestcompare.html_fromstring"]], "install() (in module lxml.doctestcompare)": [[6, "lxml.doctestcompare.install"]], "install_clone() (lxml.doctestcompare._restorechecker method)": [[6, "lxml.doctestcompare._RestoreChecker.install_clone"]], "install_dt_self() (lxml.doctestcompare._restorechecker method)": [[6, "lxml.doctestcompare._RestoreChecker.install_dt_self"]], "lxml.doctestcompare": [[6, "module-lxml.doctestcompare"]], "norm_whitespace() (in module lxml.doctestcompare)": [[6, "lxml.doctestcompare.norm_whitespace"]], "output_difference() (lxml.doctestcompare.lhtmloutputchecker method)": [[6, "lxml.doctestcompare.LHTMLOutputChecker.output_difference"]], "output_difference() (lxml.doctestcompare.lxmloutputchecker method)": [[6, "lxml.doctestcompare.LXMLOutputChecker.output_difference"]], "strip() (in module lxml.doctestcompare)": [[6, "lxml.doctestcompare.strip"]], "tag_compare() (lxml.doctestcompare.lhtmloutputchecker method)": [[6, "lxml.doctestcompare.LHTMLOutputChecker.tag_compare"]], "tag_compare() (lxml.doctestcompare.lxmloutputchecker method)": [[6, "lxml.doctestcompare.LXMLOutputChecker.tag_compare"]], "temp_install() (in module lxml.doctestcompare)": [[6, "lxml.doctestcompare.temp_install"]], "text_compare() (lxml.doctestcompare.lhtmloutputchecker method)": [[6, "lxml.doctestcompare.LHTMLOutputChecker.text_compare"]], "text_compare() (lxml.doctestcompare.lxmloutputchecker method)": [[6, "lxml.doctestcompare.LXMLOutputChecker.text_compare"]], "uninstall_clone() (lxml.doctestcompare._restorechecker method)": [[6, "lxml.doctestcompare._RestoreChecker.uninstall_clone"]], "uninstall_dt_self() (lxml.doctestcompare._restorechecker method)": [[6, "lxml.doctestcompare._RestoreChecker.uninstall_dt_self"]], "uninstall_module() (lxml.doctestcompare._restorechecker method)": [[6, "lxml.doctestcompare._RestoreChecker.uninstall_module"]], "ancestorsiterator (class in lxml.etree)": [[7, "lxml.etree.AncestorsIterator"]], "attributebasedelementclasslookup (class in lxml.etree)": [[7, "lxml.etree.AttributeBasedElementClassLookup"]], "buffer (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.BUFFER"]], "buf_overflow (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.BUF_OVERFLOW"]], "c14n (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.C14N"]], "c14nerror": [[7, "lxml.etree.C14NError"]], "c14nwritertarget (class in lxml.etree)": [[7, "lxml.etree.C14NWriterTarget"]], "c14n_create_ctxt (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.C14N_CREATE_CTXT"]], "c14n_create_stack (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.C14N_CREATE_STACK"]], "c14n_invalid_node (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.C14N_INVALID_NODE"]], "c14n_relative_namespace (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.C14N_RELATIVE_NAMESPACE"]], "c14n_requires_utf8 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.C14N_REQUIRES_UTF8"]], "c14n_unknow_node (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.C14N_UNKNOW_NODE"]], "catalog (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.CATALOG"]], "catalog_entry_broken (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CATALOG_ENTRY_BROKEN"]], "catalog_missing_attr (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CATALOG_MISSING_ATTR"]], "catalog_not_catalog (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CATALOG_NOT_CATALOG"]], "catalog_prefer_value (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CATALOG_PREFER_VALUE"]], "catalog_recursion (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CATALOG_RECURSION"]], "cdata (class in lxml.etree)": [[7, "lxml.etree.CDATA"]], "check (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.CHECK"]], "check_entity_type (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_ENTITY_TYPE"]], "check_found_attribute (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_FOUND_ATTRIBUTE"]], "check_found_cdata (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_FOUND_CDATA"]], "check_found_comment (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_FOUND_COMMENT"]], "check_found_doctype (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_FOUND_DOCTYPE"]], "check_found_element (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_FOUND_ELEMENT"]], "check_found_entity (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_FOUND_ENTITY"]], "check_found_entityref (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_FOUND_ENTITYREF"]], "check_found_fragment (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_FOUND_FRAGMENT"]], "check_found_notation (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_FOUND_NOTATION"]], "check_found_pi (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_FOUND_PI"]], "check_found_text (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_FOUND_TEXT"]], "check_name_not_null (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_NAME_NOT_NULL"]], "check_not_attr (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_NOT_ATTR"]], "check_not_attr_decl (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_NOT_ATTR_DECL"]], "check_not_dtd (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_NOT_DTD"]], "check_not_elem_decl (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_NOT_ELEM_DECL"]], "check_not_entity_decl (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_NOT_ENTITY_DECL"]], "check_not_ncname (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_NOT_NCNAME"]], "check_not_ns_decl (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_NOT_NS_DECL"]], "check_not_utf8 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_NOT_UTF8"]], "check_no_dict (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_NO_DICT"]], "check_no_doc (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_NO_DOC"]], "check_no_elem (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_NO_ELEM"]], "check_no_href (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_NO_HREF"]], "check_no_name (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_NO_NAME"]], "check_no_next (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_NO_NEXT"]], "check_no_parent (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_NO_PARENT"]], "check_no_prev (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_NO_PREV"]], "check_ns_ancestor (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_NS_ANCESTOR"]], "check_ns_scope (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_NS_SCOPE"]], "check_outside_dict (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_OUTSIDE_DICT"]], "check_unknown_node (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_UNKNOWN_NODE"]], "check_wrong_doc (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_WRONG_DOC"]], "check_wrong_name (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_WRONG_NAME"]], "check_wrong_next (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_WRONG_NEXT"]], "check_wrong_parent (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_WRONG_PARENT"]], "check_wrong_prev (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.CHECK_WRONG_PREV"]], "comment() (in module lxml.etree)": [[7, "lxml.etree.Comment"]], "commentbase (class in lxml.etree)": [[7, "lxml.etree.CommentBase"]], "customelementclasslookup (class in lxml.etree)": [[7, "lxml.etree.CustomElementClassLookup"]], "datatype (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.DATATYPE"]], "deny_all (lxml.etree.xsltaccesscontrol attribute)": [[7, "lxml.etree.XSLTAccessControl.DENY_ALL"]], "deny_write (lxml.etree.xsltaccesscontrol attribute)": [[7, "lxml.etree.XSLTAccessControl.DENY_WRITE"]], "dtd (class in lxml.etree)": [[7, "lxml.etree.DTD"]], "dtd (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.DTD"]], "dtderror": [[7, "lxml.etree.DTDError"]], "dtdparseerror": [[7, "lxml.etree.DTDParseError"]], "dtdvalidateerror": [[7, "lxml.etree.DTDValidateError"]], "dtd_attribute_default (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_ATTRIBUTE_DEFAULT"]], "dtd_attribute_redefined (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_ATTRIBUTE_REDEFINED"]], "dtd_attribute_value (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_ATTRIBUTE_VALUE"]], "dtd_content_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_CONTENT_ERROR"]], "dtd_content_model (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_CONTENT_MODEL"]], "dtd_content_not_determinist (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_CONTENT_NOT_DETERMINIST"]], "dtd_different_prefix (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_DIFFERENT_PREFIX"]], "dtd_dup_token (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_DUP_TOKEN"]], "dtd_elem_default_namespace (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_ELEM_DEFAULT_NAMESPACE"]], "dtd_elem_namespace (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_ELEM_NAMESPACE"]], "dtd_elem_redefined (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_ELEM_REDEFINED"]], "dtd_empty_notation (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_EMPTY_NOTATION"]], "dtd_entity_type (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_ENTITY_TYPE"]], "dtd_id_fixed (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_ID_FIXED"]], "dtd_id_redefined (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_ID_REDEFINED"]], "dtd_id_subset (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_ID_SUBSET"]], "dtd_invalid_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_INVALID_CHILD"]], "dtd_invalid_default (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_INVALID_DEFAULT"]], "dtd_load_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_LOAD_ERROR"]], "dtd_missing_attribute (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_MISSING_ATTRIBUTE"]], "dtd_mixed_corrupt (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_MIXED_CORRUPT"]], "dtd_multiple_id (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_MULTIPLE_ID"]], "dtd_notation_redefined (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_NOTATION_REDEFINED"]], "dtd_notation_value (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_NOTATION_VALUE"]], "dtd_not_empty (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_NOT_EMPTY"]], "dtd_not_pcdata (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_NOT_PCDATA"]], "dtd_not_standalone (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_NOT_STANDALONE"]], "dtd_no_doc (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_NO_DOC"]], "dtd_no_dtd (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_NO_DTD"]], "dtd_no_elem_name (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_NO_ELEM_NAME"]], "dtd_no_prefix (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_NO_PREFIX"]], "dtd_no_root (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_NO_ROOT"]], "dtd_root_name (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_ROOT_NAME"]], "dtd_standalone_defaulted (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_STANDALONE_DEFAULTED"]], "dtd_standalone_white_space (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_STANDALONE_WHITE_SPACE"]], "dtd_unknown_attribute (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_UNKNOWN_ATTRIBUTE"]], "dtd_unknown_elem (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_UNKNOWN_ELEM"]], "dtd_unknown_entity (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_UNKNOWN_ENTITY"]], "dtd_unknown_id (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_UNKNOWN_ID"]], "dtd_unknown_notation (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_UNKNOWN_NOTATION"]], "dtd_xmlid_type (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_XMLID_TYPE"]], "dtd_xmlid_value (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.DTD_XMLID_VALUE"]], "docinfo (class in lxml.etree)": [[7, "lxml.etree.DocInfo"]], "documentinvalid": [[7, "lxml.etree.DocumentInvalid"]], "error (lxml.etree.errorlevels attribute)": [[7, "lxml.etree.ErrorLevels.ERROR"]], "err_attlist_not_finished (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_ATTLIST_NOT_FINISHED"]], "err_attlist_not_started (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_ATTLIST_NOT_STARTED"]], "err_attribute_not_finished (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_ATTRIBUTE_NOT_FINISHED"]], "err_attribute_not_started (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_ATTRIBUTE_NOT_STARTED"]], "err_attribute_redefined (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_ATTRIBUTE_REDEFINED"]], "err_attribute_without_value (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_ATTRIBUTE_WITHOUT_VALUE"]], "err_cdata_not_finished (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_CDATA_NOT_FINISHED"]], "err_charref_at_eof (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_CHARREF_AT_EOF"]], "err_charref_in_dtd (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_CHARREF_IN_DTD"]], "err_charref_in_epilog (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_CHARREF_IN_EPILOG"]], "err_charref_in_prolog (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_CHARREF_IN_PROLOG"]], "err_comment_abruptly_ended (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_COMMENT_ABRUPTLY_ENDED"]], "err_comment_not_finished (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_COMMENT_NOT_FINISHED"]], "err_condsec_invalid (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_CONDSEC_INVALID"]], "err_condsec_invalid_keyword (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_CONDSEC_INVALID_KEYWORD"]], "err_condsec_not_finished (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_CONDSEC_NOT_FINISHED"]], "err_condsec_not_started (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_CONDSEC_NOT_STARTED"]], "err_doctype_not_finished (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_DOCTYPE_NOT_FINISHED"]], "err_document_empty (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_DOCUMENT_EMPTY"]], "err_document_end (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_DOCUMENT_END"]], "err_document_start (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_DOCUMENT_START"]], "err_elemcontent_not_finished (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_ELEMCONTENT_NOT_FINISHED"]], "err_elemcontent_not_started (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_ELEMCONTENT_NOT_STARTED"]], "err_encoding_name (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_ENCODING_NAME"]], "err_entityref_at_eof (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_ENTITYREF_AT_EOF"]], "err_entityref_in_dtd (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_ENTITYREF_IN_DTD"]], "err_entityref_in_epilog (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_ENTITYREF_IN_EPILOG"]], "err_entityref_in_prolog (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_ENTITYREF_IN_PROLOG"]], "err_entityref_no_name (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_ENTITYREF_NO_NAME"]], "err_entityref_semicol_missing (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_ENTITYREF_SEMICOL_MISSING"]], "err_entity_boundary (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_ENTITY_BOUNDARY"]], "err_entity_char_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_ENTITY_CHAR_ERROR"]], "err_entity_is_external (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_ENTITY_IS_EXTERNAL"]], "err_entity_is_parameter (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_ENTITY_IS_PARAMETER"]], "err_entity_loop (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_ENTITY_LOOP"]], "err_entity_not_finished (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_ENTITY_NOT_FINISHED"]], "err_entity_not_started (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_ENTITY_NOT_STARTED"]], "err_entity_pe_internal (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_ENTITY_PE_INTERNAL"]], "err_entity_processing (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_ENTITY_PROCESSING"]], "err_equal_required (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_EQUAL_REQUIRED"]], "err_extra_content (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_EXTRA_CONTENT"]], "err_ext_entity_standalone (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_EXT_ENTITY_STANDALONE"]], "err_ext_subset_not_finished (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_EXT_SUBSET_NOT_FINISHED"]], "err_gt_required (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_GT_REQUIRED"]], "err_hyphen_in_comment (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_HYPHEN_IN_COMMENT"]], "err_internal_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_INTERNAL_ERROR"]], "err_invalid_char (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_INVALID_CHAR"]], "err_invalid_charref (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_INVALID_CHARREF"]], "err_invalid_dec_charref (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_INVALID_DEC_CHARREF"]], "err_invalid_encoding (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_INVALID_ENCODING"]], "err_invalid_hex_charref (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_INVALID_HEX_CHARREF"]], "err_invalid_uri (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_INVALID_URI"]], "err_literal_not_finished (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_LITERAL_NOT_FINISHED"]], "err_literal_not_started (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_LITERAL_NOT_STARTED"]], "err_ltslash_required (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_LTSLASH_REQUIRED"]], "err_lt_in_attribute (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_LT_IN_ATTRIBUTE"]], "err_lt_required (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_LT_REQUIRED"]], "err_misplaced_cdata_end (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_MISPLACED_CDATA_END"]], "err_missing_encoding (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_MISSING_ENCODING"]], "err_mixed_not_finished (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_MIXED_NOT_FINISHED"]], "err_mixed_not_started (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_MIXED_NOT_STARTED"]], "err_name_required (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_NAME_REQUIRED"]], "err_name_too_long (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_NAME_TOO_LONG"]], "err_nmtoken_required (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_NMTOKEN_REQUIRED"]], "err_notation_not_finished (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_NOTATION_NOT_FINISHED"]], "err_notation_not_started (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_NOTATION_NOT_STARTED"]], "err_notation_processing (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_NOTATION_PROCESSING"]], "err_not_standalone (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_NOT_STANDALONE"]], "err_not_well_balanced (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_NOT_WELL_BALANCED"]], "err_no_dtd (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_NO_DTD"]], "err_no_memory (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_NO_MEMORY"]], "err_ns_decl_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_NS_DECL_ERROR"]], "err_ok (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_OK"]], "err_pcdata_required (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_PCDATA_REQUIRED"]], "err_peref_at_eof (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_PEREF_AT_EOF"]], "err_peref_in_epilog (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_PEREF_IN_EPILOG"]], "err_peref_in_int_subset (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_PEREF_IN_INT_SUBSET"]], "err_peref_in_prolog (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_PEREF_IN_PROLOG"]], "err_peref_no_name (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_PEREF_NO_NAME"]], "err_peref_semicol_missing (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_PEREF_SEMICOL_MISSING"]], "err_pi_not_finished (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_PI_NOT_FINISHED"]], "err_pi_not_started (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_PI_NOT_STARTED"]], "err_pubid_required (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_PUBID_REQUIRED"]], "err_reserved_xml_name (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_RESERVED_XML_NAME"]], "err_separator_required (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_SEPARATOR_REQUIRED"]], "err_space_required (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_SPACE_REQUIRED"]], "err_standalone_value (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_STANDALONE_VALUE"]], "err_string_not_closed (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_STRING_NOT_CLOSED"]], "err_string_not_started (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_STRING_NOT_STARTED"]], "err_tag_name_mismatch (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_TAG_NAME_MISMATCH"]], "err_tag_not_finished (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_TAG_NOT_FINISHED"]], "err_undeclared_entity (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_UNDECLARED_ENTITY"]], "err_unknown_encoding (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_UNKNOWN_ENCODING"]], "err_unknown_version (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_UNKNOWN_VERSION"]], "err_unparsed_entity (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_UNPARSED_ENTITY"]], "err_unsupported_encoding (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_UNSUPPORTED_ENCODING"]], "err_uri_fragment (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_URI_FRAGMENT"]], "err_uri_required (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_URI_REQUIRED"]], "err_user_stop (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_USER_STOP"]], "err_value_required (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_VALUE_REQUIRED"]], "err_version_mismatch (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_VERSION_MISMATCH"]], "err_version_missing (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_VERSION_MISSING"]], "err_xmldecl_not_finished (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_XMLDECL_NOT_FINISHED"]], "err_xmldecl_not_started (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.ERR_XMLDECL_NOT_STARTED"]], "etcompatxmlparser (class in lxml.etree)": [[7, "lxml.etree.ETCompatXMLParser"]], "etxpath (class in lxml.etree)": [[7, "lxml.etree.ETXPath"]], "element() (in module lxml.etree)": [[7, "lxml.etree.Element"]], "elementbase (class in lxml.etree)": [[7, "lxml.etree.ElementBase"]], "elementchilditerator (class in lxml.etree)": [[7, "lxml.etree.ElementChildIterator"]], "elementclasslookup (class in lxml.etree)": [[7, "lxml.etree.ElementClassLookup"]], "elementdefaultclasslookup (class in lxml.etree)": [[7, "lxml.etree.ElementDefaultClassLookup"]], "elementdepthfirstiterator (class in lxml.etree)": [[7, "lxml.etree.ElementDepthFirstIterator"]], "elementnamespaceclasslookup (class in lxml.etree)": [[7, "lxml.etree.ElementNamespaceClassLookup"]], "elementtextiterator (class in lxml.etree)": [[7, "lxml.etree.ElementTextIterator"]], "elementtree() (in module lxml.etree)": [[7, "lxml.etree.ElementTree"]], "entity() (in module lxml.etree)": [[7, "lxml.etree.Entity"]], "entitybase (class in lxml.etree)": [[7, "lxml.etree.EntityBase"]], "error": [[7, "lxml.etree.Error"]], "errordomains (class in lxml.etree)": [[7, "lxml.etree.ErrorDomains"]], "errorlevels (class in lxml.etree)": [[7, "lxml.etree.ErrorLevels"]], "errortypes (class in lxml.etree)": [[7, "lxml.etree.ErrorTypes"]], "extension() (in module lxml.etree)": [[7, "lxml.etree.Extension"]], "fatal (lxml.etree.errorlevels attribute)": [[7, "lxml.etree.ErrorLevels.FATAL"]], "ftp (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.FTP"]], "ftp_accnt (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.FTP_ACCNT"]], "ftp_epsv_answer (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.FTP_EPSV_ANSWER"]], "ftp_pasv_answer (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.FTP_PASV_ANSWER"]], "ftp_url_syntax (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.FTP_URL_SYNTAX"]], "fallbackelementclasslookup (class in lxml.etree)": [[7, "lxml.etree.FallbackElementClassLookup"]], "functionnamespace() (in module lxml.etree)": [[7, "lxml.etree.FunctionNamespace"]], "html (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.HTML"]], "html() (in module lxml.etree)": [[7, "lxml.etree.HTML"]], "htmlparser (class in lxml.etree)": [[7, "lxml.etree.HTMLParser"]], "htmlpullparser (class in lxml.etree)": [[7, "lxml.etree.HTMLPullParser"]], "html_strucure_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.HTML_STRUCURE_ERROR"]], "html_unknown_tag (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.HTML_UNKNOWN_TAG"]], "http (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.HTTP"]], "http_unknown_host (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.HTTP_UNKNOWN_HOST"]], "http_url_syntax (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.HTTP_URL_SYNTAX"]], "http_use_ip (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.HTTP_USE_IP"]], "i18n (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.I18N"]], "i18n_conv_failed (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.I18N_CONV_FAILED"]], "i18n_excess_handler (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.I18N_EXCESS_HANDLER"]], "i18n_no_handler (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.I18N_NO_HANDLER"]], "i18n_no_name (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.I18N_NO_NAME"]], "i18n_no_output (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.I18N_NO_OUTPUT"]], "io (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.IO"]], "io_buffer_full (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_BUFFER_FULL"]], "io_eacces (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EACCES"]], "io_eaddrinuse (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EADDRINUSE"]], "io_eafnosupport (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EAFNOSUPPORT"]], "io_eagain (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EAGAIN"]], "io_ealready (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EALREADY"]], "io_ebadf (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EBADF"]], "io_ebadmsg (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EBADMSG"]], "io_ebusy (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EBUSY"]], "io_ecanceled (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_ECANCELED"]], "io_echild (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_ECHILD"]], "io_econnrefused (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_ECONNREFUSED"]], "io_edeadlk (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EDEADLK"]], "io_edom (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EDOM"]], "io_eexist (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EEXIST"]], "io_efault (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EFAULT"]], "io_efbig (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EFBIG"]], "io_einprogress (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EINPROGRESS"]], "io_eintr (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EINTR"]], "io_einval (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EINVAL"]], "io_eio (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EIO"]], "io_eisconn (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EISCONN"]], "io_eisdir (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EISDIR"]], "io_emfile (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EMFILE"]], "io_emlink (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EMLINK"]], "io_emsgsize (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EMSGSIZE"]], "io_enametoolong (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_ENAMETOOLONG"]], "io_encoder (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_ENCODER"]], "io_enetunreach (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_ENETUNREACH"]], "io_enfile (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_ENFILE"]], "io_enodev (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_ENODEV"]], "io_enoent (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_ENOENT"]], "io_enoexec (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_ENOEXEC"]], "io_enolck (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_ENOLCK"]], "io_enomem (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_ENOMEM"]], "io_enospc (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_ENOSPC"]], "io_enosys (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_ENOSYS"]], "io_enotdir (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_ENOTDIR"]], "io_enotempty (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_ENOTEMPTY"]], "io_enotsock (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_ENOTSOCK"]], "io_enotsup (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_ENOTSUP"]], "io_enotty (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_ENOTTY"]], "io_enxio (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_ENXIO"]], "io_eperm (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EPERM"]], "io_epipe (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EPIPE"]], "io_erange (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_ERANGE"]], "io_erofs (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EROFS"]], "io_espipe (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_ESPIPE"]], "io_esrch (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_ESRCH"]], "io_etimedout (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_ETIMEDOUT"]], "io_exdev (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_EXDEV"]], "io_flush (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_FLUSH"]], "io_load_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_LOAD_ERROR"]], "io_network_attempt (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_NETWORK_ATTEMPT"]], "io_no_input (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_NO_INPUT"]], "io_unknown (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_UNKNOWN"]], "io_write (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.IO_WRITE"]], "lxmlerror": [[7, "lxml.etree.LxmlError"]], "lxmlregistryerror": [[7, "lxml.etree.LxmlRegistryError"]], "lxmlsyntaxerror": [[7, "lxml.etree.LxmlSyntaxError"]], "memory (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.MEMORY"]], "module (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.MODULE"]], "module_close (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.MODULE_CLOSE"]], "module_open (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.MODULE_OPEN"]], "namespace (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.NAMESPACE"]], "none (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.NONE"]], "none (lxml.etree.errorlevels attribute)": [[7, "lxml.etree.ErrorLevels.NONE"]], "ns_err_attribute_redefined (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.NS_ERR_ATTRIBUTE_REDEFINED"]], "ns_err_colon (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.NS_ERR_COLON"]], "ns_err_empty (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.NS_ERR_EMPTY"]], "ns_err_qname (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.NS_ERR_QNAME"]], "ns_err_undefined_namespace (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.NS_ERR_UNDEFINED_NAMESPACE"]], "ns_err_xml_namespace (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.NS_ERR_XML_NAMESPACE"]], "namespaceregistryerror": [[7, "lxml.etree.NamespaceRegistryError"]], "output (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.OUTPUT"]], "parser (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.PARSER"]], "pi() (in module lxml.etree)": [[7, "lxml.etree.PI"]], "pibase (class in lxml.etree)": [[7, "lxml.etree.PIBase"]], "parseerror": [[7, "lxml.etree.ParseError"]], "parserbasedelementclasslookup (class in lxml.etree)": [[7, "lxml.etree.ParserBasedElementClassLookup"]], "parsererror": [[7, "lxml.etree.ParserError"]], "processinginstruction() (in module lxml.etree)": [[7, "lxml.etree.ProcessingInstruction"]], "pyerrorlog (class in lxml.etree)": [[7, "lxml.etree.PyErrorLog"]], "pythonelementclasslookup (class in lxml.etree)": [[7, "lxml.etree.PythonElementClassLookup"]], "qname (class in lxml.etree)": [[7, "lxml.etree.QName"]], "regexp (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.REGEXP"]], "regexp_compile_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.REGEXP_COMPILE_ERROR"]], "relaxngp (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.RELAXNGP"]], "relaxngv (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.RELAXNGV"]], "relaxng_err_attrextrans (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_ATTREXTRANS"]], "relaxng_err_attrname (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_ATTRNAME"]], "relaxng_err_attrnons (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_ATTRNONS"]], "relaxng_err_attrvalid (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_ATTRVALID"]], "relaxng_err_attrwrongns (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_ATTRWRONGNS"]], "relaxng_err_contentvalid (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_CONTENTVALID"]], "relaxng_err_dataelem (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_DATAELEM"]], "relaxng_err_datatype (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_DATATYPE"]], "relaxng_err_dupid (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_DUPID"]], "relaxng_err_elemextrans (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_ELEMEXTRANS"]], "relaxng_err_elemname (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_ELEMNAME"]], "relaxng_err_elemnons (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_ELEMNONS"]], "relaxng_err_elemnotempty (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_ELEMNOTEMPTY"]], "relaxng_err_elemwrong (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_ELEMWRONG"]], "relaxng_err_elemwrongns (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_ELEMWRONGNS"]], "relaxng_err_extracontent (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_EXTRACONTENT"]], "relaxng_err_extradata (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_EXTRADATA"]], "relaxng_err_interextra (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_INTEREXTRA"]], "relaxng_err_internal (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_INTERNAL"]], "relaxng_err_internodata (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_INTERNODATA"]], "relaxng_err_interseq (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_INTERSEQ"]], "relaxng_err_invalidattr (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_INVALIDATTR"]], "relaxng_err_lackdata (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_LACKDATA"]], "relaxng_err_list (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_LIST"]], "relaxng_err_listelem (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_LISTELEM"]], "relaxng_err_listempty (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_LISTEMPTY"]], "relaxng_err_listextra (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_LISTEXTRA"]], "relaxng_err_memory (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_MEMORY"]], "relaxng_err_nodefine (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_NODEFINE"]], "relaxng_err_noelem (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_NOELEM"]], "relaxng_err_nogrammar (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_NOGRAMMAR"]], "relaxng_err_nostate (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_NOSTATE"]], "relaxng_err_notelem (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_NOTELEM"]], "relaxng_err_textwrong (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_TEXTWRONG"]], "relaxng_err_type (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_TYPE"]], "relaxng_err_typecmp (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_TYPECMP"]], "relaxng_err_typeval (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_TYPEVAL"]], "relaxng_err_valelem (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_VALELEM"]], "relaxng_err_value (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_ERR_VALUE"]], "relaxng_ok (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes.RELAXNG_OK"]], "rngp_anyname_attr_ancestor (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_ANYNAME_ATTR_ANCESTOR"]], "rngp_attribute_children (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_ATTRIBUTE_CHILDREN"]], "rngp_attribute_content (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_ATTRIBUTE_CONTENT"]], "rngp_attribute_empty (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_ATTRIBUTE_EMPTY"]], "rngp_attribute_noop (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_ATTRIBUTE_NOOP"]], "rngp_attr_conflict (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_ATTR_CONFLICT"]], "rngp_choice_content (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_CHOICE_CONTENT"]], "rngp_choice_empty (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_CHOICE_EMPTY"]], "rngp_create_failure (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_CREATE_FAILURE"]], "rngp_data_content (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_DATA_CONTENT"]], "rngp_define_create_failed (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_DEFINE_CREATE_FAILED"]], "rngp_define_empty (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_DEFINE_EMPTY"]], "rngp_define_missing (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_DEFINE_MISSING"]], "rngp_define_name_missing (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_DEFINE_NAME_MISSING"]], "rngp_def_choice_and_interleave (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_DEF_CHOICE_AND_INTERLEAVE"]], "rngp_element_content (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_ELEMENT_CONTENT"]], "rngp_element_empty (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_ELEMENT_EMPTY"]], "rngp_element_name (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_ELEMENT_NAME"]], "rngp_element_no_content (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_ELEMENT_NO_CONTENT"]], "rngp_elem_content_empty (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_ELEM_CONTENT_EMPTY"]], "rngp_elem_content_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_ELEM_CONTENT_ERROR"]], "rngp_elem_text_conflict (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_ELEM_TEXT_CONFLICT"]], "rngp_empty (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_EMPTY"]], "rngp_empty_construct (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_EMPTY_CONSTRUCT"]], "rngp_empty_content (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_EMPTY_CONTENT"]], "rngp_empty_not_empty (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_EMPTY_NOT_EMPTY"]], "rngp_error_type_lib (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_ERROR_TYPE_LIB"]], "rngp_except_empty (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_EXCEPT_EMPTY"]], "rngp_except_missing (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_EXCEPT_MISSING"]], "rngp_except_multiple (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_EXCEPT_MULTIPLE"]], "rngp_except_no_content (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_EXCEPT_NO_CONTENT"]], "rngp_externalref_emtpy (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_EXTERNALREF_EMTPY"]], "rngp_externalref_recurse (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_EXTERNALREF_RECURSE"]], "rngp_external_ref_failure (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_EXTERNAL_REF_FAILURE"]], "rngp_forbidden_attribute (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_FORBIDDEN_ATTRIBUTE"]], "rngp_foreign_element (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_FOREIGN_ELEMENT"]], "rngp_grammar_content (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_GRAMMAR_CONTENT"]], "rngp_grammar_empty (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_GRAMMAR_EMPTY"]], "rngp_grammar_missing (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_GRAMMAR_MISSING"]], "rngp_grammar_no_start (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_GRAMMAR_NO_START"]], "rngp_group_attr_conflict (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_GROUP_ATTR_CONFLICT"]], "rngp_href_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_HREF_ERROR"]], "rngp_include_empty (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_INCLUDE_EMPTY"]], "rngp_include_failure (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_INCLUDE_FAILURE"]], "rngp_include_recurse (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_INCLUDE_RECURSE"]], "rngp_interleave_add (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_INTERLEAVE_ADD"]], "rngp_interleave_create_failed (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_INTERLEAVE_CREATE_FAILED"]], "rngp_interleave_empty (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_INTERLEAVE_EMPTY"]], "rngp_interleave_no_content (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_INTERLEAVE_NO_CONTENT"]], "rngp_invalid_define_name (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_INVALID_DEFINE_NAME"]], "rngp_invalid_uri (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_INVALID_URI"]], "rngp_invalid_value (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_INVALID_VALUE"]], "rngp_missing_href (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_MISSING_HREF"]], "rngp_name_missing (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_NAME_MISSING"]], "rngp_need_combine (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_NEED_COMBINE"]], "rngp_notallowed_not_empty (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_NOTALLOWED_NOT_EMPTY"]], "rngp_nsname_attr_ancestor (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_NSNAME_ATTR_ANCESTOR"]], "rngp_nsname_no_ns (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_NSNAME_NO_NS"]], "rngp_param_forbidden (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PARAM_FORBIDDEN"]], "rngp_param_name_missing (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PARAM_NAME_MISSING"]], "rngp_parentref_create_failed (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PARENTREF_CREATE_FAILED"]], "rngp_parentref_name_invalid (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PARENTREF_NAME_INVALID"]], "rngp_parentref_not_empty (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PARENTREF_NOT_EMPTY"]], "rngp_parentref_no_name (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PARENTREF_NO_NAME"]], "rngp_parentref_no_parent (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PARENTREF_NO_PARENT"]], "rngp_parse_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PARSE_ERROR"]], "rngp_pat_anyname_except_anyname (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_ANYNAME_EXCEPT_ANYNAME"]], "rngp_pat_attr_attr (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_ATTR_ATTR"]], "rngp_pat_attr_elem (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_ATTR_ELEM"]], "rngp_pat_data_except_attr (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_DATA_EXCEPT_ATTR"]], "rngp_pat_data_except_elem (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_DATA_EXCEPT_ELEM"]], "rngp_pat_data_except_empty (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_DATA_EXCEPT_EMPTY"]], "rngp_pat_data_except_group (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_DATA_EXCEPT_GROUP"]], "rngp_pat_data_except_interleave (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_DATA_EXCEPT_INTERLEAVE"]], "rngp_pat_data_except_list (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_DATA_EXCEPT_LIST"]], "rngp_pat_data_except_onemore (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_DATA_EXCEPT_ONEMORE"]], "rngp_pat_data_except_ref (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_DATA_EXCEPT_REF"]], "rngp_pat_data_except_text (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_DATA_EXCEPT_TEXT"]], "rngp_pat_list_attr (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_LIST_ATTR"]], "rngp_pat_list_elem (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_LIST_ELEM"]], "rngp_pat_list_interleave (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_LIST_INTERLEAVE"]], "rngp_pat_list_list (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_LIST_LIST"]], "rngp_pat_list_ref (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_LIST_REF"]], "rngp_pat_list_text (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_LIST_TEXT"]], "rngp_pat_nsname_except_anyname (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_NSNAME_EXCEPT_ANYNAME"]], "rngp_pat_nsname_except_nsname (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_NSNAME_EXCEPT_NSNAME"]], "rngp_pat_onemore_group_attr (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_ONEMORE_GROUP_ATTR"]], "rngp_pat_onemore_interleave_attr (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_ONEMORE_INTERLEAVE_ATTR"]], "rngp_pat_start_attr (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_START_ATTR"]], "rngp_pat_start_data (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_START_DATA"]], "rngp_pat_start_empty (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_START_EMPTY"]], "rngp_pat_start_group (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_START_GROUP"]], "rngp_pat_start_interleave (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_START_INTERLEAVE"]], "rngp_pat_start_list (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_START_LIST"]], "rngp_pat_start_onemore (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_START_ONEMORE"]], "rngp_pat_start_text (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_START_TEXT"]], "rngp_pat_start_value (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PAT_START_VALUE"]], "rngp_prefix_undefined (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_PREFIX_UNDEFINED"]], "rngp_ref_create_failed (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_REF_CREATE_FAILED"]], "rngp_ref_cycle (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_REF_CYCLE"]], "rngp_ref_name_invalid (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_REF_NAME_INVALID"]], "rngp_ref_not_empty (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_REF_NOT_EMPTY"]], "rngp_ref_no_def (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_REF_NO_DEF"]], "rngp_ref_no_name (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_REF_NO_NAME"]], "rngp_start_choice_and_interleave (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_START_CHOICE_AND_INTERLEAVE"]], "rngp_start_content (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_START_CONTENT"]], "rngp_start_empty (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_START_EMPTY"]], "rngp_start_missing (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_START_MISSING"]], "rngp_text_expected (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_TEXT_EXPECTED"]], "rngp_text_has_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_TEXT_HAS_CHILD"]], "rngp_type_missing (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_TYPE_MISSING"]], "rngp_type_not_found (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_TYPE_NOT_FOUND"]], "rngp_type_value (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_TYPE_VALUE"]], "rngp_unknown_attribute (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_UNKNOWN_ATTRIBUTE"]], "rngp_unknown_combine (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_UNKNOWN_COMBINE"]], "rngp_unknown_construct (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_UNKNOWN_CONSTRUCT"]], "rngp_unknown_type_lib (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_UNKNOWN_TYPE_LIB"]], "rngp_uri_fragment (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_URI_FRAGMENT"]], "rngp_uri_not_absolute (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_URI_NOT_ABSOLUTE"]], "rngp_value_empty (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_VALUE_EMPTY"]], "rngp_value_no_content (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_VALUE_NO_CONTENT"]], "rngp_xmlns_name (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_XMLNS_NAME"]], "rngp_xml_ns (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.RNGP_XML_NS"]], "relaxng (class in lxml.etree)": [[7, "lxml.etree.RelaxNG"]], "relaxngerror": [[7, "lxml.etree.RelaxNGError"]], "relaxngerrortypes (class in lxml.etree)": [[7, "lxml.etree.RelaxNGErrorTypes"]], "relaxngparseerror": [[7, "lxml.etree.RelaxNGParseError"]], "relaxngvalidateerror": [[7, "lxml.etree.RelaxNGValidateError"]], "resolver (class in lxml.etree)": [[7, "lxml.etree.Resolver"]], "save_char_invalid (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SAVE_CHAR_INVALID"]], "save_not_utf8 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SAVE_NOT_UTF8"]], "save_no_doctype (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SAVE_NO_DOCTYPE"]], "save_unknown_encoding (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SAVE_UNKNOWN_ENCODING"]], "schemap_ag_props_correct (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_AG_PROPS_CORRECT"]], "schemap_attrformdefault_value (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_ATTRFORMDEFAULT_VALUE"]], "schemap_attrgrp_noname_noref (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_ATTRGRP_NONAME_NOREF"]], "schemap_attr_noname_noref (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_ATTR_NONAME_NOREF"]], "schemap_au_props_correct (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_AU_PROPS_CORRECT"]], "schemap_au_props_correct_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_AU_PROPS_CORRECT_2"]], "schemap_a_props_correct_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_A_PROPS_CORRECT_2"]], "schemap_a_props_correct_3 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_A_PROPS_CORRECT_3"]], "schemap_complextype_noname_noref (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COMPLEXTYPE_NONAME_NOREF"]], "schemap_cos_all_limited (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_ALL_LIMITED"]], "schemap_cos_ct_extends_1_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_CT_EXTENDS_1_1"]], "schemap_cos_ct_extends_1_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_CT_EXTENDS_1_2"]], "schemap_cos_ct_extends_1_3 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_CT_EXTENDS_1_3"]], "schemap_cos_st_derived_ok_2_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_ST_DERIVED_OK_2_1"]], "schemap_cos_st_derived_ok_2_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_ST_DERIVED_OK_2_2"]], "schemap_cos_st_restricts_1_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_1_1"]], "schemap_cos_st_restricts_1_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_1_2"]], "schemap_cos_st_restricts_1_3_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_1_3_1"]], "schemap_cos_st_restricts_1_3_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_1_3_2"]], "schemap_cos_st_restricts_2_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_2_1"]], "schemap_cos_st_restricts_2_3_1_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_2_3_1_1"]], "schemap_cos_st_restricts_2_3_1_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_2_3_1_2"]], "schemap_cos_st_restricts_2_3_2_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_2_3_2_1"]], "schemap_cos_st_restricts_2_3_2_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_2_3_2_2"]], "schemap_cos_st_restricts_2_3_2_3 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_2_3_2_3"]], "schemap_cos_st_restricts_2_3_2_4 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_2_3_2_4"]], "schemap_cos_st_restricts_2_3_2_5 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_2_3_2_5"]], "schemap_cos_st_restricts_3_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_3_1"]], "schemap_cos_st_restricts_3_3_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_3_3_1"]], "schemap_cos_st_restricts_3_3_1_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_3_3_1_2"]], "schemap_cos_st_restricts_3_3_2_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_3_3_2_1"]], "schemap_cos_st_restricts_3_3_2_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_3_3_2_2"]], "schemap_cos_st_restricts_3_3_2_3 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_3_3_2_3"]], "schemap_cos_st_restricts_3_3_2_4 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_3_3_2_4"]], "schemap_cos_st_restricts_3_3_2_5 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_ST_RESTRICTS_3_3_2_5"]], "schemap_cos_valid_default_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_VALID_DEFAULT_1"]], "schemap_cos_valid_default_2_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_VALID_DEFAULT_2_1"]], "schemap_cos_valid_default_2_2_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_VALID_DEFAULT_2_2_1"]], "schemap_cos_valid_default_2_2_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_COS_VALID_DEFAULT_2_2_2"]], "schemap_ct_props_correct_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_CT_PROPS_CORRECT_1"]], "schemap_ct_props_correct_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_CT_PROPS_CORRECT_2"]], "schemap_ct_props_correct_3 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_CT_PROPS_CORRECT_3"]], "schemap_ct_props_correct_4 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_CT_PROPS_CORRECT_4"]], "schemap_ct_props_correct_5 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_CT_PROPS_CORRECT_5"]], "schemap_cvc_simple_type (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_CVC_SIMPLE_TYPE"]], "schemap_c_props_correct (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_C_PROPS_CORRECT"]], "schemap_def_and_prefix (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_DEF_AND_PREFIX"]], "schemap_derivation_ok_restriction_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_DERIVATION_OK_RESTRICTION_1"]], "schemap_derivation_ok_restriction_2_1_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_1"]], "schemap_derivation_ok_restriction_2_1_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_2"]], "schemap_derivation_ok_restriction_2_1_3 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_3"]], "schemap_derivation_ok_restriction_2_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_DERIVATION_OK_RESTRICTION_2_2"]], "schemap_derivation_ok_restriction_3 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_DERIVATION_OK_RESTRICTION_3"]], "schemap_derivation_ok_restriction_4_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_DERIVATION_OK_RESTRICTION_4_1"]], "schemap_derivation_ok_restriction_4_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_DERIVATION_OK_RESTRICTION_4_2"]], "schemap_derivation_ok_restriction_4_3 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_DERIVATION_OK_RESTRICTION_4_3"]], "schemap_elemformdefault_value (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_ELEMFORMDEFAULT_VALUE"]], "schemap_elem_default_fixed (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_ELEM_DEFAULT_FIXED"]], "schemap_elem_noname_noref (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_ELEM_NONAME_NOREF"]], "schemap_extension_no_base (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_EXTENSION_NO_BASE"]], "schemap_e_props_correct_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_E_PROPS_CORRECT_2"]], "schemap_e_props_correct_3 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_E_PROPS_CORRECT_3"]], "schemap_e_props_correct_4 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_E_PROPS_CORRECT_4"]], "schemap_e_props_correct_5 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_E_PROPS_CORRECT_5"]], "schemap_e_props_correct_6 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_E_PROPS_CORRECT_6"]], "schemap_facet_no_value (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_FACET_NO_VALUE"]], "schemap_failed_build_import (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_FAILED_BUILD_IMPORT"]], "schemap_failed_load (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_FAILED_LOAD"]], "schemap_failed_parse (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_FAILED_PARSE"]], "schemap_group_noname_noref (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_GROUP_NONAME_NOREF"]], "schemap_import_namespace_not_uri (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_IMPORT_NAMESPACE_NOT_URI"]], "schemap_import_redefine_nsname (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_IMPORT_REDEFINE_NSNAME"]], "schemap_import_schema_not_uri (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_IMPORT_SCHEMA_NOT_URI"]], "schemap_include_schema_not_uri (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_INCLUDE_SCHEMA_NOT_URI"]], "schemap_include_schema_no_uri (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_INCLUDE_SCHEMA_NO_URI"]], "schemap_internal (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_INTERNAL"]], "schemap_intersection_not_expressible (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_INTERSECTION_NOT_EXPRESSIBLE"]], "schemap_invalid_attr_combination (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_INVALID_ATTR_COMBINATION"]], "schemap_invalid_attr_inline_combination (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_INVALID_ATTR_INLINE_COMBINATION"]], "schemap_invalid_attr_name (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_INVALID_ATTR_NAME"]], "schemap_invalid_attr_use (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_INVALID_ATTR_USE"]], "schemap_invalid_boolean (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_INVALID_BOOLEAN"]], "schemap_invalid_enum (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_INVALID_ENUM"]], "schemap_invalid_facet (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_INVALID_FACET"]], "schemap_invalid_facet_value (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_INVALID_FACET_VALUE"]], "schemap_invalid_maxoccurs (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_INVALID_MAXOCCURS"]], "schemap_invalid_minoccurs (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_INVALID_MINOCCURS"]], "schemap_invalid_ref_and_subtype (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_INVALID_REF_AND_SUBTYPE"]], "schemap_invalid_white_space (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_INVALID_WHITE_SPACE"]], "schemap_mg_props_correct_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_MG_PROPS_CORRECT_1"]], "schemap_mg_props_correct_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_MG_PROPS_CORRECT_2"]], "schemap_missing_simpletype_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_MISSING_SIMPLETYPE_CHILD"]], "schemap_noattr_noref (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_NOATTR_NOREF"]], "schemap_noroot (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_NOROOT"]], "schemap_notation_no_name (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_NOTATION_NO_NAME"]], "schemap_nothing_to_parse (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_NOTHING_TO_PARSE"]], "schemap_notype_noref (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_NOTYPE_NOREF"]], "schemap_not_deterministic (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_NOT_DETERMINISTIC"]], "schemap_not_schema (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_NOT_SCHEMA"]], "schemap_no_xmlns (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_NO_XMLNS"]], "schemap_no_xsi (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_NO_XSI"]], "schemap_prefix_undefined (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_PREFIX_UNDEFINED"]], "schemap_p_props_correct_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_P_PROPS_CORRECT_1"]], "schemap_p_props_correct_2_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_P_PROPS_CORRECT_2_1"]], "schemap_p_props_correct_2_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_P_PROPS_CORRECT_2_2"]], "schemap_recursive (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_RECURSIVE"]], "schemap_redefined_attr (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_REDEFINED_ATTR"]], "schemap_redefined_attrgroup (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_REDEFINED_ATTRGROUP"]], "schemap_redefined_element (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_REDEFINED_ELEMENT"]], "schemap_redefined_group (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_REDEFINED_GROUP"]], "schemap_redefined_notation (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_REDEFINED_NOTATION"]], "schemap_redefined_type (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_REDEFINED_TYPE"]], "schemap_ref_and_content (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_REF_AND_CONTENT"]], "schemap_ref_and_subtype (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_REF_AND_SUBTYPE"]], "schemap_regexp_invalid (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_REGEXP_INVALID"]], "schemap_restriction_noname_noref (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_RESTRICTION_NONAME_NOREF"]], "schemap_s4s_attr_invalid_value (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_S4S_ATTR_INVALID_VALUE"]], "schemap_s4s_attr_missing (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_S4S_ATTR_MISSING"]], "schemap_s4s_attr_not_allowed (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_S4S_ATTR_NOT_ALLOWED"]], "schemap_s4s_elem_missing (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_S4S_ELEM_MISSING"]], "schemap_s4s_elem_not_allowed (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_S4S_ELEM_NOT_ALLOWED"]], "schemap_simpletype_noname (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SIMPLETYPE_NONAME"]], "schemap_src_attribute_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_ATTRIBUTE_1"]], "schemap_src_attribute_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_ATTRIBUTE_2"]], "schemap_src_attribute_3_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_ATTRIBUTE_3_1"]], "schemap_src_attribute_3_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_ATTRIBUTE_3_2"]], "schemap_src_attribute_4 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_ATTRIBUTE_4"]], "schemap_src_attribute_group_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_ATTRIBUTE_GROUP_1"]], "schemap_src_attribute_group_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_ATTRIBUTE_GROUP_2"]], "schemap_src_attribute_group_3 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_ATTRIBUTE_GROUP_3"]], "schemap_src_ct_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_CT_1"]], "schemap_src_element_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_ELEMENT_1"]], "schemap_src_element_2_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_ELEMENT_2_1"]], "schemap_src_element_2_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_ELEMENT_2_2"]], "schemap_src_element_3 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_ELEMENT_3"]], "schemap_src_import (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_IMPORT"]], "schemap_src_import_1_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_IMPORT_1_1"]], "schemap_src_import_1_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_IMPORT_1_2"]], "schemap_src_import_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_IMPORT_2"]], "schemap_src_import_2_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_IMPORT_2_1"]], "schemap_src_import_2_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_IMPORT_2_2"]], "schemap_src_import_3_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_IMPORT_3_1"]], "schemap_src_import_3_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_IMPORT_3_2"]], "schemap_src_include (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_INCLUDE"]], "schemap_src_list_itemtype_or_simpletype (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_LIST_ITEMTYPE_OR_SIMPLETYPE"]], "schemap_src_redefine (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_REDEFINE"]], "schemap_src_resolve (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_RESOLVE"]], "schemap_src_restriction_base_or_simpletype (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_RESTRICTION_BASE_OR_SIMPLETYPE"]], "schemap_src_simple_type_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_SIMPLE_TYPE_1"]], "schemap_src_simple_type_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_SIMPLE_TYPE_2"]], "schemap_src_simple_type_3 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_SIMPLE_TYPE_3"]], "schemap_src_simple_type_4 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_SIMPLE_TYPE_4"]], "schemap_src_union_membertypes_or_simpletypes (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SRC_UNION_MEMBERTYPES_OR_SIMPLETYPES"]], "schemap_st_props_correct_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_ST_PROPS_CORRECT_1"]], "schemap_st_props_correct_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_ST_PROPS_CORRECT_2"]], "schemap_st_props_correct_3 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_ST_PROPS_CORRECT_3"]], "schemap_supernumerous_list_item_type (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_SUPERNUMEROUS_LIST_ITEM_TYPE"]], "schemap_type_and_subtype (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_TYPE_AND_SUBTYPE"]], "schemap_union_not_expressible (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNION_NOT_EXPRESSIBLE"]], "schemap_unknown_all_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_ALL_CHILD"]], "schemap_unknown_anyattribute_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_ANYATTRIBUTE_CHILD"]], "schemap_unknown_attrgrp_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_ATTRGRP_CHILD"]], "schemap_unknown_attribute_group (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_ATTRIBUTE_GROUP"]], "schemap_unknown_attr_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_ATTR_CHILD"]], "schemap_unknown_base_type (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_BASE_TYPE"]], "schemap_unknown_choice_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_CHOICE_CHILD"]], "schemap_unknown_complexcontent_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_COMPLEXCONTENT_CHILD"]], "schemap_unknown_complextype_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_COMPLEXTYPE_CHILD"]], "schemap_unknown_elem_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_ELEM_CHILD"]], "schemap_unknown_extension_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_EXTENSION_CHILD"]], "schemap_unknown_facet_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_FACET_CHILD"]], "schemap_unknown_facet_type (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_FACET_TYPE"]], "schemap_unknown_group_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_GROUP_CHILD"]], "schemap_unknown_import_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_IMPORT_CHILD"]], "schemap_unknown_include_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_INCLUDE_CHILD"]], "schemap_unknown_list_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_LIST_CHILD"]], "schemap_unknown_member_type (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_MEMBER_TYPE"]], "schemap_unknown_notation_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_NOTATION_CHILD"]], "schemap_unknown_prefix (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_PREFIX"]], "schemap_unknown_processcontent_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_PROCESSCONTENT_CHILD"]], "schemap_unknown_ref (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_REF"]], "schemap_unknown_restriction_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_RESTRICTION_CHILD"]], "schemap_unknown_schemas_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_SCHEMAS_CHILD"]], "schemap_unknown_sequence_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_SEQUENCE_CHILD"]], "schemap_unknown_simplecontent_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_SIMPLECONTENT_CHILD"]], "schemap_unknown_simpletype_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_SIMPLETYPE_CHILD"]], "schemap_unknown_type (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_TYPE"]], "schemap_unknown_union_child (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_UNKNOWN_UNION_CHILD"]], "schemap_warn_attr_pointless_proh (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_WARN_ATTR_POINTLESS_PROH"]], "schemap_warn_attr_redecl_proh (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_WARN_ATTR_REDECL_PROH"]], "schemap_warn_skip_schema (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_WARN_SKIP_SCHEMA"]], "schemap_warn_unlocated_schema (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_WARN_UNLOCATED_SCHEMA"]], "schemap_wildcard_invalid_ns_member (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAP_WILDCARD_INVALID_NS_MEMBER"]], "schemasp (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.SCHEMASP"]], "schemasv (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.SCHEMASV"]], "schematronv (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.SCHEMATRONV"]], "schematronv_assert (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMATRONV_ASSERT"]], "schematronv_report (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMATRONV_REPORT"]], "schemav_attrinvalid (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_ATTRINVALID"]], "schemav_attrunknown (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_ATTRUNKNOWN"]], "schemav_construct (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CONSTRUCT"]], "schemav_cvc_attribute_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_ATTRIBUTE_1"]], "schemav_cvc_attribute_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_ATTRIBUTE_2"]], "schemav_cvc_attribute_3 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_ATTRIBUTE_3"]], "schemav_cvc_attribute_4 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_ATTRIBUTE_4"]], "schemav_cvc_au (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_AU"]], "schemav_cvc_complex_type_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_COMPLEX_TYPE_1"]], "schemav_cvc_complex_type_2_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_COMPLEX_TYPE_2_1"]], "schemav_cvc_complex_type_2_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_COMPLEX_TYPE_2_2"]], "schemav_cvc_complex_type_2_3 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_COMPLEX_TYPE_2_3"]], "schemav_cvc_complex_type_2_4 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_COMPLEX_TYPE_2_4"]], "schemav_cvc_complex_type_3_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_COMPLEX_TYPE_3_1"]], "schemav_cvc_complex_type_3_2_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_COMPLEX_TYPE_3_2_1"]], "schemav_cvc_complex_type_3_2_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_COMPLEX_TYPE_3_2_2"]], "schemav_cvc_complex_type_4 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_COMPLEX_TYPE_4"]], "schemav_cvc_complex_type_5_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_COMPLEX_TYPE_5_1"]], "schemav_cvc_complex_type_5_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_COMPLEX_TYPE_5_2"]], "schemav_cvc_datatype_valid_1_2_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_DATATYPE_VALID_1_2_1"]], "schemav_cvc_datatype_valid_1_2_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_DATATYPE_VALID_1_2_2"]], "schemav_cvc_datatype_valid_1_2_3 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_DATATYPE_VALID_1_2_3"]], "schemav_cvc_elt_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_1"]], "schemav_cvc_elt_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_2"]], "schemav_cvc_elt_3_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_3_1"]], "schemav_cvc_elt_3_2_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_3_2_1"]], "schemav_cvc_elt_3_2_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_3_2_2"]], "schemav_cvc_elt_4_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_4_1"]], "schemav_cvc_elt_4_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_4_2"]], "schemav_cvc_elt_4_3 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_4_3"]], "schemav_cvc_elt_5_1_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_5_1_1"]], "schemav_cvc_elt_5_1_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_5_1_2"]], "schemav_cvc_elt_5_2_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_5_2_1"]], "schemav_cvc_elt_5_2_2_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_5_2_2_1"]], "schemav_cvc_elt_5_2_2_2_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_5_2_2_2_1"]], "schemav_cvc_elt_5_2_2_2_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_5_2_2_2_2"]], "schemav_cvc_elt_6 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_6"]], "schemav_cvc_elt_7 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_ELT_7"]], "schemav_cvc_enumeration_valid (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_ENUMERATION_VALID"]], "schemav_cvc_facet_valid (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_FACET_VALID"]], "schemav_cvc_fractiondigits_valid (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_FRACTIONDIGITS_VALID"]], "schemav_cvc_idc (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_IDC"]], "schemav_cvc_length_valid (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_LENGTH_VALID"]], "schemav_cvc_maxexclusive_valid (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_MAXEXCLUSIVE_VALID"]], "schemav_cvc_maxinclusive_valid (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_MAXINCLUSIVE_VALID"]], "schemav_cvc_maxlength_valid (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_MAXLENGTH_VALID"]], "schemav_cvc_minexclusive_valid (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_MINEXCLUSIVE_VALID"]], "schemav_cvc_mininclusive_valid (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_MININCLUSIVE_VALID"]], "schemav_cvc_minlength_valid (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_MINLENGTH_VALID"]], "schemav_cvc_pattern_valid (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_PATTERN_VALID"]], "schemav_cvc_totaldigits_valid (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_TOTALDIGITS_VALID"]], "schemav_cvc_type_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_TYPE_1"]], "schemav_cvc_type_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_TYPE_2"]], "schemav_cvc_type_3_1_1 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_TYPE_3_1_1"]], "schemav_cvc_type_3_1_2 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_TYPE_3_1_2"]], "schemav_cvc_wildcard (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_CVC_WILDCARD"]], "schemav_document_element_missing (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_DOCUMENT_ELEMENT_MISSING"]], "schemav_elemcont (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_ELEMCONT"]], "schemav_element_content (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_ELEMENT_CONTENT"]], "schemav_extracontent (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_EXTRACONTENT"]], "schemav_facet (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_FACET"]], "schemav_havedefault (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_HAVEDEFAULT"]], "schemav_internal (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_INTERNAL"]], "schemav_invalidattr (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_INVALIDATTR"]], "schemav_invalidelem (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_INVALIDELEM"]], "schemav_isabstract (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_ISABSTRACT"]], "schemav_misc (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_MISC"]], "schemav_missing (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_MISSING"]], "schemav_norollback (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_NOROLLBACK"]], "schemav_noroot (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_NOROOT"]], "schemav_notdeterminist (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_NOTDETERMINIST"]], "schemav_notempty (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_NOTEMPTY"]], "schemav_notnillable (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_NOTNILLABLE"]], "schemav_notsimple (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_NOTSIMPLE"]], "schemav_nottoplevel (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_NOTTOPLEVEL"]], "schemav_notype (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_NOTYPE"]], "schemav_undeclaredelem (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_UNDECLAREDELEM"]], "schemav_value (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_VALUE"]], "schemav_wrongelem (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.SCHEMAV_WRONGELEM"]], "schematron (class in lxml.etree)": [[7, "lxml.etree.Schematron"]], "schematronerror": [[7, "lxml.etree.SchematronError"]], "schematronparseerror": [[7, "lxml.etree.SchematronParseError"]], "schematronvalidateerror": [[7, "lxml.etree.SchematronValidateError"]], "serialisationerror": [[7, "lxml.etree.SerialisationError"]], "siblingsiterator (class in lxml.etree)": [[7, "lxml.etree.SiblingsIterator"]], "subelement() (in module lxml.etree)": [[7, "lxml.etree.SubElement"]], "tree (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.TREE"]], "tree_invalid_dec (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.TREE_INVALID_DEC"]], "tree_invalid_hex (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.TREE_INVALID_HEX"]], "tree_not_utf8 (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.TREE_NOT_UTF8"]], "tree_unterminated_entity (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.TREE_UNTERMINATED_ENTITY"]], "treebuilder (class in lxml.etree)": [[7, "lxml.etree.TreeBuilder"]], "uri (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.URI"]], "url (lxml.etree.docinfo attribute)": [[7, "lxml.etree.DocInfo.URL"]], "valid (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.VALID"]], "warning (lxml.etree.errorlevels attribute)": [[7, "lxml.etree.ErrorLevels.WARNING"]], "war_catalog_pi (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.WAR_CATALOG_PI"]], "war_entity_redefined (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.WAR_ENTITY_REDEFINED"]], "war_lang_value (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.WAR_LANG_VALUE"]], "war_ns_column (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.WAR_NS_COLUMN"]], "war_ns_uri (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.WAR_NS_URI"]], "war_ns_uri_relative (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.WAR_NS_URI_RELATIVE"]], "war_space_value (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.WAR_SPACE_VALUE"]], "war_undeclared_entity (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.WAR_UNDECLARED_ENTITY"]], "war_unknown_version (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.WAR_UNKNOWN_VERSION"]], "writer (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.WRITER"]], "xinclude (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.XINCLUDE"]], "xinclude_build_failed (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XINCLUDE_BUILD_FAILED"]], "xinclude_deprecated_ns (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XINCLUDE_DEPRECATED_NS"]], "xinclude_entity_def_mismatch (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XINCLUDE_ENTITY_DEF_MISMATCH"]], "xinclude_fallbacks_in_include (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XINCLUDE_FALLBACKS_IN_INCLUDE"]], "xinclude_fallback_not_in_include (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XINCLUDE_FALLBACK_NOT_IN_INCLUDE"]], "xinclude_fragment_id (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XINCLUDE_FRAGMENT_ID"]], "xinclude_href_uri (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XINCLUDE_HREF_URI"]], "xinclude_include_in_include (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XINCLUDE_INCLUDE_IN_INCLUDE"]], "xinclude_invalid_char (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XINCLUDE_INVALID_CHAR"]], "xinclude_multiple_root (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XINCLUDE_MULTIPLE_ROOT"]], "xinclude_no_fallback (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XINCLUDE_NO_FALLBACK"]], "xinclude_no_href (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XINCLUDE_NO_HREF"]], "xinclude_parse_value (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XINCLUDE_PARSE_VALUE"]], "xinclude_recursion (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XINCLUDE_RECURSION"]], "xinclude_text_document (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XINCLUDE_TEXT_DOCUMENT"]], "xinclude_text_fragment (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XINCLUDE_TEXT_FRAGMENT"]], "xinclude_unknown_encoding (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XINCLUDE_UNKNOWN_ENCODING"]], "xinclude_xptr_failed (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XINCLUDE_XPTR_FAILED"]], "xinclude_xptr_result (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XINCLUDE_XPTR_RESULT"]], "xinclude (class in lxml.etree)": [[7, "lxml.etree.XInclude"]], "xincludeerror": [[7, "lxml.etree.XIncludeError"]], "xml() (in module lxml.etree)": [[7, "lxml.etree.XML"]], "xmldtdid() (in module lxml.etree)": [[7, "lxml.etree.XMLDTDID"]], "xmlid() (in module lxml.etree)": [[7, "lxml.etree.XMLID"]], "xmlparser (class in lxml.etree)": [[7, "lxml.etree.XMLParser"]], "xmlpullparser (class in lxml.etree)": [[7, "lxml.etree.XMLPullParser"]], "xmlschema (class in lxml.etree)": [[7, "lxml.etree.XMLSchema"]], "xmlschemaerror": [[7, "lxml.etree.XMLSchemaError"]], "xmlschemaparseerror": [[7, "lxml.etree.XMLSchemaParseError"]], "xmlschemavalidateerror": [[7, "lxml.etree.XMLSchemaValidateError"]], "xmlsyntaxassertionerror": [[7, "lxml.etree.XMLSyntaxAssertionError"]], "xmlsyntaxerror": [[7, "lxml.etree.XMLSyntaxError"]], "xmltreebuilder (in module lxml.etree)": [[7, "lxml.etree.XMLTreeBuilder"]], "xpath (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.XPATH"]], "xpath_encoding_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPATH_ENCODING_ERROR"]], "xpath_expression_ok (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPATH_EXPRESSION_OK"]], "xpath_expr_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPATH_EXPR_ERROR"]], "xpath_invalid_arity (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPATH_INVALID_ARITY"]], "xpath_invalid_char_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPATH_INVALID_CHAR_ERROR"]], "xpath_invalid_ctxt_position (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPATH_INVALID_CTXT_POSITION"]], "xpath_invalid_ctxt_size (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPATH_INVALID_CTXT_SIZE"]], "xpath_invalid_operand (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPATH_INVALID_OPERAND"]], "xpath_invalid_predicate_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPATH_INVALID_PREDICATE_ERROR"]], "xpath_invalid_type (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPATH_INVALID_TYPE"]], "xpath_memory_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPATH_MEMORY_ERROR"]], "xpath_number_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPATH_NUMBER_ERROR"]], "xpath_start_literal_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPATH_START_LITERAL_ERROR"]], "xpath_unclosed_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPATH_UNCLOSED_ERROR"]], "xpath_undef_prefix_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPATH_UNDEF_PREFIX_ERROR"]], "xpath_undef_variable_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPATH_UNDEF_VARIABLE_ERROR"]], "xpath_unfinished_literal_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPATH_UNFINISHED_LITERAL_ERROR"]], "xpath_unknown_func_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPATH_UNKNOWN_FUNC_ERROR"]], "xpath_variable_ref_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPATH_VARIABLE_REF_ERROR"]], "xpointer (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.XPOINTER"]], "xptr_childseq_start (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPTR_CHILDSEQ_START"]], "xptr_eval_failed (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPTR_EVAL_FAILED"]], "xptr_extra_objects (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPTR_EXTRA_OBJECTS"]], "xptr_resource_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPTR_RESOURCE_ERROR"]], "xptr_sub_resource_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPTR_SUB_RESOURCE_ERROR"]], "xptr_syntax_error (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPTR_SYNTAX_ERROR"]], "xptr_unknown_scheme (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes.XPTR_UNKNOWN_SCHEME"]], "xpath (class in lxml.etree)": [[7, "lxml.etree.XPath"]], "xpathdocumentevaluator (class in lxml.etree)": [[7, "lxml.etree.XPathDocumentEvaluator"]], "xpathelementevaluator (class in lxml.etree)": [[7, "lxml.etree.XPathElementEvaluator"]], "xpatherror": [[7, "lxml.etree.XPathError"]], "xpathevalerror": [[7, "lxml.etree.XPathEvalError"]], "xpathevaluator() (in module lxml.etree)": [[7, "lxml.etree.XPathEvaluator"]], "xpathfunctionerror": [[7, "lxml.etree.XPathFunctionError"]], "xpathresulterror": [[7, "lxml.etree.XPathResultError"]], "xpathsyntaxerror": [[7, "lxml.etree.XPathSyntaxError"]], "xslt (class in lxml.etree)": [[7, "lxml.etree.XSLT"]], "xslt (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains.XSLT"]], "xsltaccesscontrol (class in lxml.etree)": [[7, "lxml.etree.XSLTAccessControl"]], "xsltapplyerror": [[7, "lxml.etree.XSLTApplyError"]], "xslterror": [[7, "lxml.etree.XSLTError"]], "xsltextension (class in lxml.etree)": [[7, "lxml.etree.XSLTExtension"]], "xsltextensionerror": [[7, "lxml.etree.XSLTExtensionError"]], "xsltparseerror": [[7, "lxml.etree.XSLTParseError"]], "xsltsaveerror": [[7, "lxml.etree.XSLTSaveError"]], "_attrib (class in lxml.etree)": [[7, "lxml.etree._Attrib"]], "_baseerrorlog (class in lxml.etree)": [[7, "lxml.etree._BaseErrorLog"]], "_comment (class in lxml.etree)": [[7, "lxml.etree._Comment"]], "_document (class in lxml.etree)": [[7, "lxml.etree._Document"]], "_domainerrorlog (class in lxml.etree)": [[7, "lxml.etree._DomainErrorLog"]], "_element (class in lxml.etree)": [[7, "lxml.etree._Element"]], "_elementiterator (class in lxml.etree)": [[7, "lxml.etree._ElementIterator"]], "_elementmatchiterator (class in lxml.etree)": [[7, "lxml.etree._ElementMatchIterator"]], "_elementstringresult (class in lxml.etree)": [[7, "lxml.etree._ElementStringResult"]], "_elementtagmatcher (class in lxml.etree)": [[7, "lxml.etree._ElementTagMatcher"]], "_elementtree (class in lxml.etree)": [[7, "lxml.etree._ElementTree"]], "_elementunicoderesult (class in lxml.etree)": [[7, "lxml.etree._ElementUnicodeResult"]], "_entity (class in lxml.etree)": [[7, "lxml.etree._Entity"]], "_errorlog (class in lxml.etree)": [[7, "lxml.etree._ErrorLog"]], "_feedparser (class in lxml.etree)": [[7, "lxml.etree._FeedParser"]], "_iddict (class in lxml.etree)": [[7, "lxml.etree._IDDict"]], "_listerrorlog (class in lxml.etree)": [[7, "lxml.etree._ListErrorLog"]], "_logentry (class in lxml.etree)": [[7, "lxml.etree._LogEntry"]], "_processinginstruction (class in lxml.etree)": [[7, "lxml.etree._ProcessingInstruction"]], "_rotatingerrorlog (class in lxml.etree)": [[7, "lxml.etree._RotatingErrorLog"]], "_saxparsertarget (class in lxml.etree)": [[7, "lxml.etree._SaxParserTarget"]], "_targetparserresult": [[7, "lxml.etree._TargetParserResult"]], "_validator (class in lxml.etree)": [[7, "lxml.etree._Validator"]], "_xpathevaluatorbase (class in lxml.etree)": [[7, "lxml.etree._XPathEvaluatorBase"]], "_xsltprocessinginstruction (class in lxml.etree)": [[7, "lxml.etree._XSLTProcessingInstruction"]], "_xsltresulttree (class in lxml.etree)": [[7, "lxml.etree._XSLTResultTree"]], "_append_log_message() (lxml.etree.dtd method)": [[7, "lxml.etree.DTD._append_log_message"]], "_append_log_message() (lxml.etree.relaxng method)": [[7, "lxml.etree.RelaxNG._append_log_message"]], "_append_log_message() (lxml.etree.schematron method)": [[7, "lxml.etree.Schematron._append_log_message"]], "_append_log_message() (lxml.etree.xmlschema method)": [[7, "lxml.etree.XMLSchema._append_log_message"]], "_append_log_message() (lxml.etree._validator method)": [[7, "lxml.etree._Validator._append_log_message"]], "_clear_error_log() (lxml.etree.dtd method)": [[7, "lxml.etree.DTD._clear_error_log"]], "_clear_error_log() (lxml.etree.relaxng method)": [[7, "lxml.etree.RelaxNG._clear_error_log"]], "_clear_error_log() (lxml.etree.schematron method)": [[7, "lxml.etree.Schematron._clear_error_log"]], "_clear_error_log() (lxml.etree.xmlschema method)": [[7, "lxml.etree.XMLSchema._clear_error_log"]], "_clear_error_log() (lxml.etree._validator method)": [[7, "lxml.etree._Validator._clear_error_log"]], "_getname() (lxml.etree.errordomains method)": [[7, "lxml.etree.ErrorDomains._getName"]], "_getname() (lxml.etree.errorlevels method)": [[7, "lxml.etree.ErrorLevels._getName"]], "_getname() (lxml.etree.errortypes method)": [[7, "lxml.etree.ErrorTypes._getName"]], "_getname() (lxml.etree.relaxngerrortypes method)": [[7, "lxml.etree.RelaxNGErrorTypes._getName"]], "_init() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase._init"]], "_init() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase._init"]], "_init() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase._init"]], "_init() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase._init"]], "_init() (lxml.etree._comment method)": [[7, "lxml.etree._Comment._init"]], "_init() (lxml.etree._element method)": [[7, "lxml.etree._Element._init"]], "_init() (lxml.etree._entity method)": [[7, "lxml.etree._Entity._init"]], "_init() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction._init"]], "_init() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction._init"]], "_iter_namespaces() (lxml.etree.c14nwritertarget method)": [[7, "lxml.etree.C14NWriterTarget._iter_namespaces"]], "_names (lxml.etree.errordomains attribute)": [[7, "lxml.etree.ErrorDomains._names"]], "_names (lxml.etree.errorlevels attribute)": [[7, "lxml.etree.ErrorLevels._names"]], "_names (lxml.etree.errortypes attribute)": [[7, "lxml.etree.ErrorTypes._names"]], "_names (lxml.etree.relaxngerrortypes attribute)": [[7, "lxml.etree.RelaxNGErrorTypes._names"]], "_setroot() (lxml.etree._elementtree method)": [[7, "lxml.etree._ElementTree._setroot"]], "_setroot() (lxml.etree._xsltresulttree method)": [[7, "lxml.etree._XSLTResultTree._setroot"]], "add_note() (lxml.etree.c14nerror method)": [[7, "lxml.etree.C14NError.add_note"]], "add_note() (lxml.etree.dtderror method)": [[7, "lxml.etree.DTDError.add_note"]], "add_note() (lxml.etree.dtdparseerror method)": [[7, "lxml.etree.DTDParseError.add_note"]], "add_note() (lxml.etree.dtdvalidateerror method)": [[7, "lxml.etree.DTDValidateError.add_note"]], "add_note() (lxml.etree.documentinvalid method)": [[7, "lxml.etree.DocumentInvalid.add_note"]], "add_note() (lxml.etree.error method)": [[7, "lxml.etree.Error.add_note"]], "add_note() (lxml.etree.lxmlerror method)": [[7, "lxml.etree.LxmlError.add_note"]], "add_note() (lxml.etree.lxmlregistryerror method)": [[7, "lxml.etree.LxmlRegistryError.add_note"]], "add_note() (lxml.etree.lxmlsyntaxerror method)": [[7, "lxml.etree.LxmlSyntaxError.add_note"]], "add_note() (lxml.etree.namespaceregistryerror method)": [[7, "lxml.etree.NamespaceRegistryError.add_note"]], "add_note() (lxml.etree.parseerror method)": [[7, "lxml.etree.ParseError.add_note"]], "add_note() (lxml.etree.parsererror method)": [[7, "lxml.etree.ParserError.add_note"]], "add_note() (lxml.etree.relaxngerror method)": [[7, "lxml.etree.RelaxNGError.add_note"]], "add_note() (lxml.etree.relaxngparseerror method)": [[7, "lxml.etree.RelaxNGParseError.add_note"]], "add_note() (lxml.etree.relaxngvalidateerror method)": [[7, "lxml.etree.RelaxNGValidateError.add_note"]], "add_note() (lxml.etree.schematronerror method)": [[7, "lxml.etree.SchematronError.add_note"]], "add_note() (lxml.etree.schematronparseerror method)": [[7, "lxml.etree.SchematronParseError.add_note"]], "add_note() (lxml.etree.schematronvalidateerror method)": [[7, "lxml.etree.SchematronValidateError.add_note"]], "add_note() (lxml.etree.serialisationerror method)": [[7, "lxml.etree.SerialisationError.add_note"]], "add_note() (lxml.etree.xincludeerror method)": [[7, "lxml.etree.XIncludeError.add_note"]], "add_note() (lxml.etree.xmlschemaerror method)": [[7, "lxml.etree.XMLSchemaError.add_note"]], "add_note() (lxml.etree.xmlschemaparseerror method)": [[7, "lxml.etree.XMLSchemaParseError.add_note"]], "add_note() (lxml.etree.xmlschemavalidateerror method)": [[7, "lxml.etree.XMLSchemaValidateError.add_note"]], "add_note() (lxml.etree.xmlsyntaxassertionerror method)": [[7, "lxml.etree.XMLSyntaxAssertionError.add_note"]], "add_note() (lxml.etree.xmlsyntaxerror method)": [[7, "lxml.etree.XMLSyntaxError.add_note"]], "add_note() (lxml.etree.xpatherror method)": [[7, "lxml.etree.XPathError.add_note"]], "add_note() (lxml.etree.xpathevalerror method)": [[7, "lxml.etree.XPathEvalError.add_note"]], "add_note() (lxml.etree.xpathfunctionerror method)": [[7, "lxml.etree.XPathFunctionError.add_note"]], "add_note() (lxml.etree.xpathresulterror method)": [[7, "lxml.etree.XPathResultError.add_note"]], "add_note() (lxml.etree.xpathsyntaxerror method)": [[7, "lxml.etree.XPathSyntaxError.add_note"]], "add_note() (lxml.etree.xsltapplyerror method)": [[7, "lxml.etree.XSLTApplyError.add_note"]], "add_note() (lxml.etree.xslterror method)": [[7, "lxml.etree.XSLTError.add_note"]], "add_note() (lxml.etree.xsltextensionerror method)": [[7, "lxml.etree.XSLTExtensionError.add_note"]], "add_note() (lxml.etree.xsltparseerror method)": [[7, "lxml.etree.XSLTParseError.add_note"]], "add_note() (lxml.etree.xsltsaveerror method)": [[7, "lxml.etree.XSLTSaveError.add_note"]], "add_note() (lxml.etree._targetparserresult method)": [[7, "lxml.etree._TargetParserResult.add_note"]], "addnext() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.addnext"]], "addnext() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.addnext"]], "addnext() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.addnext"]], "addnext() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.addnext"]], "addnext() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.addnext"]], "addnext() (lxml.etree._element method)": [[7, "lxml.etree._Element.addnext"]], "addnext() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.addnext"]], "addnext() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.addnext"]], "addnext() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.addnext"]], "addprevious() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.addprevious"]], "addprevious() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.addprevious"]], "addprevious() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.addprevious"]], "addprevious() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.addprevious"]], "addprevious() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.addprevious"]], "addprevious() (lxml.etree._element method)": [[7, "lxml.etree._Element.addprevious"]], "addprevious() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.addprevious"]], "addprevious() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.addprevious"]], "addprevious() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.addprevious"]], "adopt_external_document() (in module lxml.etree)": [[7, "lxml.etree.adopt_external_document"]], "append() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.append"]], "append() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.append"]], "append() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.append"]], "append() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.append"]], "append() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.append"]], "append() (lxml.etree._element method)": [[7, "lxml.etree._Element.append"]], "append() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.append"]], "append() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.append"]], "append() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.append"]], "apply() (lxml.etree.xslt method)": [[7, "lxml.etree.XSLT.apply"]], "apply_templates() (lxml.etree.xsltextension method)": [[7, "lxml.etree.XSLTExtension.apply_templates"]], "args (lxml.etree.c14nerror attribute)": [[7, "lxml.etree.C14NError.args"]], "args (lxml.etree.dtderror attribute)": [[7, "lxml.etree.DTDError.args"]], "args (lxml.etree.dtdparseerror attribute)": [[7, "lxml.etree.DTDParseError.args"]], "args (lxml.etree.dtdvalidateerror attribute)": [[7, "lxml.etree.DTDValidateError.args"]], "args (lxml.etree.documentinvalid attribute)": [[7, "lxml.etree.DocumentInvalid.args"]], "args (lxml.etree.error attribute)": [[7, "lxml.etree.Error.args"]], "args (lxml.etree.lxmlerror attribute)": [[7, "lxml.etree.LxmlError.args"]], "args (lxml.etree.lxmlregistryerror attribute)": [[7, "lxml.etree.LxmlRegistryError.args"]], "args (lxml.etree.lxmlsyntaxerror attribute)": [[7, "lxml.etree.LxmlSyntaxError.args"]], "args (lxml.etree.namespaceregistryerror attribute)": [[7, "lxml.etree.NamespaceRegistryError.args"]], "args (lxml.etree.parseerror attribute)": [[7, "lxml.etree.ParseError.args"]], "args (lxml.etree.parsererror attribute)": [[7, "lxml.etree.ParserError.args"]], "args (lxml.etree.relaxngerror attribute)": [[7, "lxml.etree.RelaxNGError.args"]], "args (lxml.etree.relaxngparseerror attribute)": [[7, "lxml.etree.RelaxNGParseError.args"]], "args (lxml.etree.relaxngvalidateerror attribute)": [[7, "lxml.etree.RelaxNGValidateError.args"]], "args (lxml.etree.schematronerror attribute)": [[7, "lxml.etree.SchematronError.args"]], "args (lxml.etree.schematronparseerror attribute)": [[7, "lxml.etree.SchematronParseError.args"]], "args (lxml.etree.schematronvalidateerror attribute)": [[7, "lxml.etree.SchematronValidateError.args"]], "args (lxml.etree.serialisationerror attribute)": [[7, "lxml.etree.SerialisationError.args"]], "args (lxml.etree.xincludeerror attribute)": [[7, "lxml.etree.XIncludeError.args"]], "args (lxml.etree.xmlschemaerror attribute)": [[7, "lxml.etree.XMLSchemaError.args"]], "args (lxml.etree.xmlschemaparseerror attribute)": [[7, "lxml.etree.XMLSchemaParseError.args"]], "args (lxml.etree.xmlschemavalidateerror attribute)": [[7, "lxml.etree.XMLSchemaValidateError.args"]], "args (lxml.etree.xmlsyntaxassertionerror attribute)": [[7, "lxml.etree.XMLSyntaxAssertionError.args"]], "args (lxml.etree.xmlsyntaxerror attribute)": [[7, "lxml.etree.XMLSyntaxError.args"]], "args (lxml.etree.xpatherror attribute)": [[7, "lxml.etree.XPathError.args"]], "args (lxml.etree.xpathevalerror attribute)": [[7, "lxml.etree.XPathEvalError.args"]], "args (lxml.etree.xpathfunctionerror attribute)": [[7, "lxml.etree.XPathFunctionError.args"]], "args (lxml.etree.xpathresulterror attribute)": [[7, "lxml.etree.XPathResultError.args"]], "args (lxml.etree.xpathsyntaxerror attribute)": [[7, "lxml.etree.XPathSyntaxError.args"]], "args (lxml.etree.xsltapplyerror attribute)": [[7, "lxml.etree.XSLTApplyError.args"]], "args (lxml.etree.xslterror attribute)": [[7, "lxml.etree.XSLTError.args"]], "args (lxml.etree.xsltextensionerror attribute)": [[7, "lxml.etree.XSLTExtensionError.args"]], "args (lxml.etree.xsltparseerror attribute)": [[7, "lxml.etree.XSLTParseError.args"]], "args (lxml.etree.xsltsaveerror attribute)": [[7, "lxml.etree.XSLTSaveError.args"]], "args (lxml.etree._targetparserresult attribute)": [[7, "lxml.etree._TargetParserResult.args"]], "assertvalid() (lxml.etree.dtd method)": [[7, "lxml.etree.DTD.assertValid"]], "assertvalid() (lxml.etree.relaxng method)": [[7, "lxml.etree.RelaxNG.assertValid"]], "assertvalid() (lxml.etree.schematron method)": [[7, "lxml.etree.Schematron.assertValid"]], "assertvalid() (lxml.etree.xmlschema method)": [[7, "lxml.etree.XMLSchema.assertValid"]], "assertvalid() (lxml.etree._validator method)": [[7, "lxml.etree._Validator.assertValid"]], "assert_() (lxml.etree.dtd method)": [[7, "lxml.etree.DTD.assert_"]], "assert_() (lxml.etree.relaxng method)": [[7, "lxml.etree.RelaxNG.assert_"]], "assert_() (lxml.etree.schematron method)": [[7, "lxml.etree.Schematron.assert_"]], "assert_() (lxml.etree.xmlschema method)": [[7, "lxml.etree.XMLSchema.assert_"]], "assert_() (lxml.etree._validator method)": [[7, "lxml.etree._Validator.assert_"]], "attrib (lxml.etree.commentbase attribute)": [[7, "lxml.etree.CommentBase.attrib"]], "attrib (lxml.etree.elementbase attribute)": [[7, "lxml.etree.ElementBase.attrib"]], "attrib (lxml.etree.entitybase attribute)": [[7, "lxml.etree.EntityBase.attrib"]], "attrib (lxml.etree.pibase attribute)": [[7, "lxml.etree.PIBase.attrib"]], "attrib (lxml.etree._comment attribute)": [[7, "lxml.etree._Comment.attrib"]], "attrib (lxml.etree._element attribute)": [[7, "lxml.etree._Element.attrib"]], "attrib (lxml.etree._entity attribute)": [[7, "lxml.etree._Entity.attrib"]], "attrib (lxml.etree._processinginstruction attribute)": [[7, "lxml.etree._ProcessingInstruction.attrib"]], "attrib (lxml.etree._xsltprocessinginstruction attribute)": [[7, "lxml.etree._XSLTProcessingInstruction.attrib"]], "attrname (lxml.etree._elementunicoderesult attribute)": [[7, "lxml.etree._ElementUnicodeResult.attrname"]], "base (lxml.etree.commentbase attribute)": [[7, "lxml.etree.CommentBase.base"]], "base (lxml.etree.elementbase attribute)": [[7, "lxml.etree.ElementBase.base"]], "base (lxml.etree.entitybase attribute)": [[7, "lxml.etree.EntityBase.base"]], "base (lxml.etree.pibase attribute)": [[7, "lxml.etree.PIBase.base"]], "base (lxml.etree._comment attribute)": [[7, "lxml.etree._Comment.base"]], "base (lxml.etree._element attribute)": [[7, "lxml.etree._Element.base"]], "base (lxml.etree._entity attribute)": [[7, "lxml.etree._Entity.base"]], "base (lxml.etree._processinginstruction attribute)": [[7, "lxml.etree._ProcessingInstruction.base"]], "base (lxml.etree._xsltprocessinginstruction attribute)": [[7, "lxml.etree._XSLTProcessingInstruction.base"]], "canonicalize() (in module lxml.etree)": [[7, "lxml.etree.canonicalize"]], "capitalize() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.capitalize"]], "capitalize() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.capitalize"]], "casefold() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.casefold"]], "center() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.center"]], "center() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.center"]], "cleanup_namespaces() (in module lxml.etree)": [[7, "lxml.etree.cleanup_namespaces"]], "clear() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.clear"]], "clear() (lxml.etree.docinfo method)": [[7, "lxml.etree.DocInfo.clear"]], "clear() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.clear"]], "clear() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.clear"]], "clear() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.clear"]], "clear() (lxml.etree._attrib method)": [[7, "lxml.etree._Attrib.clear"]], "clear() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.clear"]], "clear() (lxml.etree._domainerrorlog method)": [[7, "lxml.etree._DomainErrorLog.clear"]], "clear() (lxml.etree._element method)": [[7, "lxml.etree._Element.clear"]], "clear() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.clear"]], "clear() (lxml.etree._errorlog method)": [[7, "lxml.etree._ErrorLog.clear"]], "clear() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.clear"]], "clear() (lxml.etree._rotatingerrorlog method)": [[7, "lxml.etree._RotatingErrorLog.clear"]], "clear() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.clear"]], "clear_error_log() (in module lxml.etree)": [[7, "lxml.etree.clear_error_log"]], "close() (lxml.etree.c14nwritertarget method)": [[7, "lxml.etree.C14NWriterTarget.close"]], "close() (lxml.etree.etcompatxmlparser method)": [[7, "lxml.etree.ETCompatXMLParser.close"]], "close() (lxml.etree.htmlparser method)": [[7, "lxml.etree.HTMLParser.close"]], "close() (lxml.etree.htmlpullparser method)": [[7, "lxml.etree.HTMLPullParser.close"]], "close() (lxml.etree.treebuilder method)": [[7, "lxml.etree.TreeBuilder.close"]], "close() (lxml.etree.xmlparser method)": [[7, "lxml.etree.XMLParser.close"]], "close() (lxml.etree.xmlpullparser method)": [[7, "lxml.etree.XMLPullParser.close"]], "close() (lxml.etree._feedparser method)": [[7, "lxml.etree._FeedParser.close"]], "column (lxml.etree._logentry attribute)": [[7, "lxml.etree._LogEntry.column"]], "comment() (lxml.etree.c14nwritertarget method)": [[7, "lxml.etree.C14NWriterTarget.comment"]], "comment() (lxml.etree.treebuilder method)": [[7, "lxml.etree.TreeBuilder.comment"]], "comment_class (lxml.etree.elementdefaultclasslookup attribute)": [[7, "lxml.etree.ElementDefaultClassLookup.comment_class"]], "copy() (lxml.etree.etcompatxmlparser method)": [[7, "lxml.etree.ETCompatXMLParser.copy"]], "copy() (lxml.etree.htmlparser method)": [[7, "lxml.etree.HTMLParser.copy"]], "copy() (lxml.etree.htmlpullparser method)": [[7, "lxml.etree.HTMLPullParser.copy"]], "copy() (lxml.etree.pyerrorlog method)": [[7, "lxml.etree.PyErrorLog.copy"]], "copy() (lxml.etree.xmlparser method)": [[7, "lxml.etree.XMLParser.copy"]], "copy() (lxml.etree.xmlpullparser method)": [[7, "lxml.etree.XMLPullParser.copy"]], "copy() (lxml.etree._baseerrorlog method)": [[7, "lxml.etree._BaseErrorLog.copy"]], "copy() (lxml.etree._domainerrorlog method)": [[7, "lxml.etree._DomainErrorLog.copy"]], "copy() (lxml.etree._errorlog method)": [[7, "lxml.etree._ErrorLog.copy"]], "copy() (lxml.etree._feedparser method)": [[7, "lxml.etree._FeedParser.copy"]], "copy() (lxml.etree._iddict method)": [[7, "lxml.etree._IDDict.copy"]], "copy() (lxml.etree._listerrorlog method)": [[7, "lxml.etree._ListErrorLog.copy"]], "copy() (lxml.etree._rotatingerrorlog method)": [[7, "lxml.etree._RotatingErrorLog.copy"]], "count() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.count"]], "count() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.count"]], "cssselect() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.cssselect"]], "cssselect() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.cssselect"]], "cssselect() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.cssselect"]], "cssselect() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.cssselect"]], "cssselect() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.cssselect"]], "cssselect() (lxml.etree._element method)": [[7, "lxml.etree._Element.cssselect"]], "cssselect() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.cssselect"]], "cssselect() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.cssselect"]], "cssselect() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.cssselect"]], "data() (lxml.etree.c14nwritertarget method)": [[7, "lxml.etree.C14NWriterTarget.data"]], "data() (lxml.etree.treebuilder method)": [[7, "lxml.etree.TreeBuilder.data"]], "decode() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.decode"]], "docinfo (lxml.etree._elementtree attribute)": [[7, "lxml.etree._ElementTree.docinfo"]], "docinfo (lxml.etree._xsltresulttree attribute)": [[7, "lxml.etree._XSLTResultTree.docinfo"]], "doctype (lxml.etree.docinfo attribute)": [[7, "lxml.etree.DocInfo.doctype"]], "domain (lxml.etree._logentry attribute)": [[7, "lxml.etree._LogEntry.domain"]], "domain_name (lxml.etree._logentry attribute)": [[7, "lxml.etree._LogEntry.domain_name"]], "dump() (in module lxml.etree)": [[7, "lxml.etree.dump"]], "element_class (lxml.etree.elementdefaultclasslookup attribute)": [[7, "lxml.etree.ElementDefaultClassLookup.element_class"]], "elements() (lxml.etree.dtd method)": [[7, "lxml.etree.DTD.elements"]], "encode() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.encode"]], "encoding (lxml.etree.docinfo attribute)": [[7, "lxml.etree.DocInfo.encoding"]], "end() (lxml.etree.c14nwritertarget method)": [[7, "lxml.etree.C14NWriterTarget.end"]], "end() (lxml.etree.treebuilder method)": [[7, "lxml.etree.TreeBuilder.end"]], "end_lineno (lxml.etree.lxmlsyntaxerror attribute)": [[7, "lxml.etree.LxmlSyntaxError.end_lineno"]], "end_lineno (lxml.etree.parseerror attribute)": [[7, "lxml.etree.ParseError.end_lineno"]], "end_lineno (lxml.etree.xmlsyntaxassertionerror attribute)": [[7, "lxml.etree.XMLSyntaxAssertionError.end_lineno"]], "end_lineno (lxml.etree.xmlsyntaxerror attribute)": [[7, "lxml.etree.XMLSyntaxError.end_lineno"]], "end_lineno (lxml.etree.xpathsyntaxerror attribute)": [[7, "lxml.etree.XPathSyntaxError.end_lineno"]], "end_offset (lxml.etree.lxmlsyntaxerror attribute)": [[7, "lxml.etree.LxmlSyntaxError.end_offset"]], "end_offset (lxml.etree.parseerror attribute)": [[7, "lxml.etree.ParseError.end_offset"]], "end_offset (lxml.etree.xmlsyntaxassertionerror attribute)": [[7, "lxml.etree.XMLSyntaxAssertionError.end_offset"]], "end_offset (lxml.etree.xmlsyntaxerror attribute)": [[7, "lxml.etree.XMLSyntaxError.end_offset"]], "end_offset (lxml.etree.xpathsyntaxerror attribute)": [[7, "lxml.etree.XPathSyntaxError.end_offset"]], "endswith() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.endswith"]], "endswith() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.endswith"]], "entities() (lxml.etree.dtd method)": [[7, "lxml.etree.DTD.entities"]], "entity_class (lxml.etree.elementdefaultclasslookup attribute)": [[7, "lxml.etree.ElementDefaultClassLookup.entity_class"]], "error_log (lxml.etree.dtd attribute)": [[7, "lxml.etree.DTD.error_log"]], "error_log (lxml.etree.etcompatxmlparser attribute)": [[7, "lxml.etree.ETCompatXMLParser.error_log"]], "error_log (lxml.etree.etxpath attribute)": [[7, "lxml.etree.ETXPath.error_log"]], "error_log (lxml.etree.htmlparser attribute)": [[7, "lxml.etree.HTMLParser.error_log"]], "error_log (lxml.etree.htmlpullparser attribute)": [[7, "lxml.etree.HTMLPullParser.error_log"]], "error_log (lxml.etree.relaxng attribute)": [[7, "lxml.etree.RelaxNG.error_log"]], "error_log (lxml.etree.schematron attribute)": [[7, "lxml.etree.Schematron.error_log"]], "error_log (lxml.etree.xinclude attribute)": [[7, "lxml.etree.XInclude.error_log"]], "error_log (lxml.etree.xmlparser attribute)": [[7, "lxml.etree.XMLParser.error_log"]], "error_log (lxml.etree.xmlpullparser attribute)": [[7, "lxml.etree.XMLPullParser.error_log"]], "error_log (lxml.etree.xmlschema attribute)": [[7, "lxml.etree.XMLSchema.error_log"]], "error_log (lxml.etree.xpath attribute)": [[7, "lxml.etree.XPath.error_log"]], "error_log (lxml.etree.xpathdocumentevaluator attribute)": [[7, "lxml.etree.XPathDocumentEvaluator.error_log"]], "error_log (lxml.etree.xpathelementevaluator attribute)": [[7, "lxml.etree.XPathElementEvaluator.error_log"]], "error_log (lxml.etree.xslt attribute)": [[7, "lxml.etree.XSLT.error_log"]], "error_log (lxml.etree._feedparser attribute)": [[7, "lxml.etree._FeedParser.error_log"]], "error_log (lxml.etree._validator attribute)": [[7, "lxml.etree._Validator.error_log"]], "error_log (lxml.etree._xpathevaluatorbase attribute)": [[7, "lxml.etree._XPathEvaluatorBase.error_log"]], "error_log (lxml.etree.iterparse attribute)": [[7, "lxml.etree.iterparse.error_log"]], "evaluate() (lxml.etree.etxpath method)": [[7, "lxml.etree.ETXPath.evaluate"]], "evaluate() (lxml.etree.xpath method)": [[7, "lxml.etree.XPath.evaluate"]], "evaluate() (lxml.etree.xpathdocumentevaluator method)": [[7, "lxml.etree.XPathDocumentEvaluator.evaluate"]], "evaluate() (lxml.etree.xpathelementevaluator method)": [[7, "lxml.etree.XPathElementEvaluator.evaluate"]], "evaluate() (lxml.etree._xpathevaluatorbase method)": [[7, "lxml.etree._XPathEvaluatorBase.evaluate"]], "execute() (lxml.etree.xsltextension method)": [[7, "lxml.etree.XSLTExtension.execute"]], "expandtabs() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.expandtabs"]], "expandtabs() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.expandtabs"]], "extend() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.extend"]], "extend() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.extend"]], "extend() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.extend"]], "extend() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.extend"]], "extend() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.extend"]], "extend() (lxml.etree._element method)": [[7, "lxml.etree._Element.extend"]], "extend() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.extend"]], "extend() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.extend"]], "extend() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.extend"]], "externaldtd (lxml.etree.docinfo attribute)": [[7, "lxml.etree.DocInfo.externalDTD"]], "external_id (lxml.etree.dtd attribute)": [[7, "lxml.etree.DTD.external_id"]], "fallback (lxml.etree.attributebasedelementclasslookup attribute)": [[7, "lxml.etree.AttributeBasedElementClassLookup.fallback"]], "fallback (lxml.etree.customelementclasslookup attribute)": [[7, "lxml.etree.CustomElementClassLookup.fallback"]], "fallback (lxml.etree.elementnamespaceclasslookup attribute)": [[7, "lxml.etree.ElementNamespaceClassLookup.fallback"]], "fallback (lxml.etree.fallbackelementclasslookup attribute)": [[7, "lxml.etree.FallbackElementClassLookup.fallback"]], "fallback (lxml.etree.parserbasedelementclasslookup attribute)": [[7, "lxml.etree.ParserBasedElementClassLookup.fallback"]], "fallback (lxml.etree.pythonelementclasslookup attribute)": [[7, "lxml.etree.PythonElementClassLookup.fallback"]], "feed() (lxml.etree.etcompatxmlparser method)": [[7, "lxml.etree.ETCompatXMLParser.feed"]], "feed() (lxml.etree.htmlparser method)": [[7, "lxml.etree.HTMLParser.feed"]], "feed() (lxml.etree.htmlpullparser method)": [[7, "lxml.etree.HTMLPullParser.feed"]], "feed() (lxml.etree.xmlparser method)": [[7, "lxml.etree.XMLParser.feed"]], "feed() (lxml.etree.xmlpullparser method)": [[7, "lxml.etree.XMLPullParser.feed"]], "feed() (lxml.etree._feedparser method)": [[7, "lxml.etree._FeedParser.feed"]], "feed_error_log (lxml.etree.etcompatxmlparser attribute)": [[7, "lxml.etree.ETCompatXMLParser.feed_error_log"]], "feed_error_log (lxml.etree.htmlparser attribute)": [[7, "lxml.etree.HTMLParser.feed_error_log"]], "feed_error_log (lxml.etree.htmlpullparser attribute)": [[7, "lxml.etree.HTMLPullParser.feed_error_log"]], "feed_error_log (lxml.etree.xmlparser attribute)": [[7, "lxml.etree.XMLParser.feed_error_log"]], "feed_error_log (lxml.etree.xmlpullparser attribute)": [[7, "lxml.etree.XMLPullParser.feed_error_log"]], "feed_error_log (lxml.etree._feedparser attribute)": [[7, "lxml.etree._FeedParser.feed_error_log"]], "filename (lxml.etree.lxmlsyntaxerror attribute)": [[7, "lxml.etree.LxmlSyntaxError.filename"]], "filename (lxml.etree.parseerror attribute)": [[7, "lxml.etree.ParseError.filename"]], "filename (lxml.etree.xmlsyntaxassertionerror attribute)": [[7, "lxml.etree.XMLSyntaxAssertionError.filename"]], "filename (lxml.etree.xmlsyntaxerror attribute)": [[7, "lxml.etree.XMLSyntaxError.filename"]], "filename (lxml.etree.xpathsyntaxerror attribute)": [[7, "lxml.etree.XPathSyntaxError.filename"]], "filename (lxml.etree._logentry attribute)": [[7, "lxml.etree._LogEntry.filename"]], "filter_domains() (lxml.etree._domainerrorlog method)": [[7, "lxml.etree._DomainErrorLog.filter_domains"]], "filter_domains() (lxml.etree._errorlog method)": [[7, "lxml.etree._ErrorLog.filter_domains"]], "filter_domains() (lxml.etree._listerrorlog method)": [[7, "lxml.etree._ListErrorLog.filter_domains"]], "filter_domains() (lxml.etree._rotatingerrorlog method)": [[7, "lxml.etree._RotatingErrorLog.filter_domains"]], "filter_from_errors() (lxml.etree._domainerrorlog method)": [[7, "lxml.etree._DomainErrorLog.filter_from_errors"]], "filter_from_errors() (lxml.etree._errorlog method)": [[7, "lxml.etree._ErrorLog.filter_from_errors"]], "filter_from_errors() (lxml.etree._listerrorlog method)": [[7, "lxml.etree._ListErrorLog.filter_from_errors"]], "filter_from_errors() (lxml.etree._rotatingerrorlog method)": [[7, "lxml.etree._RotatingErrorLog.filter_from_errors"]], "filter_from_fatals() (lxml.etree._domainerrorlog method)": [[7, "lxml.etree._DomainErrorLog.filter_from_fatals"]], "filter_from_fatals() (lxml.etree._errorlog method)": [[7, "lxml.etree._ErrorLog.filter_from_fatals"]], "filter_from_fatals() (lxml.etree._listerrorlog method)": [[7, "lxml.etree._ListErrorLog.filter_from_fatals"]], "filter_from_fatals() (lxml.etree._rotatingerrorlog method)": [[7, "lxml.etree._RotatingErrorLog.filter_from_fatals"]], "filter_from_level() (lxml.etree._domainerrorlog method)": [[7, "lxml.etree._DomainErrorLog.filter_from_level"]], "filter_from_level() (lxml.etree._errorlog method)": [[7, "lxml.etree._ErrorLog.filter_from_level"]], "filter_from_level() (lxml.etree._listerrorlog method)": [[7, "lxml.etree._ListErrorLog.filter_from_level"]], "filter_from_level() (lxml.etree._rotatingerrorlog method)": [[7, "lxml.etree._RotatingErrorLog.filter_from_level"]], "filter_from_warnings() (lxml.etree._domainerrorlog method)": [[7, "lxml.etree._DomainErrorLog.filter_from_warnings"]], "filter_from_warnings() (lxml.etree._errorlog method)": [[7, "lxml.etree._ErrorLog.filter_from_warnings"]], "filter_from_warnings() (lxml.etree._listerrorlog method)": [[7, "lxml.etree._ListErrorLog.filter_from_warnings"]], "filter_from_warnings() (lxml.etree._rotatingerrorlog method)": [[7, "lxml.etree._RotatingErrorLog.filter_from_warnings"]], "filter_levels() (lxml.etree._domainerrorlog method)": [[7, "lxml.etree._DomainErrorLog.filter_levels"]], "filter_levels() (lxml.etree._errorlog method)": [[7, "lxml.etree._ErrorLog.filter_levels"]], "filter_levels() (lxml.etree._listerrorlog method)": [[7, "lxml.etree._ListErrorLog.filter_levels"]], "filter_levels() (lxml.etree._rotatingerrorlog method)": [[7, "lxml.etree._RotatingErrorLog.filter_levels"]], "filter_types() (lxml.etree._domainerrorlog method)": [[7, "lxml.etree._DomainErrorLog.filter_types"]], "filter_types() (lxml.etree._errorlog method)": [[7, "lxml.etree._ErrorLog.filter_types"]], "filter_types() (lxml.etree._listerrorlog method)": [[7, "lxml.etree._ListErrorLog.filter_types"]], "filter_types() (lxml.etree._rotatingerrorlog method)": [[7, "lxml.etree._RotatingErrorLog.filter_types"]], "find() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.find"]], "find() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.find"]], "find() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.find"]], "find() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.find"]], "find() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.find"]], "find() (lxml.etree._element method)": [[7, "lxml.etree._Element.find"]], "find() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.find"]], "find() (lxml.etree._elementtree method)": [[7, "lxml.etree._ElementTree.find"]], "find() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.find"]], "find() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.find"]], "find() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.find"]], "find() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.find"]], "find() (lxml.etree._xsltresulttree method)": [[7, "lxml.etree._XSLTResultTree.find"]], "findall() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.findall"]], "findall() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.findall"]], "findall() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.findall"]], "findall() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.findall"]], "findall() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.findall"]], "findall() (lxml.etree._element method)": [[7, "lxml.etree._Element.findall"]], "findall() (lxml.etree._elementtree method)": [[7, "lxml.etree._ElementTree.findall"]], "findall() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.findall"]], "findall() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.findall"]], "findall() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.findall"]], "findall() (lxml.etree._xsltresulttree method)": [[7, "lxml.etree._XSLTResultTree.findall"]], "findtext() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.findtext"]], "findtext() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.findtext"]], "findtext() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.findtext"]], "findtext() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.findtext"]], "findtext() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.findtext"]], "findtext() (lxml.etree._element method)": [[7, "lxml.etree._Element.findtext"]], "findtext() (lxml.etree._elementtree method)": [[7, "lxml.etree._ElementTree.findtext"]], "findtext() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.findtext"]], "findtext() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.findtext"]], "findtext() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.findtext"]], "findtext() (lxml.etree._xsltresulttree method)": [[7, "lxml.etree._XSLTResultTree.findtext"]], "format() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.format"]], "format_map() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.format_map"]], "from_rnc_string() (lxml.etree.relaxng class method)": [[7, "lxml.etree.RelaxNG.from_rnc_string"]], "fromhex() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.fromhex"]], "fromstring() (in module lxml.etree)": [[7, "lxml.etree.fromstring"]], "fromstringlist() (in module lxml.etree)": [[7, "lxml.etree.fromstringlist"]], "get() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.get"]], "get() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.get"]], "get() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.get"]], "get() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.get"]], "get() (lxml.etree._attrib method)": [[7, "lxml.etree._Attrib.get"]], "get() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.get"]], "get() (lxml.etree._element method)": [[7, "lxml.etree._Element.get"]], "get() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.get"]], "get() (lxml.etree._iddict method)": [[7, "lxml.etree._IDDict.get"]], "get() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.get"]], "get() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.get"]], "get_default_parser() (in module lxml.etree)": [[7, "lxml.etree.get_default_parser"]], "get_namespace() (lxml.etree.elementnamespaceclasslookup method)": [[7, "lxml.etree.ElementNamespaceClassLookup.get_namespace"]], "getchildren() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.getchildren"]], "getchildren() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.getchildren"]], "getchildren() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.getchildren"]], "getchildren() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.getchildren"]], "getchildren() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.getchildren"]], "getchildren() (lxml.etree._element method)": [[7, "lxml.etree._Element.getchildren"]], "getchildren() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.getchildren"]], "getchildren() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.getchildren"]], "getchildren() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.getchildren"]], "getelementpath() (lxml.etree._elementtree method)": [[7, "lxml.etree._ElementTree.getelementpath"]], "getelementpath() (lxml.etree._xsltresulttree method)": [[7, "lxml.etree._XSLTResultTree.getelementpath"]], "getiterator() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.getiterator"]], "getiterator() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.getiterator"]], "getiterator() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.getiterator"]], "getiterator() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.getiterator"]], "getiterator() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.getiterator"]], "getiterator() (lxml.etree._element method)": [[7, "lxml.etree._Element.getiterator"]], "getiterator() (lxml.etree._elementtree method)": [[7, "lxml.etree._ElementTree.getiterator"]], "getiterator() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.getiterator"]], "getiterator() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.getiterator"]], "getiterator() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.getiterator"]], "getiterator() (lxml.etree._xsltresulttree method)": [[7, "lxml.etree._XSLTResultTree.getiterator"]], "getnext() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.getnext"]], "getnext() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.getnext"]], "getnext() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.getnext"]], "getnext() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.getnext"]], "getnext() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.getnext"]], "getnext() (lxml.etree._element method)": [[7, "lxml.etree._Element.getnext"]], "getnext() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.getnext"]], "getnext() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.getnext"]], "getnext() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.getnext"]], "getparent() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.getparent"]], "getparent() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.getparent"]], "getparent() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.getparent"]], "getparent() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.getparent"]], "getparent() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.getparent"]], "getparent() (lxml.etree._element method)": [[7, "lxml.etree._Element.getparent"]], "getparent() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.getparent"]], "getparent() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.getparent"]], "getparent() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.getparent"]], "getparent() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.getparent"]], "getparent() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.getparent"]], "getpath() (lxml.etree._elementtree method)": [[7, "lxml.etree._ElementTree.getpath"]], "getpath() (lxml.etree._xsltresulttree method)": [[7, "lxml.etree._XSLTResultTree.getpath"]], "getprevious() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.getprevious"]], "getprevious() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.getprevious"]], "getprevious() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.getprevious"]], "getprevious() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.getprevious"]], "getprevious() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.getprevious"]], "getprevious() (lxml.etree._element method)": [[7, "lxml.etree._Element.getprevious"]], "getprevious() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.getprevious"]], "getprevious() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.getprevious"]], "getprevious() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.getprevious"]], "getroot() (lxml.etree._elementtree method)": [[7, "lxml.etree._ElementTree.getroot"]], "getroot() (lxml.etree._xsltresulttree method)": [[7, "lxml.etree._XSLTResultTree.getroot"]], "getroottree() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.getroottree"]], "getroottree() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.getroottree"]], "getroottree() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.getroottree"]], "getroottree() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.getroottree"]], "getroottree() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.getroottree"]], "getroottree() (lxml.etree._element method)": [[7, "lxml.etree._Element.getroottree"]], "getroottree() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.getroottree"]], "getroottree() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.getroottree"]], "getroottree() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.getroottree"]], "has_key() (lxml.etree._attrib method)": [[7, "lxml.etree._Attrib.has_key"]], "has_key() (lxml.etree._iddict method)": [[7, "lxml.etree._IDDict.has_key"]], "hex() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.hex"]], "htmlfile (class in lxml.etree)": [[7, "lxml.etree.htmlfile"]], "indent() (in module lxml.etree)": [[7, "lxml.etree.indent"]], "index() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.index"]], "index() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.index"]], "index() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.index"]], "index() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.index"]], "index() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.index"]], "index() (lxml.etree._element method)": [[7, "lxml.etree._Element.index"]], "index() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.index"]], "index() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.index"]], "index() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.index"]], "index() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.index"]], "index() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.index"]], "insert() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.insert"]], "insert() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.insert"]], "insert() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.insert"]], "insert() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.insert"]], "insert() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.insert"]], "insert() (lxml.etree._element method)": [[7, "lxml.etree._Element.insert"]], "insert() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.insert"]], "insert() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.insert"]], "insert() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.insert"]], "internaldtd (lxml.etree.docinfo attribute)": [[7, "lxml.etree.DocInfo.internalDTD"]], "is_attribute (lxml.etree._elementunicoderesult attribute)": [[7, "lxml.etree._ElementUnicodeResult.is_attribute"]], "is_tail (lxml.etree._elementunicoderesult attribute)": [[7, "lxml.etree._ElementUnicodeResult.is_tail"]], "is_text (lxml.etree._elementunicoderesult attribute)": [[7, "lxml.etree._ElementUnicodeResult.is_text"]], "isalnum() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.isalnum"]], "isalnum() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.isalnum"]], "isalpha() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.isalpha"]], "isalpha() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.isalpha"]], "isascii() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.isascii"]], "isascii() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.isascii"]], "isdecimal() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.isdecimal"]], "isdigit() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.isdigit"]], "isdigit() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.isdigit"]], "iselement() (in module lxml.etree)": [[7, "lxml.etree.iselement"]], "isidentifier() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.isidentifier"]], "islower() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.islower"]], "islower() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.islower"]], "isnumeric() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.isnumeric"]], "isprintable() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.isprintable"]], "isspace() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.isspace"]], "isspace() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.isspace"]], "istitle() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.istitle"]], "istitle() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.istitle"]], "isupper() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.isupper"]], "isupper() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.isupper"]], "items() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.items"]], "items() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.items"]], "items() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.items"]], "items() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.items"]], "items() (lxml.etree._attrib method)": [[7, "lxml.etree._Attrib.items"]], "items() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.items"]], "items() (lxml.etree._element method)": [[7, "lxml.etree._Element.items"]], "items() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.items"]], "items() (lxml.etree._iddict method)": [[7, "lxml.etree._IDDict.items"]], "items() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.items"]], "items() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.items"]], "iter() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.iter"]], "iter() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.iter"]], "iter() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.iter"]], "iter() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.iter"]], "iter() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.iter"]], "iter() (lxml.etree._element method)": [[7, "lxml.etree._Element.iter"]], "iter() (lxml.etree._elementtree method)": [[7, "lxml.etree._ElementTree.iter"]], "iter() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.iter"]], "iter() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.iter"]], "iter() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.iter"]], "iter() (lxml.etree._xsltresulttree method)": [[7, "lxml.etree._XSLTResultTree.iter"]], "iterancestors() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.iterancestors"]], "iterancestors() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.iterancestors"]], "iterancestors() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.iterancestors"]], "iterancestors() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.iterancestors"]], "iterancestors() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.iterancestors"]], "iterancestors() (lxml.etree._element method)": [[7, "lxml.etree._Element.iterancestors"]], "iterancestors() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.iterancestors"]], "iterancestors() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.iterancestors"]], "iterancestors() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.iterancestors"]], "iterchildren() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.iterchildren"]], "iterchildren() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.iterchildren"]], "iterchildren() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.iterchildren"]], "iterchildren() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.iterchildren"]], "iterchildren() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.iterchildren"]], "iterchildren() (lxml.etree._element method)": [[7, "lxml.etree._Element.iterchildren"]], "iterchildren() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.iterchildren"]], "iterchildren() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.iterchildren"]], "iterchildren() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.iterchildren"]], "iterdescendants() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.iterdescendants"]], "iterdescendants() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.iterdescendants"]], "iterdescendants() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.iterdescendants"]], "iterdescendants() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.iterdescendants"]], "iterdescendants() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.iterdescendants"]], "iterdescendants() (lxml.etree._element method)": [[7, "lxml.etree._Element.iterdescendants"]], "iterdescendants() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.iterdescendants"]], "iterdescendants() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.iterdescendants"]], "iterdescendants() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.iterdescendants"]], "iterelements() (lxml.etree.dtd method)": [[7, "lxml.etree.DTD.iterelements"]], "iterentities() (lxml.etree.dtd method)": [[7, "lxml.etree.DTD.iterentities"]], "iterfind() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.iterfind"]], "iterfind() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.iterfind"]], "iterfind() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.iterfind"]], "iterfind() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.iterfind"]], "iterfind() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.iterfind"]], "iterfind() (lxml.etree._element method)": [[7, "lxml.etree._Element.iterfind"]], "iterfind() (lxml.etree._elementtree method)": [[7, "lxml.etree._ElementTree.iterfind"]], "iterfind() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.iterfind"]], "iterfind() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.iterfind"]], "iterfind() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.iterfind"]], "iterfind() (lxml.etree._xsltresulttree method)": [[7, "lxml.etree._XSLTResultTree.iterfind"]], "iteritems() (lxml.etree._attrib method)": [[7, "lxml.etree._Attrib.iteritems"]], "iteritems() (lxml.etree._iddict method)": [[7, "lxml.etree._IDDict.iteritems"]], "iterkeys() (lxml.etree._attrib method)": [[7, "lxml.etree._Attrib.iterkeys"]], "iterkeys() (lxml.etree._iddict method)": [[7, "lxml.etree._IDDict.iterkeys"]], "iterparse (class in lxml.etree)": [[7, "lxml.etree.iterparse"]], "itersiblings() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.itersiblings"]], "itersiblings() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.itersiblings"]], "itersiblings() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.itersiblings"]], "itersiblings() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.itersiblings"]], "itersiblings() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.itersiblings"]], "itersiblings() (lxml.etree._element method)": [[7, "lxml.etree._Element.itersiblings"]], "itersiblings() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.itersiblings"]], "itersiblings() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.itersiblings"]], "itersiblings() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.itersiblings"]], "itertext() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.itertext"]], "itertext() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.itertext"]], "itertext() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.itertext"]], "itertext() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.itertext"]], "itertext() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.itertext"]], "itertext() (lxml.etree._element method)": [[7, "lxml.etree._Element.itertext"]], "itertext() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.itertext"]], "itertext() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.itertext"]], "itertext() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.itertext"]], "itervalues() (lxml.etree._attrib method)": [[7, "lxml.etree._Attrib.itervalues"]], "itervalues() (lxml.etree._iddict method)": [[7, "lxml.etree._IDDict.itervalues"]], "iterwalk (class in lxml.etree)": [[7, "lxml.etree.iterwalk"]], "join() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.join"]], "join() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.join"]], "keys() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.keys"]], "keys() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.keys"]], "keys() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.keys"]], "keys() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.keys"]], "keys() (lxml.etree._attrib method)": [[7, "lxml.etree._Attrib.keys"]], "keys() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.keys"]], "keys() (lxml.etree._element method)": [[7, "lxml.etree._Element.keys"]], "keys() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.keys"]], "keys() (lxml.etree._iddict method)": [[7, "lxml.etree._IDDict.keys"]], "keys() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.keys"]], "keys() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.keys"]], "last_error (lxml.etree.pyerrorlog attribute)": [[7, "lxml.etree.PyErrorLog.last_error"]], "last_error (lxml.etree._baseerrorlog attribute)": [[7, "lxml.etree._BaseErrorLog.last_error"]], "last_error (lxml.etree._domainerrorlog attribute)": [[7, "lxml.etree._DomainErrorLog.last_error"]], "last_error (lxml.etree._errorlog attribute)": [[7, "lxml.etree._ErrorLog.last_error"]], "last_error (lxml.etree._listerrorlog attribute)": [[7, "lxml.etree._ListErrorLog.last_error"]], "last_error (lxml.etree._rotatingerrorlog attribute)": [[7, "lxml.etree._RotatingErrorLog.last_error"]], "level (lxml.etree._logentry attribute)": [[7, "lxml.etree._LogEntry.level"]], "level_map (lxml.etree.pyerrorlog attribute)": [[7, "lxml.etree.PyErrorLog.level_map"]], "level_name (lxml.etree._logentry attribute)": [[7, "lxml.etree._LogEntry.level_name"]], "line (lxml.etree._logentry attribute)": [[7, "lxml.etree._LogEntry.line"]], "lineno (lxml.etree.lxmlsyntaxerror attribute)": [[7, "lxml.etree.LxmlSyntaxError.lineno"]], "lineno (lxml.etree.parseerror attribute)": [[7, "lxml.etree.ParseError.lineno"]], "lineno (lxml.etree.xmlsyntaxassertionerror attribute)": [[7, "lxml.etree.XMLSyntaxAssertionError.lineno"]], "lineno (lxml.etree.xmlsyntaxerror attribute)": [[7, "lxml.etree.XMLSyntaxError.lineno"]], "lineno (lxml.etree.xpathsyntaxerror attribute)": [[7, "lxml.etree.XPathSyntaxError.lineno"]], "ljust() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.ljust"]], "ljust() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.ljust"]], "localname (lxml.etree.qname attribute)": [[7, "lxml.etree.QName.localname"]], "log() (lxml.etree.pyerrorlog method)": [[7, "lxml.etree.PyErrorLog.log"]], "lookup() (lxml.etree.customelementclasslookup method)": [[7, "lxml.etree.CustomElementClassLookup.lookup"]], "lookup() (lxml.etree.pythonelementclasslookup method)": [[7, "lxml.etree.PythonElementClassLookup.lookup"]], "lower() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.lower"]], "lower() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.lower"]], "lstrip() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.lstrip"]], "lstrip() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.lstrip"]], "lxml.etree": [[7, "module-lxml.etree"]], "makeelement() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.makeelement"]], "makeelement() (lxml.etree.etcompatxmlparser method)": [[7, "lxml.etree.ETCompatXMLParser.makeelement"]], "makeelement() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.makeelement"]], "makeelement() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.makeelement"]], "makeelement() (lxml.etree.htmlparser method)": [[7, "lxml.etree.HTMLParser.makeelement"]], "makeelement() (lxml.etree.htmlpullparser method)": [[7, "lxml.etree.HTMLPullParser.makeelement"]], "makeelement() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.makeelement"]], "makeelement() (lxml.etree.xmlparser method)": [[7, "lxml.etree.XMLParser.makeelement"]], "makeelement() (lxml.etree.xmlpullparser method)": [[7, "lxml.etree.XMLPullParser.makeelement"]], "makeelement() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.makeelement"]], "makeelement() (lxml.etree._element method)": [[7, "lxml.etree._Element.makeelement"]], "makeelement() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.makeelement"]], "makeelement() (lxml.etree._feedparser method)": [[7, "lxml.etree._FeedParser.makeelement"]], "makeelement() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.makeelement"]], "makeelement() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.makeelement"]], "makeelement() (lxml.etree.iterparse method)": [[7, "lxml.etree.iterparse.makeelement"]], "maketrans() (lxml.etree._elementstringresult static method)": [[7, "lxml.etree._ElementStringResult.maketrans"]], "maketrans() (lxml.etree._elementunicoderesult static method)": [[7, "lxml.etree._ElementUnicodeResult.maketrans"]], "message (lxml.etree._logentry attribute)": [[7, "lxml.etree._LogEntry.message"]], "msg (lxml.etree.lxmlsyntaxerror attribute)": [[7, "lxml.etree.LxmlSyntaxError.msg"]], "msg (lxml.etree.parseerror attribute)": [[7, "lxml.etree.ParseError.msg"]], "msg (lxml.etree.xmlsyntaxassertionerror attribute)": [[7, "lxml.etree.XMLSyntaxAssertionError.msg"]], "msg (lxml.etree.xmlsyntaxerror attribute)": [[7, "lxml.etree.XMLSyntaxError.msg"]], "msg (lxml.etree.xpathsyntaxerror attribute)": [[7, "lxml.etree.XPathSyntaxError.msg"]], "name (lxml.etree.dtd attribute)": [[7, "lxml.etree.DTD.name"]], "name (lxml.etree.entitybase attribute)": [[7, "lxml.etree.EntityBase.name"]], "name (lxml.etree._entity attribute)": [[7, "lxml.etree._Entity.name"]], "namespace (lxml.etree.qname attribute)": [[7, "lxml.etree.QName.namespace"]], "nsmap (lxml.etree.commentbase attribute)": [[7, "lxml.etree.CommentBase.nsmap"]], "nsmap (lxml.etree.elementbase attribute)": [[7, "lxml.etree.ElementBase.nsmap"]], "nsmap (lxml.etree.entitybase attribute)": [[7, "lxml.etree.EntityBase.nsmap"]], "nsmap (lxml.etree.pibase attribute)": [[7, "lxml.etree.PIBase.nsmap"]], "nsmap (lxml.etree._comment attribute)": [[7, "lxml.etree._Comment.nsmap"]], "nsmap (lxml.etree._element attribute)": [[7, "lxml.etree._Element.nsmap"]], "nsmap (lxml.etree._entity attribute)": [[7, "lxml.etree._Entity.nsmap"]], "nsmap (lxml.etree._processinginstruction attribute)": [[7, "lxml.etree._ProcessingInstruction.nsmap"]], "nsmap (lxml.etree._xsltprocessinginstruction attribute)": [[7, "lxml.etree._XSLTProcessingInstruction.nsmap"]], "offset (lxml.etree.lxmlsyntaxerror attribute)": [[7, "lxml.etree.LxmlSyntaxError.offset"]], "offset (lxml.etree.parseerror attribute)": [[7, "lxml.etree.ParseError.offset"]], "offset (lxml.etree.xmlsyntaxassertionerror attribute)": [[7, "lxml.etree.XMLSyntaxAssertionError.offset"]], "offset (lxml.etree.xmlsyntaxerror attribute)": [[7, "lxml.etree.XMLSyntaxError.offset"]], "offset (lxml.etree.xpathsyntaxerror attribute)": [[7, "lxml.etree.XPathSyntaxError.offset"]], "options (lxml.etree.xsltaccesscontrol attribute)": [[7, "lxml.etree.XSLTAccessControl.options"]], "parse() (in module lxml.etree)": [[7, "lxml.etree.parse"]], "parse() (lxml.etree._elementtree method)": [[7, "lxml.etree._ElementTree.parse"]], "parse() (lxml.etree._xsltresulttree method)": [[7, "lxml.etree._XSLTResultTree.parse"]], "parsexsl() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.parseXSL"]], "parseid() (in module lxml.etree)": [[7, "lxml.etree.parseid"]], "parser (lxml.etree._elementtree attribute)": [[7, "lxml.etree._ElementTree.parser"]], "parser (lxml.etree._xsltresulttree attribute)": [[7, "lxml.etree._XSLTResultTree.parser"]], "partition() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.partition"]], "partition() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.partition"]], "path (lxml.etree.etxpath attribute)": [[7, "lxml.etree.ETXPath.path"]], "path (lxml.etree.xpath attribute)": [[7, "lxml.etree.XPath.path"]], "path (lxml.etree._logentry attribute)": [[7, "lxml.etree._LogEntry.path"]], "pi() (lxml.etree.c14nwritertarget method)": [[7, "lxml.etree.C14NWriterTarget.pi"]], "pi() (lxml.etree.treebuilder method)": [[7, "lxml.etree.TreeBuilder.pi"]], "pi_class (lxml.etree.elementdefaultclasslookup attribute)": [[7, "lxml.etree.ElementDefaultClassLookup.pi_class"]], "pop() (lxml.etree._attrib method)": [[7, "lxml.etree._Attrib.pop"]], "position (lxml.etree.parseerror property)": [[7, "lxml.etree.ParseError.position"]], "position (lxml.etree.xmlsyntaxassertionerror property)": [[7, "lxml.etree.XMLSyntaxAssertionError.position"]], "position (lxml.etree.xmlsyntaxerror property)": [[7, "lxml.etree.XMLSyntaxError.position"]], "prefix (lxml.etree.commentbase attribute)": [[7, "lxml.etree.CommentBase.prefix"]], "prefix (lxml.etree.elementbase attribute)": [[7, "lxml.etree.ElementBase.prefix"]], "prefix (lxml.etree.entitybase attribute)": [[7, "lxml.etree.EntityBase.prefix"]], "prefix (lxml.etree.pibase attribute)": [[7, "lxml.etree.PIBase.prefix"]], "prefix (lxml.etree._comment attribute)": [[7, "lxml.etree._Comment.prefix"]], "prefix (lxml.etree._element attribute)": [[7, "lxml.etree._Element.prefix"]], "prefix (lxml.etree._entity attribute)": [[7, "lxml.etree._Entity.prefix"]], "prefix (lxml.etree._processinginstruction attribute)": [[7, "lxml.etree._ProcessingInstruction.prefix"]], "prefix (lxml.etree._xsltprocessinginstruction attribute)": [[7, "lxml.etree._XSLTProcessingInstruction.prefix"]], "print_file_and_line (lxml.etree.lxmlsyntaxerror attribute)": [[7, "lxml.etree.LxmlSyntaxError.print_file_and_line"]], "print_file_and_line (lxml.etree.parseerror attribute)": [[7, "lxml.etree.ParseError.print_file_and_line"]], "print_file_and_line (lxml.etree.xmlsyntaxassertionerror attribute)": [[7, "lxml.etree.XMLSyntaxAssertionError.print_file_and_line"]], "print_file_and_line (lxml.etree.xmlsyntaxerror attribute)": [[7, "lxml.etree.XMLSyntaxError.print_file_and_line"]], "print_file_and_line (lxml.etree.xpathsyntaxerror attribute)": [[7, "lxml.etree.XPathSyntaxError.print_file_and_line"]], "process_children() (lxml.etree.xsltextension method)": [[7, "lxml.etree.XSLTExtension.process_children"]], "public_id (lxml.etree.docinfo attribute)": [[7, "lxml.etree.DocInfo.public_id"]], "read_events() (lxml.etree.htmlpullparser method)": [[7, "lxml.etree.HTMLPullParser.read_events"]], "read_events() (lxml.etree.xmlpullparser method)": [[7, "lxml.etree.XMLPullParser.read_events"]], "receive() (lxml.etree.pyerrorlog method)": [[7, "lxml.etree.PyErrorLog.receive"]], "receive() (lxml.etree._baseerrorlog method)": [[7, "lxml.etree._BaseErrorLog.receive"]], "receive() (lxml.etree._domainerrorlog method)": [[7, "lxml.etree._DomainErrorLog.receive"]], "receive() (lxml.etree._errorlog method)": [[7, "lxml.etree._ErrorLog.receive"]], "receive() (lxml.etree._listerrorlog method)": [[7, "lxml.etree._ListErrorLog.receive"]], "receive() (lxml.etree._rotatingerrorlog method)": [[7, "lxml.etree._RotatingErrorLog.receive"]], "register_namespace() (in module lxml.etree)": [[7, "lxml.etree.register_namespace"]], "register_namespace() (lxml.etree.xpathdocumentevaluator method)": [[7, "lxml.etree.XPathDocumentEvaluator.register_namespace"]], "register_namespace() (lxml.etree.xpathelementevaluator method)": [[7, "lxml.etree.XPathElementEvaluator.register_namespace"]], "register_namespaces() (lxml.etree.xpathdocumentevaluator method)": [[7, "lxml.etree.XPathDocumentEvaluator.register_namespaces"]], "register_namespaces() (lxml.etree.xpathelementevaluator method)": [[7, "lxml.etree.XPathElementEvaluator.register_namespaces"]], "relaxng() (lxml.etree._elementtree method)": [[7, "lxml.etree._ElementTree.relaxng"]], "relaxng() (lxml.etree._xsltresulttree method)": [[7, "lxml.etree._XSLTResultTree.relaxng"]], "remove() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.remove"]], "remove() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.remove"]], "remove() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.remove"]], "remove() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.remove"]], "remove() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.remove"]], "remove() (lxml.etree._element method)": [[7, "lxml.etree._Element.remove"]], "remove() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.remove"]], "remove() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.remove"]], "remove() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.remove"]], "removeprefix() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.removeprefix"]], "removeprefix() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.removeprefix"]], "removesuffix() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.removesuffix"]], "removesuffix() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.removesuffix"]], "replace() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.replace"]], "replace() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.replace"]], "replace() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.replace"]], "replace() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.replace"]], "replace() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.replace"]], "replace() (lxml.etree._element method)": [[7, "lxml.etree._Element.replace"]], "replace() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.replace"]], "replace() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.replace"]], "replace() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.replace"]], "replace() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.replace"]], "replace() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.replace"]], "resolve() (lxml.etree.resolver method)": [[7, "lxml.etree.Resolver.resolve"]], "resolve_empty() (lxml.etree.resolver method)": [[7, "lxml.etree.Resolver.resolve_empty"]], "resolve_file() (lxml.etree.resolver method)": [[7, "lxml.etree.Resolver.resolve_file"]], "resolve_filename() (lxml.etree.resolver method)": [[7, "lxml.etree.Resolver.resolve_filename"]], "resolve_string() (lxml.etree.resolver method)": [[7, "lxml.etree.Resolver.resolve_string"]], "resolvers (lxml.etree.etcompatxmlparser attribute)": [[7, "lxml.etree.ETCompatXMLParser.resolvers"]], "resolvers (lxml.etree.htmlparser attribute)": [[7, "lxml.etree.HTMLParser.resolvers"]], "resolvers (lxml.etree.htmlpullparser attribute)": [[7, "lxml.etree.HTMLPullParser.resolvers"]], "resolvers (lxml.etree.xmlparser attribute)": [[7, "lxml.etree.XMLParser.resolvers"]], "resolvers (lxml.etree.xmlpullparser attribute)": [[7, "lxml.etree.XMLPullParser.resolvers"]], "resolvers (lxml.etree._feedparser attribute)": [[7, "lxml.etree._FeedParser.resolvers"]], "resolvers (lxml.etree.iterparse attribute)": [[7, "lxml.etree.iterparse.resolvers"]], "rfind() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.rfind"]], "rfind() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.rfind"]], "rindex() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.rindex"]], "rindex() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.rindex"]], "rjust() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.rjust"]], "rjust() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.rjust"]], "root (lxml.etree.iterparse attribute)": [[7, "lxml.etree.iterparse.root"]], "root_name (lxml.etree.docinfo attribute)": [[7, "lxml.etree.DocInfo.root_name"]], "rpartition() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.rpartition"]], "rpartition() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.rpartition"]], "rsplit() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.rsplit"]], "rsplit() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.rsplit"]], "rstrip() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.rstrip"]], "rstrip() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.rstrip"]], "set() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.set"]], "set() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.set"]], "set() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.set"]], "set() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.set"]], "set() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.set"]], "set() (lxml.etree._element method)": [[7, "lxml.etree._Element.set"]], "set() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.set"]], "set() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.set"]], "set() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.set"]], "setelementclasslookup() (lxml.etree.etcompatxmlparser method)": [[7, "lxml.etree.ETCompatXMLParser.setElementClassLookup"]], "setelementclasslookup() (lxml.etree.htmlparser method)": [[7, "lxml.etree.HTMLParser.setElementClassLookup"]], "setelementclasslookup() (lxml.etree.htmlpullparser method)": [[7, "lxml.etree.HTMLPullParser.setElementClassLookup"]], "setelementclasslookup() (lxml.etree.xmlparser method)": [[7, "lxml.etree.XMLParser.setElementClassLookup"]], "setelementclasslookup() (lxml.etree.xmlpullparser method)": [[7, "lxml.etree.XMLPullParser.setElementClassLookup"]], "setelementclasslookup() (lxml.etree._feedparser method)": [[7, "lxml.etree._FeedParser.setElementClassLookup"]], "set_default_parser() (in module lxml.etree)": [[7, "lxml.etree.set_default_parser"]], "set_element_class_lookup() (in module lxml.etree)": [[7, "lxml.etree.set_element_class_lookup"]], "set_element_class_lookup() (lxml.etree.etcompatxmlparser method)": [[7, "lxml.etree.ETCompatXMLParser.set_element_class_lookup"]], "set_element_class_lookup() (lxml.etree.htmlparser method)": [[7, "lxml.etree.HTMLParser.set_element_class_lookup"]], "set_element_class_lookup() (lxml.etree.htmlpullparser method)": [[7, "lxml.etree.HTMLPullParser.set_element_class_lookup"]], "set_element_class_lookup() (lxml.etree.xmlparser method)": [[7, "lxml.etree.XMLParser.set_element_class_lookup"]], "set_element_class_lookup() (lxml.etree.xmlpullparser method)": [[7, "lxml.etree.XMLPullParser.set_element_class_lookup"]], "set_element_class_lookup() (lxml.etree._feedparser method)": [[7, "lxml.etree._FeedParser.set_element_class_lookup"]], "set_element_class_lookup() (lxml.etree.iterparse method)": [[7, "lxml.etree.iterparse.set_element_class_lookup"]], "set_fallback() (lxml.etree.attributebasedelementclasslookup method)": [[7, "lxml.etree.AttributeBasedElementClassLookup.set_fallback"]], "set_fallback() (lxml.etree.customelementclasslookup method)": [[7, "lxml.etree.CustomElementClassLookup.set_fallback"]], "set_fallback() (lxml.etree.elementnamespaceclasslookup method)": [[7, "lxml.etree.ElementNamespaceClassLookup.set_fallback"]], "set_fallback() (lxml.etree.fallbackelementclasslookup method)": [[7, "lxml.etree.FallbackElementClassLookup.set_fallback"]], "set_fallback() (lxml.etree.parserbasedelementclasslookup method)": [[7, "lxml.etree.ParserBasedElementClassLookup.set_fallback"]], "set_fallback() (lxml.etree.pythonelementclasslookup method)": [[7, "lxml.etree.PythonElementClassLookup.set_fallback"]], "set_global_max_depth() (lxml.etree.xslt static method)": [[7, "lxml.etree.XSLT.set_global_max_depth"]], "skip_subtree() (lxml.etree.iterwalk method)": [[7, "lxml.etree.iterwalk.skip_subtree"]], "sourceline (lxml.etree.commentbase attribute)": [[7, "lxml.etree.CommentBase.sourceline"]], "sourceline (lxml.etree.elementbase attribute)": [[7, "lxml.etree.ElementBase.sourceline"]], "sourceline (lxml.etree.entitybase attribute)": [[7, "lxml.etree.EntityBase.sourceline"]], "sourceline (lxml.etree.pibase attribute)": [[7, "lxml.etree.PIBase.sourceline"]], "sourceline (lxml.etree._comment attribute)": [[7, "lxml.etree._Comment.sourceline"]], "sourceline (lxml.etree._element attribute)": [[7, "lxml.etree._Element.sourceline"]], "sourceline (lxml.etree._entity attribute)": [[7, "lxml.etree._Entity.sourceline"]], "sourceline (lxml.etree._processinginstruction attribute)": [[7, "lxml.etree._ProcessingInstruction.sourceline"]], "sourceline (lxml.etree._xsltprocessinginstruction attribute)": [[7, "lxml.etree._XSLTProcessingInstruction.sourceline"]], "split() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.split"]], "split() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.split"]], "splitlines() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.splitlines"]], "splitlines() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.splitlines"]], "standalone (lxml.etree.docinfo attribute)": [[7, "lxml.etree.DocInfo.standalone"]], "start() (lxml.etree.c14nwritertarget method)": [[7, "lxml.etree.C14NWriterTarget.start"]], "start() (lxml.etree.treebuilder method)": [[7, "lxml.etree.TreeBuilder.start"]], "start_ns() (lxml.etree.c14nwritertarget method)": [[7, "lxml.etree.C14NWriterTarget.start_ns"]], "startswith() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.startswith"]], "startswith() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.startswith"]], "strip() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.strip"]], "strip() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.strip"]], "strip_attributes() (in module lxml.etree)": [[7, "lxml.etree.strip_attributes"]], "strip_elements() (in module lxml.etree)": [[7, "lxml.etree.strip_elements"]], "strip_tags() (in module lxml.etree)": [[7, "lxml.etree.strip_tags"]], "strparam() (lxml.etree.xslt static method)": [[7, "lxml.etree.XSLT.strparam"]], "swapcase() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.swapcase"]], "swapcase() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.swapcase"]], "system_url (lxml.etree.dtd attribute)": [[7, "lxml.etree.DTD.system_url"]], "system_url (lxml.etree.docinfo attribute)": [[7, "lxml.etree.DocInfo.system_url"]], "tag (lxml.etree.commentbase attribute)": [[7, "lxml.etree.CommentBase.tag"]], "tag (lxml.etree.elementbase attribute)": [[7, "lxml.etree.ElementBase.tag"]], "tag (lxml.etree.entitybase attribute)": [[7, "lxml.etree.EntityBase.tag"]], "tag (lxml.etree.pibase attribute)": [[7, "lxml.etree.PIBase.tag"]], "tag (lxml.etree._comment attribute)": [[7, "lxml.etree._Comment.tag"]], "tag (lxml.etree._element attribute)": [[7, "lxml.etree._Element.tag"]], "tag (lxml.etree._entity attribute)": [[7, "lxml.etree._Entity.tag"]], "tag (lxml.etree._processinginstruction attribute)": [[7, "lxml.etree._ProcessingInstruction.tag"]], "tag (lxml.etree._xsltprocessinginstruction attribute)": [[7, "lxml.etree._XSLTProcessingInstruction.tag"]], "tail (lxml.etree.commentbase attribute)": [[7, "lxml.etree.CommentBase.tail"]], "tail (lxml.etree.elementbase attribute)": [[7, "lxml.etree.ElementBase.tail"]], "tail (lxml.etree.entitybase attribute)": [[7, "lxml.etree.EntityBase.tail"]], "tail (lxml.etree.pibase attribute)": [[7, "lxml.etree.PIBase.tail"]], "tail (lxml.etree._comment attribute)": [[7, "lxml.etree._Comment.tail"]], "tail (lxml.etree._element attribute)": [[7, "lxml.etree._Element.tail"]], "tail (lxml.etree._entity attribute)": [[7, "lxml.etree._Entity.tail"]], "tail (lxml.etree._processinginstruction attribute)": [[7, "lxml.etree._ProcessingInstruction.tail"]], "tail (lxml.etree._xsltprocessinginstruction attribute)": [[7, "lxml.etree._XSLTProcessingInstruction.tail"]], "target (lxml.etree.etcompatxmlparser attribute)": [[7, "lxml.etree.ETCompatXMLParser.target"]], "target (lxml.etree.htmlparser attribute)": [[7, "lxml.etree.HTMLParser.target"]], "target (lxml.etree.htmlpullparser attribute)": [[7, "lxml.etree.HTMLPullParser.target"]], "target (lxml.etree.pibase attribute)": [[7, "lxml.etree.PIBase.target"]], "target (lxml.etree.xmlparser attribute)": [[7, "lxml.etree.XMLParser.target"]], "target (lxml.etree.xmlpullparser attribute)": [[7, "lxml.etree.XMLPullParser.target"]], "target (lxml.etree._feedparser attribute)": [[7, "lxml.etree._FeedParser.target"]], "target (lxml.etree._processinginstruction attribute)": [[7, "lxml.etree._ProcessingInstruction.target"]], "target (lxml.etree._xsltprocessinginstruction attribute)": [[7, "lxml.etree._XSLTProcessingInstruction.target"]], "text (lxml.etree.commentbase attribute)": [[7, "lxml.etree.CommentBase.text"]], "text (lxml.etree.elementbase attribute)": [[7, "lxml.etree.ElementBase.text"]], "text (lxml.etree.entitybase attribute)": [[7, "lxml.etree.EntityBase.text"]], "text (lxml.etree.lxmlsyntaxerror attribute)": [[7, "lxml.etree.LxmlSyntaxError.text"]], "text (lxml.etree.pibase attribute)": [[7, "lxml.etree.PIBase.text"]], "text (lxml.etree.parseerror attribute)": [[7, "lxml.etree.ParseError.text"]], "text (lxml.etree.qname attribute)": [[7, "lxml.etree.QName.text"]], "text (lxml.etree.xmlsyntaxassertionerror attribute)": [[7, "lxml.etree.XMLSyntaxAssertionError.text"]], "text (lxml.etree.xmlsyntaxerror attribute)": [[7, "lxml.etree.XMLSyntaxError.text"]], "text (lxml.etree.xpathsyntaxerror attribute)": [[7, "lxml.etree.XPathSyntaxError.text"]], "text (lxml.etree._comment attribute)": [[7, "lxml.etree._Comment.text"]], "text (lxml.etree._element attribute)": [[7, "lxml.etree._Element.text"]], "text (lxml.etree._entity attribute)": [[7, "lxml.etree._Entity.text"]], "text (lxml.etree._processinginstruction attribute)": [[7, "lxml.etree._ProcessingInstruction.text"]], "text (lxml.etree._xsltprocessinginstruction attribute)": [[7, "lxml.etree._XSLTProcessingInstruction.text"]], "title() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.title"]], "title() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.title"]], "tostring() (in module lxml.etree)": [[7, "lxml.etree.tostring"]], "tostring() (lxml.etree.xslt method)": [[7, "lxml.etree.XSLT.tostring"]], "tostringlist() (in module lxml.etree)": [[7, "lxml.etree.tostringlist"]], "tounicode() (in module lxml.etree)": [[7, "lxml.etree.tounicode"]], "translate() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.translate"]], "translate() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.translate"]], "type (lxml.etree._logentry attribute)": [[7, "lxml.etree._LogEntry.type"]], "type_name (lxml.etree._logentry attribute)": [[7, "lxml.etree._LogEntry.type_name"]], "update() (lxml.etree._attrib method)": [[7, "lxml.etree._Attrib.update"]], "upper() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.upper"]], "upper() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.upper"]], "use_global_python_log() (in module lxml.etree)": [[7, "lxml.etree.use_global_python_log"]], "validate() (lxml.etree.dtd method)": [[7, "lxml.etree.DTD.validate"]], "validate() (lxml.etree.relaxng method)": [[7, "lxml.etree.RelaxNG.validate"]], "validate() (lxml.etree.schematron method)": [[7, "lxml.etree.Schematron.validate"]], "validate() (lxml.etree.xmlschema method)": [[7, "lxml.etree.XMLSchema.validate"]], "validate() (lxml.etree._validator method)": [[7, "lxml.etree._Validator.validate"]], "values() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.values"]], "values() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.values"]], "values() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.values"]], "values() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.values"]], "values() (lxml.etree._attrib method)": [[7, "lxml.etree._Attrib.values"]], "values() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.values"]], "values() (lxml.etree._element method)": [[7, "lxml.etree._Element.values"]], "values() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.values"]], "values() (lxml.etree._iddict method)": [[7, "lxml.etree._IDDict.values"]], "values() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.values"]], "values() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.values"]], "version (lxml.etree.etcompatxmlparser attribute)": [[7, "lxml.etree.ETCompatXMLParser.version"]], "version (lxml.etree.htmlparser attribute)": [[7, "lxml.etree.HTMLParser.version"]], "version (lxml.etree.htmlpullparser attribute)": [[7, "lxml.etree.HTMLPullParser.version"]], "version (lxml.etree.xmlparser attribute)": [[7, "lxml.etree.XMLParser.version"]], "version (lxml.etree.xmlpullparser attribute)": [[7, "lxml.etree.XMLPullParser.version"]], "version (lxml.etree._feedparser attribute)": [[7, "lxml.etree._FeedParser.version"]], "version (lxml.etree.iterparse attribute)": [[7, "lxml.etree.iterparse.version"]], "with_traceback() (lxml.etree.c14nerror method)": [[7, "lxml.etree.C14NError.with_traceback"]], "with_traceback() (lxml.etree.dtderror method)": [[7, "lxml.etree.DTDError.with_traceback"]], "with_traceback() (lxml.etree.dtdparseerror method)": [[7, "lxml.etree.DTDParseError.with_traceback"]], "with_traceback() (lxml.etree.dtdvalidateerror method)": [[7, "lxml.etree.DTDValidateError.with_traceback"]], "with_traceback() (lxml.etree.documentinvalid method)": [[7, "lxml.etree.DocumentInvalid.with_traceback"]], "with_traceback() (lxml.etree.error method)": [[7, "lxml.etree.Error.with_traceback"]], "with_traceback() (lxml.etree.lxmlerror method)": [[7, "lxml.etree.LxmlError.with_traceback"]], "with_traceback() (lxml.etree.lxmlregistryerror method)": [[7, "lxml.etree.LxmlRegistryError.with_traceback"]], "with_traceback() (lxml.etree.lxmlsyntaxerror method)": [[7, "lxml.etree.LxmlSyntaxError.with_traceback"]], "with_traceback() (lxml.etree.namespaceregistryerror method)": [[7, "lxml.etree.NamespaceRegistryError.with_traceback"]], "with_traceback() (lxml.etree.parseerror method)": [[7, "lxml.etree.ParseError.with_traceback"]], "with_traceback() (lxml.etree.parsererror method)": [[7, "lxml.etree.ParserError.with_traceback"]], "with_traceback() (lxml.etree.relaxngerror method)": [[7, "lxml.etree.RelaxNGError.with_traceback"]], "with_traceback() (lxml.etree.relaxngparseerror method)": [[7, "lxml.etree.RelaxNGParseError.with_traceback"]], "with_traceback() (lxml.etree.relaxngvalidateerror method)": [[7, "lxml.etree.RelaxNGValidateError.with_traceback"]], "with_traceback() (lxml.etree.schematronerror method)": [[7, "lxml.etree.SchematronError.with_traceback"]], "with_traceback() (lxml.etree.schematronparseerror method)": [[7, "lxml.etree.SchematronParseError.with_traceback"]], "with_traceback() (lxml.etree.schematronvalidateerror method)": [[7, "lxml.etree.SchematronValidateError.with_traceback"]], "with_traceback() (lxml.etree.serialisationerror method)": [[7, "lxml.etree.SerialisationError.with_traceback"]], "with_traceback() (lxml.etree.xincludeerror method)": [[7, "lxml.etree.XIncludeError.with_traceback"]], "with_traceback() (lxml.etree.xmlschemaerror method)": [[7, "lxml.etree.XMLSchemaError.with_traceback"]], "with_traceback() (lxml.etree.xmlschemaparseerror method)": [[7, "lxml.etree.XMLSchemaParseError.with_traceback"]], "with_traceback() (lxml.etree.xmlschemavalidateerror method)": [[7, "lxml.etree.XMLSchemaValidateError.with_traceback"]], "with_traceback() (lxml.etree.xmlsyntaxassertionerror method)": [[7, "lxml.etree.XMLSyntaxAssertionError.with_traceback"]], "with_traceback() (lxml.etree.xmlsyntaxerror method)": [[7, "lxml.etree.XMLSyntaxError.with_traceback"]], "with_traceback() (lxml.etree.xpatherror method)": [[7, "lxml.etree.XPathError.with_traceback"]], "with_traceback() (lxml.etree.xpathevalerror method)": [[7, "lxml.etree.XPathEvalError.with_traceback"]], "with_traceback() (lxml.etree.xpathfunctionerror method)": [[7, "lxml.etree.XPathFunctionError.with_traceback"]], "with_traceback() (lxml.etree.xpathresulterror method)": [[7, "lxml.etree.XPathResultError.with_traceback"]], "with_traceback() (lxml.etree.xpathsyntaxerror method)": [[7, "lxml.etree.XPathSyntaxError.with_traceback"]], "with_traceback() (lxml.etree.xsltapplyerror method)": [[7, "lxml.etree.XSLTApplyError.with_traceback"]], "with_traceback() (lxml.etree.xslterror method)": [[7, "lxml.etree.XSLTError.with_traceback"]], "with_traceback() (lxml.etree.xsltextensionerror method)": [[7, "lxml.etree.XSLTExtensionError.with_traceback"]], "with_traceback() (lxml.etree.xsltparseerror method)": [[7, "lxml.etree.XSLTParseError.with_traceback"]], "with_traceback() (lxml.etree.xsltsaveerror method)": [[7, "lxml.etree.XSLTSaveError.with_traceback"]], "with_traceback() (lxml.etree._targetparserresult method)": [[7, "lxml.etree._TargetParserResult.with_traceback"]], "write() (lxml.etree._elementtree method)": [[7, "lxml.etree._ElementTree.write"]], "write() (lxml.etree._xsltresulttree method)": [[7, "lxml.etree._XSLTResultTree.write"]], "write_c14n() (lxml.etree._elementtree method)": [[7, "lxml.etree._ElementTree.write_c14n"]], "write_c14n() (lxml.etree._xsltresulttree method)": [[7, "lxml.etree._XSLTResultTree.write_c14n"]], "write_output() (lxml.etree._xsltresulttree method)": [[7, "lxml.etree._XSLTResultTree.write_output"]], "xinclude() (lxml.etree._elementtree method)": [[7, "lxml.etree._ElementTree.xinclude"]], "xinclude() (lxml.etree._xsltresulttree method)": [[7, "lxml.etree._XSLTResultTree.xinclude"]], "xml_version (lxml.etree.docinfo attribute)": [[7, "lxml.etree.DocInfo.xml_version"]], "xmlfile (class in lxml.etree)": [[7, "lxml.etree.xmlfile"]], "xmlschema() (lxml.etree._elementtree method)": [[7, "lxml.etree._ElementTree.xmlschema"]], "xmlschema() (lxml.etree._xsltresulttree method)": [[7, "lxml.etree._XSLTResultTree.xmlschema"]], "xpath() (lxml.etree.commentbase method)": [[7, "lxml.etree.CommentBase.xpath"]], "xpath() (lxml.etree.elementbase method)": [[7, "lxml.etree.ElementBase.xpath"]], "xpath() (lxml.etree.entitybase method)": [[7, "lxml.etree.EntityBase.xpath"]], "xpath() (lxml.etree.pibase method)": [[7, "lxml.etree.PIBase.xpath"]], "xpath() (lxml.etree._comment method)": [[7, "lxml.etree._Comment.xpath"]], "xpath() (lxml.etree._element method)": [[7, "lxml.etree._Element.xpath"]], "xpath() (lxml.etree._elementtree method)": [[7, "lxml.etree._ElementTree.xpath"]], "xpath() (lxml.etree._entity method)": [[7, "lxml.etree._Entity.xpath"]], "xpath() (lxml.etree._processinginstruction method)": [[7, "lxml.etree._ProcessingInstruction.xpath"]], "xpath() (lxml.etree._xsltprocessinginstruction method)": [[7, "lxml.etree._XSLTProcessingInstruction.xpath"]], "xpath() (lxml.etree._xsltresulttree method)": [[7, "lxml.etree._XSLTResultTree.xpath"]], "xslt() (lxml.etree._elementtree method)": [[7, "lxml.etree._ElementTree.xslt"]], "xslt() (lxml.etree._xsltresulttree method)": [[7, "lxml.etree._XSLTResultTree.xslt"]], "xslt_profile (lxml.etree._xsltresulttree attribute)": [[7, "lxml.etree._XSLTResultTree.xslt_profile"]], "zfill() (lxml.etree._elementstringresult method)": [[7, "lxml.etree._ElementStringResult.zfill"]], "zfill() (lxml.etree._elementunicoderesult method)": [[7, "lxml.etree._ElementUnicodeResult.zfill"]], "checkboxgroup (class in lxml.html)": [[8, "lxml.html.CheckboxGroup"]], "checkboxvalues (class in lxml.html)": [[8, "lxml.html.CheckboxValues"]], "classes (class in lxml.html)": [[8, "lxml.html.Classes"]], "element() (in module lxml.html)": [[8, "lxml.html.Element"]], "fieldsdict (class in lxml.html)": [[8, "lxml.html.FieldsDict"]], "formelement (class in lxml.html)": [[8, "lxml.html.FormElement"]], "htmlparser (class in lxml.html)": [[8, "lxml.html.HTMLParser"]], "htmlcomment (class in lxml.html)": [[8, "lxml.html.HtmlComment"]], "htmlelement (class in lxml.html)": [[8, "lxml.html.HtmlElement"]], "htmlelementclasslookup (class in lxml.html)": [[8, "lxml.html.HtmlElementClassLookup"]], "htmlentity (class in lxml.html)": [[8, "lxml.html.HtmlEntity"]], "htmlmixin (class in lxml.html)": [[8, "lxml.html.HtmlMixin"]], "htmlprocessinginstruction (class in lxml.html)": [[8, "lxml.html.HtmlProcessingInstruction"]], "inputelement (class in lxml.html)": [[8, "lxml.html.InputElement"]], "inputgetter (class in lxml.html)": [[8, "lxml.html.InputGetter"]], "inputmixin (class in lxml.html)": [[8, "lxml.html.InputMixin"]], "labelelement (class in lxml.html)": [[8, "lxml.html.LabelElement"]], "multipleselectoptions (class in lxml.html)": [[8, "lxml.html.MultipleSelectOptions"]], "radiogroup (class in lxml.html)": [[8, "lxml.html.RadioGroup"]], "selectelement (class in lxml.html)": [[8, "lxml.html.SelectElement"]], "textareaelement (class in lxml.html)": [[8, "lxml.html.TextareaElement"]], "xhtmlparser (class in lxml.html)": [[8, "lxml.html.XHTMLParser"]], "_methodfunc (class in lxml.html)": [[8, "lxml.html._MethodFunc"]], "__bytes_replace_meta_content_type() (in module lxml.html)": [[8, "lxml.html.__bytes_replace_meta_content_type"]], "__fix_docstring() (in module lxml.html)": [[8, "lxml.html.__fix_docstring"]], "__str_replace_meta_content_type() (in module lxml.html)": [[8, "lxml.html.__str_replace_meta_content_type"]], "_abc_impl (lxml.html.checkboxvalues attribute)": [[8, "lxml.html.CheckboxValues._abc_impl"]], "_abc_impl (lxml.html.classes attribute)": [[8, "lxml.html.Classes._abc_impl"]], "_abc_impl (lxml.html.fieldsdict attribute)": [[8, "lxml.html.FieldsDict._abc_impl"]], "_abc_impl (lxml.html.multipleselectoptions attribute)": [[8, "lxml.html.MultipleSelectOptions._abc_impl"]], "_contains_block_level_tag() (in module lxml.html)": [[8, "lxml.html._contains_block_level_tag"]], "_default_element_classes (lxml.html.htmlelementclasslookup attribute)": [[8, "lxml.html.HtmlElementClassLookup._default_element_classes"]], "_element_name() (in module lxml.html)": [[8, "lxml.html._element_name"]], "_from_iterable() (lxml.html.checkboxvalues class method)": [[8, "lxml.html.CheckboxValues._from_iterable"]], "_from_iterable() (lxml.html.classes class method)": [[8, "lxml.html.Classes._from_iterable"]], "_from_iterable() (lxml.html.multipleselectoptions class method)": [[8, "lxml.html.MultipleSelectOptions._from_iterable"]], "_hash() (lxml.html.checkboxvalues method)": [[8, "lxml.html.CheckboxValues._hash"]], "_hash() (lxml.html.classes method)": [[8, "lxml.html.Classes._hash"]], "_hash() (lxml.html.multipleselectoptions method)": [[8, "lxml.html.MultipleSelectOptions._hash"]], "_init() (lxml.html.formelement method)": [[8, "lxml.html.FormElement._init"]], "_init() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment._init"]], "_init() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement._init"]], "_init() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity._init"]], "_init() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction._init"]], "_init() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement._init"]], "_init() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement._init"]], "_init() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement._init"]], "_init() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement._init"]], "_iter_css_imports() (in module lxml.html)": [[8, "lxml.html._iter_css_imports"]], "_iter_css_urls() (in module lxml.html)": [[8, "lxml.html._iter_css_urls"]], "_looks_like_full_html_bytes() (in module lxml.html)": [[8, "lxml.html._looks_like_full_html_bytes"]], "_looks_like_full_html_unicode() (in module lxml.html)": [[8, "lxml.html._looks_like_full_html_unicode"]], "_name() (lxml.html.formelement method)": [[8, "lxml.html.FormElement._name"]], "_nons() (in module lxml.html)": [[8, "lxml.html._nons"]], "_parse_meta_refresh_url() (in module lxml.html)": [[8, "lxml.html._parse_meta_refresh_url"]], "_transform_result() (in module lxml.html)": [[8, "lxml.html._transform_result"]], "_unquote_match() (in module lxml.html)": [[8, "lxml.html._unquote_match"]], "action (lxml.html.formelement property)": [[8, "lxml.html.FormElement.action"]], "add() (lxml.html.checkboxvalues method)": [[8, "lxml.html.CheckboxValues.add"]], "add() (lxml.html.classes method)": [[8, "lxml.html.Classes.add"]], "add() (lxml.html.multipleselectoptions method)": [[8, "lxml.html.MultipleSelectOptions.add"]], "addnext() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.addnext"]], "addnext() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.addnext"]], "addnext() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.addnext"]], "addnext() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.addnext"]], "addnext() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.addnext"]], "addnext() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.addnext"]], "addnext() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.addnext"]], "addnext() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.addnext"]], "addnext() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.addnext"]], "addprevious() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.addprevious"]], "addprevious() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.addprevious"]], "addprevious() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.addprevious"]], "addprevious() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.addprevious"]], "addprevious() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.addprevious"]], "addprevious() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.addprevious"]], "addprevious() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.addprevious"]], "addprevious() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.addprevious"]], "addprevious() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.addprevious"]], "append() (lxml.html.checkboxgroup method)": [[8, "lxml.html.CheckboxGroup.append"]], "append() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.append"]], "append() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.append"]], "append() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.append"]], "append() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.append"]], "append() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.append"]], "append() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.append"]], "append() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.append"]], "append() (lxml.html.radiogroup method)": [[8, "lxml.html.RadioGroup.append"]], "append() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.append"]], "append() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.append"]], "attrib (lxml.html.formelement attribute)": [[8, "lxml.html.FormElement.attrib"]], "attrib (lxml.html.htmlcomment attribute)": [[8, "lxml.html.HtmlComment.attrib"]], "attrib (lxml.html.htmlelement attribute)": [[8, "lxml.html.HtmlElement.attrib"]], "attrib (lxml.html.htmlentity attribute)": [[8, "lxml.html.HtmlEntity.attrib"]], "attrib (lxml.html.htmlprocessinginstruction attribute)": [[8, "lxml.html.HtmlProcessingInstruction.attrib"]], "attrib (lxml.html.inputelement attribute)": [[8, "lxml.html.InputElement.attrib"]], "attrib (lxml.html.labelelement attribute)": [[8, "lxml.html.LabelElement.attrib"]], "attrib (lxml.html.selectelement attribute)": [[8, "lxml.html.SelectElement.attrib"]], "attrib (lxml.html.textareaelement attribute)": [[8, "lxml.html.TextareaElement.attrib"]], "base (lxml.html.formelement attribute)": [[8, "lxml.html.FormElement.base"]], "base (lxml.html.htmlcomment attribute)": [[8, "lxml.html.HtmlComment.base"]], "base (lxml.html.htmlelement attribute)": [[8, "lxml.html.HtmlElement.base"]], "base (lxml.html.htmlentity attribute)": [[8, "lxml.html.HtmlEntity.base"]], "base (lxml.html.htmlprocessinginstruction attribute)": [[8, "lxml.html.HtmlProcessingInstruction.base"]], "base (lxml.html.inputelement attribute)": [[8, "lxml.html.InputElement.base"]], "base (lxml.html.labelelement attribute)": [[8, "lxml.html.LabelElement.base"]], "base (lxml.html.selectelement attribute)": [[8, "lxml.html.SelectElement.base"]], "base (lxml.html.textareaelement attribute)": [[8, "lxml.html.TextareaElement.base"]], "base_url (lxml.html.formelement property)": [[8, "lxml.html.FormElement.base_url"]], "base_url (lxml.html.htmlcomment property)": [[8, "lxml.html.HtmlComment.base_url"]], "base_url (lxml.html.htmlelement property)": [[8, "lxml.html.HtmlElement.base_url"]], "base_url (lxml.html.htmlentity property)": [[8, "lxml.html.HtmlEntity.base_url"]], "base_url (lxml.html.htmlmixin property)": [[8, "lxml.html.HtmlMixin.base_url"]], "base_url (lxml.html.htmlprocessinginstruction property)": [[8, "lxml.html.HtmlProcessingInstruction.base_url"]], "base_url (lxml.html.inputelement property)": [[8, "lxml.html.InputElement.base_url"]], "base_url (lxml.html.labelelement property)": [[8, "lxml.html.LabelElement.base_url"]], "base_url (lxml.html.selectelement property)": [[8, "lxml.html.SelectElement.base_url"]], "base_url (lxml.html.textareaelement property)": [[8, "lxml.html.TextareaElement.base_url"]], "body (lxml.html.formelement property)": [[8, "lxml.html.FormElement.body"]], "body (lxml.html.htmlcomment property)": [[8, "lxml.html.HtmlComment.body"]], "body (lxml.html.htmlelement property)": [[8, "lxml.html.HtmlElement.body"]], "body (lxml.html.htmlentity property)": [[8, "lxml.html.HtmlEntity.body"]], "body (lxml.html.htmlmixin property)": [[8, "lxml.html.HtmlMixin.body"]], "body (lxml.html.htmlprocessinginstruction property)": [[8, "lxml.html.HtmlProcessingInstruction.body"]], "body (lxml.html.inputelement property)": [[8, "lxml.html.InputElement.body"]], "body (lxml.html.labelelement property)": [[8, "lxml.html.LabelElement.body"]], "body (lxml.html.selectelement property)": [[8, "lxml.html.SelectElement.body"]], "body (lxml.html.textareaelement property)": [[8, "lxml.html.TextareaElement.body"]], "checkable (lxml.html.inputelement property)": [[8, "lxml.html.InputElement.checkable"]], "checked (lxml.html.inputelement property)": [[8, "lxml.html.InputElement.checked"]], "classes (lxml.html.formelement property)": [[8, "lxml.html.FormElement.classes"]], "classes (lxml.html.htmlcomment property)": [[8, "lxml.html.HtmlComment.classes"]], "classes (lxml.html.htmlelement property)": [[8, "lxml.html.HtmlElement.classes"]], "classes (lxml.html.htmlentity property)": [[8, "lxml.html.HtmlEntity.classes"]], "classes (lxml.html.htmlmixin property)": [[8, "lxml.html.HtmlMixin.classes"]], "classes (lxml.html.htmlprocessinginstruction property)": [[8, "lxml.html.HtmlProcessingInstruction.classes"]], "classes (lxml.html.inputelement property)": [[8, "lxml.html.InputElement.classes"]], "classes (lxml.html.labelelement property)": [[8, "lxml.html.LabelElement.classes"]], "classes (lxml.html.selectelement property)": [[8, "lxml.html.SelectElement.classes"]], "classes (lxml.html.textareaelement property)": [[8, "lxml.html.TextareaElement.classes"]], "clear() (lxml.html.checkboxgroup method)": [[8, "lxml.html.CheckboxGroup.clear"]], "clear() (lxml.html.checkboxvalues method)": [[8, "lxml.html.CheckboxValues.clear"]], "clear() (lxml.html.classes method)": [[8, "lxml.html.Classes.clear"]], "clear() (lxml.html.fieldsdict method)": [[8, "lxml.html.FieldsDict.clear"]], "clear() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.clear"]], "clear() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.clear"]], "clear() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.clear"]], "clear() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.clear"]], "clear() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.clear"]], "clear() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.clear"]], "clear() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.clear"]], "clear() (lxml.html.multipleselectoptions method)": [[8, "lxml.html.MultipleSelectOptions.clear"]], "clear() (lxml.html.radiogroup method)": [[8, "lxml.html.RadioGroup.clear"]], "clear() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.clear"]], "clear() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.clear"]], "close() (lxml.html.htmlparser method)": [[8, "lxml.html.HTMLParser.close"]], "close() (lxml.html.xhtmlparser method)": [[8, "lxml.html.XHTMLParser.close"]], "copy() (lxml.html.checkboxgroup method)": [[8, "lxml.html.CheckboxGroup.copy"]], "copy() (lxml.html.checkboxvalues method)": [[8, "lxml.html.CheckboxValues.copy"]], "copy() (lxml.html.htmlparser method)": [[8, "lxml.html.HTMLParser.copy"]], "copy() (lxml.html.multipleselectoptions method)": [[8, "lxml.html.MultipleSelectOptions.copy"]], "copy() (lxml.html.radiogroup method)": [[8, "lxml.html.RadioGroup.copy"]], "copy() (lxml.html.xhtmlparser method)": [[8, "lxml.html.XHTMLParser.copy"]], "count() (lxml.html.checkboxgroup method)": [[8, "lxml.html.CheckboxGroup.count"]], "count() (lxml.html.radiogroup method)": [[8, "lxml.html.RadioGroup.count"]], "cssselect() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.cssselect"]], "cssselect() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.cssselect"]], "cssselect() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.cssselect"]], "cssselect() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.cssselect"]], "cssselect() (lxml.html.htmlmixin method)": [[8, "lxml.html.HtmlMixin.cssselect"]], "cssselect() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.cssselect"]], "cssselect() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.cssselect"]], "cssselect() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.cssselect"]], "cssselect() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.cssselect"]], "cssselect() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.cssselect"]], "difference() (lxml.html.checkboxvalues method)": [[8, "lxml.html.CheckboxValues.difference"]], "difference() (lxml.html.multipleselectoptions method)": [[8, "lxml.html.MultipleSelectOptions.difference"]], "difference_update() (lxml.html.checkboxvalues method)": [[8, "lxml.html.CheckboxValues.difference_update"]], "difference_update() (lxml.html.multipleselectoptions method)": [[8, "lxml.html.MultipleSelectOptions.difference_update"]], "discard() (lxml.html.checkboxvalues method)": [[8, "lxml.html.CheckboxValues.discard"]], "discard() (lxml.html.classes method)": [[8, "lxml.html.Classes.discard"]], "discard() (lxml.html.multipleselectoptions method)": [[8, "lxml.html.MultipleSelectOptions.discard"]], "document_fromstring() (in module lxml.html)": [[8, "lxml.html.document_fromstring"]], "drop_tag() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.drop_tag"]], "drop_tag() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.drop_tag"]], "drop_tag() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.drop_tag"]], "drop_tag() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.drop_tag"]], "drop_tag() (lxml.html.htmlmixin method)": [[8, "lxml.html.HtmlMixin.drop_tag"]], "drop_tag() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.drop_tag"]], "drop_tag() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.drop_tag"]], "drop_tag() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.drop_tag"]], "drop_tag() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.drop_tag"]], "drop_tag() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.drop_tag"]], "drop_tree() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.drop_tree"]], "drop_tree() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.drop_tree"]], "drop_tree() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.drop_tree"]], "drop_tree() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.drop_tree"]], "drop_tree() (lxml.html.htmlmixin method)": [[8, "lxml.html.HtmlMixin.drop_tree"]], "drop_tree() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.drop_tree"]], "drop_tree() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.drop_tree"]], "drop_tree() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.drop_tree"]], "drop_tree() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.drop_tree"]], "drop_tree() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.drop_tree"]], "error_log (lxml.html.htmlparser attribute)": [[8, "lxml.html.HTMLParser.error_log"]], "error_log (lxml.html.xhtmlparser attribute)": [[8, "lxml.html.XHTMLParser.error_log"]], "extend() (lxml.html.checkboxgroup method)": [[8, "lxml.html.CheckboxGroup.extend"]], "extend() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.extend"]], "extend() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.extend"]], "extend() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.extend"]], "extend() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.extend"]], "extend() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.extend"]], "extend() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.extend"]], "extend() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.extend"]], "extend() (lxml.html.radiogroup method)": [[8, "lxml.html.RadioGroup.extend"]], "extend() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.extend"]], "extend() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.extend"]], "fallback (lxml.html.htmlelementclasslookup attribute)": [[8, "lxml.html.HtmlElementClassLookup.fallback"]], "feed() (lxml.html.htmlparser method)": [[8, "lxml.html.HTMLParser.feed"]], "feed() (lxml.html.xhtmlparser method)": [[8, "lxml.html.XHTMLParser.feed"]], "feed_error_log (lxml.html.htmlparser attribute)": [[8, "lxml.html.HTMLParser.feed_error_log"]], "feed_error_log (lxml.html.xhtmlparser attribute)": [[8, "lxml.html.XHTMLParser.feed_error_log"]], "fields (lxml.html.formelement property)": [[8, "lxml.html.FormElement.fields"]], "find() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.find"]], "find() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.find"]], "find() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.find"]], "find() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.find"]], "find() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.find"]], "find() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.find"]], "find() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.find"]], "find() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.find"]], "find() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.find"]], "find_class() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.find_class"]], "find_class() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.find_class"]], "find_class() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.find_class"]], "find_class() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.find_class"]], "find_class() (lxml.html.htmlmixin method)": [[8, "lxml.html.HtmlMixin.find_class"]], "find_class() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.find_class"]], "find_class() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.find_class"]], "find_class() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.find_class"]], "find_class() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.find_class"]], "find_class() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.find_class"]], "find_rel_links() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.find_rel_links"]], "find_rel_links() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.find_rel_links"]], "find_rel_links() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.find_rel_links"]], "find_rel_links() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.find_rel_links"]], "find_rel_links() (lxml.html.htmlmixin method)": [[8, "lxml.html.HtmlMixin.find_rel_links"]], "find_rel_links() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.find_rel_links"]], "find_rel_links() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.find_rel_links"]], "find_rel_links() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.find_rel_links"]], "find_rel_links() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.find_rel_links"]], "find_rel_links() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.find_rel_links"]], "findall() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.findall"]], "findall() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.findall"]], "findall() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.findall"]], "findall() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.findall"]], "findall() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.findall"]], "findall() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.findall"]], "findall() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.findall"]], "findall() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.findall"]], "findall() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.findall"]], "findtext() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.findtext"]], "findtext() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.findtext"]], "findtext() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.findtext"]], "findtext() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.findtext"]], "findtext() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.findtext"]], "findtext() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.findtext"]], "findtext() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.findtext"]], "findtext() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.findtext"]], "findtext() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.findtext"]], "for_element (lxml.html.labelelement property)": [[8, "lxml.html.LabelElement.for_element"]], "form_values() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.form_values"]], "forms (lxml.html.formelement property)": [[8, "lxml.html.FormElement.forms"]], "forms (lxml.html.htmlcomment property)": [[8, "lxml.html.HtmlComment.forms"]], "forms (lxml.html.htmlelement property)": [[8, "lxml.html.HtmlElement.forms"]], "forms (lxml.html.htmlentity property)": [[8, "lxml.html.HtmlEntity.forms"]], "forms (lxml.html.htmlmixin property)": [[8, "lxml.html.HtmlMixin.forms"]], "forms (lxml.html.htmlprocessinginstruction property)": [[8, "lxml.html.HtmlProcessingInstruction.forms"]], "forms (lxml.html.inputelement property)": [[8, "lxml.html.InputElement.forms"]], "forms (lxml.html.labelelement property)": [[8, "lxml.html.LabelElement.forms"]], "forms (lxml.html.selectelement property)": [[8, "lxml.html.SelectElement.forms"]], "forms (lxml.html.textareaelement property)": [[8, "lxml.html.TextareaElement.forms"]], "fragment_fromstring() (in module lxml.html)": [[8, "lxml.html.fragment_fromstring"]], "fragments_fromstring() (in module lxml.html)": [[8, "lxml.html.fragments_fromstring"]], "fromstring() (in module lxml.html)": [[8, "lxml.html.fromstring"]], "get() (lxml.html.fieldsdict method)": [[8, "lxml.html.FieldsDict.get"]], "get() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.get"]], "get() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.get"]], "get() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.get"]], "get() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.get"]], "get() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.get"]], "get() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.get"]], "get() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.get"]], "get() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.get"]], "get() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.get"]], "get_element_by_id() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.get_element_by_id"]], "get_element_by_id() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.get_element_by_id"]], "get_element_by_id() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.get_element_by_id"]], "get_element_by_id() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.get_element_by_id"]], "get_element_by_id() (lxml.html.htmlmixin method)": [[8, "lxml.html.HtmlMixin.get_element_by_id"]], "get_element_by_id() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.get_element_by_id"]], "get_element_by_id() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.get_element_by_id"]], "get_element_by_id() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.get_element_by_id"]], "get_element_by_id() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.get_element_by_id"]], "get_element_by_id() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.get_element_by_id"]], "getchildren() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.getchildren"]], "getchildren() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.getchildren"]], "getchildren() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.getchildren"]], "getchildren() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.getchildren"]], "getchildren() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.getchildren"]], "getchildren() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.getchildren"]], "getchildren() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.getchildren"]], "getchildren() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.getchildren"]], "getchildren() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.getchildren"]], "getiterator() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.getiterator"]], "getiterator() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.getiterator"]], "getiterator() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.getiterator"]], "getiterator() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.getiterator"]], "getiterator() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.getiterator"]], "getiterator() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.getiterator"]], "getiterator() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.getiterator"]], "getiterator() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.getiterator"]], "getiterator() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.getiterator"]], "getnext() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.getnext"]], "getnext() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.getnext"]], "getnext() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.getnext"]], "getnext() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.getnext"]], "getnext() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.getnext"]], "getnext() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.getnext"]], "getnext() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.getnext"]], "getnext() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.getnext"]], "getnext() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.getnext"]], "getparent() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.getparent"]], "getparent() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.getparent"]], "getparent() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.getparent"]], "getparent() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.getparent"]], "getparent() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.getparent"]], "getparent() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.getparent"]], "getparent() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.getparent"]], "getparent() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.getparent"]], "getparent() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.getparent"]], "getprevious() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.getprevious"]], "getprevious() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.getprevious"]], "getprevious() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.getprevious"]], "getprevious() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.getprevious"]], "getprevious() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.getprevious"]], "getprevious() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.getprevious"]], "getprevious() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.getprevious"]], "getprevious() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.getprevious"]], "getprevious() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.getprevious"]], "getroottree() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.getroottree"]], "getroottree() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.getroottree"]], "getroottree() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.getroottree"]], "getroottree() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.getroottree"]], "getroottree() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.getroottree"]], "getroottree() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.getroottree"]], "getroottree() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.getroottree"]], "getroottree() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.getroottree"]], "getroottree() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.getroottree"]], "head (lxml.html.formelement property)": [[8, "lxml.html.FormElement.head"]], "head (lxml.html.htmlcomment property)": [[8, "lxml.html.HtmlComment.head"]], "head (lxml.html.htmlelement property)": [[8, "lxml.html.HtmlElement.head"]], "head (lxml.html.htmlentity property)": [[8, "lxml.html.HtmlEntity.head"]], "head (lxml.html.htmlmixin property)": [[8, "lxml.html.HtmlMixin.head"]], "head (lxml.html.htmlprocessinginstruction property)": [[8, "lxml.html.HtmlProcessingInstruction.head"]], "head (lxml.html.inputelement property)": [[8, "lxml.html.InputElement.head"]], "head (lxml.html.labelelement property)": [[8, "lxml.html.LabelElement.head"]], "head (lxml.html.selectelement property)": [[8, "lxml.html.SelectElement.head"]], "head (lxml.html.textareaelement property)": [[8, "lxml.html.TextareaElement.head"]], "html_to_xhtml() (in module lxml.html)": [[8, "lxml.html.html_to_xhtml"]], "index() (lxml.html.checkboxgroup method)": [[8, "lxml.html.CheckboxGroup.index"]], "index() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.index"]], "index() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.index"]], "index() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.index"]], "index() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.index"]], "index() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.index"]], "index() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.index"]], "index() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.index"]], "index() (lxml.html.radiogroup method)": [[8, "lxml.html.RadioGroup.index"]], "index() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.index"]], "index() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.index"]], "inputs (lxml.html.formelement property)": [[8, "lxml.html.FormElement.inputs"]], "insert() (lxml.html.checkboxgroup method)": [[8, "lxml.html.CheckboxGroup.insert"]], "insert() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.insert"]], "insert() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.insert"]], "insert() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.insert"]], "insert() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.insert"]], "insert() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.insert"]], "insert() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.insert"]], "insert() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.insert"]], "insert() (lxml.html.radiogroup method)": [[8, "lxml.html.RadioGroup.insert"]], "insert() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.insert"]], "insert() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.insert"]], "intersection() (lxml.html.checkboxvalues method)": [[8, "lxml.html.CheckboxValues.intersection"]], "intersection() (lxml.html.multipleselectoptions method)": [[8, "lxml.html.MultipleSelectOptions.intersection"]], "intersection_update() (lxml.html.checkboxvalues method)": [[8, "lxml.html.CheckboxValues.intersection_update"]], "intersection_update() (lxml.html.multipleselectoptions method)": [[8, "lxml.html.MultipleSelectOptions.intersection_update"]], "isdisjoint() (lxml.html.checkboxvalues method)": [[8, "lxml.html.CheckboxValues.isdisjoint"]], "isdisjoint() (lxml.html.classes method)": [[8, "lxml.html.Classes.isdisjoint"]], "isdisjoint() (lxml.html.multipleselectoptions method)": [[8, "lxml.html.MultipleSelectOptions.isdisjoint"]], "issubset() (lxml.html.checkboxvalues method)": [[8, "lxml.html.CheckboxValues.issubset"]], "issubset() (lxml.html.multipleselectoptions method)": [[8, "lxml.html.MultipleSelectOptions.issubset"]], "issuperset() (lxml.html.checkboxvalues method)": [[8, "lxml.html.CheckboxValues.issuperset"]], "issuperset() (lxml.html.multipleselectoptions method)": [[8, "lxml.html.MultipleSelectOptions.issuperset"]], "items() (lxml.html.fieldsdict method)": [[8, "lxml.html.FieldsDict.items"]], "items() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.items"]], "items() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.items"]], "items() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.items"]], "items() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.items"]], "items() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.items"]], "items() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.items"]], "items() (lxml.html.inputgetter method)": [[8, "lxml.html.InputGetter.items"]], "items() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.items"]], "items() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.items"]], "items() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.items"]], "iter() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.iter"]], "iter() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.iter"]], "iter() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.iter"]], "iter() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.iter"]], "iter() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.iter"]], "iter() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.iter"]], "iter() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.iter"]], "iter() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.iter"]], "iter() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.iter"]], "iterancestors() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.iterancestors"]], "iterancestors() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.iterancestors"]], "iterancestors() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.iterancestors"]], "iterancestors() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.iterancestors"]], "iterancestors() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.iterancestors"]], "iterancestors() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.iterancestors"]], "iterancestors() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.iterancestors"]], "iterancestors() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.iterancestors"]], "iterancestors() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.iterancestors"]], "iterchildren() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.iterchildren"]], "iterchildren() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.iterchildren"]], "iterchildren() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.iterchildren"]], "iterchildren() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.iterchildren"]], "iterchildren() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.iterchildren"]], "iterchildren() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.iterchildren"]], "iterchildren() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.iterchildren"]], "iterchildren() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.iterchildren"]], "iterchildren() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.iterchildren"]], "iterdescendants() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.iterdescendants"]], "iterdescendants() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.iterdescendants"]], "iterdescendants() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.iterdescendants"]], "iterdescendants() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.iterdescendants"]], "iterdescendants() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.iterdescendants"]], "iterdescendants() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.iterdescendants"]], "iterdescendants() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.iterdescendants"]], "iterdescendants() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.iterdescendants"]], "iterdescendants() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.iterdescendants"]], "iterfind() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.iterfind"]], "iterfind() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.iterfind"]], "iterfind() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.iterfind"]], "iterfind() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.iterfind"]], "iterfind() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.iterfind"]], "iterfind() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.iterfind"]], "iterfind() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.iterfind"]], "iterfind() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.iterfind"]], "iterfind() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.iterfind"]], "iterlinks() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.iterlinks"]], "iterlinks() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.iterlinks"]], "iterlinks() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.iterlinks"]], "iterlinks() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.iterlinks"]], "iterlinks() (lxml.html.htmlmixin method)": [[8, "lxml.html.HtmlMixin.iterlinks"]], "iterlinks() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.iterlinks"]], "iterlinks() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.iterlinks"]], "iterlinks() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.iterlinks"]], "iterlinks() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.iterlinks"]], "iterlinks() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.iterlinks"]], "itersiblings() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.itersiblings"]], "itersiblings() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.itersiblings"]], "itersiblings() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.itersiblings"]], "itersiblings() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.itersiblings"]], "itersiblings() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.itersiblings"]], "itersiblings() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.itersiblings"]], "itersiblings() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.itersiblings"]], "itersiblings() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.itersiblings"]], "itersiblings() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.itersiblings"]], "itertext() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.itertext"]], "itertext() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.itertext"]], "itertext() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.itertext"]], "itertext() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.itertext"]], "itertext() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.itertext"]], "itertext() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.itertext"]], "itertext() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.itertext"]], "itertext() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.itertext"]], "itertext() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.itertext"]], "keys() (lxml.html.fieldsdict method)": [[8, "lxml.html.FieldsDict.keys"]], "keys() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.keys"]], "keys() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.keys"]], "keys() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.keys"]], "keys() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.keys"]], "keys() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.keys"]], "keys() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.keys"]], "keys() (lxml.html.inputgetter method)": [[8, "lxml.html.InputGetter.keys"]], "keys() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.keys"]], "keys() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.keys"]], "keys() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.keys"]], "label (lxml.html.formelement property)": [[8, "lxml.html.FormElement.label"]], "label (lxml.html.htmlcomment property)": [[8, "lxml.html.HtmlComment.label"]], "label (lxml.html.htmlelement property)": [[8, "lxml.html.HtmlElement.label"]], "label (lxml.html.htmlentity property)": [[8, "lxml.html.HtmlEntity.label"]], "label (lxml.html.htmlmixin property)": [[8, "lxml.html.HtmlMixin.label"]], "label (lxml.html.htmlprocessinginstruction property)": [[8, "lxml.html.HtmlProcessingInstruction.label"]], "label (lxml.html.inputelement property)": [[8, "lxml.html.InputElement.label"]], "label (lxml.html.labelelement property)": [[8, "lxml.html.LabelElement.label"]], "label (lxml.html.selectelement property)": [[8, "lxml.html.SelectElement.label"]], "label (lxml.html.textareaelement property)": [[8, "lxml.html.TextareaElement.label"]], "lookup() (lxml.html.htmlelementclasslookup method)": [[8, "lxml.html.HtmlElementClassLookup.lookup"]], "lxml.html": [[8, "module-lxml.html"]], "make_links_absolute() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.make_links_absolute"]], "make_links_absolute() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.make_links_absolute"]], "make_links_absolute() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.make_links_absolute"]], "make_links_absolute() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.make_links_absolute"]], "make_links_absolute() (lxml.html.htmlmixin method)": [[8, "lxml.html.HtmlMixin.make_links_absolute"]], "make_links_absolute() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.make_links_absolute"]], "make_links_absolute() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.make_links_absolute"]], "make_links_absolute() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.make_links_absolute"]], "make_links_absolute() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.make_links_absolute"]], "make_links_absolute() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.make_links_absolute"]], "makeelement() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.makeelement"]], "makeelement() (lxml.html.htmlparser method)": [[8, "lxml.html.HTMLParser.makeelement"]], "makeelement() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.makeelement"]], "makeelement() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.makeelement"]], "makeelement() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.makeelement"]], "makeelement() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.makeelement"]], "makeelement() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.makeelement"]], "makeelement() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.makeelement"]], "makeelement() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.makeelement"]], "makeelement() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.makeelement"]], "makeelement() (lxml.html.xhtmlparser method)": [[8, "lxml.html.XHTMLParser.makeelement"]], "method (lxml.html.formelement property)": [[8, "lxml.html.FormElement.method"]], "multiple (lxml.html.selectelement property)": [[8, "lxml.html.SelectElement.multiple"]], "name (lxml.html.htmlentity attribute)": [[8, "lxml.html.HtmlEntity.name"]], "name (lxml.html.inputelement property)": [[8, "lxml.html.InputElement.name"]], "name (lxml.html.inputmixin property)": [[8, "lxml.html.InputMixin.name"]], "name (lxml.html.selectelement property)": [[8, "lxml.html.SelectElement.name"]], "name (lxml.html.textareaelement property)": [[8, "lxml.html.TextareaElement.name"]], "nsmap (lxml.html.formelement attribute)": [[8, "lxml.html.FormElement.nsmap"]], "nsmap (lxml.html.htmlcomment attribute)": [[8, "lxml.html.HtmlComment.nsmap"]], "nsmap (lxml.html.htmlelement attribute)": [[8, "lxml.html.HtmlElement.nsmap"]], "nsmap (lxml.html.htmlentity attribute)": [[8, "lxml.html.HtmlEntity.nsmap"]], "nsmap (lxml.html.htmlprocessinginstruction attribute)": [[8, "lxml.html.HtmlProcessingInstruction.nsmap"]], "nsmap (lxml.html.inputelement attribute)": [[8, "lxml.html.InputElement.nsmap"]], "nsmap (lxml.html.labelelement attribute)": [[8, "lxml.html.LabelElement.nsmap"]], "nsmap (lxml.html.selectelement attribute)": [[8, "lxml.html.SelectElement.nsmap"]], "nsmap (lxml.html.textareaelement attribute)": [[8, "lxml.html.TextareaElement.nsmap"]], "open_http_urllib() (in module lxml.html)": [[8, "lxml.html.open_http_urllib"]], "open_in_browser() (in module lxml.html)": [[8, "lxml.html.open_in_browser"]], "options (lxml.html.multipleselectoptions property)": [[8, "lxml.html.MultipleSelectOptions.options"]], "parse() (in module lxml.html)": [[8, "lxml.html.parse"]], "pop() (lxml.html.checkboxgroup method)": [[8, "lxml.html.CheckboxGroup.pop"]], "pop() (lxml.html.checkboxvalues method)": [[8, "lxml.html.CheckboxValues.pop"]], "pop() (lxml.html.classes method)": [[8, "lxml.html.Classes.pop"]], "pop() (lxml.html.fieldsdict method)": [[8, "lxml.html.FieldsDict.pop"]], "pop() (lxml.html.multipleselectoptions method)": [[8, "lxml.html.MultipleSelectOptions.pop"]], "pop() (lxml.html.radiogroup method)": [[8, "lxml.html.RadioGroup.pop"]], "popitem() (lxml.html.fieldsdict method)": [[8, "lxml.html.FieldsDict.popitem"]], "prefix (lxml.html.formelement attribute)": [[8, "lxml.html.FormElement.prefix"]], "prefix (lxml.html.htmlcomment attribute)": [[8, "lxml.html.HtmlComment.prefix"]], "prefix (lxml.html.htmlelement attribute)": [[8, "lxml.html.HtmlElement.prefix"]], "prefix (lxml.html.htmlentity attribute)": [[8, "lxml.html.HtmlEntity.prefix"]], "prefix (lxml.html.htmlprocessinginstruction attribute)": [[8, "lxml.html.HtmlProcessingInstruction.prefix"]], "prefix (lxml.html.inputelement attribute)": [[8, "lxml.html.InputElement.prefix"]], "prefix (lxml.html.labelelement attribute)": [[8, "lxml.html.LabelElement.prefix"]], "prefix (lxml.html.selectelement attribute)": [[8, "lxml.html.SelectElement.prefix"]], "prefix (lxml.html.textareaelement attribute)": [[8, "lxml.html.TextareaElement.prefix"]], "remove() (lxml.html.checkboxgroup method)": [[8, "lxml.html.CheckboxGroup.remove"]], "remove() (lxml.html.checkboxvalues method)": [[8, "lxml.html.CheckboxValues.remove"]], "remove() (lxml.html.classes method)": [[8, "lxml.html.Classes.remove"]], "remove() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.remove"]], "remove() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.remove"]], "remove() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.remove"]], "remove() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.remove"]], "remove() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.remove"]], "remove() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.remove"]], "remove() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.remove"]], "remove() (lxml.html.multipleselectoptions method)": [[8, "lxml.html.MultipleSelectOptions.remove"]], "remove() (lxml.html.radiogroup method)": [[8, "lxml.html.RadioGroup.remove"]], "remove() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.remove"]], "remove() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.remove"]], "replace() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.replace"]], "replace() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.replace"]], "replace() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.replace"]], "replace() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.replace"]], "replace() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.replace"]], "replace() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.replace"]], "replace() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.replace"]], "replace() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.replace"]], "replace() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.replace"]], "resolve_base_href() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.resolve_base_href"]], "resolve_base_href() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.resolve_base_href"]], "resolve_base_href() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.resolve_base_href"]], "resolve_base_href() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.resolve_base_href"]], "resolve_base_href() (lxml.html.htmlmixin method)": [[8, "lxml.html.HtmlMixin.resolve_base_href"]], "resolve_base_href() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.resolve_base_href"]], "resolve_base_href() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.resolve_base_href"]], "resolve_base_href() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.resolve_base_href"]], "resolve_base_href() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.resolve_base_href"]], "resolve_base_href() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.resolve_base_href"]], "resolvers (lxml.html.htmlparser attribute)": [[8, "lxml.html.HTMLParser.resolvers"]], "resolvers (lxml.html.xhtmlparser attribute)": [[8, "lxml.html.XHTMLParser.resolvers"]], "reverse() (lxml.html.checkboxgroup method)": [[8, "lxml.html.CheckboxGroup.reverse"]], "reverse() (lxml.html.radiogroup method)": [[8, "lxml.html.RadioGroup.reverse"]], "rewrite_links() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.rewrite_links"]], "rewrite_links() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.rewrite_links"]], "rewrite_links() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.rewrite_links"]], "rewrite_links() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.rewrite_links"]], "rewrite_links() (lxml.html.htmlmixin method)": [[8, "lxml.html.HtmlMixin.rewrite_links"]], "rewrite_links() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.rewrite_links"]], "rewrite_links() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.rewrite_links"]], "rewrite_links() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.rewrite_links"]], "rewrite_links() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.rewrite_links"]], "rewrite_links() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.rewrite_links"]], "set() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.set"]], "set() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.set"]], "set() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.set"]], "set() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.set"]], "set() (lxml.html.htmlmixin method)": [[8, "lxml.html.HtmlMixin.set"]], "set() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.set"]], "set() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.set"]], "set() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.set"]], "set() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.set"]], "set() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.set"]], "setelementclasslookup() (lxml.html.htmlparser method)": [[8, "lxml.html.HTMLParser.setElementClassLookup"]], "setelementclasslookup() (lxml.html.xhtmlparser method)": [[8, "lxml.html.XHTMLParser.setElementClassLookup"]], "set_element_class_lookup() (lxml.html.htmlparser method)": [[8, "lxml.html.HTMLParser.set_element_class_lookup"]], "set_element_class_lookup() (lxml.html.xhtmlparser method)": [[8, "lxml.html.XHTMLParser.set_element_class_lookup"]], "set_fallback() (lxml.html.htmlelementclasslookup method)": [[8, "lxml.html.HtmlElementClassLookup.set_fallback"]], "setdefault() (lxml.html.fieldsdict method)": [[8, "lxml.html.FieldsDict.setdefault"]], "sort() (lxml.html.checkboxgroup method)": [[8, "lxml.html.CheckboxGroup.sort"]], "sort() (lxml.html.radiogroup method)": [[8, "lxml.html.RadioGroup.sort"]], "sourceline (lxml.html.formelement attribute)": [[8, "lxml.html.FormElement.sourceline"]], "sourceline (lxml.html.htmlcomment attribute)": [[8, "lxml.html.HtmlComment.sourceline"]], "sourceline (lxml.html.htmlelement attribute)": [[8, "lxml.html.HtmlElement.sourceline"]], "sourceline (lxml.html.htmlentity attribute)": [[8, "lxml.html.HtmlEntity.sourceline"]], "sourceline (lxml.html.htmlprocessinginstruction attribute)": [[8, "lxml.html.HtmlProcessingInstruction.sourceline"]], "sourceline (lxml.html.inputelement attribute)": [[8, "lxml.html.InputElement.sourceline"]], "sourceline (lxml.html.labelelement attribute)": [[8, "lxml.html.LabelElement.sourceline"]], "sourceline (lxml.html.selectelement attribute)": [[8, "lxml.html.SelectElement.sourceline"]], "sourceline (lxml.html.textareaelement attribute)": [[8, "lxml.html.TextareaElement.sourceline"]], "submit_form() (in module lxml.html)": [[8, "lxml.html.submit_form"]], "symmetric_difference() (lxml.html.checkboxvalues method)": [[8, "lxml.html.CheckboxValues.symmetric_difference"]], "symmetric_difference() (lxml.html.multipleselectoptions method)": [[8, "lxml.html.MultipleSelectOptions.symmetric_difference"]], "symmetric_difference_update() (lxml.html.checkboxvalues method)": [[8, "lxml.html.CheckboxValues.symmetric_difference_update"]], "symmetric_difference_update() (lxml.html.multipleselectoptions method)": [[8, "lxml.html.MultipleSelectOptions.symmetric_difference_update"]], "tag (lxml.html.formelement attribute)": [[8, "lxml.html.FormElement.tag"]], "tag (lxml.html.htmlcomment attribute)": [[8, "lxml.html.HtmlComment.tag"]], "tag (lxml.html.htmlelement attribute)": [[8, "lxml.html.HtmlElement.tag"]], "tag (lxml.html.htmlentity attribute)": [[8, "lxml.html.HtmlEntity.tag"]], "tag (lxml.html.htmlprocessinginstruction attribute)": [[8, "lxml.html.HtmlProcessingInstruction.tag"]], "tag (lxml.html.inputelement attribute)": [[8, "lxml.html.InputElement.tag"]], "tag (lxml.html.labelelement attribute)": [[8, "lxml.html.LabelElement.tag"]], "tag (lxml.html.selectelement attribute)": [[8, "lxml.html.SelectElement.tag"]], "tag (lxml.html.textareaelement attribute)": [[8, "lxml.html.TextareaElement.tag"]], "tail (lxml.html.formelement attribute)": [[8, "lxml.html.FormElement.tail"]], "tail (lxml.html.htmlcomment attribute)": [[8, "lxml.html.HtmlComment.tail"]], "tail (lxml.html.htmlelement attribute)": [[8, "lxml.html.HtmlElement.tail"]], "tail (lxml.html.htmlentity attribute)": [[8, "lxml.html.HtmlEntity.tail"]], "tail (lxml.html.htmlprocessinginstruction attribute)": [[8, "lxml.html.HtmlProcessingInstruction.tail"]], "tail (lxml.html.inputelement attribute)": [[8, "lxml.html.InputElement.tail"]], "tail (lxml.html.labelelement attribute)": [[8, "lxml.html.LabelElement.tail"]], "tail (lxml.html.selectelement attribute)": [[8, "lxml.html.SelectElement.tail"]], "tail (lxml.html.textareaelement attribute)": [[8, "lxml.html.TextareaElement.tail"]], "target (lxml.html.htmlparser attribute)": [[8, "lxml.html.HTMLParser.target"]], "target (lxml.html.htmlprocessinginstruction attribute)": [[8, "lxml.html.HtmlProcessingInstruction.target"]], "target (lxml.html.xhtmlparser attribute)": [[8, "lxml.html.XHTMLParser.target"]], "text (lxml.html.formelement attribute)": [[8, "lxml.html.FormElement.text"]], "text (lxml.html.htmlcomment attribute)": [[8, "lxml.html.HtmlComment.text"]], "text (lxml.html.htmlelement attribute)": [[8, "lxml.html.HtmlElement.text"]], "text (lxml.html.htmlentity attribute)": [[8, "lxml.html.HtmlEntity.text"]], "text (lxml.html.htmlprocessinginstruction attribute)": [[8, "lxml.html.HtmlProcessingInstruction.text"]], "text (lxml.html.inputelement attribute)": [[8, "lxml.html.InputElement.text"]], "text (lxml.html.labelelement attribute)": [[8, "lxml.html.LabelElement.text"]], "text (lxml.html.selectelement attribute)": [[8, "lxml.html.SelectElement.text"]], "text (lxml.html.textareaelement attribute)": [[8, "lxml.html.TextareaElement.text"]], "text_content() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.text_content"]], "text_content() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.text_content"]], "text_content() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.text_content"]], "text_content() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.text_content"]], "text_content() (lxml.html.htmlmixin method)": [[8, "lxml.html.HtmlMixin.text_content"]], "text_content() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.text_content"]], "text_content() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.text_content"]], "text_content() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.text_content"]], "text_content() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.text_content"]], "text_content() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.text_content"]], "toggle() (lxml.html.classes method)": [[8, "lxml.html.Classes.toggle"]], "tostring() (in module lxml.html)": [[8, "lxml.html.tostring"]], "type (lxml.html.inputelement property)": [[8, "lxml.html.InputElement.type"]], "union() (lxml.html.checkboxvalues method)": [[8, "lxml.html.CheckboxValues.union"]], "union() (lxml.html.multipleselectoptions method)": [[8, "lxml.html.MultipleSelectOptions.union"]], "update() (lxml.html.checkboxvalues method)": [[8, "lxml.html.CheckboxValues.update"]], "update() (lxml.html.classes method)": [[8, "lxml.html.Classes.update"]], "update() (lxml.html.fieldsdict method)": [[8, "lxml.html.FieldsDict.update"]], "update() (lxml.html.multipleselectoptions method)": [[8, "lxml.html.MultipleSelectOptions.update"]], "value (lxml.html.checkboxgroup property)": [[8, "lxml.html.CheckboxGroup.value"]], "value (lxml.html.inputelement property)": [[8, "lxml.html.InputElement.value"]], "value (lxml.html.radiogroup property)": [[8, "lxml.html.RadioGroup.value"]], "value (lxml.html.selectelement property)": [[8, "lxml.html.SelectElement.value"]], "value (lxml.html.textareaelement property)": [[8, "lxml.html.TextareaElement.value"]], "value_options (lxml.html.checkboxgroup property)": [[8, "lxml.html.CheckboxGroup.value_options"]], "value_options (lxml.html.radiogroup property)": [[8, "lxml.html.RadioGroup.value_options"]], "value_options (lxml.html.selectelement property)": [[8, "lxml.html.SelectElement.value_options"]], "values() (lxml.html.fieldsdict method)": [[8, "lxml.html.FieldsDict.values"]], "values() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.values"]], "values() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.values"]], "values() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.values"]], "values() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.values"]], "values() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.values"]], "values() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.values"]], "values() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.values"]], "values() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.values"]], "values() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.values"]], "version (lxml.html.htmlparser attribute)": [[8, "lxml.html.HTMLParser.version"]], "version (lxml.html.xhtmlparser attribute)": [[8, "lxml.html.XHTMLParser.version"]], "xhtml_to_html() (in module lxml.html)": [[8, "lxml.html.xhtml_to_html"]], "xpath() (lxml.html.formelement method)": [[8, "lxml.html.FormElement.xpath"]], "xpath() (lxml.html.htmlcomment method)": [[8, "lxml.html.HtmlComment.xpath"]], "xpath() (lxml.html.htmlelement method)": [[8, "lxml.html.HtmlElement.xpath"]], "xpath() (lxml.html.htmlentity method)": [[8, "lxml.html.HtmlEntity.xpath"]], "xpath() (lxml.html.htmlprocessinginstruction method)": [[8, "lxml.html.HtmlProcessingInstruction.xpath"]], "xpath() (lxml.html.inputelement method)": [[8, "lxml.html.InputElement.xpath"]], "xpath() (lxml.html.labelelement method)": [[8, "lxml.html.LabelElement.xpath"]], "xpath() (lxml.html.selectelement method)": [[8, "lxml.html.SelectElement.xpath"]], "xpath() (lxml.html.textareaelement method)": [[8, "lxml.html.TextareaElement.xpath"]], "annotate() (in module lxml.html._diffcommand)": [[10, "lxml.html._diffcommand.annotate"]], "lxml.html._diffcommand": [[10, "module-lxml.html._diffcommand"]], "main() (in module lxml.html._diffcommand)": [[10, "lxml.html._diffcommand.main"]], "read_file() (in module lxml.html._diffcommand)": [[10, "lxml.html._diffcommand.read_file"]], "split_body() (in module lxml.html._diffcommand)": [[10, "lxml.html._diffcommand.split_body"]], "setmixin (class in lxml.html._setmixin)": [[11, "lxml.html._setmixin.SetMixin"]], "_abc_impl (lxml.html._setmixin.setmixin attribute)": [[11, "lxml.html._setmixin.SetMixin._abc_impl"]], "_from_iterable() (lxml.html._setmixin.setmixin class method)": [[11, "lxml.html._setmixin.SetMixin._from_iterable"]], "_hash() (lxml.html._setmixin.setmixin method)": [[11, "lxml.html._setmixin.SetMixin._hash"]], "add() (lxml.html._setmixin.setmixin method)": [[11, "lxml.html._setmixin.SetMixin.add"]], "clear() (lxml.html._setmixin.setmixin method)": [[11, "lxml.html._setmixin.SetMixin.clear"]], "copy() (lxml.html._setmixin.setmixin method)": [[11, "lxml.html._setmixin.SetMixin.copy"]], "difference() (lxml.html._setmixin.setmixin method)": [[11, "lxml.html._setmixin.SetMixin.difference"]], "difference_update() (lxml.html._setmixin.setmixin method)": [[11, "lxml.html._setmixin.SetMixin.difference_update"]], "discard() (lxml.html._setmixin.setmixin method)": [[11, "lxml.html._setmixin.SetMixin.discard"]], "intersection() (lxml.html._setmixin.setmixin method)": [[11, "lxml.html._setmixin.SetMixin.intersection"]], "intersection_update() (lxml.html._setmixin.setmixin method)": [[11, "lxml.html._setmixin.SetMixin.intersection_update"]], "isdisjoint() (lxml.html._setmixin.setmixin method)": [[11, "lxml.html._setmixin.SetMixin.isdisjoint"]], "issubset() (lxml.html._setmixin.setmixin method)": [[11, "lxml.html._setmixin.SetMixin.issubset"]], "issuperset() (lxml.html._setmixin.setmixin method)": [[11, "lxml.html._setmixin.SetMixin.issuperset"]], "lxml.html._setmixin": [[11, "module-lxml.html._setmixin"]], "pop() (lxml.html._setmixin.setmixin method)": [[11, "lxml.html._setmixin.SetMixin.pop"]], "remove() (lxml.html._setmixin.setmixin method)": [[11, "lxml.html._setmixin.SetMixin.remove"]], "symmetric_difference() (lxml.html._setmixin.setmixin method)": [[11, "lxml.html._setmixin.SetMixin.symmetric_difference"]], "symmetric_difference_update() (lxml.html._setmixin.setmixin method)": [[11, "lxml.html._setmixin.SetMixin.symmetric_difference_update"]], "union() (lxml.html._setmixin.setmixin method)": [[11, "lxml.html._setmixin.SetMixin.union"]], "update() (lxml.html._setmixin.setmixin method)": [[11, "lxml.html._setmixin.SetMixin.update"]], "a (in module lxml.html.builder)": [[12, "lxml.html.builder.A"]], "abbr (in module lxml.html.builder)": [[12, "lxml.html.builder.ABBR"]], "acronym (in module lxml.html.builder)": [[12, "lxml.html.builder.ACRONYM"]], "address (in module lxml.html.builder)": [[12, "lxml.html.builder.ADDRESS"]], "applet (in module lxml.html.builder)": [[12, "lxml.html.builder.APPLET"]], "area (in module lxml.html.builder)": [[12, "lxml.html.builder.AREA"]], "b (in module lxml.html.builder)": [[12, "lxml.html.builder.B"]], "base (in module lxml.html.builder)": [[12, "lxml.html.builder.BASE"]], "basefont (in module lxml.html.builder)": [[12, "lxml.html.builder.BASEFONT"]], "bdo (in module lxml.html.builder)": [[12, "lxml.html.builder.BDO"]], "big (in module lxml.html.builder)": [[12, "lxml.html.builder.BIG"]], "blockquote (in module lxml.html.builder)": [[12, "lxml.html.builder.BLOCKQUOTE"]], "body (in module lxml.html.builder)": [[12, "lxml.html.builder.BODY"]], "br (in module lxml.html.builder)": [[12, "lxml.html.builder.BR"]], "button (in module lxml.html.builder)": [[12, "lxml.html.builder.BUTTON"]], "caption (in module lxml.html.builder)": [[12, "lxml.html.builder.CAPTION"]], "center (in module lxml.html.builder)": [[12, "lxml.html.builder.CENTER"]], "cite (in module lxml.html.builder)": [[12, "lxml.html.builder.CITE"]], "class() (in module lxml.html.builder)": [[12, "lxml.html.builder.CLASS"]], "code (in module lxml.html.builder)": [[12, "lxml.html.builder.CODE"]], "col (in module lxml.html.builder)": [[12, "lxml.html.builder.COL"]], "colgroup (in module lxml.html.builder)": [[12, "lxml.html.builder.COLGROUP"]], "dd (in module lxml.html.builder)": [[12, "lxml.html.builder.DD"]], "del (in module lxml.html.builder)": [[12, "lxml.html.builder.DEL"]], "dfn (in module lxml.html.builder)": [[12, "lxml.html.builder.DFN"]], "dir (in module lxml.html.builder)": [[12, "lxml.html.builder.DIR"]], "div (in module lxml.html.builder)": [[12, "lxml.html.builder.DIV"]], "dl (in module lxml.html.builder)": [[12, "lxml.html.builder.DL"]], "dt (in module lxml.html.builder)": [[12, "lxml.html.builder.DT"]], "em (in module lxml.html.builder)": [[12, "lxml.html.builder.EM"]], "fieldset (in module lxml.html.builder)": [[12, "lxml.html.builder.FIELDSET"]], "font (in module lxml.html.builder)": [[12, "lxml.html.builder.FONT"]], "for() (in module lxml.html.builder)": [[12, "lxml.html.builder.FOR"]], "form (in module lxml.html.builder)": [[12, "lxml.html.builder.FORM"]], "frame (in module lxml.html.builder)": [[12, "lxml.html.builder.FRAME"]], "frameset (in module lxml.html.builder)": [[12, "lxml.html.builder.FRAMESET"]], "h1 (in module lxml.html.builder)": [[12, "lxml.html.builder.H1"]], "h2 (in module lxml.html.builder)": [[12, "lxml.html.builder.H2"]], "h3 (in module lxml.html.builder)": [[12, "lxml.html.builder.H3"]], "h4 (in module lxml.html.builder)": [[12, "lxml.html.builder.H4"]], "h5 (in module lxml.html.builder)": [[12, "lxml.html.builder.H5"]], "h6 (in module lxml.html.builder)": [[12, "lxml.html.builder.H6"]], "head (in module lxml.html.builder)": [[12, "lxml.html.builder.HEAD"]], "hr (in module lxml.html.builder)": [[12, "lxml.html.builder.HR"]], "html (in module lxml.html.builder)": [[12, "lxml.html.builder.HTML"]], "i (in module lxml.html.builder)": [[12, "lxml.html.builder.I"]], "iframe (in module lxml.html.builder)": [[12, "lxml.html.builder.IFRAME"]], "img (in module lxml.html.builder)": [[12, "lxml.html.builder.IMG"]], "input (in module lxml.html.builder)": [[12, "lxml.html.builder.INPUT"]], "ins (in module lxml.html.builder)": [[12, "lxml.html.builder.INS"]], "isindex (in module lxml.html.builder)": [[12, "lxml.html.builder.ISINDEX"]], "kbd (in module lxml.html.builder)": [[12, "lxml.html.builder.KBD"]], "label (in module lxml.html.builder)": [[12, "lxml.html.builder.LABEL"]], "legend (in module lxml.html.builder)": [[12, "lxml.html.builder.LEGEND"]], "li (in module lxml.html.builder)": [[12, "lxml.html.builder.LI"]], "link (in module lxml.html.builder)": [[12, "lxml.html.builder.LINK"]], "map (in module lxml.html.builder)": [[12, "lxml.html.builder.MAP"]], "menu (in module lxml.html.builder)": [[12, "lxml.html.builder.MENU"]], "meta (in module lxml.html.builder)": [[12, "lxml.html.builder.META"]], "noframes (in module lxml.html.builder)": [[12, "lxml.html.builder.NOFRAMES"]], "noscript (in module lxml.html.builder)": [[12, "lxml.html.builder.NOSCRIPT"]], "object (in module lxml.html.builder)": [[12, "lxml.html.builder.OBJECT"]], "ol (in module lxml.html.builder)": [[12, "lxml.html.builder.OL"]], "optgroup (in module lxml.html.builder)": [[12, "lxml.html.builder.OPTGROUP"]], "option (in module lxml.html.builder)": [[12, "lxml.html.builder.OPTION"]], "p (in module lxml.html.builder)": [[12, "lxml.html.builder.P"]], "param (in module lxml.html.builder)": [[12, "lxml.html.builder.PARAM"]], "pre (in module lxml.html.builder)": [[12, "lxml.html.builder.PRE"]], "q (in module lxml.html.builder)": [[12, "lxml.html.builder.Q"]], "s (in module lxml.html.builder)": [[12, "lxml.html.builder.S"]], "samp (in module lxml.html.builder)": [[12, "lxml.html.builder.SAMP"]], "script (in module lxml.html.builder)": [[12, "lxml.html.builder.SCRIPT"]], "select (in module lxml.html.builder)": [[12, "lxml.html.builder.SELECT"]], "small (in module lxml.html.builder)": [[12, "lxml.html.builder.SMALL"]], "span (in module lxml.html.builder)": [[12, "lxml.html.builder.SPAN"]], "strike (in module lxml.html.builder)": [[12, "lxml.html.builder.STRIKE"]], "strong (in module lxml.html.builder)": [[12, "lxml.html.builder.STRONG"]], "style (in module lxml.html.builder)": [[12, "lxml.html.builder.STYLE"]], "sub (in module lxml.html.builder)": [[12, "lxml.html.builder.SUB"]], "sup (in module lxml.html.builder)": [[12, "lxml.html.builder.SUP"]], "table (in module lxml.html.builder)": [[12, "lxml.html.builder.TABLE"]], "tbody (in module lxml.html.builder)": [[12, "lxml.html.builder.TBODY"]], "td (in module lxml.html.builder)": [[12, "lxml.html.builder.TD"]], "textarea (in module lxml.html.builder)": [[12, "lxml.html.builder.TEXTAREA"]], "tfoot (in module lxml.html.builder)": [[12, "lxml.html.builder.TFOOT"]], "th (in module lxml.html.builder)": [[12, "lxml.html.builder.TH"]], "thead (in module lxml.html.builder)": [[12, "lxml.html.builder.THEAD"]], "title (in module lxml.html.builder)": [[12, "lxml.html.builder.TITLE"]], "tr (in module lxml.html.builder)": [[12, "lxml.html.builder.TR"]], "tt (in module lxml.html.builder)": [[12, "lxml.html.builder.TT"]], "u (in module lxml.html.builder)": [[12, "lxml.html.builder.U"]], "ul (in module lxml.html.builder)": [[12, "lxml.html.builder.UL"]], "var (in module lxml.html.builder)": [[12, "lxml.html.builder.VAR"]], "lxml.html.builder": [[12, "module-lxml.html.builder"]], "cleaner (class in lxml.html.clean)": [[13, "lxml.html.clean.Cleaner"]], "_break_text() (in module lxml.html.clean)": [[13, "lxml.html.clean._break_text"]], "_find_image_dataurls() (in module lxml.html.clean)": [[13, "lxml.html.clean._find_image_dataurls"]], "_has_javascript_scheme() (in module lxml.html.clean)": [[13, "lxml.html.clean._has_javascript_scheme"]], "_has_sneaky_javascript() (lxml.html.clean.cleaner method)": [[13, "lxml.html.clean.Cleaner._has_sneaky_javascript"]], "_insert_break() (in module lxml.html.clean)": [[13, "lxml.html.clean._insert_break"]], "_is_unsafe_image_type() (in module lxml.html.clean)": [[13, "lxml.html.clean._is_unsafe_image_type"]], "_kill_elements() (lxml.html.clean.cleaner method)": [[13, "lxml.html.clean.Cleaner._kill_elements"]], "_link_text() (in module lxml.html.clean)": [[13, "lxml.html.clean._link_text"]], "_looks_like_tag_content() (in module lxml.html.clean)": [[13, "lxml.html.clean._looks_like_tag_content"]], "_possibly_malicious_schemes() (in module lxml.html.clean)": [[13, "lxml.html.clean._possibly_malicious_schemes"]], "_remove_javascript_link() (lxml.html.clean.cleaner method)": [[13, "lxml.html.clean.Cleaner._remove_javascript_link"]], "_replace_css_import() (in module lxml.html.clean)": [[13, "lxml.html.clean._replace_css_import"]], "_replace_css_javascript() (in module lxml.html.clean)": [[13, "lxml.html.clean._replace_css_javascript"]], "_substitute_comments() (lxml.html.clean.cleaner method)": [[13, "lxml.html.clean.Cleaner._substitute_comments"]], "_substitute_whitespace() (in module lxml.html.clean)": [[13, "lxml.html.clean._substitute_whitespace"]], "_tag_link_attrs (lxml.html.clean.cleaner attribute)": [[13, "lxml.html.clean.Cleaner._tag_link_attrs"]], "add_nofollow (lxml.html.clean.cleaner attribute)": [[13, "lxml.html.clean.Cleaner.add_nofollow"]], "allow_element() (lxml.html.clean.cleaner method)": [[13, "lxml.html.clean.Cleaner.allow_element"]], "allow_embedded_url() (lxml.html.clean.cleaner method)": [[13, "lxml.html.clean.Cleaner.allow_embedded_url"]], "allow_follow() (lxml.html.clean.cleaner method)": [[13, "lxml.html.clean.Cleaner.allow_follow"]], "allow_tags (lxml.html.clean.cleaner attribute)": [[13, "lxml.html.clean.Cleaner.allow_tags"]], "annoying_tags (lxml.html.clean.cleaner attribute)": [[13, "lxml.html.clean.Cleaner.annoying_tags"]], "autolink() (in module lxml.html.clean)": [[13, "lxml.html.clean.autolink"]], "autolink_html() (in module lxml.html.clean)": [[13, "lxml.html.clean.autolink_html"]], "clean_html() (in module lxml.html.clean)": [[13, "lxml.html.clean.clean_html"]], "clean_html() (lxml.html.clean.cleaner method)": [[13, "lxml.html.clean.Cleaner.clean_html"]], "comments (lxml.html.clean.cleaner attribute)": [[13, "lxml.html.clean.Cleaner.comments"]], "embedded (lxml.html.clean.cleaner attribute)": [[13, "lxml.html.clean.Cleaner.embedded"]], "forms (lxml.html.clean.cleaner attribute)": [[13, "lxml.html.clean.Cleaner.forms"]], "frames (lxml.html.clean.cleaner attribute)": [[13, "lxml.html.clean.Cleaner.frames"]], "host_whitelist (lxml.html.clean.cleaner attribute)": [[13, "lxml.html.clean.Cleaner.host_whitelist"]], "inline_style (lxml.html.clean.cleaner attribute)": [[13, "lxml.html.clean.Cleaner.inline_style"]], "javascript (lxml.html.clean.cleaner attribute)": [[13, "lxml.html.clean.Cleaner.javascript"]], "kill_conditional_comments() (lxml.html.clean.cleaner method)": [[13, "lxml.html.clean.Cleaner.kill_conditional_comments"]], "kill_tags (lxml.html.clean.cleaner attribute)": [[13, "lxml.html.clean.Cleaner.kill_tags"]], "links (lxml.html.clean.cleaner attribute)": [[13, "lxml.html.clean.Cleaner.links"]], "lxml.html.clean": [[13, "module-lxml.html.clean"]], "meta (lxml.html.clean.cleaner attribute)": [[13, "lxml.html.clean.Cleaner.meta"]], "page_structure (lxml.html.clean.cleaner attribute)": [[13, "lxml.html.clean.Cleaner.page_structure"]], "processing_instructions (lxml.html.clean.cleaner attribute)": [[13, "lxml.html.clean.Cleaner.processing_instructions"]], "remove_tags (lxml.html.clean.cleaner attribute)": [[13, "lxml.html.clean.Cleaner.remove_tags"]], "remove_unknown_tags (lxml.html.clean.cleaner attribute)": [[13, "lxml.html.clean.Cleaner.remove_unknown_tags"]], "safe_attrs (lxml.html.clean.cleaner attribute)": [[13, "lxml.html.clean.Cleaner.safe_attrs"]], "safe_attrs_only (lxml.html.clean.cleaner attribute)": [[13, "lxml.html.clean.Cleaner.safe_attrs_only"]], "scripts (lxml.html.clean.cleaner attribute)": [[13, "lxml.html.clean.Cleaner.scripts"]], "style (lxml.html.clean.cleaner attribute)": [[13, "lxml.html.clean.Cleaner.style"]], "whitelist_tags (lxml.html.clean.cleaner attribute)": [[13, "lxml.html.clean.Cleaner.whitelist_tags"]], "word_break() (in module lxml.html.clean)": [[13, "lxml.html.clean.word_break"]], "word_break_html() (in module lxml.html.clean)": [[13, "lxml.html.clean.word_break_html"]], "lxml.html.defs": [[14, "module-lxml.html.defs"]], "del_end (class in lxml.html.diff)": [[15, "lxml.html.diff.DEL_END"]], "del_start (class in lxml.html.diff)": [[15, "lxml.html.diff.DEL_START"]], "insensitivesequencematcher (class in lxml.html.diff)": [[15, "lxml.html.diff.InsensitiveSequenceMatcher"]], "nodeletes": [[15, "lxml.html.diff.NoDeletes"]], "_contains_block_level_tag() (in module lxml.html.diff)": [[15, "lxml.html.diff._contains_block_level_tag"]], "_fixup_ins_del_tags() (in module lxml.html.diff)": [[15, "lxml.html.diff._fixup_ins_del_tags"]], "_merge_element_contents() (in module lxml.html.diff)": [[15, "lxml.html.diff._merge_element_contents"]], "_move_el_inside_block() (in module lxml.html.diff)": [[15, "lxml.html.diff._move_el_inside_block"]], "add_note() (lxml.html.diff.nodeletes method)": [[15, "lxml.html.diff.NoDeletes.add_note"]], "args (lxml.html.diff.nodeletes attribute)": [[15, "lxml.html.diff.NoDeletes.args"]], "capitalize() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.capitalize"]], "capitalize() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.capitalize"]], "capitalize() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.capitalize"]], "casefold() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.casefold"]], "casefold() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.casefold"]], "casefold() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.casefold"]], "center() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.center"]], "center() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.center"]], "center() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.center"]], "cleanup_delete() (in module lxml.html.diff)": [[15, "lxml.html.diff.cleanup_delete"]], "cleanup_html() (in module lxml.html.diff)": [[15, "lxml.html.diff.cleanup_html"]], "compress_merge_back() (in module lxml.html.diff)": [[15, "lxml.html.diff.compress_merge_back"]], "compress_tokens() (in module lxml.html.diff)": [[15, "lxml.html.diff.compress_tokens"]], "copy_annotations() (in module lxml.html.diff)": [[15, "lxml.html.diff.copy_annotations"]], "count() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.count"]], "count() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.count"]], "count() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.count"]], "default_markup() (in module lxml.html.diff)": [[15, "lxml.html.diff.default_markup"]], "encode() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.encode"]], "encode() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.encode"]], "encode() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.encode"]], "end_tag() (in module lxml.html.diff)": [[15, "lxml.html.diff.end_tag"]], "endswith() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.endswith"]], "endswith() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.endswith"]], "endswith() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.endswith"]], "expand_tokens() (in module lxml.html.diff)": [[15, "lxml.html.diff.expand_tokens"]], "expandtabs() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.expandtabs"]], "expandtabs() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.expandtabs"]], "expandtabs() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.expandtabs"]], "find() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.find"]], "find() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.find"]], "find() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.find"]], "find_longest_match() (lxml.html.diff.insensitivesequencematcher method)": [[15, "lxml.html.diff.InsensitiveSequenceMatcher.find_longest_match"]], "fixup_chunks() (in module lxml.html.diff)": [[15, "lxml.html.diff.fixup_chunks"]], "fixup_ins_del_tags() (in module lxml.html.diff)": [[15, "lxml.html.diff.fixup_ins_del_tags"]], "flatten_el() (in module lxml.html.diff)": [[15, "lxml.html.diff.flatten_el"]], "format() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.format"]], "format() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.format"]], "format() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.format"]], "format_map() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.format_map"]], "format_map() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.format_map"]], "format_map() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.format_map"]], "get_grouped_opcodes() (lxml.html.diff.insensitivesequencematcher method)": [[15, "lxml.html.diff.InsensitiveSequenceMatcher.get_grouped_opcodes"]], "get_matching_blocks() (lxml.html.diff.insensitivesequencematcher method)": [[15, "lxml.html.diff.InsensitiveSequenceMatcher.get_matching_blocks"]], "get_opcodes() (lxml.html.diff.insensitivesequencematcher method)": [[15, "lxml.html.diff.InsensitiveSequenceMatcher.get_opcodes"]], "hide_when_equal (lxml.html.diff.href_token attribute)": [[15, "lxml.html.diff.href_token.hide_when_equal"]], "hide_when_equal (lxml.html.diff.tag_token attribute)": [[15, "lxml.html.diff.tag_token.hide_when_equal"]], "hide_when_equal (lxml.html.diff.token attribute)": [[15, "lxml.html.diff.token.hide_when_equal"]], "href_token (class in lxml.html.diff)": [[15, "lxml.html.diff.href_token"]], "html() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.html"]], "html() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.html"]], "html() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.html"]], "html_annotate() (in module lxml.html.diff)": [[15, "lxml.html.diff.html_annotate"]], "html_annotate_merge_annotations() (in module lxml.html.diff)": [[15, "lxml.html.diff.html_annotate_merge_annotations"]], "htmldiff() (in module lxml.html.diff)": [[15, "lxml.html.diff.htmldiff"]], "htmldiff_tokens() (in module lxml.html.diff)": [[15, "lxml.html.diff.htmldiff_tokens"]], "index() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.index"]], "index() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.index"]], "index() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.index"]], "is_end_tag() (in module lxml.html.diff)": [[15, "lxml.html.diff.is_end_tag"]], "is_start_tag() (in module lxml.html.diff)": [[15, "lxml.html.diff.is_start_tag"]], "is_word() (in module lxml.html.diff)": [[15, "lxml.html.diff.is_word"]], "isalnum() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.isalnum"]], "isalnum() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.isalnum"]], "isalnum() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.isalnum"]], "isalpha() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.isalpha"]], "isalpha() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.isalpha"]], "isalpha() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.isalpha"]], "isascii() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.isascii"]], "isascii() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.isascii"]], "isascii() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.isascii"]], "isdecimal() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.isdecimal"]], "isdecimal() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.isdecimal"]], "isdecimal() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.isdecimal"]], "isdigit() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.isdigit"]], "isdigit() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.isdigit"]], "isdigit() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.isdigit"]], "isidentifier() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.isidentifier"]], "isidentifier() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.isidentifier"]], "isidentifier() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.isidentifier"]], "islower() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.islower"]], "islower() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.islower"]], "islower() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.islower"]], "isnumeric() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.isnumeric"]], "isnumeric() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.isnumeric"]], "isnumeric() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.isnumeric"]], "isprintable() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.isprintable"]], "isprintable() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.isprintable"]], "isprintable() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.isprintable"]], "isspace() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.isspace"]], "isspace() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.isspace"]], "isspace() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.isspace"]], "istitle() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.istitle"]], "istitle() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.istitle"]], "istitle() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.istitle"]], "isupper() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.isupper"]], "isupper() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.isupper"]], "isupper() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.isupper"]], "join() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.join"]], "join() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.join"]], "join() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.join"]], "ljust() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.ljust"]], "ljust() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.ljust"]], "ljust() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.ljust"]], "locate_unbalanced_end() (in module lxml.html.diff)": [[15, "lxml.html.diff.locate_unbalanced_end"]], "locate_unbalanced_start() (in module lxml.html.diff)": [[15, "lxml.html.diff.locate_unbalanced_start"]], "lower() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.lower"]], "lower() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.lower"]], "lower() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.lower"]], "lstrip() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.lstrip"]], "lstrip() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.lstrip"]], "lstrip() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.lstrip"]], "lxml.html.diff": [[15, "module-lxml.html.diff"]], "maketrans() (lxml.html.diff.href_token static method)": [[15, "lxml.html.diff.href_token.maketrans"]], "maketrans() (lxml.html.diff.tag_token static method)": [[15, "lxml.html.diff.tag_token.maketrans"]], "maketrans() (lxml.html.diff.token static method)": [[15, "lxml.html.diff.token.maketrans"]], "markup_serialize_tokens() (in module lxml.html.diff)": [[15, "lxml.html.diff.markup_serialize_tokens"]], "merge_delete() (in module lxml.html.diff)": [[15, "lxml.html.diff.merge_delete"]], "merge_insert() (in module lxml.html.diff)": [[15, "lxml.html.diff.merge_insert"]], "parse_html() (in module lxml.html.diff)": [[15, "lxml.html.diff.parse_html"]], "partition() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.partition"]], "partition() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.partition"]], "partition() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.partition"]], "quick_ratio() (lxml.html.diff.insensitivesequencematcher method)": [[15, "lxml.html.diff.InsensitiveSequenceMatcher.quick_ratio"]], "ratio() (lxml.html.diff.insensitivesequencematcher method)": [[15, "lxml.html.diff.InsensitiveSequenceMatcher.ratio"]], "real_quick_ratio() (lxml.html.diff.insensitivesequencematcher method)": [[15, "lxml.html.diff.InsensitiveSequenceMatcher.real_quick_ratio"]], "removeprefix() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.removeprefix"]], "removeprefix() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.removeprefix"]], "removeprefix() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.removeprefix"]], "removesuffix() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.removesuffix"]], "removesuffix() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.removesuffix"]], "removesuffix() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.removesuffix"]], "replace() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.replace"]], "replace() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.replace"]], "replace() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.replace"]], "rfind() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.rfind"]], "rfind() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.rfind"]], "rfind() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.rfind"]], "rindex() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.rindex"]], "rindex() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.rindex"]], "rindex() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.rindex"]], "rjust() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.rjust"]], "rjust() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.rjust"]], "rjust() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.rjust"]], "rpartition() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.rpartition"]], "rpartition() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.rpartition"]], "rpartition() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.rpartition"]], "rsplit() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.rsplit"]], "rsplit() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.rsplit"]], "rsplit() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.rsplit"]], "rstrip() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.rstrip"]], "rstrip() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.rstrip"]], "rstrip() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.rstrip"]], "serialize_html_fragment() (in module lxml.html.diff)": [[15, "lxml.html.diff.serialize_html_fragment"]], "set_seq1() (lxml.html.diff.insensitivesequencematcher method)": [[15, "lxml.html.diff.InsensitiveSequenceMatcher.set_seq1"]], "set_seq2() (lxml.html.diff.insensitivesequencematcher method)": [[15, "lxml.html.diff.InsensitiveSequenceMatcher.set_seq2"]], "set_seqs() (lxml.html.diff.insensitivesequencematcher method)": [[15, "lxml.html.diff.InsensitiveSequenceMatcher.set_seqs"]], "split() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.split"]], "split() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.split"]], "split() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.split"]], "split_delete() (in module lxml.html.diff)": [[15, "lxml.html.diff.split_delete"]], "split_trailing_whitespace() (in module lxml.html.diff)": [[15, "lxml.html.diff.split_trailing_whitespace"]], "split_unbalanced() (in module lxml.html.diff)": [[15, "lxml.html.diff.split_unbalanced"]], "split_words() (in module lxml.html.diff)": [[15, "lxml.html.diff.split_words"]], "splitlines() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.splitlines"]], "splitlines() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.splitlines"]], "splitlines() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.splitlines"]], "start_tag() (in module lxml.html.diff)": [[15, "lxml.html.diff.start_tag"]], "startswith() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.startswith"]], "startswith() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.startswith"]], "startswith() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.startswith"]], "strip() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.strip"]], "strip() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.strip"]], "strip() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.strip"]], "swapcase() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.swapcase"]], "swapcase() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.swapcase"]], "swapcase() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.swapcase"]], "tag_token (class in lxml.html.diff)": [[15, "lxml.html.diff.tag_token"]], "threshold (lxml.html.diff.insensitivesequencematcher attribute)": [[15, "lxml.html.diff.InsensitiveSequenceMatcher.threshold"]], "title() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.title"]], "title() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.title"]], "title() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.title"]], "token (class in lxml.html.diff)": [[15, "lxml.html.diff.token"]], "tokenize() (in module lxml.html.diff)": [[15, "lxml.html.diff.tokenize"]], "tokenize_annotated() (in module lxml.html.diff)": [[15, "lxml.html.diff.tokenize_annotated"]], "translate() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.translate"]], "translate() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.translate"]], "translate() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.translate"]], "upper() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.upper"]], "upper() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.upper"]], "upper() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.upper"]], "with_traceback() (lxml.html.diff.nodeletes method)": [[15, "lxml.html.diff.NoDeletes.with_traceback"]], "zfill() (lxml.html.diff.href_token method)": [[15, "lxml.html.diff.href_token.zfill"]], "zfill() (lxml.html.diff.tag_token method)": [[15, "lxml.html.diff.tag_token.zfill"]], "zfill() (lxml.html.diff.token method)": [[15, "lxml.html.diff.token.zfill"]], "defaulterrorcreator (class in lxml.html.formfill)": [[16, "lxml.html.formfill.DefaultErrorCreator"]], "formnotfound": [[16, "lxml.html.formfill.FormNotFound"]], "_add_class() (in module lxml.html.formfill)": [[16, "lxml.html.formfill._add_class"]], "_check() (in module lxml.html.formfill)": [[16, "lxml.html.formfill._check"]], "_fill_form() (in module lxml.html.formfill)": [[16, "lxml.html.formfill._fill_form"]], "_fill_multiple() (in module lxml.html.formfill)": [[16, "lxml.html.formfill._fill_multiple"]], "_fill_single() (in module lxml.html.formfill)": [[16, "lxml.html.formfill._fill_single"]], "_find_elements_for_name() (in module lxml.html.formfill)": [[16, "lxml.html.formfill._find_elements_for_name"]], "_find_form() (in module lxml.html.formfill)": [[16, "lxml.html.formfill._find_form"]], "_find_form_ids() (in module lxml.html.formfill)": [[16, "lxml.html.formfill._find_form_ids"]], "_insert_error() (in module lxml.html.formfill)": [[16, "lxml.html.formfill._insert_error"]], "_select() (in module lxml.html.formfill)": [[16, "lxml.html.formfill._select"]], "_takes_multiple() (in module lxml.html.formfill)": [[16, "lxml.html.formfill._takes_multiple"]], "add_note() (lxml.html.formfill.formnotfound method)": [[16, "lxml.html.formfill.FormNotFound.add_note"]], "args (lxml.html.formfill.formnotfound attribute)": [[16, "lxml.html.formfill.FormNotFound.args"]], "block_inside (lxml.html.formfill.defaulterrorcreator attribute)": [[16, "lxml.html.formfill.DefaultErrorCreator.block_inside"]], "default_message (lxml.html.formfill.defaulterrorcreator attribute)": [[16, "lxml.html.formfill.DefaultErrorCreator.default_message"]], "error_block_class (lxml.html.formfill.defaulterrorcreator attribute)": [[16, "lxml.html.formfill.DefaultErrorCreator.error_block_class"]], "error_container_tag (lxml.html.formfill.defaulterrorcreator attribute)": [[16, "lxml.html.formfill.DefaultErrorCreator.error_container_tag"]], "error_message_class (lxml.html.formfill.defaulterrorcreator attribute)": [[16, "lxml.html.formfill.DefaultErrorCreator.error_message_class"]], "fill_form() (in module lxml.html.formfill)": [[16, "lxml.html.formfill.fill_form"]], "fill_form_html() (in module lxml.html.formfill)": [[16, "lxml.html.formfill.fill_form_html"]], "insert_before (lxml.html.formfill.defaulterrorcreator attribute)": [[16, "lxml.html.formfill.DefaultErrorCreator.insert_before"]], "insert_errors() (in module lxml.html.formfill)": [[16, "lxml.html.formfill.insert_errors"]], "insert_errors_html() (in module lxml.html.formfill)": [[16, "lxml.html.formfill.insert_errors_html"]], "lxml.html.formfill": [[16, "module-lxml.html.formfill"]], "with_traceback() (lxml.html.formfill.formnotfound method)": [[16, "lxml.html.formfill.FormNotFound.with_traceback"]], "asserts_and_reports (lxml.isoschematron.schematron attribute)": [[19, "lxml.isoschematron.Schematron.ASSERTS_AND_REPORTS"]], "asserts_only (lxml.isoschematron.schematron attribute)": [[19, "lxml.isoschematron.Schematron.ASSERTS_ONLY"]], "schematron (class in lxml.isoschematron)": [[19, "lxml.isoschematron.Schematron"]], "_append_log_message() (lxml.isoschematron.schematron method)": [[19, "lxml.isoschematron.Schematron._append_log_message"]], "_clear_error_log() (lxml.isoschematron.schematron method)": [[19, "lxml.isoschematron.Schematron._clear_error_log"]], "_compile (lxml.isoschematron.schematron attribute)": [[19, "lxml.isoschematron.Schematron._compile"]], "_domain (lxml.isoschematron.schematron attribute)": [[19, "lxml.isoschematron.Schematron._domain"]], "_error_type (lxml.isoschematron.schematron attribute)": [[19, "lxml.isoschematron.Schematron._error_type"]], "_expand (lxml.isoschematron.schematron attribute)": [[19, "lxml.isoschematron.Schematron._expand"]], "_extract() (lxml.isoschematron.schematron method)": [[19, "lxml.isoschematron.Schematron._extract"]], "_extract_rng (lxml.isoschematron.schematron attribute)": [[19, "lxml.isoschematron.Schematron._extract_rng"]], "_extract_xsd (lxml.isoschematron.schematron attribute)": [[19, "lxml.isoschematron.Schematron._extract_xsd"]], "_include (lxml.isoschematron.schematron attribute)": [[19, "lxml.isoschematron.Schematron._include"]], "_level (lxml.isoschematron.schematron attribute)": [[19, "lxml.isoschematron.Schematron._level"]], "_stylesheet_param_dict() (in module lxml.isoschematron)": [[19, "lxml.isoschematron._stylesheet_param_dict"]], "_validation_errors (lxml.isoschematron.schematron attribute)": [[19, "lxml.isoschematron.Schematron._validation_errors"]], "assertvalid() (lxml.isoschematron.schematron method)": [[19, "lxml.isoschematron.Schematron.assertValid"]], "assert_() (lxml.isoschematron.schematron method)": [[19, "lxml.isoschematron.Schematron.assert_"]], "error_log (lxml.isoschematron.schematron attribute)": [[19, "lxml.isoschematron.Schematron.error_log"]], "lxml.isoschematron": [[19, "module-lxml.isoschematron"]], "schematron (lxml.isoschematron.schematron property)": [[19, "lxml.isoschematron.Schematron.schematron"]], "stylesheet_params() (in module lxml.isoschematron)": [[19, "lxml.isoschematron.stylesheet_params"]], "validate() (lxml.isoschematron.schematron method)": [[19, "lxml.isoschematron.Schematron.validate"]], "validation_report (lxml.isoschematron.schematron property)": [[19, "lxml.isoschematron.Schematron.validation_report"]], "validator_xslt (lxml.isoschematron.schematron property)": [[19, "lxml.isoschematron.Schematron.validator_xslt"]], "boolelement (class in lxml.objectify)": [[20, "lxml.objectify.BoolElement"]], "dataelement() (in module lxml.objectify)": [[20, "lxml.objectify.DataElement"]], "element() (in module lxml.objectify)": [[20, "lxml.objectify.Element"]], "elementmaker (class in lxml.objectify)": [[20, "lxml.objectify.ElementMaker"]], "floatelement (class in lxml.objectify)": [[20, "lxml.objectify.FloatElement"]], "intelement (class in lxml.objectify)": [[20, "lxml.objectify.IntElement"]], "longelement (class in lxml.objectify)": [[20, "lxml.objectify.LongElement"]], "noneelement (class in lxml.objectify)": [[20, "lxml.objectify.NoneElement"]], "numberelement (class in lxml.objectify)": [[20, "lxml.objectify.NumberElement"]], "objectpath (class in lxml.objectify)": [[20, "lxml.objectify.ObjectPath"]], "objectifieddataelement (class in lxml.objectify)": [[20, "lxml.objectify.ObjectifiedDataElement"]], "objectifiedelement (class in lxml.objectify)": [[20, "lxml.objectify.ObjectifiedElement"]], "objectifyelementclasslookup (class in lxml.objectify)": [[20, "lxml.objectify.ObjectifyElementClassLookup"]], "pytype (class in lxml.objectify)": [[20, "lxml.objectify.PyType"]], "stringelement (class in lxml.objectify)": [[20, "lxml.objectify.StringElement"]], "xml() (in module lxml.objectify)": [[20, "lxml.objectify.XML"]], "__unpickleelementtree() (in module lxml.objectify)": [[20, "lxml.objectify.__unpickleElementTree"]], "_init() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement._init"]], "_init() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement._init"]], "_init() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement._init"]], "_init() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement._init"]], "_init() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement._init"]], "_init() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement._init"]], "_init() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement._init"]], "_init() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement._init"]], "_init() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement._init"]], "_settext() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement._setText"]], "_settext() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement._setText"]], "_settext() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement._setText"]], "_settext() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement._setText"]], "_settext() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement._setText"]], "_settext() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement._setText"]], "_settext() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement._setText"]], "_settext() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement._setText"]], "_setvalueparser() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement._setValueParser"]], "_setvalueparser() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement._setValueParser"]], "_setvalueparser() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement._setValueParser"]], "_setvalueparser() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement._setValueParser"]], "_setvalueparser() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement._setValueParser"]], "addattr() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.addattr"]], "addattr() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.addattr"]], "addattr() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.addattr"]], "addattr() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.addattr"]], "addattr() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.addattr"]], "addattr() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.addattr"]], "addattr() (lxml.objectify.objectpath method)": [[20, "lxml.objectify.ObjectPath.addattr"]], "addattr() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.addattr"]], "addattr() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.addattr"]], "addattr() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.addattr"]], "addnext() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.addnext"]], "addnext() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.addnext"]], "addnext() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.addnext"]], "addnext() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.addnext"]], "addnext() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.addnext"]], "addnext() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.addnext"]], "addnext() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.addnext"]], "addnext() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.addnext"]], "addnext() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.addnext"]], "addprevious() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.addprevious"]], "addprevious() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.addprevious"]], "addprevious() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.addprevious"]], "addprevious() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.addprevious"]], "addprevious() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.addprevious"]], "addprevious() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.addprevious"]], "addprevious() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.addprevious"]], "addprevious() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.addprevious"]], "addprevious() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.addprevious"]], "annotate() (in module lxml.objectify)": [[20, "lxml.objectify.annotate"]], "append() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.append"]], "append() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.append"]], "append() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.append"]], "append() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.append"]], "append() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.append"]], "append() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.append"]], "append() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.append"]], "append() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.append"]], "append() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.append"]], "attrib (lxml.objectify.boolelement attribute)": [[20, "lxml.objectify.BoolElement.attrib"]], "attrib (lxml.objectify.floatelement attribute)": [[20, "lxml.objectify.FloatElement.attrib"]], "attrib (lxml.objectify.intelement attribute)": [[20, "lxml.objectify.IntElement.attrib"]], "attrib (lxml.objectify.longelement attribute)": [[20, "lxml.objectify.LongElement.attrib"]], "attrib (lxml.objectify.noneelement attribute)": [[20, "lxml.objectify.NoneElement.attrib"]], "attrib (lxml.objectify.numberelement attribute)": [[20, "lxml.objectify.NumberElement.attrib"]], "attrib (lxml.objectify.objectifieddataelement attribute)": [[20, "lxml.objectify.ObjectifiedDataElement.attrib"]], "attrib (lxml.objectify.objectifiedelement attribute)": [[20, "lxml.objectify.ObjectifiedElement.attrib"]], "attrib (lxml.objectify.stringelement attribute)": [[20, "lxml.objectify.StringElement.attrib"]], "base (lxml.objectify.boolelement attribute)": [[20, "lxml.objectify.BoolElement.base"]], "base (lxml.objectify.floatelement attribute)": [[20, "lxml.objectify.FloatElement.base"]], "base (lxml.objectify.intelement attribute)": [[20, "lxml.objectify.IntElement.base"]], "base (lxml.objectify.longelement attribute)": [[20, "lxml.objectify.LongElement.base"]], "base (lxml.objectify.noneelement attribute)": [[20, "lxml.objectify.NoneElement.base"]], "base (lxml.objectify.numberelement attribute)": [[20, "lxml.objectify.NumberElement.base"]], "base (lxml.objectify.objectifieddataelement attribute)": [[20, "lxml.objectify.ObjectifiedDataElement.base"]], "base (lxml.objectify.objectifiedelement attribute)": [[20, "lxml.objectify.ObjectifiedElement.base"]], "base (lxml.objectify.stringelement attribute)": [[20, "lxml.objectify.StringElement.base"]], "clear() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.clear"]], "clear() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.clear"]], "clear() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.clear"]], "clear() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.clear"]], "clear() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.clear"]], "clear() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.clear"]], "clear() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.clear"]], "clear() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.clear"]], "clear() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.clear"]], "countchildren() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.countchildren"]], "countchildren() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.countchildren"]], "countchildren() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.countchildren"]], "countchildren() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.countchildren"]], "countchildren() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.countchildren"]], "countchildren() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.countchildren"]], "countchildren() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.countchildren"]], "countchildren() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.countchildren"]], "countchildren() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.countchildren"]], "cssselect() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.cssselect"]], "cssselect() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.cssselect"]], "cssselect() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.cssselect"]], "cssselect() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.cssselect"]], "cssselect() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.cssselect"]], "cssselect() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.cssselect"]], "cssselect() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.cssselect"]], "cssselect() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.cssselect"]], "cssselect() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.cssselect"]], "deannotate() (in module lxml.objectify)": [[20, "lxml.objectify.deannotate"]], "descendantpaths() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.descendantpaths"]], "descendantpaths() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.descendantpaths"]], "descendantpaths() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.descendantpaths"]], "descendantpaths() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.descendantpaths"]], "descendantpaths() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.descendantpaths"]], "descendantpaths() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.descendantpaths"]], "descendantpaths() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.descendantpaths"]], "descendantpaths() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.descendantpaths"]], "descendantpaths() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.descendantpaths"]], "dump() (in module lxml.objectify)": [[20, "lxml.objectify.dump"]], "enable_recursive_str() (in module lxml.objectify)": [[20, "lxml.objectify.enable_recursive_str"]], "extend() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.extend"]], "extend() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.extend"]], "extend() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.extend"]], "extend() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.extend"]], "extend() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.extend"]], "extend() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.extend"]], "extend() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.extend"]], "extend() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.extend"]], "extend() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.extend"]], "find (lxml.objectify.objectpath attribute)": [[20, "lxml.objectify.ObjectPath.find"]], "find() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.find"]], "find() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.find"]], "find() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.find"]], "find() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.find"]], "find() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.find"]], "find() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.find"]], "find() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.find"]], "find() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.find"]], "find() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.find"]], "findall() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.findall"]], "findall() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.findall"]], "findall() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.findall"]], "findall() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.findall"]], "findall() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.findall"]], "findall() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.findall"]], "findall() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.findall"]], "findall() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.findall"]], "findall() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.findall"]], "findtext() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.findtext"]], "findtext() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.findtext"]], "findtext() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.findtext"]], "findtext() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.findtext"]], "findtext() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.findtext"]], "findtext() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.findtext"]], "findtext() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.findtext"]], "findtext() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.findtext"]], "findtext() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.findtext"]], "fromstring() (in module lxml.objectify)": [[20, "lxml.objectify.fromstring"]], "get() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.get"]], "get() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.get"]], "get() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.get"]], "get() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.get"]], "get() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.get"]], "get() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.get"]], "get() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.get"]], "get() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.get"]], "get() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.get"]], "getregisteredtypes() (in module lxml.objectify)": [[20, "lxml.objectify.getRegisteredTypes"]], "getchildren() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.getchildren"]], "getchildren() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.getchildren"]], "getchildren() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.getchildren"]], "getchildren() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.getchildren"]], "getchildren() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.getchildren"]], "getchildren() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.getchildren"]], "getchildren() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.getchildren"]], "getchildren() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.getchildren"]], "getchildren() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.getchildren"]], "getiterator() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.getiterator"]], "getiterator() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.getiterator"]], "getiterator() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.getiterator"]], "getiterator() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.getiterator"]], "getiterator() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.getiterator"]], "getiterator() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.getiterator"]], "getiterator() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.getiterator"]], "getiterator() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.getiterator"]], "getiterator() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.getiterator"]], "getnext() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.getnext"]], "getnext() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.getnext"]], "getnext() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.getnext"]], "getnext() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.getnext"]], "getnext() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.getnext"]], "getnext() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.getnext"]], "getnext() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.getnext"]], "getnext() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.getnext"]], "getnext() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.getnext"]], "getparent() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.getparent"]], "getparent() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.getparent"]], "getparent() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.getparent"]], "getparent() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.getparent"]], "getparent() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.getparent"]], "getparent() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.getparent"]], "getparent() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.getparent"]], "getparent() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.getparent"]], "getparent() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.getparent"]], "getprevious() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.getprevious"]], "getprevious() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.getprevious"]], "getprevious() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.getprevious"]], "getprevious() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.getprevious"]], "getprevious() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.getprevious"]], "getprevious() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.getprevious"]], "getprevious() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.getprevious"]], "getprevious() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.getprevious"]], "getprevious() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.getprevious"]], "getroottree() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.getroottree"]], "getroottree() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.getroottree"]], "getroottree() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.getroottree"]], "getroottree() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.getroottree"]], "getroottree() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.getroottree"]], "getroottree() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.getroottree"]], "getroottree() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.getroottree"]], "getroottree() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.getroottree"]], "getroottree() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.getroottree"]], "hasattr() (lxml.objectify.objectpath method)": [[20, "lxml.objectify.ObjectPath.hasattr"]], "index() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.index"]], "index() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.index"]], "index() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.index"]], "index() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.index"]], "index() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.index"]], "index() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.index"]], "index() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.index"]], "index() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.index"]], "index() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.index"]], "insert() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.insert"]], "insert() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.insert"]], "insert() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.insert"]], "insert() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.insert"]], "insert() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.insert"]], "insert() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.insert"]], "insert() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.insert"]], "insert() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.insert"]], "insert() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.insert"]], "items() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.items"]], "items() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.items"]], "items() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.items"]], "items() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.items"]], "items() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.items"]], "items() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.items"]], "items() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.items"]], "items() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.items"]], "items() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.items"]], "iter() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.iter"]], "iter() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.iter"]], "iter() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.iter"]], "iter() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.iter"]], "iter() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.iter"]], "iter() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.iter"]], "iter() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.iter"]], "iter() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.iter"]], "iter() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.iter"]], "iterancestors() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.iterancestors"]], "iterancestors() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.iterancestors"]], "iterancestors() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.iterancestors"]], "iterancestors() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.iterancestors"]], "iterancestors() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.iterancestors"]], "iterancestors() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.iterancestors"]], "iterancestors() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.iterancestors"]], "iterancestors() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.iterancestors"]], "iterancestors() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.iterancestors"]], "iterchildren() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.iterchildren"]], "iterchildren() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.iterchildren"]], "iterchildren() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.iterchildren"]], "iterchildren() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.iterchildren"]], "iterchildren() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.iterchildren"]], "iterchildren() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.iterchildren"]], "iterchildren() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.iterchildren"]], "iterchildren() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.iterchildren"]], "iterchildren() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.iterchildren"]], "iterdescendants() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.iterdescendants"]], "iterdescendants() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.iterdescendants"]], "iterdescendants() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.iterdescendants"]], "iterdescendants() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.iterdescendants"]], "iterdescendants() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.iterdescendants"]], "iterdescendants() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.iterdescendants"]], "iterdescendants() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.iterdescendants"]], "iterdescendants() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.iterdescendants"]], "iterdescendants() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.iterdescendants"]], "iterfind() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.iterfind"]], "iterfind() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.iterfind"]], "iterfind() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.iterfind"]], "iterfind() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.iterfind"]], "iterfind() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.iterfind"]], "iterfind() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.iterfind"]], "iterfind() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.iterfind"]], "iterfind() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.iterfind"]], "iterfind() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.iterfind"]], "itersiblings() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.itersiblings"]], "itersiblings() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.itersiblings"]], "itersiblings() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.itersiblings"]], "itersiblings() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.itersiblings"]], "itersiblings() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.itersiblings"]], "itersiblings() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.itersiblings"]], "itersiblings() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.itersiblings"]], "itersiblings() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.itersiblings"]], "itersiblings() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.itersiblings"]], "itertext() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.itertext"]], "itertext() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.itertext"]], "itertext() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.itertext"]], "itertext() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.itertext"]], "itertext() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.itertext"]], "itertext() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.itertext"]], "itertext() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.itertext"]], "itertext() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.itertext"]], "itertext() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.itertext"]], "keys() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.keys"]], "keys() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.keys"]], "keys() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.keys"]], "keys() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.keys"]], "keys() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.keys"]], "keys() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.keys"]], "keys() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.keys"]], "keys() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.keys"]], "keys() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.keys"]], "lxml.objectify": [[20, "module-lxml.objectify"]], "makeelement() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.makeelement"]], "makeelement() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.makeelement"]], "makeelement() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.makeelement"]], "makeelement() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.makeelement"]], "makeelement() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.makeelement"]], "makeelement() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.makeelement"]], "makeelement() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.makeelement"]], "makeelement() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.makeelement"]], "makeelement() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.makeelement"]], "makeparser() (in module lxml.objectify)": [[20, "lxml.objectify.makeparser"]], "name (lxml.objectify.pytype attribute)": [[20, "lxml.objectify.PyType.name"]], "nsmap (lxml.objectify.boolelement attribute)": [[20, "lxml.objectify.BoolElement.nsmap"]], "nsmap (lxml.objectify.floatelement attribute)": [[20, "lxml.objectify.FloatElement.nsmap"]], "nsmap (lxml.objectify.intelement attribute)": [[20, "lxml.objectify.IntElement.nsmap"]], "nsmap (lxml.objectify.longelement attribute)": [[20, "lxml.objectify.LongElement.nsmap"]], "nsmap (lxml.objectify.noneelement attribute)": [[20, "lxml.objectify.NoneElement.nsmap"]], "nsmap (lxml.objectify.numberelement attribute)": [[20, "lxml.objectify.NumberElement.nsmap"]], "nsmap (lxml.objectify.objectifieddataelement attribute)": [[20, "lxml.objectify.ObjectifiedDataElement.nsmap"]], "nsmap (lxml.objectify.objectifiedelement attribute)": [[20, "lxml.objectify.ObjectifiedElement.nsmap"]], "nsmap (lxml.objectify.stringelement attribute)": [[20, "lxml.objectify.StringElement.nsmap"]], "parse() (in module lxml.objectify)": [[20, "lxml.objectify.parse"]], "prefix (lxml.objectify.boolelement attribute)": [[20, "lxml.objectify.BoolElement.prefix"]], "prefix (lxml.objectify.floatelement attribute)": [[20, "lxml.objectify.FloatElement.prefix"]], "prefix (lxml.objectify.intelement attribute)": [[20, "lxml.objectify.IntElement.prefix"]], "prefix (lxml.objectify.longelement attribute)": [[20, "lxml.objectify.LongElement.prefix"]], "prefix (lxml.objectify.noneelement attribute)": [[20, "lxml.objectify.NoneElement.prefix"]], "prefix (lxml.objectify.numberelement attribute)": [[20, "lxml.objectify.NumberElement.prefix"]], "prefix (lxml.objectify.objectifieddataelement attribute)": [[20, "lxml.objectify.ObjectifiedDataElement.prefix"]], "prefix (lxml.objectify.objectifiedelement attribute)": [[20, "lxml.objectify.ObjectifiedElement.prefix"]], "prefix (lxml.objectify.stringelement attribute)": [[20, "lxml.objectify.StringElement.prefix"]], "pyannotate() (in module lxml.objectify)": [[20, "lxml.objectify.pyannotate"]], "pytypename() (in module lxml.objectify)": [[20, "lxml.objectify.pytypename"]], "pyval (lxml.objectify.boolelement attribute)": [[20, "lxml.objectify.BoolElement.pyval"]], "pyval (lxml.objectify.floatelement attribute)": [[20, "lxml.objectify.FloatElement.pyval"]], "pyval (lxml.objectify.intelement attribute)": [[20, "lxml.objectify.IntElement.pyval"]], "pyval (lxml.objectify.longelement attribute)": [[20, "lxml.objectify.LongElement.pyval"]], "pyval (lxml.objectify.noneelement attribute)": [[20, "lxml.objectify.NoneElement.pyval"]], "pyval (lxml.objectify.numberelement attribute)": [[20, "lxml.objectify.NumberElement.pyval"]], "pyval (lxml.objectify.objectifieddataelement attribute)": [[20, "lxml.objectify.ObjectifiedDataElement.pyval"]], "pyval (lxml.objectify.stringelement attribute)": [[20, "lxml.objectify.StringElement.pyval"]], "register() (lxml.objectify.pytype method)": [[20, "lxml.objectify.PyType.register"]], "remove() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.remove"]], "remove() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.remove"]], "remove() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.remove"]], "remove() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.remove"]], "remove() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.remove"]], "remove() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.remove"]], "remove() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.remove"]], "remove() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.remove"]], "remove() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.remove"]], "replace() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.replace"]], "replace() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.replace"]], "replace() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.replace"]], "replace() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.replace"]], "replace() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.replace"]], "replace() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.replace"]], "replace() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.replace"]], "replace() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.replace"]], "replace() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.replace"]], "set() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.set"]], "set() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.set"]], "set() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.set"]], "set() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.set"]], "set() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.set"]], "set() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.set"]], "set() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.set"]], "set() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.set"]], "set() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.set"]], "set_default_parser() (in module lxml.objectify)": [[20, "lxml.objectify.set_default_parser"]], "set_pytype_attribute_tag() (in module lxml.objectify)": [[20, "lxml.objectify.set_pytype_attribute_tag"]], "setattr() (lxml.objectify.objectpath method)": [[20, "lxml.objectify.ObjectPath.setattr"]], "sourceline (lxml.objectify.boolelement attribute)": [[20, "lxml.objectify.BoolElement.sourceline"]], "sourceline (lxml.objectify.floatelement attribute)": [[20, "lxml.objectify.FloatElement.sourceline"]], "sourceline (lxml.objectify.intelement attribute)": [[20, "lxml.objectify.IntElement.sourceline"]], "sourceline (lxml.objectify.longelement attribute)": [[20, "lxml.objectify.LongElement.sourceline"]], "sourceline (lxml.objectify.noneelement attribute)": [[20, "lxml.objectify.NoneElement.sourceline"]], "sourceline (lxml.objectify.numberelement attribute)": [[20, "lxml.objectify.NumberElement.sourceline"]], "sourceline (lxml.objectify.objectifieddataelement attribute)": [[20, "lxml.objectify.ObjectifiedDataElement.sourceline"]], "sourceline (lxml.objectify.objectifiedelement attribute)": [[20, "lxml.objectify.ObjectifiedElement.sourceline"]], "sourceline (lxml.objectify.stringelement attribute)": [[20, "lxml.objectify.StringElement.sourceline"]], "stringify (lxml.objectify.pytype attribute)": [[20, "lxml.objectify.PyType.stringify"]], "strlen() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.strlen"]], "tag (lxml.objectify.boolelement attribute)": [[20, "lxml.objectify.BoolElement.tag"]], "tag (lxml.objectify.floatelement attribute)": [[20, "lxml.objectify.FloatElement.tag"]], "tag (lxml.objectify.intelement attribute)": [[20, "lxml.objectify.IntElement.tag"]], "tag (lxml.objectify.longelement attribute)": [[20, "lxml.objectify.LongElement.tag"]], "tag (lxml.objectify.noneelement attribute)": [[20, "lxml.objectify.NoneElement.tag"]], "tag (lxml.objectify.numberelement attribute)": [[20, "lxml.objectify.NumberElement.tag"]], "tag (lxml.objectify.objectifieddataelement attribute)": [[20, "lxml.objectify.ObjectifiedDataElement.tag"]], "tag (lxml.objectify.objectifiedelement attribute)": [[20, "lxml.objectify.ObjectifiedElement.tag"]], "tag (lxml.objectify.stringelement attribute)": [[20, "lxml.objectify.StringElement.tag"]], "tail (lxml.objectify.boolelement attribute)": [[20, "lxml.objectify.BoolElement.tail"]], "tail (lxml.objectify.floatelement attribute)": [[20, "lxml.objectify.FloatElement.tail"]], "tail (lxml.objectify.intelement attribute)": [[20, "lxml.objectify.IntElement.tail"]], "tail (lxml.objectify.longelement attribute)": [[20, "lxml.objectify.LongElement.tail"]], "tail (lxml.objectify.noneelement attribute)": [[20, "lxml.objectify.NoneElement.tail"]], "tail (lxml.objectify.numberelement attribute)": [[20, "lxml.objectify.NumberElement.tail"]], "tail (lxml.objectify.objectifieddataelement attribute)": [[20, "lxml.objectify.ObjectifiedDataElement.tail"]], "tail (lxml.objectify.objectifiedelement attribute)": [[20, "lxml.objectify.ObjectifiedElement.tail"]], "tail (lxml.objectify.stringelement attribute)": [[20, "lxml.objectify.StringElement.tail"]], "text (lxml.objectify.boolelement attribute)": [[20, "lxml.objectify.BoolElement.text"]], "text (lxml.objectify.floatelement attribute)": [[20, "lxml.objectify.FloatElement.text"]], "text (lxml.objectify.intelement attribute)": [[20, "lxml.objectify.IntElement.text"]], "text (lxml.objectify.longelement attribute)": [[20, "lxml.objectify.LongElement.text"]], "text (lxml.objectify.noneelement attribute)": [[20, "lxml.objectify.NoneElement.text"]], "text (lxml.objectify.numberelement attribute)": [[20, "lxml.objectify.NumberElement.text"]], "text (lxml.objectify.objectifieddataelement attribute)": [[20, "lxml.objectify.ObjectifiedDataElement.text"]], "text (lxml.objectify.objectifiedelement attribute)": [[20, "lxml.objectify.ObjectifiedElement.text"]], "text (lxml.objectify.stringelement attribute)": [[20, "lxml.objectify.StringElement.text"]], "type_check (lxml.objectify.pytype attribute)": [[20, "lxml.objectify.PyType.type_check"]], "unregister() (lxml.objectify.pytype method)": [[20, "lxml.objectify.PyType.unregister"]], "values() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.values"]], "values() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.values"]], "values() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.values"]], "values() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.values"]], "values() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.values"]], "values() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.values"]], "values() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.values"]], "values() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.values"]], "values() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.values"]], "xmlschematypes (lxml.objectify.pytype attribute)": [[20, "lxml.objectify.PyType.xmlSchemaTypes"]], "xpath() (lxml.objectify.boolelement method)": [[20, "lxml.objectify.BoolElement.xpath"]], "xpath() (lxml.objectify.floatelement method)": [[20, "lxml.objectify.FloatElement.xpath"]], "xpath() (lxml.objectify.intelement method)": [[20, "lxml.objectify.IntElement.xpath"]], "xpath() (lxml.objectify.longelement method)": [[20, "lxml.objectify.LongElement.xpath"]], "xpath() (lxml.objectify.noneelement method)": [[20, "lxml.objectify.NoneElement.xpath"]], "xpath() (lxml.objectify.numberelement method)": [[20, "lxml.objectify.NumberElement.xpath"]], "xpath() (lxml.objectify.objectifieddataelement method)": [[20, "lxml.objectify.ObjectifiedDataElement.xpath"]], "xpath() (lxml.objectify.objectifiedelement method)": [[20, "lxml.objectify.ObjectifiedElement.xpath"]], "xpath() (lxml.objectify.stringelement method)": [[20, "lxml.objectify.StringElement.xpath"]], "xsiannotate() (in module lxml.objectify)": [[20, "lxml.objectify.xsiannotate"]], "elementtreecontenthandler (class in lxml.sax)": [[21, "lxml.sax.ElementTreeContentHandler"]], "elementtreeproducer (class in lxml.sax)": [[21, "lxml.sax.ElementTreeProducer"]], "saxerror": [[21, "lxml.sax.SaxError"]], "__pyx_unpickle_elementtreeproducer() (in module lxml.sax)": [[21, "lxml.sax.__pyx_unpickle_ElementTreeProducer"]], "_buildtag() (lxml.sax.elementtreecontenthandler method)": [[21, "lxml.sax.ElementTreeContentHandler._buildTag"]], "_get_etree() (lxml.sax.elementtreecontenthandler method)": [[21, "lxml.sax.ElementTreeContentHandler._get_etree"]], "add_note() (lxml.sax.saxerror method)": [[21, "lxml.sax.SaxError.add_note"]], "args (lxml.sax.saxerror attribute)": [[21, "lxml.sax.SaxError.args"]], "characters() (lxml.sax.elementtreecontenthandler method)": [[21, "lxml.sax.ElementTreeContentHandler.characters"]], "enddocument() (lxml.sax.elementtreecontenthandler method)": [[21, "lxml.sax.ElementTreeContentHandler.endDocument"]], "endelement() (lxml.sax.elementtreecontenthandler method)": [[21, "lxml.sax.ElementTreeContentHandler.endElement"]], "endelementns() (lxml.sax.elementtreecontenthandler method)": [[21, "lxml.sax.ElementTreeContentHandler.endElementNS"]], "endprefixmapping() (lxml.sax.elementtreecontenthandler method)": [[21, "lxml.sax.ElementTreeContentHandler.endPrefixMapping"]], "etree (lxml.sax.elementtreecontenthandler property)": [[21, "lxml.sax.ElementTreeContentHandler.etree"]], "ignorablewhitespace() (lxml.sax.elementtreecontenthandler method)": [[21, "lxml.sax.ElementTreeContentHandler.ignorableWhitespace"]], "lxml.sax": [[21, "module-lxml.sax"]], "processinginstruction() (lxml.sax.elementtreecontenthandler method)": [[21, "lxml.sax.ElementTreeContentHandler.processingInstruction"]], "saxify() (in module lxml.sax)": [[21, "lxml.sax.saxify"]], "saxify() (lxml.sax.elementtreeproducer method)": [[21, "lxml.sax.ElementTreeProducer.saxify"]], "setdocumentlocator() (lxml.sax.elementtreecontenthandler method)": [[21, "lxml.sax.ElementTreeContentHandler.setDocumentLocator"]], "skippedentity() (lxml.sax.elementtreecontenthandler method)": [[21, "lxml.sax.ElementTreeContentHandler.skippedEntity"]], "startdocument() (lxml.sax.elementtreecontenthandler method)": [[21, "lxml.sax.ElementTreeContentHandler.startDocument"]], "startelement() (lxml.sax.elementtreecontenthandler method)": [[21, "lxml.sax.ElementTreeContentHandler.startElement"]], "startelementns() (lxml.sax.elementtreecontenthandler method)": [[21, "lxml.sax.ElementTreeContentHandler.startElementNS"]], "startprefixmapping() (lxml.sax.elementtreecontenthandler method)": [[21, "lxml.sax.ElementTreeContentHandler.startPrefixMapping"]], "with_traceback() (lxml.sax.saxerror method)": [[21, "lxml.sax.SaxError.with_traceback"]]}})
\ No newline at end of file
-/* Generated by Cython 0.29.30 */
+/* Generated by Cython 0.29.36 */
/* BEGIN: Cython Metadata
{
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
#error Cython requires Python 2.6+ or Python 3.3+.
#else
-#define CYTHON_ABI "0_29_30"
-#define CYTHON_HEX_VERSION 0x001D1EF0
+#define CYTHON_ABI "0_29_36"
+#define CYTHON_HEX_VERSION 0x001D24F0
#define CYTHON_FUTURE_DIVISION 0
#include <stddef.h>
#ifndef offsetof
#define CYTHON_COMPILING_IN_PYPY 1
#define CYTHON_COMPILING_IN_PYSTON 0
#define CYTHON_COMPILING_IN_CPYTHON 0
+ #define CYTHON_COMPILING_IN_NOGIL 0
#undef CYTHON_USE_TYPE_SLOTS
#define CYTHON_USE_TYPE_SLOTS 0
#undef CYTHON_USE_PYTYPE_LOOKUP
#define CYTHON_FAST_THREAD_STATE 0
#undef CYTHON_FAST_PYCALL
#define CYTHON_FAST_PYCALL 0
- #undef CYTHON_PEP489_MULTI_PHASE_INIT
- #define CYTHON_PEP489_MULTI_PHASE_INIT 0
+ #if PY_VERSION_HEX < 0x03090000
+ #undef CYTHON_PEP489_MULTI_PHASE_INIT
+ #define CYTHON_PEP489_MULTI_PHASE_INIT 0
+ #elif !defined(CYTHON_PEP489_MULTI_PHASE_INIT)
+ #define CYTHON_PEP489_MULTI_PHASE_INIT 1
+ #endif
#undef CYTHON_USE_TP_FINALIZE
- #define CYTHON_USE_TP_FINALIZE 0
+ #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1 && PYPY_VERSION_NUM >= 0x07030C00)
#undef CYTHON_USE_DICT_VERSIONS
#define CYTHON_USE_DICT_VERSIONS 0
#undef CYTHON_USE_EXC_INFO_STACK
#define CYTHON_USE_EXC_INFO_STACK 0
#ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
- #define CYTHON_UPDATE_DESCRIPTOR_DOC (PYPY_VERSION_HEX >= 0x07030900)
+ #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
#endif
#elif defined(PYSTON_VERSION)
#define CYTHON_COMPILING_IN_PYPY 0
#define CYTHON_COMPILING_IN_PYSTON 1
#define CYTHON_COMPILING_IN_CPYTHON 0
+ #define CYTHON_COMPILING_IN_NOGIL 0
#ifndef CYTHON_USE_TYPE_SLOTS
#define CYTHON_USE_TYPE_SLOTS 1
#endif
#ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
#define CYTHON_UPDATE_DESCRIPTOR_DOC 0
#endif
+#elif defined(PY_NOGIL)
+ #define CYTHON_COMPILING_IN_PYPY 0
+ #define CYTHON_COMPILING_IN_PYSTON 0
+ #define CYTHON_COMPILING_IN_CPYTHON 0
+ #define CYTHON_COMPILING_IN_NOGIL 1
+ #ifndef CYTHON_USE_TYPE_SLOTS
+ #define CYTHON_USE_TYPE_SLOTS 1
+ #endif
+ #undef CYTHON_USE_PYTYPE_LOOKUP
+ #define CYTHON_USE_PYTYPE_LOOKUP 0
+ #ifndef CYTHON_USE_ASYNC_SLOTS
+ #define CYTHON_USE_ASYNC_SLOTS 1
+ #endif
+ #undef CYTHON_USE_PYLIST_INTERNALS
+ #define CYTHON_USE_PYLIST_INTERNALS 0
+ #ifndef CYTHON_USE_UNICODE_INTERNALS
+ #define CYTHON_USE_UNICODE_INTERNALS 1
+ #endif
+ #undef CYTHON_USE_UNICODE_WRITER
+ #define CYTHON_USE_UNICODE_WRITER 0
+ #undef CYTHON_USE_PYLONG_INTERNALS
+ #define CYTHON_USE_PYLONG_INTERNALS 0
+ #ifndef CYTHON_AVOID_BORROWED_REFS
+ #define CYTHON_AVOID_BORROWED_REFS 0
+ #endif
+ #ifndef CYTHON_ASSUME_SAFE_MACROS
+ #define CYTHON_ASSUME_SAFE_MACROS 1
+ #endif
+ #ifndef CYTHON_UNPACK_METHODS
+ #define CYTHON_UNPACK_METHODS 1
+ #endif
+ #undef CYTHON_FAST_THREAD_STATE
+ #define CYTHON_FAST_THREAD_STATE 0
+ #undef CYTHON_FAST_PYCALL
+ #define CYTHON_FAST_PYCALL 0
+ #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
+ #define CYTHON_PEP489_MULTI_PHASE_INIT 1
+ #endif
+ #ifndef CYTHON_USE_TP_FINALIZE
+ #define CYTHON_USE_TP_FINALIZE 1
+ #endif
+ #undef CYTHON_USE_DICT_VERSIONS
+ #define CYTHON_USE_DICT_VERSIONS 0
+ #undef CYTHON_USE_EXC_INFO_STACK
+ #define CYTHON_USE_EXC_INFO_STACK 0
#else
#define CYTHON_COMPILING_IN_PYPY 0
#define CYTHON_COMPILING_IN_PYSTON 0
#define CYTHON_COMPILING_IN_CPYTHON 1
+ #define CYTHON_COMPILING_IN_NOGIL 0
#ifndef CYTHON_USE_TYPE_SLOTS
#define CYTHON_USE_TYPE_SLOTS 1
#endif
#undef CYTHON_USE_PYLONG_INTERNALS
#define CYTHON_USE_PYLONG_INTERNALS 0
#elif !defined(CYTHON_USE_PYLONG_INTERNALS)
- #define CYTHON_USE_PYLONG_INTERNALS 1
+ #define CYTHON_USE_PYLONG_INTERNALS (PY_VERSION_HEX < 0x030C00A5)
#endif
#ifndef CYTHON_USE_PYLIST_INTERNALS
#define CYTHON_USE_PYLIST_INTERNALS 1
#define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1)
#endif
#ifndef CYTHON_USE_DICT_VERSIONS
- #define CYTHON_USE_DICT_VERSIONS (PY_VERSION_HEX >= 0x030600B1)
+ #define CYTHON_USE_DICT_VERSIONS ((PY_VERSION_HEX >= 0x030600B1) && (PY_VERSION_HEX < 0x030C00A5))
#endif
#if PY_VERSION_HEX >= 0x030B00A4
#undef CYTHON_USE_EXC_INFO_STACK
#endif
#endif
-#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag)
- #define Py_OptimizeFlag 0
-#endif
#define __PYX_BUILD_PY_SSIZE_T "n"
#define CYTHON_FORMAT_SSIZE_T "z"
#if PY_MAJOR_VERSION < 3
#endif
#define __Pyx_DefaultClassType PyType_Type
#endif
+#if PY_VERSION_HEX >= 0x030900F0 && !CYTHON_COMPILING_IN_PYPY
+ #define __Pyx_PyObject_GC_IsFinalized(o) PyObject_GC_IsFinalized(o)
+#else
+ #define __Pyx_PyObject_GC_IsFinalized(o) _PyGC_FINALIZED(o)
+#endif
#ifndef Py_TPFLAGS_CHECKTYPES
#define Py_TPFLAGS_CHECKTYPES 0
#endif
#endif
#if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
#define CYTHON_PEP393_ENABLED 1
- #if defined(PyUnicode_IS_READY)
- #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\
- 0 : _PyUnicode_Ready((PyObject *)(op)))
+ #if PY_VERSION_HEX >= 0x030C0000
+ #define __Pyx_PyUnicode_READY(op) (0)
#else
- #define __Pyx_PyUnicode_READY(op) (0)
+ #define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\
+ 0 : _PyUnicode_Ready((PyObject *)(op)))
#endif
#define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u)
#define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
#define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u)
#define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i)
#define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch)
- #if defined(PyUnicode_IS_READY) && defined(PyUnicode_GET_SIZE)
- #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03090000
- #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : ((PyCompactUnicodeObject *)(u))->wstr_length))
- #else
- #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
- #endif
+ #if PY_VERSION_HEX >= 0x030C0000
+ #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_LENGTH(u))
#else
- #define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_LENGTH(u))
+ #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03090000
+ #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : ((PyCompactUnicodeObject *)(u))->wstr_length))
+ #else
+ #define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
+ #endif
#endif
#else
#define CYTHON_PEP393_ENABLED 0
__pyx_e_4lxml_5etree_IWSKIP_CANNOT_SKIP
};
-/* "lxml/etree.pyx":140
+/* "lxml/etree.pyx":141
* # PyPy requires us to store a Python reference for the
* # namespace in order to keep the byte buffer alive.
* cdef struct qname: # <<<<<<<<<<<<<<
PyObject *href;
};
-/* "lxml/etree.pyx":337
+/* "lxml/etree.pyx":338
*
* # type of a function that steps from node to node
* ctypedef public xmlNode* (*_node_to_node_function)(xmlNode*) # <<<<<<<<<<<<<<
int c_domain;
};
-/* "lxml/etree.pyx":2768
+/* "lxml/etree.pyx":2771
* self._storeTags(item, seen)
*
* cdef inline int cacheTags(self, _Document doc, bint force_into_dict=False) except -1: # <<<<<<<<<<<<<<
*/
typedef PyObject *(*_element_class_lookup_function)(PyObject *, struct LxmlDocument *, xmlNode *);
-/* "src/lxml/parser.pxi":573
- * xmlparser.xmlClearParserCtxt(self._c_ctxt)
+/* "src/lxml/parser.pxi":576
+ * self._c_ctxt.nsNr = 0
*
* cdef int prepare(self, bint set_document_loader=True) except -1: # <<<<<<<<<<<<<<
* cdef int result
int set_document_loader;
};
-/* "src/lxml/parser.pxi":1421
+/* "src/lxml/parser.pxi":1424
*
*
* cdef (int, int) _parse_data_chunk(xmlparser.xmlParserCtxt* c_ctxt, # <<<<<<<<<<<<<<
*/
typedef int (*__pyx_t_4lxml_5etree__register_function)(void *, PyObject *, PyObject *);
-/* "lxml/etree.pyx":211
+/* "lxml/etree.pyx":212
*
* # Error superclass for ElementTree compatibility
* cdef class Error(Exception): # <<<<<<<<<<<<<<
};
-/* "lxml/etree.pyx":215
+/* "lxml/etree.pyx":216
*
* # module level superclass for all exceptions
* cdef class LxmlError(Error): # <<<<<<<<<<<<<<
};
-/* "lxml/etree.pyx":234
+/* "lxml/etree.pyx":235
* """
*
* cdef class C14NError(LxmlError): # <<<<<<<<<<<<<<
};
-/* "lxml/etree.pyx":288
+/* "lxml/etree.pyx":289
* @cython.final
* @cython.internal
* cdef class _TempStore: # <<<<<<<<<<<<<<
};
-/* "lxml/etree.pyx":304
+/* "lxml/etree.pyx":305
* # class for temporarily storing exceptions raised in extensions
* @cython.internal
* cdef class _ExceptionContext: # <<<<<<<<<<<<<<
};
-/* "lxml/etree.pyx":353
+/* "lxml/etree.pyx":354
* @cython.final
* @cython.freelist(8)
* cdef public class _Document [ type LxmlDocumentType, object LxmlDocument ]: # <<<<<<<<<<<<<<
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) LxmlDocumentType;
-/* "lxml/etree.pyx":527
+/* "lxml/etree.pyx":528
*
*
* cdef class DocInfo: # <<<<<<<<<<<<<<
};
-/* "lxml/etree.pyx":702
+/* "lxml/etree.pyx":703
*
* @cython.no_gc_clear
* cdef public class _Element [ type LxmlElementType, object LxmlElement ]: # <<<<<<<<<<<<<<
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) LxmlElementType;
-/* "lxml/etree.pyx":1647
+/* "lxml/etree.pyx":1648
*
* @cython.internal
* cdef class __ContentOnlyElement(_Element): # <<<<<<<<<<<<<<
};
-/* "lxml/etree.pyx":1714
+/* "lxml/etree.pyx":1715
* return []
*
* cdef class _Comment(__ContentOnlyElement): # <<<<<<<<<<<<<<
};
-/* "lxml/etree.pyx":1722
+/* "lxml/etree.pyx":1723
* return "<!--%s-->" % strrepr(self.text)
*
* cdef class _ProcessingInstruction(__ContentOnlyElement): # <<<<<<<<<<<<<<
};
-/* "lxml/etree.pyx":1773
+/* "lxml/etree.pyx":1774
* cdef object _FIND_PI_ATTRIBUTES = re.compile(ur'\s+(\w+)\s*=\s*(?:\'([^\']*)\'|"([^"]*)")', re.U).findall
*
* cdef class _Entity(__ContentOnlyElement): # <<<<<<<<<<<<<<
};
-/* "lxml/etree.pyx":1802
+/* "lxml/etree.pyx":1803
*
*
* cdef class QName: # <<<<<<<<<<<<<<
};
-/* "lxml/etree.pyx":1871
+/* "lxml/etree.pyx":1872
*
*
* cdef public class _ElementTree [ type LxmlElementTreeType, # <<<<<<<<<<<<<<
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) LxmlElementTreeType;
-/* "lxml/etree.pyx":2435
+/* "lxml/etree.pyx":2436
* @cython.final
* @cython.freelist(16)
* cdef class _Attrib: # <<<<<<<<<<<<<<
};
-/* "lxml/etree.pyx":2574
+/* "lxml/etree.pyx":2577
* @cython.final
* @cython.internal
* cdef class _AttribIterator: # <<<<<<<<<<<<<<
};
-/* "lxml/etree.pyx":2615
+/* "lxml/etree.pyx":2618
*
*
* cdef public class _ElementTagMatcher [ object LxmlElementTagMatcher, # <<<<<<<<<<<<<<
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) LxmlElementTagMatcherType;
-/* "lxml/etree.pyx":2646
+/* "lxml/etree.pyx":2649
* self._name = NULL
*
* cdef public class _ElementIterator(_ElementTagMatcher) [ # <<<<<<<<<<<<<<
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) LxmlElementIteratorType;
-/* "lxml/etree.pyx":2683
+/* "lxml/etree.pyx":2686
* @cython.final
* @cython.internal
* cdef class _MultiTagMatcher: # <<<<<<<<<<<<<<
};
-/* "lxml/etree.pyx":2822
+/* "lxml/etree.pyx":2825
* return False
*
* cdef class _ElementMatchIterator: # <<<<<<<<<<<<<<
};
-/* "lxml/etree.pyx":2851
+/* "lxml/etree.pyx":2854
* return current_node
*
* cdef class ElementChildIterator(_ElementMatchIterator): # <<<<<<<<<<<<<<
};
-/* "lxml/etree.pyx":2871
+/* "lxml/etree.pyx":2874
* self._node = _elementFactory(node._doc, c_node) if c_node is not NULL else None
*
* cdef class SiblingsIterator(_ElementMatchIterator): # <<<<<<<<<<<<<<
};
-/* "lxml/etree.pyx":2886
+/* "lxml/etree.pyx":2889
* self._storeNext(node)
*
* cdef class AncestorsIterator(_ElementMatchIterator): # <<<<<<<<<<<<<<
};
-/* "lxml/etree.pyx":2896
+/* "lxml/etree.pyx":2899
* self._storeNext(node)
*
* cdef class ElementDepthFirstIterator: # <<<<<<<<<<<<<<
};
-/* "lxml/etree.pyx":2972
+/* "lxml/etree.pyx":2975
* return NULL
*
* cdef class ElementTextIterator: # <<<<<<<<<<<<<<
};
-/* "lxml/etree.pyx":3098
+/* "lxml/etree.pyx":3101
*
*
* cdef class CDATA: # <<<<<<<<<<<<<<
};
-/* "src/lxml/parser.pxi":795
+/* "src/lxml/parser.pxi":798
*
* @cython.internal
* cdef class _BaseParser: # <<<<<<<<<<<<<<
};
-/* "src/lxml/parser.pxi":1244
+/* "src/lxml/parser.pxi":1247
* ############################################################
*
* cdef class _FeedParser(_BaseParser): # <<<<<<<<<<<<<<
};
-/* "src/lxml/parser.pxi":1477
+/* "src/lxml/parser.pxi":1480
* )
*
* cdef class XMLParser(_FeedParser): # <<<<<<<<<<<<<<
};
-/* "src/lxml/parser.pxi":1561
+/* "src/lxml/parser.pxi":1564
*
*
* cdef class XMLPullParser(XMLParser): # <<<<<<<<<<<<<<
};
-/* "src/lxml/parser.pxi":1590
+/* "src/lxml/parser.pxi":1593
*
*
* cdef class ETCompatXMLParser(XMLParser): # <<<<<<<<<<<<<<
};
-/* "src/lxml/parser.pxi":1669
+/* "src/lxml/parser.pxi":1672
* )
*
* cdef class HTMLParser(_FeedParser): # <<<<<<<<<<<<<<
};
-/* "src/lxml/parser.pxi":1734
+/* "src/lxml/parser.pxi":1737
*
*
* cdef class HTMLPullParser(HTMLParser): # <<<<<<<<<<<<<<
};
-/* "src/lxml/xslt.pxi":705
+/* "src/lxml/xslt.pxi":706
*
* @cython.final
* cdef class _XSLTResultTree(_ElementTree): # <<<<<<<<<<<<<<
};
-/* "src/lxml/xslt.pxi":894
+/* "src/lxml/xslt.pxi":895
* return __findStylesheetByID(doc, id=id)
*
* cdef class _XSLTProcessingInstruction(PIBase): # <<<<<<<<<<<<<<
};
-/* "lxml/etree.pyx":3611
+/* "lxml/etree.pyx":3614
* # Validation
*
* cdef class DocumentInvalid(LxmlError): # <<<<<<<<<<<<<<
};
-/* "lxml/etree.pyx":3619
+/* "lxml/etree.pyx":3622
*
*
* cdef class _Validator: # <<<<<<<<<<<<<<
-/* "lxml/etree.pyx":288
+/* "lxml/etree.pyx":289
* @cython.final
* @cython.internal
* cdef class _TempStore: # <<<<<<<<<<<<<<
static int __pyx_f_4lxml_5etree_10_TempStore_clear(struct __pyx_obj_4lxml_5etree__TempStore *);
-/* "lxml/etree.pyx":304
+/* "lxml/etree.pyx":305
* # class for temporarily storing exceptions raised in extensions
* @cython.internal
* cdef class _ExceptionContext: # <<<<<<<<<<<<<<
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) LxmlDocumentType;
-/* "lxml/etree.pyx":353
+/* "lxml/etree.pyx":354
* @cython.final
* @cython.freelist(8)
* cdef public class _Document [ type LxmlDocumentType, object LxmlDocument ]: # <<<<<<<<<<<<<<
static int __pyx_f_4lxml_5etree_9_Document__setNodeNs(struct LxmlDocument *, xmlNode *, const xmlChar *);
-/* "lxml/etree.pyx":527
+/* "lxml/etree.pyx":528
*
*
* cdef class DocInfo: # <<<<<<<<<<<<<<
static xmlDtd *__pyx_f_4lxml_5etree_7DocInfo__get_c_dtd(struct __pyx_obj_4lxml_5etree_DocInfo *);
-/* "lxml/etree.pyx":1647
+/* "lxml/etree.pyx":1648
*
* @cython.internal
* cdef class __ContentOnlyElement(_Element): # <<<<<<<<<<<<<<
static struct __pyx_vtabstruct_4lxml_5etree___ContentOnlyElement *__pyx_vtabptr_4lxml_5etree___ContentOnlyElement;
-/* "lxml/etree.pyx":1714
+/* "lxml/etree.pyx":1715
* return []
*
* cdef class _Comment(__ContentOnlyElement): # <<<<<<<<<<<<<<
static struct __pyx_vtabstruct_4lxml_5etree__Comment *__pyx_vtabptr_4lxml_5etree__Comment;
-/* "lxml/etree.pyx":1722
+/* "lxml/etree.pyx":1723
* return "<!--%s-->" % strrepr(self.text)
*
* cdef class _ProcessingInstruction(__ContentOnlyElement): # <<<<<<<<<<<<<<
static struct __pyx_vtabstruct_4lxml_5etree__ProcessingInstruction *__pyx_vtabptr_4lxml_5etree__ProcessingInstruction;
-/* "lxml/etree.pyx":1773
+/* "lxml/etree.pyx":1774
* cdef object _FIND_PI_ATTRIBUTES = re.compile(ur'\s+(\w+)\s*=\s*(?:\'([^\']*)\'|"([^"]*)")', re.U).findall
*
* cdef class _Entity(__ContentOnlyElement): # <<<<<<<<<<<<<<
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) LxmlElementTreeType;
-/* "lxml/etree.pyx":1871
+/* "lxml/etree.pyx":1872
*
*
* cdef public class _ElementTree [ type LxmlElementTreeType, # <<<<<<<<<<<<<<
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) LxmlElementTagMatcherType;
-/* "lxml/etree.pyx":2615
+/* "lxml/etree.pyx":2618
*
*
* cdef public class _ElementTagMatcher [ object LxmlElementTagMatcher, # <<<<<<<<<<<<<<
__PYX_EXTERN_C DL_EXPORT(PyTypeObject) LxmlElementIteratorType;
-/* "lxml/etree.pyx":2646
+/* "lxml/etree.pyx":2649
* self._name = NULL
*
* cdef public class _ElementIterator(_ElementTagMatcher) [ # <<<<<<<<<<<<<<
static struct __pyx_vtabstruct_4lxml_5etree__ElementIterator *__pyx_vtabptr_4lxml_5etree__ElementIterator;
-/* "lxml/etree.pyx":2683
+/* "lxml/etree.pyx":2686
* @cython.final
* @cython.internal
* cdef class _MultiTagMatcher: # <<<<<<<<<<<<<<
static CYTHON_INLINE int __pyx_f_4lxml_5etree_16_MultiTagMatcher_matchesAttribute(struct __pyx_obj_4lxml_5etree__MultiTagMatcher *, xmlAttr *);
-/* "lxml/etree.pyx":2822
+/* "lxml/etree.pyx":2825
* return False
*
* cdef class _ElementMatchIterator: # <<<<<<<<<<<<<<
static int __pyx_f_4lxml_5etree_21_ElementMatchIterator__storeNext(struct __pyx_obj_4lxml_5etree__ElementMatchIterator *, struct LxmlElement *);
-/* "lxml/etree.pyx":2851
+/* "lxml/etree.pyx":2854
* return current_node
*
* cdef class ElementChildIterator(_ElementMatchIterator): # <<<<<<<<<<<<<<
static struct __pyx_vtabstruct_4lxml_5etree_ElementChildIterator *__pyx_vtabptr_4lxml_5etree_ElementChildIterator;
-/* "lxml/etree.pyx":2871
+/* "lxml/etree.pyx":2874
* self._node = _elementFactory(node._doc, c_node) if c_node is not NULL else None
*
* cdef class SiblingsIterator(_ElementMatchIterator): # <<<<<<<<<<<<<<
static struct __pyx_vtabstruct_4lxml_5etree_SiblingsIterator *__pyx_vtabptr_4lxml_5etree_SiblingsIterator;
-/* "lxml/etree.pyx":2886
+/* "lxml/etree.pyx":2889
* self._storeNext(node)
*
* cdef class AncestorsIterator(_ElementMatchIterator): # <<<<<<<<<<<<<<
static struct __pyx_vtabstruct_4lxml_5etree_AncestorsIterator *__pyx_vtabptr_4lxml_5etree_AncestorsIterator;
-/* "lxml/etree.pyx":2896
+/* "lxml/etree.pyx":2899
* self._storeNext(node)
*
* cdef class ElementDepthFirstIterator: # <<<<<<<<<<<<<<
static struct __pyx_vtabstruct_4lxml_5etree__ParserContext *__pyx_vtabptr_4lxml_5etree__ParserContext;
-/* "src/lxml/parser.pxi":795
+/* "src/lxml/parser.pxi":798
*
* @cython.internal
* cdef class _BaseParser: # <<<<<<<<<<<<<<
static int __pyx_f_4lxml_5etree_11_BaseParser__configureSaxContext(struct __pyx_obj_4lxml_5etree__BaseParser *, xmlParserCtxt *);
-/* "src/lxml/parser.pxi":1244
+/* "src/lxml/parser.pxi":1247
* ############################################################
*
* cdef class _FeedParser(_BaseParser): # <<<<<<<<<<<<<<
static struct __pyx_vtabstruct_4lxml_5etree__FeedParser *__pyx_vtabptr_4lxml_5etree__FeedParser;
-/* "src/lxml/parser.pxi":1477
+/* "src/lxml/parser.pxi":1480
* )
*
* cdef class XMLParser(_FeedParser): # <<<<<<<<<<<<<<
static struct __pyx_vtabstruct_4lxml_5etree_XMLParser *__pyx_vtabptr_4lxml_5etree_XMLParser;
-/* "src/lxml/parser.pxi":1561
+/* "src/lxml/parser.pxi":1564
*
*
* cdef class XMLPullParser(XMLParser): # <<<<<<<<<<<<<<
static struct __pyx_vtabstruct_4lxml_5etree_XMLPullParser *__pyx_vtabptr_4lxml_5etree_XMLPullParser;
-/* "src/lxml/parser.pxi":1590
+/* "src/lxml/parser.pxi":1593
*
*
* cdef class ETCompatXMLParser(XMLParser): # <<<<<<<<<<<<<<
static struct __pyx_vtabstruct_4lxml_5etree_ETCompatXMLParser *__pyx_vtabptr_4lxml_5etree_ETCompatXMLParser;
-/* "src/lxml/parser.pxi":1669
+/* "src/lxml/parser.pxi":1672
* )
*
* cdef class HTMLParser(_FeedParser): # <<<<<<<<<<<<<<
static struct __pyx_vtabstruct_4lxml_5etree_HTMLParser *__pyx_vtabptr_4lxml_5etree_HTMLParser;
-/* "src/lxml/parser.pxi":1734
+/* "src/lxml/parser.pxi":1737
*
*
* cdef class HTMLPullParser(HTMLParser): # <<<<<<<<<<<<<<
static struct __pyx_vtabstruct_4lxml_5etree_XSLT *__pyx_vtabptr_4lxml_5etree_XSLT;
-/* "src/lxml/xslt.pxi":705
+/* "src/lxml/xslt.pxi":706
*
* @cython.final
* cdef class _XSLTResultTree(_ElementTree): # <<<<<<<<<<<<<<
static PyObject *__pyx_f_4lxml_5etree_15_XSLTResultTree__saveToStringAndSize(struct __pyx_obj_4lxml_5etree__XSLTResultTree *, xmlChar **, int *);
-/* "src/lxml/xslt.pxi":894
+/* "src/lxml/xslt.pxi":895
* return __findStylesheetByID(doc, id=id)
*
* cdef class _XSLTProcessingInstruction(PIBase): # <<<<<<<<<<<<<<
static struct __pyx_vtabstruct_4lxml_5etree_XSLTExtension *__pyx_vtabptr_4lxml_5etree_XSLTExtension;
-/* "lxml/etree.pyx":3619
+/* "lxml/etree.pyx":3622
*
*
* cdef class _Validator: # <<<<<<<<<<<<<<
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb);
#endif
+/* AssertionsEnabled.proto */
+#define __Pyx_init_assertions_enabled()
+#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag)
+ #define __pyx_assertions_enabled() (1)
+#elif PY_VERSION_HEX < 0x03080000 || CYTHON_COMPILING_IN_PYPY || defined(Py_LIMITED_API)
+ #define __pyx_assertions_enabled() (!Py_OptimizeFlag)
+#elif CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030900A6
+ static int __pyx_assertions_enabled_flag;
+ #define __pyx_assertions_enabled() (__pyx_assertions_enabled_flag)
+ #undef __Pyx_init_assertions_enabled
+ static void __Pyx_init_assertions_enabled(void) {
+ __pyx_assertions_enabled_flag = ! _PyInterpreterState_GetConfig(__Pyx_PyThreadState_Current->interp)->optimization_level;
+ }
+#else
+ #define __pyx_assertions_enabled() (!Py_OptimizeFlag)
+#endif
+
/* PyIntBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
/* GetModuleGlobalName.proto */
#if CYTHON_USE_DICT_VERSIONS
-#define __Pyx_GetModuleGlobalName(var, name) {\
+#define __Pyx_GetModuleGlobalName(var, name) do {\
static PY_UINT64_T __pyx_dict_version = 0;\
static PyObject *__pyx_dict_cached_value = NULL;\
(var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
(likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\
__Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
-}
-#define __Pyx_GetModuleGlobalNameUncached(var, name) {\
+} while(0)
+#define __Pyx_GetModuleGlobalNameUncached(var, name) do {\
PY_UINT64_T __pyx_dict_version;\
PyObject *__pyx_dict_cached_value;\
(var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
-}
+} while(0)
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value);
#else
#define __Pyx_GetModuleGlobalName(var, name) (var) = __Pyx__GetModuleGlobalName(name)
static int __Pyx_SetVtable(PyObject *dict, void *vtable);
/* TypeImport.proto */
-#ifndef __PYX_HAVE_RT_ImportType_proto
-#define __PYX_HAVE_RT_ImportType_proto
-enum __Pyx_ImportType_CheckSize {
- __Pyx_ImportType_CheckSize_Error = 0,
- __Pyx_ImportType_CheckSize_Warn = 1,
- __Pyx_ImportType_CheckSize_Ignore = 2
+#ifndef __PYX_HAVE_RT_ImportType_proto_0_29_36
+#define __PYX_HAVE_RT_ImportType_proto_0_29_36
+#if __STDC_VERSION__ >= 201112L
+#include <stdalign.h>
+#endif
+#if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L
+#define __PYX_GET_STRUCT_ALIGNMENT_0_29_36(s) alignof(s)
+#else
+#define __PYX_GET_STRUCT_ALIGNMENT_0_29_36(s) sizeof(void*)
+#endif
+enum __Pyx_ImportType_CheckSize_0_29_36 {
+ __Pyx_ImportType_CheckSize_Error_0_29_36 = 0,
+ __Pyx_ImportType_CheckSize_Warn_0_29_36 = 1,
+ __Pyx_ImportType_CheckSize_Ignore_0_29_36 = 2
};
-static PyTypeObject *__Pyx_ImportType(PyObject* module, const char *module_name, const char *class_name, size_t size, enum __Pyx_ImportType_CheckSize check_size);
+static PyTypeObject *__Pyx_ImportType_0_29_36(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_0_29_36 check_size);
#endif
/* CalculateMetaclass.proto */
static PyObject *__pyx_v_4lxml_5etree_partial = 0;
static PyObject *__pyx_v_4lxml_5etree_islice = 0;
static PyObject *__pyx_v_4lxml_5etree_ITER_EMPTY = 0;
+static PyObject *__pyx_v_4lxml_5etree_MutableMapping = 0;
static PyObject *__pyx_v_4lxml_5etree_IMMUTABLE_EMPTY_MAPPING = 0;
static PyObject *__pyx_v_4lxml_5etree__FILENAME_ENCODING = 0;
static char *__pyx_v_4lxml_5etree__C_FILENAME_ENCODING;
static const char __pyx_k_preserve[] = "preserve";
static const char __pyx_k_property[] = "property";
static const char __pyx_k_qualname[] = "__qualname__";
+static const char __pyx_k_register[] = "register";
static const char __pyx_k_registry[] = "registry";
static const char __pyx_k_required[] = "required";
static const char __pyx_k_resolver[] = "resolver";
static const char __pyx_k_Unknown_error[] = "\077\077 Unknown error \077\077\n";
static const char __pyx_k_XIncludeError[] = "XIncludeError";
static const char __pyx_k_XMLPullParser[] = "XMLPullParser";
-static const char __pyx_k_XML_line_3208[] = "XML (line 3208)";
+static const char __pyx_k_XML_line_3211[] = "XML (line 3211)";
static const char __pyx_k_XSLTExtension[] = "XSLTExtension";
static const char __pyx_k_XSLTSaveError[] = "XSLTSaveError";
static const char __pyx_k_XSLT_strparam[] = "XSLT.strparam";
static PyObject *__pyx_n_s_XMLSyntaxError;
static PyObject *__pyx_n_s_XMLTreeBuilder;
static PyObject *__pyx_kp_s_XML_declaration_already_written;
-static PyObject *__pyx_kp_u_XML_line_3208;
+static PyObject *__pyx_kp_u_XML_line_3211;
static PyObject *__pyx_kp_u_XML_text_parser_None_base_url_No;
static PyObject *__pyx_n_u_XPATH_LOCATIONSET;
static PyObject *__pyx_n_u_XPATH_POINT;
static PyObject *__pyx_n_s_recover;
static PyObject *__pyx_kp_u_reference_to_non_existing_embedd;
static PyObject *__pyx_n_s_regexp;
+static PyObject *__pyx_n_s_register;
static PyObject *__pyx_n_s_register_namespace;
static PyObject *__pyx_n_s_register_namespaces;
static PyObject *__pyx_n_s_registry;
static PyObject *__pyx_codeobj__686;
/* Late includes */
-/* "lxml/etree.pyx":96
+/* "lxml/etree.pyx":97
*
* class _ImmutableMapping(MutableMapping):
* def __getitem__(self, key): # <<<<<<<<<<<<<<
case 1:
if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_key)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, 1); __PYX_ERR(0, 96, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, 1); __PYX_ERR(0, 97, __pyx_L3_error)
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__getitem__") < 0)) __PYX_ERR(0, 96, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__getitem__") < 0)) __PYX_ERR(0, 97, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 96, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 97, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._ImmutableMapping.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__getitem__", 0);
- /* "lxml/etree.pyx":97
+ /* "lxml/etree.pyx":98
* class _ImmutableMapping(MutableMapping):
* def __getitem__(self, key):
* raise KeyError, key # <<<<<<<<<<<<<<
* def __setitem__(self, key, value):
*/
__Pyx_Raise(__pyx_builtin_KeyError, __pyx_v_key, 0, 0);
- __PYX_ERR(0, 97, __pyx_L1_error)
+ __PYX_ERR(0, 98, __pyx_L1_error)
- /* "lxml/etree.pyx":96
+ /* "lxml/etree.pyx":97
*
* class _ImmutableMapping(MutableMapping):
* def __getitem__(self, key): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":99
+/* "lxml/etree.pyx":100
* raise KeyError, key
*
* def __setitem__(self, key, value): # <<<<<<<<<<<<<<
case 1:
if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_key)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("__setitem__", 1, 3, 3, 1); __PYX_ERR(0, 99, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__setitem__", 1, 3, 3, 1); __PYX_ERR(0, 100, __pyx_L3_error)
}
CYTHON_FALLTHROUGH;
case 2:
if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("__setitem__", 1, 3, 3, 2); __PYX_ERR(0, 99, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__setitem__", 1, 3, 3, 2); __PYX_ERR(0, 100, __pyx_L3_error)
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__setitem__") < 0)) __PYX_ERR(0, 99, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__setitem__") < 0)) __PYX_ERR(0, 100, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("__setitem__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 99, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__setitem__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 100, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._ImmutableMapping.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__setitem__", 0);
- /* "lxml/etree.pyx":100
+ /* "lxml/etree.pyx":101
*
* def __setitem__(self, key, value):
* raise KeyError, key # <<<<<<<<<<<<<<
* def __delitem__(self, key):
*/
__Pyx_Raise(__pyx_builtin_KeyError, __pyx_v_key, 0, 0);
- __PYX_ERR(0, 100, __pyx_L1_error)
+ __PYX_ERR(0, 101, __pyx_L1_error)
- /* "lxml/etree.pyx":99
+ /* "lxml/etree.pyx":100
* raise KeyError, key
*
* def __setitem__(self, key, value): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":102
+/* "lxml/etree.pyx":103
* raise KeyError, key
*
* def __delitem__(self, key): # <<<<<<<<<<<<<<
case 1:
if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_key)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("__delitem__", 1, 2, 2, 1); __PYX_ERR(0, 102, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__delitem__", 1, 2, 2, 1); __PYX_ERR(0, 103, __pyx_L3_error)
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__delitem__") < 0)) __PYX_ERR(0, 102, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__delitem__") < 0)) __PYX_ERR(0, 103, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("__delitem__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 102, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__delitem__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 103, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._ImmutableMapping.__delitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__delitem__", 0);
- /* "lxml/etree.pyx":103
+ /* "lxml/etree.pyx":104
*
* def __delitem__(self, key):
* raise KeyError, key # <<<<<<<<<<<<<<
* def __contains__(self, key):
*/
__Pyx_Raise(__pyx_builtin_KeyError, __pyx_v_key, 0, 0);
- __PYX_ERR(0, 103, __pyx_L1_error)
+ __PYX_ERR(0, 104, __pyx_L1_error)
- /* "lxml/etree.pyx":102
+ /* "lxml/etree.pyx":103
* raise KeyError, key
*
* def __delitem__(self, key): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":105
+/* "lxml/etree.pyx":106
* raise KeyError, key
*
* def __contains__(self, key): # <<<<<<<<<<<<<<
case 1:
if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_key)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("__contains__", 1, 2, 2, 1); __PYX_ERR(0, 105, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__contains__", 1, 2, 2, 1); __PYX_ERR(0, 106, __pyx_L3_error)
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__contains__") < 0)) __PYX_ERR(0, 105, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__contains__") < 0)) __PYX_ERR(0, 106, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("__contains__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 105, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__contains__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 106, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._ImmutableMapping.__contains__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__contains__", 0);
- /* "lxml/etree.pyx":106
+ /* "lxml/etree.pyx":107
*
* def __contains__(self, key):
* return False # <<<<<<<<<<<<<<
__pyx_r = Py_False;
goto __pyx_L0;
- /* "lxml/etree.pyx":105
+ /* "lxml/etree.pyx":106
* raise KeyError, key
*
* def __contains__(self, key): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":108
+/* "lxml/etree.pyx":109
* return False
*
* def __len__(self): # <<<<<<<<<<<<<<
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__len__", 0);
- /* "lxml/etree.pyx":109
+ /* "lxml/etree.pyx":110
*
* def __len__(self):
* return 0 # <<<<<<<<<<<<<<
__pyx_r = __pyx_int_0;
goto __pyx_L0;
- /* "lxml/etree.pyx":108
+ /* "lxml/etree.pyx":109
* return False
*
* def __len__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":111
+/* "lxml/etree.pyx":112
* return 0
*
* def __iter__(self): # <<<<<<<<<<<<<<
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__iter__", 0);
- /* "lxml/etree.pyx":112
+ /* "lxml/etree.pyx":113
*
* def __iter__(self):
* return ITER_EMPTY # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_4lxml_5etree_ITER_EMPTY;
goto __pyx_L0;
- /* "lxml/etree.pyx":111
+ /* "lxml/etree.pyx":112
* return 0
*
* def __iter__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":177
+/* "lxml/etree.pyx":178
* cdef object _DEFAULT_NAMESPACE_PREFIXES_ITEMS = []
*
* cdef _update_default_namespace_prefixes_items(): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_update_default_namespace_prefixes_items", 0);
- /* "lxml/etree.pyx":183
+ /* "lxml/etree.pyx":184
* ns.decode('utf-8') : prefix.decode('utf-8')
* for ns, prefix in _DEFAULT_NAMESPACE_PREFIXES.items()
* }.items() # <<<<<<<<<<<<<<
*/
{ /* enter inner scope */
- /* "lxml/etree.pyx":180
+ /* "lxml/etree.pyx":181
* cdef bytes ns, prefix
* global _DEFAULT_NAMESPACE_PREFIXES_ITEMS
* _DEFAULT_NAMESPACE_PREFIXES_ITEMS = { # <<<<<<<<<<<<<<
* ns.decode('utf-8') : prefix.decode('utf-8')
* for ns, prefix in _DEFAULT_NAMESPACE_PREFIXES.items()
*/
- __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 180, __pyx_L5_error)
+ __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 181, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_1);
- /* "lxml/etree.pyx":182
+ /* "lxml/etree.pyx":183
* _DEFAULT_NAMESPACE_PREFIXES_ITEMS = {
* ns.decode('utf-8') : prefix.decode('utf-8')
* for ns, prefix in _DEFAULT_NAMESPACE_PREFIXES.items() # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_v_4lxml_5etree__DEFAULT_NAMESPACE_PREFIXES == Py_None)) {
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
- __PYX_ERR(0, 182, __pyx_L5_error)
+ __PYX_ERR(0, 183, __pyx_L5_error)
}
- __pyx_t_2 = __Pyx_PyDict_Items(__pyx_v_4lxml_5etree__DEFAULT_NAMESPACE_PREFIXES); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 182, __pyx_L5_error)
+ __pyx_t_2 = __Pyx_PyDict_Items(__pyx_v_4lxml_5etree__DEFAULT_NAMESPACE_PREFIXES); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 183, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_2);
if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) {
__pyx_t_3 = __pyx_t_2; __Pyx_INCREF(__pyx_t_3); __pyx_t_4 = 0;
__pyx_t_5 = NULL;
} else {
- __pyx_t_4 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 182, __pyx_L5_error)
+ __pyx_t_4 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 183, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_5 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 182, __pyx_L5_error)
+ __pyx_t_5 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 183, __pyx_L5_error)
}
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
for (;;) {
if (likely(PyList_CheckExact(__pyx_t_3))) {
if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_3)) break;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
- __pyx_t_2 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(0, 182, __pyx_L5_error)
+ __pyx_t_2 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(0, 183, __pyx_L5_error)
#else
- __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 182, __pyx_L5_error)
+ __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 183, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_2);
#endif
} else {
if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_3)) break;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
- __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(0, 182, __pyx_L5_error)
+ __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(0, 183, __pyx_L5_error)
#else
- __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 182, __pyx_L5_error)
+ __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 183, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_2);
#endif
}
PyObject* exc_type = PyErr_Occurred();
if (exc_type) {
if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
- else __PYX_ERR(0, 182, __pyx_L5_error)
+ else __PYX_ERR(0, 183, __pyx_L5_error)
}
break;
}
if (unlikely(size != 2)) {
if (size > 2) __Pyx_RaiseTooManyValuesError(2);
else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
- __PYX_ERR(0, 182, __pyx_L5_error)
+ __PYX_ERR(0, 183, __pyx_L5_error)
}
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
if (likely(PyTuple_CheckExact(sequence))) {
__Pyx_INCREF(__pyx_t_6);
__Pyx_INCREF(__pyx_t_7);
#else
- __pyx_t_6 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 182, __pyx_L5_error)
+ __pyx_t_6 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 183, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_6);
- __pyx_t_7 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 182, __pyx_L5_error)
+ __pyx_t_7 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 183, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_7);
#endif
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
} else {
Py_ssize_t index = -1;
- __pyx_t_8 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 182, __pyx_L5_error)
+ __pyx_t_8 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 183, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_8);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_9 = Py_TYPE(__pyx_t_8)->tp_iternext;
__Pyx_GOTREF(__pyx_t_6);
index = 1; __pyx_t_7 = __pyx_t_9(__pyx_t_8); if (unlikely(!__pyx_t_7)) goto __pyx_L8_unpacking_failed;
__Pyx_GOTREF(__pyx_t_7);
- if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_8), 2) < 0) __PYX_ERR(0, 182, __pyx_L5_error)
+ if (__Pyx_IternextUnpackEndCheck(__pyx_t_9(__pyx_t_8), 2) < 0) __PYX_ERR(0, 183, __pyx_L5_error)
__pyx_t_9 = NULL;
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
goto __pyx_L9_unpacking_done;
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
__pyx_t_9 = NULL;
if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
- __PYX_ERR(0, 182, __pyx_L5_error)
+ __PYX_ERR(0, 183, __pyx_L5_error)
__pyx_L9_unpacking_done:;
}
- if (!(likely(PyBytes_CheckExact(__pyx_t_6))||((__pyx_t_6) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_6)->tp_name), 0))) __PYX_ERR(0, 182, __pyx_L5_error)
- if (!(likely(PyBytes_CheckExact(__pyx_t_7))||((__pyx_t_7) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_7)->tp_name), 0))) __PYX_ERR(0, 182, __pyx_L5_error)
+ if (!(likely(PyBytes_CheckExact(__pyx_t_6))||((__pyx_t_6) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_6)->tp_name), 0))) __PYX_ERR(0, 183, __pyx_L5_error)
+ if (!(likely(PyBytes_CheckExact(__pyx_t_7))||((__pyx_t_7) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_7)->tp_name), 0))) __PYX_ERR(0, 183, __pyx_L5_error)
__Pyx_XDECREF_SET(__pyx_7genexpr__pyx_v_ns, ((PyObject*)__pyx_t_6));
__pyx_t_6 = 0;
__Pyx_XDECREF_SET(__pyx_7genexpr__pyx_v_prefix, ((PyObject*)__pyx_t_7));
__pyx_t_7 = 0;
- /* "lxml/etree.pyx":181
+ /* "lxml/etree.pyx":182
* global _DEFAULT_NAMESPACE_PREFIXES_ITEMS
* _DEFAULT_NAMESPACE_PREFIXES_ITEMS = {
* ns.decode('utf-8') : prefix.decode('utf-8') # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_7genexpr__pyx_v_ns == Py_None)) {
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode");
- __PYX_ERR(0, 181, __pyx_L5_error)
+ __PYX_ERR(0, 182, __pyx_L5_error)
}
- __pyx_t_2 = __Pyx_decode_bytes(__pyx_7genexpr__pyx_v_ns, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 181, __pyx_L5_error)
+ __pyx_t_2 = __Pyx_decode_bytes(__pyx_7genexpr__pyx_v_ns, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 182, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_2);
if (unlikely(__pyx_7genexpr__pyx_v_prefix == Py_None)) {
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode");
- __PYX_ERR(0, 181, __pyx_L5_error)
+ __PYX_ERR(0, 182, __pyx_L5_error)
}
- __pyx_t_7 = __Pyx_decode_bytes(__pyx_7genexpr__pyx_v_prefix, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 181, __pyx_L5_error)
+ __pyx_t_7 = __Pyx_decode_bytes(__pyx_7genexpr__pyx_v_prefix, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 182, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_7);
- if (unlikely(PyDict_SetItem(__pyx_t_1, (PyObject*)__pyx_t_2, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 181, __pyx_L5_error)
+ if (unlikely(PyDict_SetItem(__pyx_t_1, (PyObject*)__pyx_t_2, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 182, __pyx_L5_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- /* "lxml/etree.pyx":182
+ /* "lxml/etree.pyx":183
* _DEFAULT_NAMESPACE_PREFIXES_ITEMS = {
* ns.decode('utf-8') : prefix.decode('utf-8')
* for ns, prefix in _DEFAULT_NAMESPACE_PREFIXES.items() # <<<<<<<<<<<<<<
__pyx_L10_exit_scope:;
} /* exit inner scope */
- /* "lxml/etree.pyx":183
+ /* "lxml/etree.pyx":184
* ns.decode('utf-8') : prefix.decode('utf-8')
* for ns, prefix in _DEFAULT_NAMESPACE_PREFIXES.items()
* }.items() # <<<<<<<<<<<<<<
*
* _update_default_namespace_prefixes_items()
*/
- __pyx_t_3 = __Pyx_PyDict_Items(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 183, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyDict_Items(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 184, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_XGOTREF(__pyx_v_4lxml_5etree__DEFAULT_NAMESPACE_PREFIXES_ITEMS);
__Pyx_GIVEREF(__pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":177
+ /* "lxml/etree.pyx":178
* cdef object _DEFAULT_NAMESPACE_PREFIXES_ITEMS = []
*
* cdef _update_default_namespace_prefixes_items(): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":189
+/* "lxml/etree.pyx":190
* cdef object _check_internal_prefix = re.compile(b"ns\d+$").match
*
* def register_namespace(prefix, uri): # <<<<<<<<<<<<<<
case 1:
if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_uri)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("register_namespace", 1, 2, 2, 1); __PYX_ERR(0, 189, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("register_namespace", 1, 2, 2, 1); __PYX_ERR(0, 190, __pyx_L3_error)
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "register_namespace") < 0)) __PYX_ERR(0, 189, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "register_namespace") < 0)) __PYX_ERR(0, 190, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("register_namespace", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 189, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("register_namespace", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 190, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.register_namespace", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("register_namespace", 0);
- /* "lxml/etree.pyx":195
+ /* "lxml/etree.pyx":196
* removed.
* """
* prefix_utf, uri_utf = _utf8(prefix), _utf8(uri) # <<<<<<<<<<<<<<
* if _check_internal_prefix(prefix_utf):
* raise ValueError("Prefix format reserved for internal use")
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__utf8(__pyx_v_prefix); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 195, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__utf8(__pyx_v_prefix); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 196, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__utf8(__pyx_v_uri); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 195, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__utf8(__pyx_v_uri); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 196, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_v_prefix_utf = ((PyObject*)__pyx_t_1);
__pyx_t_1 = 0;
__pyx_v_uri_utf = ((PyObject*)__pyx_t_2);
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":196
+ /* "lxml/etree.pyx":197
* """
* prefix_utf, uri_utf = _utf8(prefix), _utf8(uri)
* if _check_internal_prefix(prefix_utf): # <<<<<<<<<<<<<<
}
__pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_3, __pyx_v_prefix_utf) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_prefix_utf);
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
- if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 196, __pyx_L1_error)
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 197, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 196, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 197, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
if (unlikely(__pyx_t_4)) {
- /* "lxml/etree.pyx":197
+ /* "lxml/etree.pyx":198
* prefix_utf, uri_utf = _utf8(prefix), _utf8(uri)
* if _check_internal_prefix(prefix_utf):
* raise ValueError("Prefix format reserved for internal use") # <<<<<<<<<<<<<<
* _tagValidOrRaise(prefix_utf)
* _uriValidOrRaise(uri_utf)
*/
- __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 197, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 198, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_Raise(__pyx_t_2, 0, 0, 0);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __PYX_ERR(0, 197, __pyx_L1_error)
+ __PYX_ERR(0, 198, __pyx_L1_error)
- /* "lxml/etree.pyx":196
+ /* "lxml/etree.pyx":197
* """
* prefix_utf, uri_utf = _utf8(prefix), _utf8(uri)
* if _check_internal_prefix(prefix_utf): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":198
+ /* "lxml/etree.pyx":199
* if _check_internal_prefix(prefix_utf):
* raise ValueError("Prefix format reserved for internal use")
* _tagValidOrRaise(prefix_utf) # <<<<<<<<<<<<<<
* _uriValidOrRaise(uri_utf)
* if (uri_utf == b"http://www.w3.org/XML/1998/namespace" and prefix_utf != b'xml'
*/
- __pyx_t_5 = __pyx_f_4lxml_5etree__tagValidOrRaise(__pyx_v_prefix_utf); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 198, __pyx_L1_error)
+ __pyx_t_5 = __pyx_f_4lxml_5etree__tagValidOrRaise(__pyx_v_prefix_utf); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 199, __pyx_L1_error)
- /* "lxml/etree.pyx":199
+ /* "lxml/etree.pyx":200
* raise ValueError("Prefix format reserved for internal use")
* _tagValidOrRaise(prefix_utf)
* _uriValidOrRaise(uri_utf) # <<<<<<<<<<<<<<
* if (uri_utf == b"http://www.w3.org/XML/1998/namespace" and prefix_utf != b'xml'
* or prefix_utf == b'xml' and uri_utf != b"http://www.w3.org/XML/1998/namespace"):
*/
- __pyx_t_5 = __pyx_f_4lxml_5etree__uriValidOrRaise(__pyx_v_uri_utf); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 199, __pyx_L1_error)
+ __pyx_t_5 = __pyx_f_4lxml_5etree__uriValidOrRaise(__pyx_v_uri_utf); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 200, __pyx_L1_error)
- /* "lxml/etree.pyx":200
+ /* "lxml/etree.pyx":201
* _tagValidOrRaise(prefix_utf)
* _uriValidOrRaise(uri_utf)
* if (uri_utf == b"http://www.w3.org/XML/1998/namespace" and prefix_utf != b'xml' # <<<<<<<<<<<<<<
* or prefix_utf == b'xml' and uri_utf != b"http://www.w3.org/XML/1998/namespace"):
* raise ValueError("Cannot change the 'xml' prefix of the XML namespace")
*/
- __pyx_t_6 = (__Pyx_PyBytes_Equals(__pyx_v_uri_utf, __pyx_kp_b_http_www_w3_org_XML_1998_namespa, Py_EQ)); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 200, __pyx_L1_error)
+ __pyx_t_6 = (__Pyx_PyBytes_Equals(__pyx_v_uri_utf, __pyx_kp_b_http_www_w3_org_XML_1998_namespa, Py_EQ)); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 201, __pyx_L1_error)
__pyx_t_7 = (__pyx_t_6 != 0);
if (!__pyx_t_7) {
goto __pyx_L6_next_or;
} else {
}
- __pyx_t_7 = (__Pyx_PyBytes_Equals(__pyx_v_prefix_utf, __pyx_n_b_xml, Py_NE)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 200, __pyx_L1_error)
+ __pyx_t_7 = (__Pyx_PyBytes_Equals(__pyx_v_prefix_utf, __pyx_n_b_xml, Py_NE)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 201, __pyx_L1_error)
__pyx_t_6 = (__pyx_t_7 != 0);
if (!__pyx_t_6) {
} else {
}
__pyx_L6_next_or:;
- /* "lxml/etree.pyx":201
+ /* "lxml/etree.pyx":202
* _uriValidOrRaise(uri_utf)
* if (uri_utf == b"http://www.w3.org/XML/1998/namespace" and prefix_utf != b'xml'
* or prefix_utf == b'xml' and uri_utf != b"http://www.w3.org/XML/1998/namespace"): # <<<<<<<<<<<<<<
* raise ValueError("Cannot change the 'xml' prefix of the XML namespace")
* for k, v in list(_DEFAULT_NAMESPACE_PREFIXES.items()):
*/
- __pyx_t_6 = (__Pyx_PyBytes_Equals(__pyx_v_prefix_utf, __pyx_n_b_xml, Py_EQ)); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 201, __pyx_L1_error)
+ __pyx_t_6 = (__Pyx_PyBytes_Equals(__pyx_v_prefix_utf, __pyx_n_b_xml, Py_EQ)); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 202, __pyx_L1_error)
__pyx_t_7 = (__pyx_t_6 != 0);
if (__pyx_t_7) {
} else {
__pyx_t_4 = __pyx_t_7;
goto __pyx_L5_bool_binop_done;
}
- __pyx_t_7 = (__Pyx_PyBytes_Equals(__pyx_v_uri_utf, __pyx_kp_b_http_www_w3_org_XML_1998_namespa, Py_NE)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 201, __pyx_L1_error)
+ __pyx_t_7 = (__Pyx_PyBytes_Equals(__pyx_v_uri_utf, __pyx_kp_b_http_www_w3_org_XML_1998_namespa, Py_NE)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 202, __pyx_L1_error)
__pyx_t_6 = (__pyx_t_7 != 0);
__pyx_t_4 = __pyx_t_6;
__pyx_L5_bool_binop_done:;
- /* "lxml/etree.pyx":200
+ /* "lxml/etree.pyx":201
* _tagValidOrRaise(prefix_utf)
* _uriValidOrRaise(uri_utf)
* if (uri_utf == b"http://www.w3.org/XML/1998/namespace" and prefix_utf != b'xml' # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_t_4)) {
- /* "lxml/etree.pyx":202
+ /* "lxml/etree.pyx":203
* if (uri_utf == b"http://www.w3.org/XML/1998/namespace" and prefix_utf != b'xml'
* or prefix_utf == b'xml' and uri_utf != b"http://www.w3.org/XML/1998/namespace"):
* raise ValueError("Cannot change the 'xml' prefix of the XML namespace") # <<<<<<<<<<<<<<
* for k, v in list(_DEFAULT_NAMESPACE_PREFIXES.items()):
* if k == uri_utf or v == prefix_utf:
*/
- __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 202, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 203, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_Raise(__pyx_t_2, 0, 0, 0);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __PYX_ERR(0, 202, __pyx_L1_error)
+ __PYX_ERR(0, 203, __pyx_L1_error)
- /* "lxml/etree.pyx":200
+ /* "lxml/etree.pyx":201
* _tagValidOrRaise(prefix_utf)
* _uriValidOrRaise(uri_utf)
* if (uri_utf == b"http://www.w3.org/XML/1998/namespace" and prefix_utf != b'xml' # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":203
+ /* "lxml/etree.pyx":204
* or prefix_utf == b'xml' and uri_utf != b"http://www.w3.org/XML/1998/namespace"):
* raise ValueError("Cannot change the 'xml' prefix of the XML namespace")
* for k, v in list(_DEFAULT_NAMESPACE_PREFIXES.items()): # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_v_4lxml_5etree__DEFAULT_NAMESPACE_PREFIXES == Py_None)) {
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "items");
- __PYX_ERR(0, 203, __pyx_L1_error)
+ __PYX_ERR(0, 204, __pyx_L1_error)
}
- __pyx_t_2 = __Pyx_PyDict_Items(__pyx_v_4lxml_5etree__DEFAULT_NAMESPACE_PREFIXES); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 203, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyDict_Items(__pyx_v_4lxml_5etree__DEFAULT_NAMESPACE_PREFIXES); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 204, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_1 = PySequence_List(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 203, __pyx_L1_error)
+ __pyx_t_1 = PySequence_List(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 204, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_8 = 0;
for (;;) {
if (__pyx_t_8 >= PyList_GET_SIZE(__pyx_t_2)) break;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
- __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_8); __Pyx_INCREF(__pyx_t_1); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(0, 203, __pyx_L1_error)
+ __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_8); __Pyx_INCREF(__pyx_t_1); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(0, 204, __pyx_L1_error)
#else
- __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 203, __pyx_L1_error)
+ __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 204, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
#endif
if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
if (unlikely(size != 2)) {
if (size > 2) __Pyx_RaiseTooManyValuesError(2);
else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
- __PYX_ERR(0, 203, __pyx_L1_error)
+ __PYX_ERR(0, 204, __pyx_L1_error)
}
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
if (likely(PyTuple_CheckExact(sequence))) {
__Pyx_INCREF(__pyx_t_3);
__Pyx_INCREF(__pyx_t_9);
#else
- __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 203, __pyx_L1_error)
+ __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 204, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_9 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 203, __pyx_L1_error)
+ __pyx_t_9 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 204, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_9);
#endif
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
} else {
Py_ssize_t index = -1;
- __pyx_t_10 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 203, __pyx_L1_error)
+ __pyx_t_10 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 204, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_10);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_11 = Py_TYPE(__pyx_t_10)->tp_iternext;
__Pyx_GOTREF(__pyx_t_3);
index = 1; __pyx_t_9 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_9)) goto __pyx_L11_unpacking_failed;
__Pyx_GOTREF(__pyx_t_9);
- if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_10), 2) < 0) __PYX_ERR(0, 203, __pyx_L1_error)
+ if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_10), 2) < 0) __PYX_ERR(0, 204, __pyx_L1_error)
__pyx_t_11 = NULL;
__Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
goto __pyx_L12_unpacking_done;
__Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
__pyx_t_11 = NULL;
if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
- __PYX_ERR(0, 203, __pyx_L1_error)
+ __PYX_ERR(0, 204, __pyx_L1_error)
__pyx_L12_unpacking_done:;
}
__Pyx_XDECREF_SET(__pyx_v_k, __pyx_t_3);
__Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_9);
__pyx_t_9 = 0;
- /* "lxml/etree.pyx":204
+ /* "lxml/etree.pyx":205
* raise ValueError("Cannot change the 'xml' prefix of the XML namespace")
* for k, v in list(_DEFAULT_NAMESPACE_PREFIXES.items()):
* if k == uri_utf or v == prefix_utf: # <<<<<<<<<<<<<<
* del _DEFAULT_NAMESPACE_PREFIXES[k]
* _DEFAULT_NAMESPACE_PREFIXES[uri_utf] = prefix_utf
*/
- __pyx_t_6 = (__Pyx_PyBytes_Equals(__pyx_v_k, __pyx_v_uri_utf, Py_EQ)); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 204, __pyx_L1_error)
+ __pyx_t_6 = (__Pyx_PyBytes_Equals(__pyx_v_k, __pyx_v_uri_utf, Py_EQ)); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 205, __pyx_L1_error)
if (!__pyx_t_6) {
} else {
__pyx_t_4 = __pyx_t_6;
goto __pyx_L14_bool_binop_done;
}
- __pyx_t_6 = (__Pyx_PyBytes_Equals(__pyx_v_v, __pyx_v_prefix_utf, Py_EQ)); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 204, __pyx_L1_error)
+ __pyx_t_6 = (__Pyx_PyBytes_Equals(__pyx_v_v, __pyx_v_prefix_utf, Py_EQ)); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(0, 205, __pyx_L1_error)
__pyx_t_4 = __pyx_t_6;
__pyx_L14_bool_binop_done:;
if (__pyx_t_4) {
- /* "lxml/etree.pyx":205
+ /* "lxml/etree.pyx":206
* for k, v in list(_DEFAULT_NAMESPACE_PREFIXES.items()):
* if k == uri_utf or v == prefix_utf:
* del _DEFAULT_NAMESPACE_PREFIXES[k] # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_v_4lxml_5etree__DEFAULT_NAMESPACE_PREFIXES == Py_None)) {
PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
- __PYX_ERR(0, 205, __pyx_L1_error)
+ __PYX_ERR(0, 206, __pyx_L1_error)
}
- if (unlikely(PyDict_DelItem(__pyx_v_4lxml_5etree__DEFAULT_NAMESPACE_PREFIXES, __pyx_v_k) < 0)) __PYX_ERR(0, 205, __pyx_L1_error)
+ if (unlikely(PyDict_DelItem(__pyx_v_4lxml_5etree__DEFAULT_NAMESPACE_PREFIXES, __pyx_v_k) < 0)) __PYX_ERR(0, 206, __pyx_L1_error)
- /* "lxml/etree.pyx":204
+ /* "lxml/etree.pyx":205
* raise ValueError("Cannot change the 'xml' prefix of the XML namespace")
* for k, v in list(_DEFAULT_NAMESPACE_PREFIXES.items()):
* if k == uri_utf or v == prefix_utf: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":203
+ /* "lxml/etree.pyx":204
* or prefix_utf == b'xml' and uri_utf != b"http://www.w3.org/XML/1998/namespace"):
* raise ValueError("Cannot change the 'xml' prefix of the XML namespace")
* for k, v in list(_DEFAULT_NAMESPACE_PREFIXES.items()): # <<<<<<<<<<<<<<
}
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":206
+ /* "lxml/etree.pyx":207
* if k == uri_utf or v == prefix_utf:
* del _DEFAULT_NAMESPACE_PREFIXES[k]
* _DEFAULT_NAMESPACE_PREFIXES[uri_utf] = prefix_utf # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_v_4lxml_5etree__DEFAULT_NAMESPACE_PREFIXES == Py_None)) {
PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
- __PYX_ERR(0, 206, __pyx_L1_error)
+ __PYX_ERR(0, 207, __pyx_L1_error)
}
- if (unlikely(PyDict_SetItem(__pyx_v_4lxml_5etree__DEFAULT_NAMESPACE_PREFIXES, __pyx_v_uri_utf, __pyx_v_prefix_utf) < 0)) __PYX_ERR(0, 206, __pyx_L1_error)
+ if (unlikely(PyDict_SetItem(__pyx_v_4lxml_5etree__DEFAULT_NAMESPACE_PREFIXES, __pyx_v_uri_utf, __pyx_v_prefix_utf) < 0)) __PYX_ERR(0, 207, __pyx_L1_error)
- /* "lxml/etree.pyx":207
+ /* "lxml/etree.pyx":208
* del _DEFAULT_NAMESPACE_PREFIXES[k]
* _DEFAULT_NAMESPACE_PREFIXES[uri_utf] = prefix_utf
* _update_default_namespace_prefixes_items() # <<<<<<<<<<<<<<
*
*
*/
- __pyx_t_2 = __pyx_f_4lxml_5etree__update_default_namespace_prefixes_items(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 207, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__update_default_namespace_prefixes_items(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 208, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":189
+ /* "lxml/etree.pyx":190
* cdef object _check_internal_prefix = re.compile(b"ns\d+$").match
*
* def register_namespace(prefix, uri): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":219
+/* "lxml/etree.pyx":220
* this one.
* """
* def __init__(self, message, error_log=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 219, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 220, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 219, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 220, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.LxmlError.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__init__", 0);
- /* "lxml/etree.pyx":220
+ /* "lxml/etree.pyx":221
* """
* def __init__(self, message, error_log=None):
* super(_Error, self).__init__(message) # <<<<<<<<<<<<<<
* if error_log is None:
* self.error_log = __copyGlobalErrorLog()
*/
- __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 220, __pyx_L1_error)
+ __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 221, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_INCREF(__pyx_v_4lxml_5etree__Error);
__Pyx_GIVEREF(__pyx_v_4lxml_5etree__Error);
__Pyx_INCREF(((PyObject *)__pyx_v_self));
__Pyx_GIVEREF(((PyObject *)__pyx_v_self));
PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_self));
- __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 220, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_super, __pyx_t_2, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 221, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_init); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 220, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_init); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 221, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_3 = NULL;
}
__pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_v_message) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_message);
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
- if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 220, __pyx_L1_error)
+ if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 221, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":221
+ /* "lxml/etree.pyx":222
* def __init__(self, message, error_log=None):
* super(_Error, self).__init__(message)
* if error_log is None: # <<<<<<<<<<<<<<
__pyx_t_5 = (__pyx_t_4 != 0);
if (__pyx_t_5) {
- /* "lxml/etree.pyx":222
+ /* "lxml/etree.pyx":223
* super(_Error, self).__init__(message)
* if error_log is None:
* self.error_log = __copyGlobalErrorLog() # <<<<<<<<<<<<<<
* else:
* self.error_log = error_log.copy()
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree___copyGlobalErrorLog(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 222, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree___copyGlobalErrorLog(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 223, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_error_log, __pyx_t_1) < 0) __PYX_ERR(0, 222, __pyx_L1_error)
+ if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_error_log, __pyx_t_1) < 0) __PYX_ERR(0, 223, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":221
+ /* "lxml/etree.pyx":222
* def __init__(self, message, error_log=None):
* super(_Error, self).__init__(message)
* if error_log is None: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":224
+ /* "lxml/etree.pyx":225
* self.error_log = __copyGlobalErrorLog()
* else:
* self.error_log = error_log.copy() # <<<<<<<<<<<<<<
* cdef object _Error = Error
*/
/*else*/ {
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_error_log, __pyx_n_s_copy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 224, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_error_log, __pyx_n_s_copy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 225, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
}
__pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
- if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 224, __pyx_L1_error)
+ if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 225, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_error_log, __pyx_t_1) < 0) __PYX_ERR(0, 224, __pyx_L1_error)
+ if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_error_log, __pyx_t_1) < 0) __PYX_ERR(0, 225, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
}
__pyx_L3:;
- /* "lxml/etree.pyx":219
+ /* "lxml/etree.pyx":220
* this one.
* """
* def __init__(self, message, error_log=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":239
+/* "lxml/etree.pyx":240
*
* # version information
* cdef __unpackDottedVersion(version): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__unpackDottedVersion", 0);
- /* "lxml/etree.pyx":240
+ /* "lxml/etree.pyx":241
* # version information
* cdef __unpackDottedVersion(version):
* version_list = [] # <<<<<<<<<<<<<<
* l = (version.decode("ascii").replace(u'-', u'.').split(u'.') + [0]*4)[:4]
* for item in l:
*/
- __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 240, __pyx_L1_error)
+ __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 241, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_v_version_list = ((PyObject*)__pyx_t_1);
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":241
+ /* "lxml/etree.pyx":242
* cdef __unpackDottedVersion(version):
* version_list = []
* l = (version.decode("ascii").replace(u'-', u'.').split(u'.') + [0]*4)[:4] # <<<<<<<<<<<<<<
* for item in l:
* try:
*/
- __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_version, __pyx_n_s_decode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 241, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_version, __pyx_n_s_decode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 242, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
}
__pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_n_s_ascii) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_n_s_ascii);
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
- if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 241, __pyx_L1_error)
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 242, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_replace); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 241, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_replace); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 242, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 241, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 242, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_split); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 241, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_split); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 242, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_2 = NULL;
}
__pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_kp_u__4) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_kp_u__4);
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
- if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 241, __pyx_L1_error)
+ if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 242, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- __pyx_t_3 = PyList_New(1 * 4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 241, __pyx_L1_error)
+ __pyx_t_3 = PyList_New(1 * 4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 242, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
{ Py_ssize_t __pyx_temp;
for (__pyx_temp=0; __pyx_temp < 4; __pyx_temp++) {
PyList_SET_ITEM(__pyx_t_3, __pyx_temp, __pyx_int_0);
}
}
- __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 241, __pyx_L1_error)
+ __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 242, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- __pyx_t_3 = __Pyx_PyObject_GetSlice(__pyx_t_2, 0, 4, NULL, NULL, &__pyx_slice__6, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 241, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_GetSlice(__pyx_t_2, 0, 4, NULL, NULL, &__pyx_slice__6, 0, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 242, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_v_l = __pyx_t_3;
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":242
+ /* "lxml/etree.pyx":243
* version_list = []
* l = (version.decode("ascii").replace(u'-', u'.').split(u'.') + [0]*4)[:4]
* for item in l: # <<<<<<<<<<<<<<
__pyx_t_3 = __pyx_v_l; __Pyx_INCREF(__pyx_t_3); __pyx_t_5 = 0;
__pyx_t_6 = NULL;
} else {
- __pyx_t_5 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_l); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 242, __pyx_L1_error)
+ __pyx_t_5 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_v_l); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 243, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_6 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 242, __pyx_L1_error)
+ __pyx_t_6 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 243, __pyx_L1_error)
}
for (;;) {
if (likely(!__pyx_t_6)) {
if (likely(PyList_CheckExact(__pyx_t_3))) {
if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_3)) break;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
- __pyx_t_2 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_2); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(0, 242, __pyx_L1_error)
+ __pyx_t_2 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_2); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(0, 243, __pyx_L1_error)
#else
- __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 242, __pyx_L1_error)
+ __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 243, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
#endif
} else {
if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_3)) break;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
- __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_2); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(0, 242, __pyx_L1_error)
+ __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_5); __Pyx_INCREF(__pyx_t_2); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(0, 243, __pyx_L1_error)
#else
- __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 242, __pyx_L1_error)
+ __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 243, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
#endif
}
PyObject* exc_type = PyErr_Occurred();
if (exc_type) {
if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
- else __PYX_ERR(0, 242, __pyx_L1_error)
+ else __PYX_ERR(0, 243, __pyx_L1_error)
}
break;
}
__Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_2);
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":243
+ /* "lxml/etree.pyx":244
* l = (version.decode("ascii").replace(u'-', u'.').split(u'.') + [0]*4)[:4]
* for item in l:
* try: # <<<<<<<<<<<<<<
__Pyx_XGOTREF(__pyx_t_9);
/*try:*/ {
- /* "lxml/etree.pyx":244
+ /* "lxml/etree.pyx":245
* for item in l:
* try:
* item = int(item) # <<<<<<<<<<<<<<
* except ValueError:
* if item.startswith(u'dev'):
*/
- __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_item); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 244, __pyx_L5_error)
+ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_v_item); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 245, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF_SET(__pyx_v_item, __pyx_t_2);
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":243
+ /* "lxml/etree.pyx":244
* l = (version.decode("ascii").replace(u'-', u'.').split(u'.') + [0]*4)[:4]
* for item in l:
* try: # <<<<<<<<<<<<<<
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "lxml/etree.pyx":245
+ /* "lxml/etree.pyx":246
* try:
* item = int(item)
* except ValueError: # <<<<<<<<<<<<<<
__pyx_t_10 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError);
if (__pyx_t_10) {
__Pyx_AddTraceback("lxml.etree.__unpackDottedVersion", __pyx_clineno, __pyx_lineno, __pyx_filename);
- if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_1, &__pyx_t_4) < 0) __PYX_ERR(0, 245, __pyx_L7_except_error)
+ if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_1, &__pyx_t_4) < 0) __PYX_ERR(0, 246, __pyx_L7_except_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_GOTREF(__pyx_t_1);
__Pyx_GOTREF(__pyx_t_4);
- /* "lxml/etree.pyx":246
+ /* "lxml/etree.pyx":247
* item = int(item)
* except ValueError:
* if item.startswith(u'dev'): # <<<<<<<<<<<<<<
* count = item[3:]
* item = -300
*/
- __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_startswith); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 246, __pyx_L7_except_error)
+ __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_startswith); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 247, __pyx_L7_except_error)
__Pyx_GOTREF(__pyx_t_12);
__pyx_t_13 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_12))) {
}
__pyx_t_11 = (__pyx_t_13) ? __Pyx_PyObject_Call2Args(__pyx_t_12, __pyx_t_13, __pyx_n_u_dev) : __Pyx_PyObject_CallOneArg(__pyx_t_12, __pyx_n_u_dev);
__Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
- if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 246, __pyx_L7_except_error)
+ if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 247, __pyx_L7_except_error)
__Pyx_GOTREF(__pyx_t_11);
__Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
- __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_t_11); if (unlikely(__pyx_t_14 < 0)) __PYX_ERR(0, 246, __pyx_L7_except_error)
+ __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_t_11); if (unlikely(__pyx_t_14 < 0)) __PYX_ERR(0, 247, __pyx_L7_except_error)
__Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
if (__pyx_t_14) {
- /* "lxml/etree.pyx":247
+ /* "lxml/etree.pyx":248
* except ValueError:
* if item.startswith(u'dev'):
* count = item[3:] # <<<<<<<<<<<<<<
* item = -300
* elif item.startswith(u'alpha'):
*/
- __pyx_t_11 = __Pyx_PyObject_GetSlice(__pyx_v_item, 3, 0, NULL, NULL, &__pyx_slice__7, 1, 0, 1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 247, __pyx_L7_except_error)
+ __pyx_t_11 = __Pyx_PyObject_GetSlice(__pyx_v_item, 3, 0, NULL, NULL, &__pyx_slice__7, 1, 0, 1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 248, __pyx_L7_except_error)
__Pyx_GOTREF(__pyx_t_11);
__Pyx_XDECREF_SET(__pyx_v_count, __pyx_t_11);
__pyx_t_11 = 0;
- /* "lxml/etree.pyx":248
+ /* "lxml/etree.pyx":249
* if item.startswith(u'dev'):
* count = item[3:]
* item = -300 # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_int_neg_300);
__Pyx_DECREF_SET(__pyx_v_item, __pyx_int_neg_300);
- /* "lxml/etree.pyx":246
+ /* "lxml/etree.pyx":247
* item = int(item)
* except ValueError:
* if item.startswith(u'dev'): # <<<<<<<<<<<<<<
goto __pyx_L15;
}
- /* "lxml/etree.pyx":249
+ /* "lxml/etree.pyx":250
* count = item[3:]
* item = -300
* elif item.startswith(u'alpha'): # <<<<<<<<<<<<<<
* count = item[5:]
* item = -200
*/
- __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_startswith); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 249, __pyx_L7_except_error)
+ __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_startswith); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 250, __pyx_L7_except_error)
__Pyx_GOTREF(__pyx_t_12);
__pyx_t_13 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_12))) {
}
__pyx_t_11 = (__pyx_t_13) ? __Pyx_PyObject_Call2Args(__pyx_t_12, __pyx_t_13, __pyx_n_u_alpha) : __Pyx_PyObject_CallOneArg(__pyx_t_12, __pyx_n_u_alpha);
__Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
- if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 249, __pyx_L7_except_error)
+ if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 250, __pyx_L7_except_error)
__Pyx_GOTREF(__pyx_t_11);
__Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
- __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_t_11); if (unlikely(__pyx_t_14 < 0)) __PYX_ERR(0, 249, __pyx_L7_except_error)
+ __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_t_11); if (unlikely(__pyx_t_14 < 0)) __PYX_ERR(0, 250, __pyx_L7_except_error)
__Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
if (__pyx_t_14) {
- /* "lxml/etree.pyx":250
+ /* "lxml/etree.pyx":251
* item = -300
* elif item.startswith(u'alpha'):
* count = item[5:] # <<<<<<<<<<<<<<
* item = -200
* elif item.startswith(u'beta'):
*/
- __pyx_t_11 = __Pyx_PyObject_GetSlice(__pyx_v_item, 5, 0, NULL, NULL, &__pyx_slice__8, 1, 0, 1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 250, __pyx_L7_except_error)
+ __pyx_t_11 = __Pyx_PyObject_GetSlice(__pyx_v_item, 5, 0, NULL, NULL, &__pyx_slice__8, 1, 0, 1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 251, __pyx_L7_except_error)
__Pyx_GOTREF(__pyx_t_11);
__Pyx_XDECREF_SET(__pyx_v_count, __pyx_t_11);
__pyx_t_11 = 0;
- /* "lxml/etree.pyx":251
+ /* "lxml/etree.pyx":252
* elif item.startswith(u'alpha'):
* count = item[5:]
* item = -200 # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_int_neg_200);
__Pyx_DECREF_SET(__pyx_v_item, __pyx_int_neg_200);
- /* "lxml/etree.pyx":249
+ /* "lxml/etree.pyx":250
* count = item[3:]
* item = -300
* elif item.startswith(u'alpha'): # <<<<<<<<<<<<<<
goto __pyx_L15;
}
- /* "lxml/etree.pyx":252
+ /* "lxml/etree.pyx":253
* count = item[5:]
* item = -200
* elif item.startswith(u'beta'): # <<<<<<<<<<<<<<
* count = item[4:]
* item = -100
*/
- __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_startswith); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 252, __pyx_L7_except_error)
+ __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_v_item, __pyx_n_s_startswith); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 253, __pyx_L7_except_error)
__Pyx_GOTREF(__pyx_t_12);
__pyx_t_13 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_12))) {
}
__pyx_t_11 = (__pyx_t_13) ? __Pyx_PyObject_Call2Args(__pyx_t_12, __pyx_t_13, __pyx_n_u_beta) : __Pyx_PyObject_CallOneArg(__pyx_t_12, __pyx_n_u_beta);
__Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
- if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 252, __pyx_L7_except_error)
+ if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 253, __pyx_L7_except_error)
__Pyx_GOTREF(__pyx_t_11);
__Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
- __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_t_11); if (unlikely(__pyx_t_14 < 0)) __PYX_ERR(0, 252, __pyx_L7_except_error)
+ __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_t_11); if (unlikely(__pyx_t_14 < 0)) __PYX_ERR(0, 253, __pyx_L7_except_error)
__Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
if (__pyx_t_14) {
- /* "lxml/etree.pyx":253
+ /* "lxml/etree.pyx":254
* item = -200
* elif item.startswith(u'beta'):
* count = item[4:] # <<<<<<<<<<<<<<
* item = -100
* else:
*/
- __pyx_t_11 = __Pyx_PyObject_GetSlice(__pyx_v_item, 4, 0, NULL, NULL, &__pyx_slice__9, 1, 0, 1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 253, __pyx_L7_except_error)
+ __pyx_t_11 = __Pyx_PyObject_GetSlice(__pyx_v_item, 4, 0, NULL, NULL, &__pyx_slice__9, 1, 0, 1); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 254, __pyx_L7_except_error)
__Pyx_GOTREF(__pyx_t_11);
__Pyx_XDECREF_SET(__pyx_v_count, __pyx_t_11);
__pyx_t_11 = 0;
- /* "lxml/etree.pyx":254
+ /* "lxml/etree.pyx":255
* elif item.startswith(u'beta'):
* count = item[4:]
* item = -100 # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_int_neg_100);
__Pyx_DECREF_SET(__pyx_v_item, __pyx_int_neg_100);
- /* "lxml/etree.pyx":252
+ /* "lxml/etree.pyx":253
* count = item[5:]
* item = -200
* elif item.startswith(u'beta'): # <<<<<<<<<<<<<<
goto __pyx_L15;
}
- /* "lxml/etree.pyx":256
+ /* "lxml/etree.pyx":257
* item = -100
* else:
* count = 0 # <<<<<<<<<<<<<<
}
__pyx_L15:;
- /* "lxml/etree.pyx":257
+ /* "lxml/etree.pyx":258
* else:
* count = 0
* if count: # <<<<<<<<<<<<<<
* item += int(count)
* version_list.append(item)
*/
- __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_v_count); if (unlikely(__pyx_t_14 < 0)) __PYX_ERR(0, 257, __pyx_L7_except_error)
+ __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_v_count); if (unlikely(__pyx_t_14 < 0)) __PYX_ERR(0, 258, __pyx_L7_except_error)
if (__pyx_t_14) {
- /* "lxml/etree.pyx":258
+ /* "lxml/etree.pyx":259
* count = 0
* if count:
* item += int(count) # <<<<<<<<<<<<<<
* version_list.append(item)
* return tuple(version_list)
*/
- __pyx_t_11 = __Pyx_PyNumber_Int(__pyx_v_count); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 258, __pyx_L7_except_error)
+ __pyx_t_11 = __Pyx_PyNumber_Int(__pyx_v_count); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 259, __pyx_L7_except_error)
__Pyx_GOTREF(__pyx_t_11);
- __pyx_t_12 = PyNumber_InPlaceAdd(__pyx_v_item, __pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 258, __pyx_L7_except_error)
+ __pyx_t_12 = PyNumber_InPlaceAdd(__pyx_v_item, __pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 259, __pyx_L7_except_error)
__Pyx_GOTREF(__pyx_t_12);
__Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
__Pyx_DECREF_SET(__pyx_v_item, __pyx_t_12);
__pyx_t_12 = 0;
- /* "lxml/etree.pyx":257
+ /* "lxml/etree.pyx":258
* else:
* count = 0
* if count: # <<<<<<<<<<<<<<
goto __pyx_L7_except_error;
__pyx_L7_except_error:;
- /* "lxml/etree.pyx":243
+ /* "lxml/etree.pyx":244
* l = (version.decode("ascii").replace(u'-', u'.').split(u'.') + [0]*4)[:4]
* for item in l:
* try: # <<<<<<<<<<<<<<
__pyx_L12_try_end:;
}
- /* "lxml/etree.pyx":259
+ /* "lxml/etree.pyx":260
* if count:
* item += int(count)
* version_list.append(item) # <<<<<<<<<<<<<<
* return tuple(version_list)
*
*/
- __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_version_list, __pyx_v_item); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(0, 259, __pyx_L1_error)
+ __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_version_list, __pyx_v_item); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(0, 260, __pyx_L1_error)
- /* "lxml/etree.pyx":242
+ /* "lxml/etree.pyx":243
* version_list = []
* l = (version.decode("ascii").replace(u'-', u'.').split(u'.') + [0]*4)[:4]
* for item in l: # <<<<<<<<<<<<<<
}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- /* "lxml/etree.pyx":260
+ /* "lxml/etree.pyx":261
* item += int(count)
* version_list.append(item)
* return tuple(version_list) # <<<<<<<<<<<<<<
* cdef __unpackIntVersion(int c_version):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_3 = PyList_AsTuple(__pyx_v_version_list); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 260, __pyx_L1_error)
+ __pyx_t_3 = PyList_AsTuple(__pyx_v_version_list); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 261, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":239
+ /* "lxml/etree.pyx":240
*
* # version information
* cdef __unpackDottedVersion(version): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":262
+/* "lxml/etree.pyx":263
* return tuple(version_list)
*
* cdef __unpackIntVersion(int c_version): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__unpackIntVersion", 0);
- /* "lxml/etree.pyx":263
+ /* "lxml/etree.pyx":264
*
* cdef __unpackIntVersion(int c_version):
* return ( # <<<<<<<<<<<<<<
*/
__Pyx_XDECREF(__pyx_r);
- /* "lxml/etree.pyx":264
+ /* "lxml/etree.pyx":265
* cdef __unpackIntVersion(int c_version):
* return (
* ((c_version / (100*100)) % 100), # <<<<<<<<<<<<<<
* ((c_version / 100) % 100),
* (c_version % 100)
*/
- __pyx_t_1 = __Pyx_PyInt_From_long(__Pyx_mod_long(__Pyx_div_long(__pyx_v_c_version, 0x2710), 0x64)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 264, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyInt_From_long(__Pyx_mod_long(__Pyx_div_long(__pyx_v_c_version, 0x2710), 0x64)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 265, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- /* "lxml/etree.pyx":265
+ /* "lxml/etree.pyx":266
* return (
* ((c_version / (100*100)) % 100),
* ((c_version / 100) % 100), # <<<<<<<<<<<<<<
* (c_version % 100)
* )
*/
- __pyx_t_2 = __Pyx_PyInt_From_long(__Pyx_mod_long(__Pyx_div_long(__pyx_v_c_version, 0x64), 0x64)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 265, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyInt_From_long(__Pyx_mod_long(__Pyx_div_long(__pyx_v_c_version, 0x64), 0x64)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 266, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- /* "lxml/etree.pyx":266
+ /* "lxml/etree.pyx":267
* ((c_version / (100*100)) % 100),
* ((c_version / 100) % 100),
* (c_version % 100) # <<<<<<<<<<<<<<
* )
*
*/
- __pyx_t_3 = __Pyx_PyInt_From_long(__Pyx_mod_long(__pyx_v_c_version, 0x64)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 266, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyInt_From_long(__Pyx_mod_long(__pyx_v_c_version, 0x64)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 267, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- /* "lxml/etree.pyx":264
+ /* "lxml/etree.pyx":265
* cdef __unpackIntVersion(int c_version):
* return (
* ((c_version / (100*100)) % 100), # <<<<<<<<<<<<<<
* ((c_version / 100) % 100),
* (c_version % 100)
*/
- __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 264, __pyx_L1_error)
+ __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 265, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_GIVEREF(__pyx_t_1);
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
__pyx_t_4 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":262
+ /* "lxml/etree.pyx":263
* return tuple(version_list)
*
* cdef __unpackIntVersion(int c_version): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":290
+/* "lxml/etree.pyx":291
* cdef class _TempStore:
* cdef list _storage
* def __init__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__init__", 0);
- /* "lxml/etree.pyx":291
+ /* "lxml/etree.pyx":292
* cdef list _storage
* def __init__(self):
* self._storage = [] # <<<<<<<<<<<<<<
*
* cdef int add(self, obj) except -1:
*/
- __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 291, __pyx_L1_error)
+ __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 292, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_GIVEREF(__pyx_t_1);
__Pyx_GOTREF(__pyx_v_self->_storage);
__pyx_v_self->_storage = ((PyObject*)__pyx_t_1);
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":290
+ /* "lxml/etree.pyx":291
* cdef class _TempStore:
* cdef list _storage
* def __init__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":293
+/* "lxml/etree.pyx":294
* self._storage = []
*
* cdef int add(self, obj) except -1: # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("add", 0);
- /* "lxml/etree.pyx":294
+ /* "lxml/etree.pyx":295
*
* cdef int add(self, obj) except -1:
* self._storage.append(obj) # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_v_self->_storage == Py_None)) {
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "append");
- __PYX_ERR(0, 294, __pyx_L1_error)
+ __PYX_ERR(0, 295, __pyx_L1_error)
}
- __pyx_t_1 = __Pyx_PyList_Append(__pyx_v_self->_storage, __pyx_v_obj); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 294, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyList_Append(__pyx_v_self->_storage, __pyx_v_obj); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 295, __pyx_L1_error)
- /* "lxml/etree.pyx":295
+ /* "lxml/etree.pyx":296
* cdef int add(self, obj) except -1:
* self._storage.append(obj)
* return 0 # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":293
+ /* "lxml/etree.pyx":294
* self._storage = []
*
* cdef int add(self, obj) except -1: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":297
+/* "lxml/etree.pyx":298
* return 0
*
* cdef int clear(self) except -1: # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("clear", 0);
- /* "lxml/etree.pyx":298
+ /* "lxml/etree.pyx":299
*
* cdef int clear(self) except -1:
* del self._storage[:] # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_v_self->_storage == Py_None)) {
PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
- __PYX_ERR(0, 298, __pyx_L1_error)
+ __PYX_ERR(0, 299, __pyx_L1_error)
}
- if (__Pyx_PyObject_DelSlice(__pyx_v_self->_storage, 0, 0, NULL, NULL, NULL, 0, 0, 1) < 0) __PYX_ERR(0, 298, __pyx_L1_error)
+ if (__Pyx_PyObject_DelSlice(__pyx_v_self->_storage, 0, 0, NULL, NULL, NULL, 0, 0, 1) < 0) __PYX_ERR(0, 299, __pyx_L1_error)
- /* "lxml/etree.pyx":299
+ /* "lxml/etree.pyx":300
* cdef int clear(self) except -1:
* del self._storage[:]
* return 0 # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":297
+ /* "lxml/etree.pyx":298
* return 0
*
* cdef int clear(self) except -1: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":306
+/* "lxml/etree.pyx":307
* cdef class _ExceptionContext:
* cdef object _exc_info
* cdef int clear(self) except -1: # <<<<<<<<<<<<<<
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("clear", 0);
- /* "lxml/etree.pyx":307
+ /* "lxml/etree.pyx":308
* cdef object _exc_info
* cdef int clear(self) except -1:
* self._exc_info = None # <<<<<<<<<<<<<<
__Pyx_DECREF(__pyx_v_self->_exc_info);
__pyx_v_self->_exc_info = Py_None;
- /* "lxml/etree.pyx":308
+ /* "lxml/etree.pyx":309
* cdef int clear(self) except -1:
* self._exc_info = None
* return 0 # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":306
+ /* "lxml/etree.pyx":307
* cdef class _ExceptionContext:
* cdef object _exc_info
* cdef int clear(self) except -1: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":310
+/* "lxml/etree.pyx":311
* return 0
*
* cdef void _store_raised(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_store_raised", 0);
- /* "lxml/etree.pyx":311
+ /* "lxml/etree.pyx":312
*
* cdef void _store_raised(self):
* try: # <<<<<<<<<<<<<<
__Pyx_XGOTREF(__pyx_t_3);
/*try:*/ {
- /* "lxml/etree.pyx":312
+ /* "lxml/etree.pyx":313
* cdef void _store_raised(self):
* try:
* self._exc_info = sys.exc_info() # <<<<<<<<<<<<<<
* except BaseException as e:
* self._store_exception(e)
*/
- __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_sys, __pyx_n_s_exc_info); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 312, __pyx_L6_error)
+ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_sys, __pyx_n_s_exc_info); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 313, __pyx_L6_error)
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_6 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
}
__pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
__Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
- if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 312, __pyx_L6_error)
+ if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 313, __pyx_L6_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_GIVEREF(__pyx_t_4);
__pyx_v_self->_exc_info = __pyx_t_4;
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":311
+ /* "lxml/etree.pyx":312
*
* cdef void _store_raised(self):
* try: # <<<<<<<<<<<<<<
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
- /* "lxml/etree.pyx":313
+ /* "lxml/etree.pyx":314
* try:
* self._exc_info = sys.exc_info()
* except BaseException as e: # <<<<<<<<<<<<<<
__pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_BaseException);
if (__pyx_t_7) {
__Pyx_AddTraceback("lxml.etree._ExceptionContext._store_raised", __pyx_clineno, __pyx_lineno, __pyx_filename);
- if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_5, &__pyx_t_6) < 0) __PYX_ERR(0, 313, __pyx_L8_except_error)
+ if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_5, &__pyx_t_6) < 0) __PYX_ERR(0, 314, __pyx_L8_except_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_GOTREF(__pyx_t_5);
__Pyx_GOTREF(__pyx_t_6);
__Pyx_INCREF(__pyx_t_5);
__pyx_v_e = __pyx_t_5;
- /* "lxml/etree.pyx":314
+ /* "lxml/etree.pyx":315
* self._exc_info = sys.exc_info()
* except BaseException as e:
* self._store_exception(e) # <<<<<<<<<<<<<<
* finally:
* return # and swallow any further exceptions
*/
- __pyx_t_7 = ((struct __pyx_vtabstruct_4lxml_5etree__ExceptionContext *)__pyx_v_self->__pyx_vtab)->_store_exception(__pyx_v_self, __pyx_v_e); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 314, __pyx_L8_except_error)
+ __pyx_t_7 = ((struct __pyx_vtabstruct_4lxml_5etree__ExceptionContext *)__pyx_v_self->__pyx_vtab)->_store_exception(__pyx_v_self, __pyx_v_e); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 315, __pyx_L8_except_error)
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
goto __pyx_L8_except_error;
__pyx_L8_except_error:;
- /* "lxml/etree.pyx":311
+ /* "lxml/etree.pyx":312
*
* cdef void _store_raised(self):
* try: # <<<<<<<<<<<<<<
}
}
- /* "lxml/etree.pyx":316
+ /* "lxml/etree.pyx":317
* self._store_exception(e)
* finally:
* return # and swallow any further exceptions # <<<<<<<<<<<<<<
}
}
- /* "lxml/etree.pyx":310
+ /* "lxml/etree.pyx":311
* return 0
*
* cdef void _store_raised(self): # <<<<<<<<<<<<<<
__Pyx_RefNannyFinishContext();
}
-/* "lxml/etree.pyx":318
+/* "lxml/etree.pyx":319
* return # and swallow any further exceptions
*
* cdef int _store_exception(self, exception) except -1: # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_store_exception", 0);
- /* "lxml/etree.pyx":319
+ /* "lxml/etree.pyx":320
*
* cdef int _store_exception(self, exception) except -1:
* self._exc_info = (exception, None, None) # <<<<<<<<<<<<<<
* return 0
*
*/
- __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 319, __pyx_L1_error)
+ __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 320, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(__pyx_v_exception);
__Pyx_GIVEREF(__pyx_v_exception);
__pyx_v_self->_exc_info = __pyx_t_1;
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":320
+ /* "lxml/etree.pyx":321
* cdef int _store_exception(self, exception) except -1:
* self._exc_info = (exception, None, None)
* return 0 # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":318
+ /* "lxml/etree.pyx":319
* return # and swallow any further exceptions
*
* cdef int _store_exception(self, exception) except -1: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":322
+/* "lxml/etree.pyx":323
* return 0
*
* cdef bint _has_raised(self) except -1: # <<<<<<<<<<<<<<
int __pyx_t_1;
__Pyx_RefNannySetupContext("_has_raised", 0);
- /* "lxml/etree.pyx":323
+ /* "lxml/etree.pyx":324
*
* cdef bint _has_raised(self) except -1:
* return self._exc_info is not None # <<<<<<<<<<<<<<
__pyx_r = __pyx_t_1;
goto __pyx_L0;
- /* "lxml/etree.pyx":322
+ /* "lxml/etree.pyx":323
* return 0
*
* cdef bint _has_raised(self) except -1: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":325
+/* "lxml/etree.pyx":326
* return self._exc_info is not None
*
* cdef int _raise_if_stored(self) except -1: # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_raise_if_stored", 0);
- /* "lxml/etree.pyx":326
+ /* "lxml/etree.pyx":327
*
* cdef int _raise_if_stored(self) except -1:
* if self._exc_info is None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":327
+ /* "lxml/etree.pyx":328
* cdef int _raise_if_stored(self) except -1:
* if self._exc_info is None:
* return 0 # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":326
+ /* "lxml/etree.pyx":327
*
* cdef int _raise_if_stored(self) except -1:
* if self._exc_info is None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":328
+ /* "lxml/etree.pyx":329
* if self._exc_info is None:
* return 0
* type, value, traceback = self._exc_info # <<<<<<<<<<<<<<
if (unlikely(size != 3)) {
if (size > 3) __Pyx_RaiseTooManyValuesError(3);
else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
- __PYX_ERR(0, 328, __pyx_L1_error)
+ __PYX_ERR(0, 329, __pyx_L1_error)
}
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
if (likely(PyTuple_CheckExact(sequence))) {
__Pyx_INCREF(__pyx_t_5);
__Pyx_INCREF(__pyx_t_6);
#else
- __pyx_t_4 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 328, __pyx_L1_error)
+ __pyx_t_4 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 329, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
- __pyx_t_5 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 328, __pyx_L1_error)
+ __pyx_t_5 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 329, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
- __pyx_t_6 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 328, __pyx_L1_error)
+ __pyx_t_6 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 329, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
#endif
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
} else {
Py_ssize_t index = -1;
- __pyx_t_7 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 328, __pyx_L1_error)
+ __pyx_t_7 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 329, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_8 = Py_TYPE(__pyx_t_7)->tp_iternext;
__Pyx_GOTREF(__pyx_t_5);
index = 2; __pyx_t_6 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_6)) goto __pyx_L4_unpacking_failed;
__Pyx_GOTREF(__pyx_t_6);
- if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_7), 3) < 0) __PYX_ERR(0, 328, __pyx_L1_error)
+ if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_7), 3) < 0) __PYX_ERR(0, 329, __pyx_L1_error)
__pyx_t_8 = NULL;
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
goto __pyx_L5_unpacking_done;
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__pyx_t_8 = NULL;
if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
- __PYX_ERR(0, 328, __pyx_L1_error)
+ __PYX_ERR(0, 329, __pyx_L1_error)
__pyx_L5_unpacking_done:;
}
__pyx_v_type = __pyx_t_4;
__pyx_v_traceback = __pyx_t_6;
__pyx_t_6 = 0;
- /* "lxml/etree.pyx":329
+ /* "lxml/etree.pyx":330
* return 0
* type, value, traceback = self._exc_info
* self._exc_info = None # <<<<<<<<<<<<<<
__Pyx_DECREF(__pyx_v_self->_exc_info);
__pyx_v_self->_exc_info = Py_None;
- /* "lxml/etree.pyx":330
+ /* "lxml/etree.pyx":331
* type, value, traceback = self._exc_info
* self._exc_info = None
* if value is None and traceback is None: # <<<<<<<<<<<<<<
__pyx_L7_bool_binop_done:;
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":331
+ /* "lxml/etree.pyx":332
* self._exc_info = None
* if value is None and traceback is None:
* raise type # <<<<<<<<<<<<<<
* raise type, value, traceback
*/
__Pyx_Raise(__pyx_v_type, 0, 0, 0);
- __PYX_ERR(0, 331, __pyx_L1_error)
+ __PYX_ERR(0, 332, __pyx_L1_error)
- /* "lxml/etree.pyx":330
+ /* "lxml/etree.pyx":331
* type, value, traceback = self._exc_info
* self._exc_info = None
* if value is None and traceback is None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":333
+ /* "lxml/etree.pyx":334
* raise type
* else:
* raise type, value, traceback # <<<<<<<<<<<<<<
*/
/*else*/ {
__Pyx_Raise(__pyx_v_type, __pyx_v_value, __pyx_v_traceback, 0);
- __PYX_ERR(0, 333, __pyx_L1_error)
+ __PYX_ERR(0, 334, __pyx_L1_error)
}
- /* "lxml/etree.pyx":325
+ /* "lxml/etree.pyx":326
* return self._exc_info is not None
*
* cdef int _raise_if_stored(self) except -1: # <<<<<<<<<<<<<<
* proxy._c_node = c_node
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((!(__pyx_f_4lxml_5etree_hasProxy(__pyx_v_c_node) != 0)) != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_double_registering_proxy);
__PYX_ERR(5, 34, __pyx_L1_error)
* return 0
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_c_node->_private == ((void *)__pyx_v_proxy)) != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_Tried_to_unregister_unknown_prox);
__PYX_ERR(5, 47, __pyx_L1_error)
* cdef inline int _assertValidDoc(_Document doc) except -1:
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_element->_c_node != NULL) != 0))) {
__pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_id, ((PyObject *)__pyx_v_element)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 19, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
* cdef _Document _documentOrRaise(object input):
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_doc->_c_doc != NULL) != 0))) {
__pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_id, ((PyObject *)__pyx_v_doc)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 22, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
* c_ns = element._doc._findOrBuildNodeNs(
*/
__Pyx_XDECREF(__pyx_r);
- if (!(likely(PyBytes_CheckExact(__pyx_v_tag))||((__pyx_v_tag) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_tag)->tp_name), 0))) __PYX_ERR(1, 769, __pyx_L1_error)
+ if (!(likely(PyBytes_CheckExact(__pyx_v_tag))||((__pyx_v_tag) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_tag)->tp_name), 0))) __PYX_ERR(1, 769, __pyx_L1_error)
__Pyx_INCREF(__pyx_v_tag);
__pyx_r = ((PyObject*)__pyx_v_tag);
goto __pyx_L0;
__PYX_ERR(1, 1035, __pyx_L1_error)
__pyx_L6_unpacking_done:;
}
- if (!(likely(PyBytes_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(1, 1035, __pyx_L1_error)
- if (!(likely(PyBytes_CheckExact(__pyx_t_5))||((__pyx_t_5) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_5)->tp_name), 0))) __PYX_ERR(1, 1035, __pyx_L1_error)
+ if (!(likely(PyBytes_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(1, 1035, __pyx_L1_error)
+ if (!(likely(PyBytes_CheckExact(__pyx_t_5))||((__pyx_t_5) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_5)->tp_name), 0))) __PYX_ERR(1, 1035, __pyx_L1_error)
__Pyx_XDECREF_SET(__pyx_v_ns, ((PyObject*)__pyx_t_4));
__pyx_t_4 = 0;
__Pyx_XDECREF_SET(__pyx_v_tag, ((PyObject*)__pyx_t_5));
* next_element = _nextElement
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_step > 0) != 0))) {
PyErr_SetNone(PyExc_AssertionError);
__PYX_ERR(1, 1194, __pyx_L1_error)
* else:
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
__pyx_t_2 = (((PyObject *)__pyx_v_element) != Py_None);
if (unlikely(!(__pyx_t_2 != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_Node_must_not_be_None);
* return 0
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
__pyx_t_2 = (((PyObject *)__pyx_v_element) != Py_None);
if (unlikely(!(__pyx_t_2 != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_Node_must_not_be_None);
* c_node = element._c_node
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
__pyx_t_2 = (((PyObject *)__pyx_v_element) != Py_None);
if (unlikely(!(__pyx_t_2 != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_Node_must_not_be_None);
* # move element and tail over
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
__pyx_t_2 = (((PyObject *)__pyx_v_element) != Py_None);
if (unlikely(!(__pyx_t_2 != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_Node_must_not_be_None);
* _appendChild(parent, element)
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
__pyx_t_2 = (((PyObject *)__pyx_v_element) != Py_None);
if (unlikely(!(__pyx_t_2 != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_Node_must_not_be_None);
* for element in elements:
* assert element is not None, u"Node must not be None"
*/
- goto __pyx_L43;
+ goto __pyx_L44;
}
/* "src/lxml/apihelpers.pxi":1311
* _prependChild(parent, element)
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
__pyx_t_2 = (((PyObject *)__pyx_v_element) != Py_None);
if (unlikely(!(__pyx_t_2 != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_Node_must_not_be_None);
}
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
}
- __pyx_L43:;
+ __pyx_L44:;
/* "src/lxml/apihelpers.pxi":1316
* _prependChild(parent, element)
* if c_parent.children is NULL:
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!(_isElement(__pyx_v_c_node) != 0))) {
PyErr_SetNone(PyExc_AssertionError);
__PYX_ERR(1, 1322, __pyx_L1_error)
* self._filename = filename
* self._c_path = NULL
*/
- if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_v_message))||((__pyx_v_message) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_v_message)->tp_name), 0))) __PYX_ERR(6, 106, __pyx_L1_error)
+ if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_v_message))||((__pyx_v_message) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_v_message)->tp_name), 0))) __PYX_ERR(6, 106, __pyx_L1_error)
__pyx_t_1 = __pyx_v_message;
__Pyx_INCREF(__pyx_t_1);
__Pyx_GIVEREF(__pyx_t_1);
* self._c_path = NULL
*
*/
- if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_v_filename))||((__pyx_v_filename) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_v_filename)->tp_name), 0))) __PYX_ERR(6, 107, __pyx_L1_error)
+ if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_v_filename))||((__pyx_v_filename) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_v_filename)->tp_name), 0))) __PYX_ERR(6, 107, __pyx_L1_error)
__pyx_t_1 = __pyx_v_filename;
__Pyx_INCREF(__pyx_t_1);
__Pyx_GIVEREF(__pyx_t_1);
*/
__pyx_t_6 = __Pyx_decode_c_string(__pyx_v_self->_c_message, 0, __pyx_v_size, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_6)) __PYX_ERR(6, 152, __pyx_L8_error)
__Pyx_GOTREF(__pyx_t_6);
- if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_6))||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_6)->tp_name), 0))) __PYX_ERR(6, 152, __pyx_L8_error)
+ if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_6))||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_6)->tp_name), 0))) __PYX_ERR(6, 152, __pyx_L8_error)
__Pyx_GIVEREF(__pyx_t_6);
__Pyx_GOTREF(__pyx_v_self->_message);
__Pyx_DECREF(__pyx_v_self->_message);
*/
__pyx_t_13 = __Pyx_decode_c_string(__pyx_v_self->_c_message, 0, __pyx_v_size, NULL, ((char const *)"backslashreplace"), PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_13)) __PYX_ERR(6, 155, __pyx_L16_error)
__Pyx_GOTREF(__pyx_t_13);
- if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_13))||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_13)->tp_name), 0))) __PYX_ERR(6, 155, __pyx_L16_error)
+ if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_13))||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_13)->tp_name), 0))) __PYX_ERR(6, 155, __pyx_L16_error)
__Pyx_GIVEREF(__pyx_t_13);
__Pyx_GOTREF(__pyx_v_self->_message);
__Pyx_DECREF(__pyx_v_self->_message);
*/
__pyx_t_3 = __pyx_f_4lxml_5etree__decodeFilename(__pyx_v_self->_c_filename); if (unlikely(!__pyx_t_3)) __PYX_ERR(6, 171, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_3)->tp_name), 0))) __PYX_ERR(6, 171, __pyx_L1_error)
+ if (!(likely(__Pyx_PyBaseString_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", (PY_MAJOR_VERSION < 3 ? "basestring" : "str"), Py_TYPE(__pyx_t_3)->tp_name), 0))) __PYX_ERR(6, 171, __pyx_L1_error)
__Pyx_GIVEREF(__pyx_t_3);
__Pyx_GOTREF(__pyx_v_self->_filename);
__Pyx_DECREF(__pyx_v_self->_filename);
*
* cpdef copy(self):
*/
- if (!(likely(PyList_CheckExact(__pyx_v_entries))||((__pyx_v_entries) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_entries)->tp_name), 0))) __PYX_ERR(6, 285, __pyx_L1_error)
+ if (!(likely(PyList_CheckExact(__pyx_v_entries))||((__pyx_v_entries) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_entries)->tp_name), 0))) __PYX_ERR(6, 285, __pyx_L1_error)
__pyx_t_3 = __pyx_v_entries;
__Pyx_INCREF(__pyx_t_3);
__Pyx_GIVEREF(__pyx_t_3);
return __pyx_r;
}
-/* "lxml/etree.pyx":364
+/* "lxml/etree.pyx":365
* cdef _BaseParser _parser
*
* def __dealloc__(self): # <<<<<<<<<<<<<<
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__dealloc__", 0);
- /* "lxml/etree.pyx":368
+ /* "lxml/etree.pyx":369
* # to clean the whole thing up, as all nodes have a reference to
* # the document
* tree.xmlFreeDoc(self._c_doc) # <<<<<<<<<<<<<<
*/
xmlFreeDoc(__pyx_v_self->_c_doc);
- /* "lxml/etree.pyx":364
+ /* "lxml/etree.pyx":365
* cdef _BaseParser _parser
*
* def __dealloc__(self): # <<<<<<<<<<<<<<
__Pyx_RefNannyFinishContext();
}
-/* "lxml/etree.pyx":371
+/* "lxml/etree.pyx":372
*
* @cython.final
* cdef getroot(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("getroot", 0);
- /* "lxml/etree.pyx":374
+ /* "lxml/etree.pyx":375
* # return an element proxy for the document root
* cdef xmlNode* c_node
* c_node = tree.xmlDocGetRootElement(self._c_doc) # <<<<<<<<<<<<<<
*/
__pyx_v_c_node = xmlDocGetRootElement(__pyx_v_self->_c_doc);
- /* "lxml/etree.pyx":375
+ /* "lxml/etree.pyx":376
* cdef xmlNode* c_node
* c_node = tree.xmlDocGetRootElement(self._c_doc)
* if c_node is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_node == NULL) != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":376
+ /* "lxml/etree.pyx":377
* c_node = tree.xmlDocGetRootElement(self._c_doc)
* if c_node is NULL:
* return None # <<<<<<<<<<<<<<
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
- /* "lxml/etree.pyx":375
+ /* "lxml/etree.pyx":376
* cdef xmlNode* c_node
* c_node = tree.xmlDocGetRootElement(self._c_doc)
* if c_node is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":377
+ /* "lxml/etree.pyx":378
* if c_node is NULL:
* return None
* return _elementFactory(self, c_node) # <<<<<<<<<<<<<<
* @cython.final
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(__pyx_v_self, __pyx_v_c_node)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 377, __pyx_L1_error)
+ __pyx_t_2 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(__pyx_v_self, __pyx_v_c_node)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 378, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":371
+ /* "lxml/etree.pyx":372
*
* @cython.final
* cdef getroot(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":380
+/* "lxml/etree.pyx":381
*
* @cython.final
* cdef bint hasdoctype(self): # <<<<<<<<<<<<<<
int __pyx_t_2;
__Pyx_RefNannySetupContext("hasdoctype", 0);
- /* "lxml/etree.pyx":382
+ /* "lxml/etree.pyx":383
* cdef bint hasdoctype(self):
* # DOCTYPE gets parsed into internal subset (xmlDTD*)
* return self._c_doc is not NULL and self._c_doc.intSubset is not NULL # <<<<<<<<<<<<<<
__pyx_r = __pyx_t_1;
goto __pyx_L0;
- /* "lxml/etree.pyx":380
+ /* "lxml/etree.pyx":381
*
* @cython.final
* cdef bint hasdoctype(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":385
+/* "lxml/etree.pyx":386
*
* @cython.final
* cdef getdoctype(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("getdoctype", 0);
- /* "lxml/etree.pyx":389
+ /* "lxml/etree.pyx":390
* cdef tree.xmlDtd* c_dtd
* cdef xmlNode* c_root_node
* public_id = None # <<<<<<<<<<<<<<
__Pyx_INCREF(Py_None);
__pyx_v_public_id = Py_None;
- /* "lxml/etree.pyx":390
+ /* "lxml/etree.pyx":391
* cdef xmlNode* c_root_node
* public_id = None
* sys_url = None # <<<<<<<<<<<<<<
__Pyx_INCREF(Py_None);
__pyx_v_sys_url = Py_None;
- /* "lxml/etree.pyx":391
+ /* "lxml/etree.pyx":392
* public_id = None
* sys_url = None
* c_dtd = self._c_doc.intSubset # <<<<<<<<<<<<<<
__pyx_t_1 = __pyx_v_self->_c_doc->intSubset;
__pyx_v_c_dtd = __pyx_t_1;
- /* "lxml/etree.pyx":392
+ /* "lxml/etree.pyx":393
* sys_url = None
* c_dtd = self._c_doc.intSubset
* if c_dtd is not NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_dtd != NULL) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":393
+ /* "lxml/etree.pyx":394
* c_dtd = self._c_doc.intSubset
* if c_dtd is not NULL:
* if c_dtd.ExternalID is not NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_dtd->ExternalID != NULL) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":394
+ /* "lxml/etree.pyx":395
* if c_dtd is not NULL:
* if c_dtd.ExternalID is not NULL:
* public_id = funicode(c_dtd.ExternalID) # <<<<<<<<<<<<<<
* if c_dtd.SystemID is not NULL:
* sys_url = funicode(c_dtd.SystemID)
*/
- __pyx_t_3 = __pyx_f_4lxml_5etree_funicode(__pyx_v_c_dtd->ExternalID); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 394, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree_funicode(__pyx_v_c_dtd->ExternalID); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 395, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF_SET(__pyx_v_public_id, __pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":393
+ /* "lxml/etree.pyx":394
* c_dtd = self._c_doc.intSubset
* if c_dtd is not NULL:
* if c_dtd.ExternalID is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":395
+ /* "lxml/etree.pyx":396
* if c_dtd.ExternalID is not NULL:
* public_id = funicode(c_dtd.ExternalID)
* if c_dtd.SystemID is not NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_dtd->SystemID != NULL) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":396
+ /* "lxml/etree.pyx":397
* public_id = funicode(c_dtd.ExternalID)
* if c_dtd.SystemID is not NULL:
* sys_url = funicode(c_dtd.SystemID) # <<<<<<<<<<<<<<
* c_dtd = self._c_doc.extSubset
* if c_dtd is not NULL:
*/
- __pyx_t_3 = __pyx_f_4lxml_5etree_funicode(__pyx_v_c_dtd->SystemID); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 396, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree_funicode(__pyx_v_c_dtd->SystemID); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 397, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF_SET(__pyx_v_sys_url, __pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":395
+ /* "lxml/etree.pyx":396
* if c_dtd.ExternalID is not NULL:
* public_id = funicode(c_dtd.ExternalID)
* if c_dtd.SystemID is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":392
+ /* "lxml/etree.pyx":393
* sys_url = None
* c_dtd = self._c_doc.intSubset
* if c_dtd is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":397
+ /* "lxml/etree.pyx":398
* if c_dtd.SystemID is not NULL:
* sys_url = funicode(c_dtd.SystemID)
* c_dtd = self._c_doc.extSubset # <<<<<<<<<<<<<<
__pyx_t_1 = __pyx_v_self->_c_doc->extSubset;
__pyx_v_c_dtd = __pyx_t_1;
- /* "lxml/etree.pyx":398
+ /* "lxml/etree.pyx":399
* sys_url = funicode(c_dtd.SystemID)
* c_dtd = self._c_doc.extSubset
* if c_dtd is not NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_dtd != NULL) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":399
+ /* "lxml/etree.pyx":400
* c_dtd = self._c_doc.extSubset
* if c_dtd is not NULL:
* if not public_id and c_dtd.ExternalID is not NULL: # <<<<<<<<<<<<<<
* public_id = funicode(c_dtd.ExternalID)
* if not sys_url and c_dtd.SystemID is not NULL:
*/
- __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_public_id); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 399, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_public_id); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 400, __pyx_L1_error)
__pyx_t_5 = ((!__pyx_t_4) != 0);
if (__pyx_t_5) {
} else {
__pyx_L8_bool_binop_done:;
if (__pyx_t_2) {
- /* "lxml/etree.pyx":400
+ /* "lxml/etree.pyx":401
* if c_dtd is not NULL:
* if not public_id and c_dtd.ExternalID is not NULL:
* public_id = funicode(c_dtd.ExternalID) # <<<<<<<<<<<<<<
* if not sys_url and c_dtd.SystemID is not NULL:
* sys_url = funicode(c_dtd.SystemID)
*/
- __pyx_t_3 = __pyx_f_4lxml_5etree_funicode(__pyx_v_c_dtd->ExternalID); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 400, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree_funicode(__pyx_v_c_dtd->ExternalID); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 401, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF_SET(__pyx_v_public_id, __pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":399
+ /* "lxml/etree.pyx":400
* c_dtd = self._c_doc.extSubset
* if c_dtd is not NULL:
* if not public_id and c_dtd.ExternalID is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":401
+ /* "lxml/etree.pyx":402
* if not public_id and c_dtd.ExternalID is not NULL:
* public_id = funicode(c_dtd.ExternalID)
* if not sys_url and c_dtd.SystemID is not NULL: # <<<<<<<<<<<<<<
* sys_url = funicode(c_dtd.SystemID)
* c_root_node = tree.xmlDocGetRootElement(self._c_doc)
*/
- __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v_sys_url); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 401, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v_sys_url); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 402, __pyx_L1_error)
__pyx_t_4 = ((!__pyx_t_5) != 0);
if (__pyx_t_4) {
} else {
__pyx_L11_bool_binop_done:;
if (__pyx_t_2) {
- /* "lxml/etree.pyx":402
+ /* "lxml/etree.pyx":403
* public_id = funicode(c_dtd.ExternalID)
* if not sys_url and c_dtd.SystemID is not NULL:
* sys_url = funicode(c_dtd.SystemID) # <<<<<<<<<<<<<<
* c_root_node = tree.xmlDocGetRootElement(self._c_doc)
* if c_root_node is NULL:
*/
- __pyx_t_3 = __pyx_f_4lxml_5etree_funicode(__pyx_v_c_dtd->SystemID); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 402, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree_funicode(__pyx_v_c_dtd->SystemID); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 403, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF_SET(__pyx_v_sys_url, __pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":401
+ /* "lxml/etree.pyx":402
* if not public_id and c_dtd.ExternalID is not NULL:
* public_id = funicode(c_dtd.ExternalID)
* if not sys_url and c_dtd.SystemID is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":398
+ /* "lxml/etree.pyx":399
* sys_url = funicode(c_dtd.SystemID)
* c_dtd = self._c_doc.extSubset
* if c_dtd is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":403
+ /* "lxml/etree.pyx":404
* if not sys_url and c_dtd.SystemID is not NULL:
* sys_url = funicode(c_dtd.SystemID)
* c_root_node = tree.xmlDocGetRootElement(self._c_doc) # <<<<<<<<<<<<<<
*/
__pyx_v_c_root_node = xmlDocGetRootElement(__pyx_v_self->_c_doc);
- /* "lxml/etree.pyx":404
+ /* "lxml/etree.pyx":405
* sys_url = funicode(c_dtd.SystemID)
* c_root_node = tree.xmlDocGetRootElement(self._c_doc)
* if c_root_node is NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_root_node == NULL) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":405
+ /* "lxml/etree.pyx":406
* c_root_node = tree.xmlDocGetRootElement(self._c_doc)
* if c_root_node is NULL:
* root_name = None # <<<<<<<<<<<<<<
__Pyx_INCREF(Py_None);
__pyx_v_root_name = Py_None;
- /* "lxml/etree.pyx":404
+ /* "lxml/etree.pyx":405
* sys_url = funicode(c_dtd.SystemID)
* c_root_node = tree.xmlDocGetRootElement(self._c_doc)
* if c_root_node is NULL: # <<<<<<<<<<<<<<
goto __pyx_L13;
}
- /* "lxml/etree.pyx":407
+ /* "lxml/etree.pyx":408
* root_name = None
* else:
* root_name = funicode(c_root_node.name) # <<<<<<<<<<<<<<
*
*/
/*else*/ {
- __pyx_t_3 = __pyx_f_4lxml_5etree_funicode(__pyx_v_c_root_node->name); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 407, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree_funicode(__pyx_v_c_root_node->name); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 408, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_v_root_name = __pyx_t_3;
__pyx_t_3 = 0;
}
__pyx_L13:;
- /* "lxml/etree.pyx":408
+ /* "lxml/etree.pyx":409
* else:
* root_name = funicode(c_root_node.name)
* return root_name, public_id, sys_url # <<<<<<<<<<<<<<
* @cython.final
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 408, __pyx_L1_error)
+ __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 409, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_INCREF(__pyx_v_root_name);
__Pyx_GIVEREF(__pyx_v_root_name);
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":385
+ /* "lxml/etree.pyx":386
*
* @cython.final
* cdef getdoctype(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":411
+/* "lxml/etree.pyx":412
*
* @cython.final
* cdef getxmlinfo(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("getxmlinfo", 0);
- /* "lxml/etree.pyx":413
+ /* "lxml/etree.pyx":414
* cdef getxmlinfo(self):
* # return XML version and encoding (or None if not known)
* cdef xmlDoc* c_doc = self._c_doc # <<<<<<<<<<<<<<
__pyx_t_1 = __pyx_v_self->_c_doc;
__pyx_v_c_doc = __pyx_t_1;
- /* "lxml/etree.pyx":414
+ /* "lxml/etree.pyx":415
* # return XML version and encoding (or None if not known)
* cdef xmlDoc* c_doc = self._c_doc
* if c_doc.version is NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_doc->version == NULL) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":415
+ /* "lxml/etree.pyx":416
* cdef xmlDoc* c_doc = self._c_doc
* if c_doc.version is NULL:
* version = None # <<<<<<<<<<<<<<
__Pyx_INCREF(Py_None);
__pyx_v_version = Py_None;
- /* "lxml/etree.pyx":414
+ /* "lxml/etree.pyx":415
* # return XML version and encoding (or None if not known)
* cdef xmlDoc* c_doc = self._c_doc
* if c_doc.version is NULL: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":417
+ /* "lxml/etree.pyx":418
* version = None
* else:
* version = funicode(c_doc.version) # <<<<<<<<<<<<<<
* encoding = None
*/
/*else*/ {
- __pyx_t_3 = __pyx_f_4lxml_5etree_funicode(__pyx_v_c_doc->version); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 417, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree_funicode(__pyx_v_c_doc->version); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 418, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_v_version = __pyx_t_3;
__pyx_t_3 = 0;
}
__pyx_L3:;
- /* "lxml/etree.pyx":418
+ /* "lxml/etree.pyx":419
* else:
* version = funicode(c_doc.version)
* if c_doc.encoding is NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_doc->encoding == NULL) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":419
+ /* "lxml/etree.pyx":420
* version = funicode(c_doc.version)
* if c_doc.encoding is NULL:
* encoding = None # <<<<<<<<<<<<<<
__Pyx_INCREF(Py_None);
__pyx_v_encoding = Py_None;
- /* "lxml/etree.pyx":418
+ /* "lxml/etree.pyx":419
* else:
* version = funicode(c_doc.version)
* if c_doc.encoding is NULL: # <<<<<<<<<<<<<<
goto __pyx_L4;
}
- /* "lxml/etree.pyx":421
+ /* "lxml/etree.pyx":422
* encoding = None
* else:
* encoding = funicode(c_doc.encoding) # <<<<<<<<<<<<<<
*
*/
/*else*/ {
- __pyx_t_3 = __pyx_f_4lxml_5etree_funicode(__pyx_v_c_doc->encoding); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 421, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree_funicode(__pyx_v_c_doc->encoding); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 422, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_v_encoding = __pyx_t_3;
__pyx_t_3 = 0;
}
__pyx_L4:;
- /* "lxml/etree.pyx":422
+ /* "lxml/etree.pyx":423
* else:
* encoding = funicode(c_doc.encoding)
* return version, encoding # <<<<<<<<<<<<<<
* @cython.final
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 422, __pyx_L1_error)
+ __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 423, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_INCREF(__pyx_v_version);
__Pyx_GIVEREF(__pyx_v_version);
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":411
+ /* "lxml/etree.pyx":412
*
* @cython.final
* cdef getxmlinfo(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":425
+/* "lxml/etree.pyx":426
*
* @cython.final
* cdef isstandalone(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("isstandalone", 0);
- /* "lxml/etree.pyx":428
+ /* "lxml/etree.pyx":429
* # returns True for "standalone=true",
* # False for "standalone=false", None if not provided
* if self._c_doc.standalone == -1: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_self->_c_doc->standalone == -1L) != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":429
+ /* "lxml/etree.pyx":430
* # False for "standalone=false", None if not provided
* if self._c_doc.standalone == -1:
* return None # <<<<<<<<<<<<<<
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
- /* "lxml/etree.pyx":428
+ /* "lxml/etree.pyx":429
* # returns True for "standalone=true",
* # False for "standalone=false", None if not provided
* if self._c_doc.standalone == -1: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":431
+ /* "lxml/etree.pyx":432
* return None
* else:
* return <bint>(self._c_doc.standalone == 1) # <<<<<<<<<<<<<<
*/
/*else*/ {
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __Pyx_PyBool_FromLong(((__pyx_v_self->_c_doc->standalone == 1) != 0)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 431, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyBool_FromLong(((__pyx_v_self->_c_doc->standalone == 1) != 0)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 432, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
}
- /* "lxml/etree.pyx":425
+ /* "lxml/etree.pyx":426
*
* @cython.final
* cdef isstandalone(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":434
+/* "lxml/etree.pyx":435
*
* @cython.final
* cdef bytes buildNewPrefix(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("buildNewPrefix", 0);
- /* "lxml/etree.pyx":437
+ /* "lxml/etree.pyx":438
* # get a new unique prefix ("nsX") for this document
* cdef bytes ns
* if self._ns_counter < len(_PREFIX_CACHE): # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_t_1);
if (unlikely(__pyx_t_1 == Py_None)) {
PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
- __PYX_ERR(0, 437, __pyx_L1_error)
+ __PYX_ERR(0, 438, __pyx_L1_error)
}
- __pyx_t_2 = PyTuple_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 437, __pyx_L1_error)
+ __pyx_t_2 = PyTuple_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 438, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_3 = ((__pyx_v_self->_ns_counter < __pyx_t_2) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":438
+ /* "lxml/etree.pyx":439
* cdef bytes ns
* if self._ns_counter < len(_PREFIX_CACHE):
* ns = _PREFIX_CACHE[self._ns_counter] # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_v_4lxml_5etree__PREFIX_CACHE == Py_None)) {
PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
- __PYX_ERR(0, 438, __pyx_L1_error)
+ __PYX_ERR(0, 439, __pyx_L1_error)
}
- __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v_4lxml_5etree__PREFIX_CACHE, __pyx_v_self->_ns_counter, int, 1, __Pyx_PyInt_From_int, 0, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 438, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v_4lxml_5etree__PREFIX_CACHE, __pyx_v_self->_ns_counter, int, 1, __Pyx_PyInt_From_int, 0, 1, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 439, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- if (!(likely(PyBytes_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 438, __pyx_L1_error)
+ if (!(likely(PyBytes_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 439, __pyx_L1_error)
__pyx_v_ns = ((PyObject*)__pyx_t_1);
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":437
+ /* "lxml/etree.pyx":438
* # get a new unique prefix ("nsX") for this document
* cdef bytes ns
* if self._ns_counter < len(_PREFIX_CACHE): # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":440
+ /* "lxml/etree.pyx":441
* ns = _PREFIX_CACHE[self._ns_counter]
* else:
* ns = python.PyBytes_FromFormat("ns%d", self._ns_counter) # <<<<<<<<<<<<<<
* ns += self._prefix_tail
*/
/*else*/ {
- __pyx_t_1 = PyBytes_FromFormat(((char *)"ns%d"), __pyx_v_self->_ns_counter); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 440, __pyx_L1_error)
+ __pyx_t_1 = PyBytes_FromFormat(((char *)"ns%d"), __pyx_v_self->_ns_counter); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 441, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_v_ns = ((PyObject*)__pyx_t_1);
__pyx_t_1 = 0;
}
__pyx_L3:;
- /* "lxml/etree.pyx":441
+ /* "lxml/etree.pyx":442
* else:
* ns = python.PyBytes_FromFormat("ns%d", self._ns_counter)
* if self._prefix_tail is not None: # <<<<<<<<<<<<<<
__pyx_t_4 = (__pyx_t_3 != 0);
if (__pyx_t_4) {
- /* "lxml/etree.pyx":442
+ /* "lxml/etree.pyx":443
* ns = python.PyBytes_FromFormat("ns%d", self._ns_counter)
* if self._prefix_tail is not None:
* ns += self._prefix_tail # <<<<<<<<<<<<<<
* self._ns_counter += 1
* if self._ns_counter < 0:
*/
- __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_ns, __pyx_v_self->_prefix_tail); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 442, __pyx_L1_error)
+ __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_ns, __pyx_v_self->_prefix_tail); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 443, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF_SET(__pyx_v_ns, ((PyObject*)__pyx_t_1));
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":441
+ /* "lxml/etree.pyx":442
* else:
* ns = python.PyBytes_FromFormat("ns%d", self._ns_counter)
* if self._prefix_tail is not None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":443
+ /* "lxml/etree.pyx":444
* if self._prefix_tail is not None:
* ns += self._prefix_tail
* self._ns_counter += 1 # <<<<<<<<<<<<<<
*/
__pyx_v_self->_ns_counter = (__pyx_v_self->_ns_counter + 1);
- /* "lxml/etree.pyx":444
+ /* "lxml/etree.pyx":445
* ns += self._prefix_tail
* self._ns_counter += 1
* if self._ns_counter < 0: # <<<<<<<<<<<<<<
__pyx_t_4 = ((__pyx_v_self->_ns_counter < 0) != 0);
if (__pyx_t_4) {
- /* "lxml/etree.pyx":446
+ /* "lxml/etree.pyx":447
* if self._ns_counter < 0:
* # overflow!
* self._ns_counter = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_self->_ns_counter = 0;
- /* "lxml/etree.pyx":447
+ /* "lxml/etree.pyx":448
* # overflow!
* self._ns_counter = 0
* if self._prefix_tail is None: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_4 != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":448
+ /* "lxml/etree.pyx":449
* self._ns_counter = 0
* if self._prefix_tail is None:
* self._prefix_tail = b"A" # <<<<<<<<<<<<<<
__Pyx_DECREF(__pyx_v_self->_prefix_tail);
__pyx_v_self->_prefix_tail = __pyx_n_b_A;
- /* "lxml/etree.pyx":447
+ /* "lxml/etree.pyx":448
* # overflow!
* self._ns_counter = 0
* if self._prefix_tail is None: # <<<<<<<<<<<<<<
goto __pyx_L6;
}
- /* "lxml/etree.pyx":450
+ /* "lxml/etree.pyx":451
* self._prefix_tail = b"A"
* else:
* self._prefix_tail += b"A" # <<<<<<<<<<<<<<
*
*/
/*else*/ {
- __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_self->_prefix_tail, __pyx_n_b_A); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 450, __pyx_L1_error)
+ __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_self->_prefix_tail, __pyx_n_b_A); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 451, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_GIVEREF(__pyx_t_1);
__Pyx_GOTREF(__pyx_v_self->_prefix_tail);
}
__pyx_L6:;
- /* "lxml/etree.pyx":444
+ /* "lxml/etree.pyx":445
* ns += self._prefix_tail
* self._ns_counter += 1
* if self._ns_counter < 0: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":451
+ /* "lxml/etree.pyx":452
* else:
* self._prefix_tail += b"A"
* return ns # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_ns;
goto __pyx_L0;
- /* "lxml/etree.pyx":434
+ /* "lxml/etree.pyx":435
*
* @cython.final
* cdef bytes buildNewPrefix(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":454
+/* "lxml/etree.pyx":455
*
* @cython.final
* cdef xmlNs* _findOrBuildNodeNs(self, xmlNode* c_node, # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_findOrBuildNodeNs", 0);
- /* "lxml/etree.pyx":463
+ /* "lxml/etree.pyx":464
* cdef xmlNs* c_doc_ns
* cdef python.PyObject* dict_result
* if c_node.type != tree.XML_ELEMENT_NODE: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_node->type != XML_ELEMENT_NODE) != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":464
+ /* "lxml/etree.pyx":465
* cdef python.PyObject* dict_result
* if c_node.type != tree.XML_ELEMENT_NODE:
* assert c_node.type == tree.XML_ELEMENT_NODE, \ # <<<<<<<<<<<<<<
* c_node.type, tree.XML_ELEMENT_NODE)
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_c_node->type == XML_ELEMENT_NODE) != 0))) {
- /* "lxml/etree.pyx":465
+ /* "lxml/etree.pyx":466
* if c_node.type != tree.XML_ELEMENT_NODE:
* assert c_node.type == tree.XML_ELEMENT_NODE, \
* u"invalid node type %d, expected %d" % ( # <<<<<<<<<<<<<<
* c_node.type, tree.XML_ELEMENT_NODE)
* # look for existing ns declaration
*/
- __pyx_t_2 = PyTuple_New(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 465, __pyx_L1_error)
+ __pyx_t_2 = PyTuple_New(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 466, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = 0;
__pyx_t_4 = 127;
__Pyx_GIVEREF(__pyx_kp_u_invalid_node_type);
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_kp_u_invalid_node_type);
- /* "lxml/etree.pyx":466
+ /* "lxml/etree.pyx":467
* assert c_node.type == tree.XML_ELEMENT_NODE, \
* u"invalid node type %d, expected %d" % (
* c_node.type, tree.XML_ELEMENT_NODE) # <<<<<<<<<<<<<<
* # look for existing ns declaration
* c_ns = _searchNsByHref(c_node, c_href, is_attribute)
*/
- __pyx_t_5 = __Pyx_PyUnicode_From_xmlElementType(__pyx_v_c_node->type, 0, ' ', 'd'); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 466, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyUnicode_From_xmlElementType(__pyx_v_c_node->type, 0, ' ', 'd'); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 467, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_4 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_4) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_4;
__pyx_t_3 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
__pyx_t_3 += 11;
__Pyx_GIVEREF(__pyx_kp_u_expected);
PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_kp_u_expected);
- __pyx_t_5 = __Pyx_PyUnicode_From_xmlElementType(XML_ELEMENT_NODE, 0, ' ', 'd'); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 466, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyUnicode_From_xmlElementType(XML_ELEMENT_NODE, 0, ' ', 'd'); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 467, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_4 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_4) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_4;
__pyx_t_3 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_5);
__pyx_t_5 = 0;
- /* "lxml/etree.pyx":465
+ /* "lxml/etree.pyx":466
* if c_node.type != tree.XML_ELEMENT_NODE:
* assert c_node.type == tree.XML_ELEMENT_NODE, \
* u"invalid node type %d, expected %d" % ( # <<<<<<<<<<<<<<
* c_node.type, tree.XML_ELEMENT_NODE)
* # look for existing ns declaration
*/
- __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_2, 4, __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 465, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_2, 4, __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 466, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyErr_SetObject(PyExc_AssertionError, __pyx_t_5);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- __PYX_ERR(0, 464, __pyx_L1_error)
+ __PYX_ERR(0, 465, __pyx_L1_error)
}
}
#endif
- /* "lxml/etree.pyx":463
+ /* "lxml/etree.pyx":464
* cdef xmlNs* c_doc_ns
* cdef python.PyObject* dict_result
* if c_node.type != tree.XML_ELEMENT_NODE: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":468
+ /* "lxml/etree.pyx":469
* c_node.type, tree.XML_ELEMENT_NODE)
* # look for existing ns declaration
* c_ns = _searchNsByHref(c_node, c_href, is_attribute) # <<<<<<<<<<<<<<
*/
__pyx_v_c_ns = __pyx_f_4lxml_5etree__searchNsByHref(__pyx_v_c_node, __pyx_v_c_href, __pyx_v_is_attribute);
- /* "lxml/etree.pyx":469
+ /* "lxml/etree.pyx":470
* # look for existing ns declaration
* c_ns = _searchNsByHref(c_node, c_href, is_attribute)
* if c_ns is not NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_ns != NULL) != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":470
+ /* "lxml/etree.pyx":471
* c_ns = _searchNsByHref(c_node, c_href, is_attribute)
* if c_ns is not NULL:
* if is_attribute and c_ns.prefix is NULL: # <<<<<<<<<<<<<<
goto __pyx_L5;
}
- /* "lxml/etree.pyx":475
+ /* "lxml/etree.pyx":476
* pass
* else:
* return c_ns # <<<<<<<<<<<<<<
}
__pyx_L5:;
- /* "lxml/etree.pyx":469
+ /* "lxml/etree.pyx":470
* # look for existing ns declaration
* c_ns = _searchNsByHref(c_node, c_href, is_attribute)
* if c_ns is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":478
+ /* "lxml/etree.pyx":479
*
* # none found => determine a suitable new prefix
* if c_prefix is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_prefix == NULL) != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":480
+ /* "lxml/etree.pyx":481
* if c_prefix is NULL:
* dict_result = python.PyDict_GetItem(
* _DEFAULT_NAMESPACE_PREFIXES, <unsigned char*>c_href) # <<<<<<<<<<<<<<
*/
__pyx_t_5 = __pyx_v_4lxml_5etree__DEFAULT_NAMESPACE_PREFIXES;
__Pyx_INCREF(__pyx_t_5);
- __pyx_t_2 = __Pyx_PyBytes_FromCString(((unsigned char *)__pyx_v_c_href)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 480, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyBytes_FromCString(((unsigned char *)__pyx_v_c_href)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 481, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- /* "lxml/etree.pyx":479
+ /* "lxml/etree.pyx":480
* # none found => determine a suitable new prefix
* if c_prefix is NULL:
* dict_result = python.PyDict_GetItem( # <<<<<<<<<<<<<<
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":481
+ /* "lxml/etree.pyx":482
* dict_result = python.PyDict_GetItem(
* _DEFAULT_NAMESPACE_PREFIXES, <unsigned char*>c_href)
* if dict_result is not NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_dict_result != NULL) != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":482
+ /* "lxml/etree.pyx":483
* _DEFAULT_NAMESPACE_PREFIXES, <unsigned char*>c_href)
* if dict_result is not NULL:
* prefix = <object>dict_result # <<<<<<<<<<<<<<
__pyx_v_prefix = __pyx_t_2;
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":481
+ /* "lxml/etree.pyx":482
* dict_result = python.PyDict_GetItem(
* _DEFAULT_NAMESPACE_PREFIXES, <unsigned char*>c_href)
* if dict_result is not NULL: # <<<<<<<<<<<<<<
goto __pyx_L9;
}
- /* "lxml/etree.pyx":484
+ /* "lxml/etree.pyx":485
* prefix = <object>dict_result
* else:
* prefix = self.buildNewPrefix() # <<<<<<<<<<<<<<
*
*/
/*else*/ {
- __pyx_t_2 = __pyx_f_4lxml_5etree_9_Document_buildNewPrefix(__pyx_v_self); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 484, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree_9_Document_buildNewPrefix(__pyx_v_self); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 485, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_v_prefix = __pyx_t_2;
__pyx_t_2 = 0;
}
__pyx_L9:;
- /* "lxml/etree.pyx":485
+ /* "lxml/etree.pyx":486
* else:
* prefix = self.buildNewPrefix()
* c_prefix = _xcstr(prefix) # <<<<<<<<<<<<<<
*/
__pyx_v_c_prefix = (const xmlChar*)PyBytes_AS_STRING(__pyx_v_prefix);
- /* "lxml/etree.pyx":478
+ /* "lxml/etree.pyx":479
*
* # none found => determine a suitable new prefix
* if c_prefix is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":488
+ /* "lxml/etree.pyx":489
*
* # make sure the prefix is not in use already
* while tree.xmlSearchNs(self._c_doc, c_node, c_prefix) is not NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((xmlSearchNs(__pyx_v_self->_c_doc, __pyx_v_c_node, __pyx_v_c_prefix) != NULL) != 0);
if (!__pyx_t_1) break;
- /* "lxml/etree.pyx":489
+ /* "lxml/etree.pyx":490
* # make sure the prefix is not in use already
* while tree.xmlSearchNs(self._c_doc, c_node, c_prefix) is not NULL:
* prefix = self.buildNewPrefix() # <<<<<<<<<<<<<<
* c_prefix = _xcstr(prefix)
*
*/
- __pyx_t_2 = __pyx_f_4lxml_5etree_9_Document_buildNewPrefix(__pyx_v_self); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 489, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree_9_Document_buildNewPrefix(__pyx_v_self); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 490, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_XDECREF_SET(__pyx_v_prefix, __pyx_t_2);
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":490
+ /* "lxml/etree.pyx":491
* while tree.xmlSearchNs(self._c_doc, c_node, c_prefix) is not NULL:
* prefix = self.buildNewPrefix()
* c_prefix = _xcstr(prefix) # <<<<<<<<<<<<<<
__pyx_v_c_prefix = (const xmlChar*)PyBytes_AS_STRING(__pyx_v_prefix);
}
- /* "lxml/etree.pyx":493
+ /* "lxml/etree.pyx":494
*
* # declare the namespace and return it
* c_ns = tree.xmlNewNs(c_node, c_href, c_prefix) # <<<<<<<<<<<<<<
*/
__pyx_v_c_ns = xmlNewNs(__pyx_v_c_node, __pyx_v_c_href, __pyx_v_c_prefix);
- /* "lxml/etree.pyx":494
+ /* "lxml/etree.pyx":495
* # declare the namespace and return it
* c_ns = tree.xmlNewNs(c_node, c_href, c_prefix)
* if c_ns is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_ns == NULL) != 0);
if (unlikely(__pyx_t_1)) {
- /* "lxml/etree.pyx":495
+ /* "lxml/etree.pyx":496
* c_ns = tree.xmlNewNs(c_node, c_href, c_prefix)
* if c_ns is NULL:
* raise MemoryError() # <<<<<<<<<<<<<<
* return c_ns
*
*/
- PyErr_NoMemory(); __PYX_ERR(0, 495, __pyx_L1_error)
+ PyErr_NoMemory(); __PYX_ERR(0, 496, __pyx_L1_error)
- /* "lxml/etree.pyx":494
+ /* "lxml/etree.pyx":495
* # declare the namespace and return it
* c_ns = tree.xmlNewNs(c_node, c_href, c_prefix)
* if c_ns is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":496
+ /* "lxml/etree.pyx":497
* if c_ns is NULL:
* raise MemoryError()
* return c_ns # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_c_ns;
goto __pyx_L0;
- /* "lxml/etree.pyx":454
+ /* "lxml/etree.pyx":455
*
* @cython.final
* cdef xmlNs* _findOrBuildNodeNs(self, xmlNode* c_node, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":499
+/* "lxml/etree.pyx":500
*
* @cython.final
* cdef int _setNodeNs(self, xmlNode* c_node, const_xmlChar* c_href) except -1: # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_setNodeNs", 0);
- /* "lxml/etree.pyx":501
+ /* "lxml/etree.pyx":502
* cdef int _setNodeNs(self, xmlNode* c_node, const_xmlChar* c_href) except -1:
* u"Lookup namespace structure and set it for the node."
* c_ns = self._findOrBuildNodeNs(c_node, c_href, NULL, 0) # <<<<<<<<<<<<<<
* tree.xmlSetNs(c_node, c_ns)
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_9_Document__findOrBuildNodeNs(__pyx_v_self, __pyx_v_c_node, __pyx_v_c_href, NULL, 0); if (unlikely(__pyx_t_1 == ((xmlNs *)NULL))) __PYX_ERR(0, 501, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_9_Document__findOrBuildNodeNs(__pyx_v_self, __pyx_v_c_node, __pyx_v_c_href, NULL, 0); if (unlikely(__pyx_t_1 == ((xmlNs *)NULL))) __PYX_ERR(0, 502, __pyx_L1_error)
__pyx_v_c_ns = __pyx_t_1;
- /* "lxml/etree.pyx":502
+ /* "lxml/etree.pyx":503
* u"Lookup namespace structure and set it for the node."
* c_ns = self._findOrBuildNodeNs(c_node, c_href, NULL, 0)
* tree.xmlSetNs(c_node, c_ns) # <<<<<<<<<<<<<<
*/
xmlSetNs(__pyx_v_c_node, __pyx_v_c_ns);
- /* "lxml/etree.pyx":499
+ /* "lxml/etree.pyx":500
*
* @cython.final
* cdef int _setNodeNs(self, xmlNode* c_node, const_xmlChar* c_href) except -1: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":504
+/* "lxml/etree.pyx":505
* tree.xmlSetNs(c_node, c_ns)
*
* cdef tuple __initPrefixCache(): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__initPrefixCache", 0);
- /* "lxml/etree.pyx":506
+ /* "lxml/etree.pyx":507
* cdef tuple __initPrefixCache():
* cdef int i
* return tuple([ python.PyBytes_FromFormat("ns%d", i) # <<<<<<<<<<<<<<
*
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 506, __pyx_L1_error)
+ __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 507, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- /* "lxml/etree.pyx":507
+ /* "lxml/etree.pyx":508
* cdef int i
* return tuple([ python.PyBytes_FromFormat("ns%d", i)
* for i in range(30) ]) # <<<<<<<<<<<<<<
for (__pyx_t_2 = 0; __pyx_t_2 < 30; __pyx_t_2+=1) {
__pyx_v_i = __pyx_t_2;
- /* "lxml/etree.pyx":506
+ /* "lxml/etree.pyx":507
* cdef tuple __initPrefixCache():
* cdef int i
* return tuple([ python.PyBytes_FromFormat("ns%d", i) # <<<<<<<<<<<<<<
* for i in range(30) ])
*
*/
- __pyx_t_3 = PyBytes_FromFormat(((char *)"ns%d"), __pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 506, __pyx_L1_error)
+ __pyx_t_3 = PyBytes_FromFormat(((char *)"ns%d"), __pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 507, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 506, __pyx_L1_error)
+ if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 507, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
}
- __pyx_t_3 = PyList_AsTuple(((PyObject*)__pyx_t_1)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 506, __pyx_L1_error)
+ __pyx_t_3 = PyList_AsTuple(((PyObject*)__pyx_t_1)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 507, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_r = ((PyObject*)__pyx_t_3);
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":504
+ /* "lxml/etree.pyx":505
* tree.xmlSetNs(c_node, c_ns)
*
* cdef tuple __initPrefixCache(): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":511
+/* "lxml/etree.pyx":512
* cdef tuple _PREFIX_CACHE = __initPrefixCache()
*
* cdef _Document _documentFactory(xmlDoc* c_doc, _BaseParser parser): # <<<<<<<<<<<<<<
__Pyx_RefNannySetupContext("_documentFactory", 0);
__Pyx_INCREF((PyObject *)__pyx_v_parser);
- /* "lxml/etree.pyx":513
+ /* "lxml/etree.pyx":514
* cdef _Document _documentFactory(xmlDoc* c_doc, _BaseParser parser):
* cdef _Document result
* result = _Document.__new__(_Document) # <<<<<<<<<<<<<<
* result._c_doc = c_doc
* result._ns_counter = 0
*/
- __pyx_t_1 = ((PyObject *)__pyx_tp_new_4lxml_5etree__Document(((PyTypeObject *)__pyx_ptype_4lxml_5etree__Document), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 513, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)__pyx_tp_new_4lxml_5etree__Document(((PyTypeObject *)__pyx_ptype_4lxml_5etree__Document), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 514, __pyx_L1_error)
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
__pyx_v_result = ((struct LxmlDocument *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":514
+ /* "lxml/etree.pyx":515
* cdef _Document result
* result = _Document.__new__(_Document)
* result._c_doc = c_doc # <<<<<<<<<<<<<<
*/
__pyx_v_result->_c_doc = __pyx_v_c_doc;
- /* "lxml/etree.pyx":515
+ /* "lxml/etree.pyx":516
* result = _Document.__new__(_Document)
* result._c_doc = c_doc
* result._ns_counter = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_result->_ns_counter = 0;
- /* "lxml/etree.pyx":516
+ /* "lxml/etree.pyx":517
* result._c_doc = c_doc
* result._ns_counter = 0
* result._prefix_tail = None # <<<<<<<<<<<<<<
__Pyx_DECREF(__pyx_v_result->_prefix_tail);
__pyx_v_result->_prefix_tail = ((PyObject*)Py_None);
- /* "lxml/etree.pyx":517
+ /* "lxml/etree.pyx":518
* result._ns_counter = 0
* result._prefix_tail = None
* if parser is None: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_2 != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":518
+ /* "lxml/etree.pyx":519
* result._prefix_tail = None
* if parser is None:
* parser = __GLOBAL_PARSER_CONTEXT.getDefaultParser() # <<<<<<<<<<<<<<
* result._parser = parser
* return result
*/
- __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_24_ParserDictionaryContext_getDefaultParser(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 518, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_24_ParserDictionaryContext_getDefaultParser(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 519, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF_SET(__pyx_v_parser, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_t_1));
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":517
+ /* "lxml/etree.pyx":518
* result._ns_counter = 0
* result._prefix_tail = None
* if parser is None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":519
+ /* "lxml/etree.pyx":520
* if parser is None:
* parser = __GLOBAL_PARSER_CONTEXT.getDefaultParser()
* result._parser = parser # <<<<<<<<<<<<<<
__Pyx_DECREF(((PyObject *)__pyx_v_result->_parser));
__pyx_v_result->_parser = __pyx_v_parser;
- /* "lxml/etree.pyx":520
+ /* "lxml/etree.pyx":521
* parser = __GLOBAL_PARSER_CONTEXT.getDefaultParser()
* result._parser = parser
* return result # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_result;
goto __pyx_L0;
- /* "lxml/etree.pyx":511
+ /* "lxml/etree.pyx":512
* cdef tuple _PREFIX_CACHE = __initPrefixCache()
*
* cdef _Document _documentFactory(xmlDoc* c_doc, _BaseParser parser): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":530
+/* "lxml/etree.pyx":531
* u"Document information provided by parser and DTD."
* cdef _Document _doc
* def __cinit__(self, tree): # <<<<<<<<<<<<<<
else goto __pyx_L5_argtuple_error;
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 530, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 531, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 530, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 531, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.DocInfo.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__cinit__", 0);
- /* "lxml/etree.pyx":532
+ /* "lxml/etree.pyx":533
* def __cinit__(self, tree):
* u"Create a DocInfo object for an ElementTree object or root Element."
* self._doc = _documentOrRaise(tree) # <<<<<<<<<<<<<<
* root_name, public_id, system_url = self._doc.getdoctype()
* if not root_name and (public_id or system_url):
*/
- __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__documentOrRaise(__pyx_v_tree)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 532, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__documentOrRaise(__pyx_v_tree)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 533, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_GIVEREF(__pyx_t_1);
__Pyx_GOTREF(__pyx_v_self->_doc);
__pyx_v_self->_doc = ((struct LxmlDocument *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":533
+ /* "lxml/etree.pyx":534
* u"Create a DocInfo object for an ElementTree object or root Element."
* self._doc = _documentOrRaise(tree)
* root_name, public_id, system_url = self._doc.getdoctype() # <<<<<<<<<<<<<<
* if not root_name and (public_id or system_url):
* raise ValueError, u"Could not find root node"
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_9_Document_getdoctype(__pyx_v_self->_doc); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 533, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_9_Document_getdoctype(__pyx_v_self->_doc); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 534, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
PyObject* sequence = __pyx_t_1;
if (unlikely(size != 3)) {
if (size > 3) __Pyx_RaiseTooManyValuesError(3);
else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
- __PYX_ERR(0, 533, __pyx_L1_error)
+ __PYX_ERR(0, 534, __pyx_L1_error)
}
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
if (likely(PyTuple_CheckExact(sequence))) {
__Pyx_INCREF(__pyx_t_3);
__Pyx_INCREF(__pyx_t_4);
#else
- __pyx_t_2 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 533, __pyx_L1_error)
+ __pyx_t_2 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 534, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_3 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 533, __pyx_L1_error)
+ __pyx_t_3 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 534, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_4 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 533, __pyx_L1_error)
+ __pyx_t_4 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 534, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
#endif
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
} else {
Py_ssize_t index = -1;
- __pyx_t_5 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 533, __pyx_L1_error)
+ __pyx_t_5 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 534, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_6 = Py_TYPE(__pyx_t_5)->tp_iternext;
__Pyx_GOTREF(__pyx_t_3);
index = 2; __pyx_t_4 = __pyx_t_6(__pyx_t_5); if (unlikely(!__pyx_t_4)) goto __pyx_L3_unpacking_failed;
__Pyx_GOTREF(__pyx_t_4);
- if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 3) < 0) __PYX_ERR(0, 533, __pyx_L1_error)
+ if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 3) < 0) __PYX_ERR(0, 534, __pyx_L1_error)
__pyx_t_6 = NULL;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
goto __pyx_L4_unpacking_done;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_t_6 = NULL;
if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
- __PYX_ERR(0, 533, __pyx_L1_error)
+ __PYX_ERR(0, 534, __pyx_L1_error)
__pyx_L4_unpacking_done:;
}
__pyx_v_root_name = __pyx_t_2;
__pyx_v_system_url = __pyx_t_4;
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":534
+ /* "lxml/etree.pyx":535
* self._doc = _documentOrRaise(tree)
* root_name, public_id, system_url = self._doc.getdoctype()
* if not root_name and (public_id or system_url): # <<<<<<<<<<<<<<
* raise ValueError, u"Could not find root node"
*
*/
- __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_v_root_name); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 534, __pyx_L1_error)
+ __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_v_root_name); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 535, __pyx_L1_error)
__pyx_t_9 = ((!__pyx_t_8) != 0);
if (__pyx_t_9) {
} else {
__pyx_t_7 = __pyx_t_9;
goto __pyx_L6_bool_binop_done;
}
- __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_v_public_id); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 534, __pyx_L1_error)
+ __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_v_public_id); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 535, __pyx_L1_error)
if (!__pyx_t_9) {
} else {
__pyx_t_7 = __pyx_t_9;
goto __pyx_L6_bool_binop_done;
}
- __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_v_system_url); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 534, __pyx_L1_error)
+ __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_v_system_url); if (unlikely(__pyx_t_9 < 0)) __PYX_ERR(0, 535, __pyx_L1_error)
__pyx_t_7 = __pyx_t_9;
__pyx_L6_bool_binop_done:;
if (unlikely(__pyx_t_7)) {
- /* "lxml/etree.pyx":535
+ /* "lxml/etree.pyx":536
* root_name, public_id, system_url = self._doc.getdoctype()
* if not root_name and (public_id or system_url):
* raise ValueError, u"Could not find root node" # <<<<<<<<<<<<<<
* @property
*/
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_Could_not_find_root_node, 0, 0);
- __PYX_ERR(0, 535, __pyx_L1_error)
+ __PYX_ERR(0, 536, __pyx_L1_error)
- /* "lxml/etree.pyx":534
+ /* "lxml/etree.pyx":535
* self._doc = _documentOrRaise(tree)
* root_name, public_id, system_url = self._doc.getdoctype()
* if not root_name and (public_id or system_url): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":530
+ /* "lxml/etree.pyx":531
* u"Document information provided by parser and DTD."
* cdef _Document _doc
* def __cinit__(self, tree): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":538
+/* "lxml/etree.pyx":539
*
* @property
* def root_name(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":540
+ /* "lxml/etree.pyx":541
* def root_name(self):
* """Returns the name of the root node as defined by the DOCTYPE."""
* root_name, public_id, system_url = self._doc.getdoctype() # <<<<<<<<<<<<<<
* return root_name
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_9_Document_getdoctype(__pyx_v_self->_doc); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 540, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_9_Document_getdoctype(__pyx_v_self->_doc); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 541, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
PyObject* sequence = __pyx_t_1;
if (unlikely(size != 3)) {
if (size > 3) __Pyx_RaiseTooManyValuesError(3);
else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
- __PYX_ERR(0, 540, __pyx_L1_error)
+ __PYX_ERR(0, 541, __pyx_L1_error)
}
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
if (likely(PyTuple_CheckExact(sequence))) {
__Pyx_INCREF(__pyx_t_3);
__Pyx_INCREF(__pyx_t_4);
#else
- __pyx_t_2 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 540, __pyx_L1_error)
+ __pyx_t_2 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 541, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_3 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 540, __pyx_L1_error)
+ __pyx_t_3 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 541, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_4 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 540, __pyx_L1_error)
+ __pyx_t_4 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 541, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
#endif
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
} else {
Py_ssize_t index = -1;
- __pyx_t_5 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 540, __pyx_L1_error)
+ __pyx_t_5 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 541, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_6 = Py_TYPE(__pyx_t_5)->tp_iternext;
__Pyx_GOTREF(__pyx_t_3);
index = 2; __pyx_t_4 = __pyx_t_6(__pyx_t_5); if (unlikely(!__pyx_t_4)) goto __pyx_L3_unpacking_failed;
__Pyx_GOTREF(__pyx_t_4);
- if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 3) < 0) __PYX_ERR(0, 540, __pyx_L1_error)
+ if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 3) < 0) __PYX_ERR(0, 541, __pyx_L1_error)
__pyx_t_6 = NULL;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
goto __pyx_L4_unpacking_done;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_t_6 = NULL;
if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
- __PYX_ERR(0, 540, __pyx_L1_error)
+ __PYX_ERR(0, 541, __pyx_L1_error)
__pyx_L4_unpacking_done:;
}
__pyx_v_root_name = __pyx_t_2;
__pyx_v_system_url = __pyx_t_4;
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":541
+ /* "lxml/etree.pyx":542
* """Returns the name of the root node as defined by the DOCTYPE."""
* root_name, public_id, system_url = self._doc.getdoctype()
* return root_name # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_root_name;
goto __pyx_L0;
- /* "lxml/etree.pyx":538
+ /* "lxml/etree.pyx":539
*
* @property
* def root_name(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":544
+/* "lxml/etree.pyx":545
*
* @cython.final
* cdef tree.xmlDtd* _get_c_dtd(self): # <<<<<<<<<<<<<<
const xmlChar *__pyx_t_3;
__Pyx_RefNannySetupContext("_get_c_dtd", 0);
- /* "lxml/etree.pyx":546
+ /* "lxml/etree.pyx":547
* cdef tree.xmlDtd* _get_c_dtd(self):
* """"Return the DTD. Create it if it does not yet exist."""
* cdef xmlDoc* c_doc = self._doc._c_doc # <<<<<<<<<<<<<<
__pyx_t_1 = __pyx_v_self->_doc->_c_doc;
__pyx_v_c_doc = __pyx_t_1;
- /* "lxml/etree.pyx":550
+ /* "lxml/etree.pyx":551
* cdef const_xmlChar* c_name
*
* if c_doc.intSubset: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_v_c_doc->intSubset != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":551
+ /* "lxml/etree.pyx":552
*
* if c_doc.intSubset:
* return c_doc.intSubset # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_c_doc->intSubset;
goto __pyx_L0;
- /* "lxml/etree.pyx":550
+ /* "lxml/etree.pyx":551
* cdef const_xmlChar* c_name
*
* if c_doc.intSubset: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":553
+ /* "lxml/etree.pyx":554
* return c_doc.intSubset
*
* c_root_node = tree.xmlDocGetRootElement(c_doc) # <<<<<<<<<<<<<<
*/
__pyx_v_c_root_node = xmlDocGetRootElement(__pyx_v_c_doc);
- /* "lxml/etree.pyx":554
+ /* "lxml/etree.pyx":555
*
* c_root_node = tree.xmlDocGetRootElement(c_doc)
* c_name = c_root_node.name if c_root_node else NULL # <<<<<<<<<<<<<<
}
__pyx_v_c_name = __pyx_t_3;
- /* "lxml/etree.pyx":555
+ /* "lxml/etree.pyx":556
* c_root_node = tree.xmlDocGetRootElement(c_doc)
* c_name = c_root_node.name if c_root_node else NULL
* return tree.xmlCreateIntSubset(c_doc, c_name, NULL, NULL) # <<<<<<<<<<<<<<
__pyx_r = xmlCreateIntSubset(__pyx_v_c_doc, __pyx_v_c_name, NULL, NULL);
goto __pyx_L0;
- /* "lxml/etree.pyx":544
+ /* "lxml/etree.pyx":545
*
* @cython.final
* cdef tree.xmlDtd* _get_c_dtd(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":557
+/* "lxml/etree.pyx":558
* return tree.xmlCreateIntSubset(c_doc, c_name, NULL, NULL)
*
* def clear(self): # <<<<<<<<<<<<<<
int __pyx_t_2;
__Pyx_RefNannySetupContext("clear", 0);
- /* "lxml/etree.pyx":559
+ /* "lxml/etree.pyx":560
* def clear(self):
* u"""Removes DOCTYPE and internal subset from the document."""
* cdef xmlDoc* c_doc = self._doc._c_doc # <<<<<<<<<<<<<<
__pyx_t_1 = __pyx_v_self->_doc->_c_doc;
__pyx_v_c_doc = __pyx_t_1;
- /* "lxml/etree.pyx":560
+ /* "lxml/etree.pyx":561
* u"""Removes DOCTYPE and internal subset from the document."""
* cdef xmlDoc* c_doc = self._doc._c_doc
* cdef tree.xmlNode* c_dtd = <xmlNode*>c_doc.intSubset # <<<<<<<<<<<<<<
*/
__pyx_v_c_dtd = ((xmlNode *)__pyx_v_c_doc->intSubset);
- /* "lxml/etree.pyx":561
+ /* "lxml/etree.pyx":562
* cdef xmlDoc* c_doc = self._doc._c_doc
* cdef tree.xmlNode* c_dtd = <xmlNode*>c_doc.intSubset
* if c_dtd is NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_dtd == NULL) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":562
+ /* "lxml/etree.pyx":563
* cdef tree.xmlNode* c_dtd = <xmlNode*>c_doc.intSubset
* if c_dtd is NULL:
* return # <<<<<<<<<<<<<<
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
- /* "lxml/etree.pyx":561
+ /* "lxml/etree.pyx":562
* cdef xmlDoc* c_doc = self._doc._c_doc
* cdef tree.xmlNode* c_dtd = <xmlNode*>c_doc.intSubset
* if c_dtd is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":563
+ /* "lxml/etree.pyx":564
* if c_dtd is NULL:
* return
* tree.xmlUnlinkNode(c_dtd) # <<<<<<<<<<<<<<
*/
xmlUnlinkNode(__pyx_v_c_dtd);
- /* "lxml/etree.pyx":564
+ /* "lxml/etree.pyx":565
* return
* tree.xmlUnlinkNode(c_dtd)
* tree.xmlFreeNode(c_dtd) # <<<<<<<<<<<<<<
*/
xmlFreeNode(__pyx_v_c_dtd);
- /* "lxml/etree.pyx":557
+ /* "lxml/etree.pyx":558
* return tree.xmlCreateIntSubset(c_doc, c_name, NULL, NULL)
*
* def clear(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":572
+/* "lxml/etree.pyx":573
* exist, setting this variable (even to None) will create one.
* """
* def __get__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":573
+ /* "lxml/etree.pyx":574
* """
* def __get__(self):
* root_name, public_id, system_url = self._doc.getdoctype() # <<<<<<<<<<<<<<
* return public_id
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_9_Document_getdoctype(__pyx_v_self->_doc); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 573, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_9_Document_getdoctype(__pyx_v_self->_doc); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 574, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
PyObject* sequence = __pyx_t_1;
if (unlikely(size != 3)) {
if (size > 3) __Pyx_RaiseTooManyValuesError(3);
else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
- __PYX_ERR(0, 573, __pyx_L1_error)
+ __PYX_ERR(0, 574, __pyx_L1_error)
}
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
if (likely(PyTuple_CheckExact(sequence))) {
__Pyx_INCREF(__pyx_t_3);
__Pyx_INCREF(__pyx_t_4);
#else
- __pyx_t_2 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 573, __pyx_L1_error)
+ __pyx_t_2 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 574, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_3 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 573, __pyx_L1_error)
+ __pyx_t_3 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 574, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_4 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 573, __pyx_L1_error)
+ __pyx_t_4 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 574, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
#endif
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
} else {
Py_ssize_t index = -1;
- __pyx_t_5 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 573, __pyx_L1_error)
+ __pyx_t_5 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 574, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_6 = Py_TYPE(__pyx_t_5)->tp_iternext;
__Pyx_GOTREF(__pyx_t_3);
index = 2; __pyx_t_4 = __pyx_t_6(__pyx_t_5); if (unlikely(!__pyx_t_4)) goto __pyx_L3_unpacking_failed;
__Pyx_GOTREF(__pyx_t_4);
- if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 3) < 0) __PYX_ERR(0, 573, __pyx_L1_error)
+ if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 3) < 0) __PYX_ERR(0, 574, __pyx_L1_error)
__pyx_t_6 = NULL;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
goto __pyx_L4_unpacking_done;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_t_6 = NULL;
if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
- __PYX_ERR(0, 573, __pyx_L1_error)
+ __PYX_ERR(0, 574, __pyx_L1_error)
__pyx_L4_unpacking_done:;
}
__pyx_v_root_name = __pyx_t_2;
__pyx_v_system_url = __pyx_t_4;
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":574
+ /* "lxml/etree.pyx":575
* def __get__(self):
* root_name, public_id, system_url = self._doc.getdoctype()
* return public_id # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_public_id;
goto __pyx_L0;
- /* "lxml/etree.pyx":572
+ /* "lxml/etree.pyx":573
* exist, setting this variable (even to None) will create one.
* """
* def __get__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":576
+/* "lxml/etree.pyx":577
* return public_id
*
* def __set__(self, value): # <<<<<<<<<<<<<<
__Pyx_RefNannySetupContext("__set__", 0);
__Pyx_INCREF(__pyx_v_value);
- /* "lxml/etree.pyx":577
+ /* "lxml/etree.pyx":578
*
* def __set__(self, value):
* cdef xmlChar* c_value = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_c_value = NULL;
- /* "lxml/etree.pyx":578
+ /* "lxml/etree.pyx":579
* def __set__(self, value):
* cdef xmlChar* c_value = NULL
* if value is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":579
+ /* "lxml/etree.pyx":580
* cdef xmlChar* c_value = NULL
* if value is not None:
* match = _find_invalid_public_id_characters(value) # <<<<<<<<<<<<<<
}
__pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_value) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_value);
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
- if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 579, __pyx_L1_error)
+ if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 580, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_v_match = __pyx_t_3;
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":580
+ /* "lxml/etree.pyx":581
* if value is not None:
* match = _find_invalid_public_id_characters(value)
* if match: # <<<<<<<<<<<<<<
* raise ValueError, f'Invalid character(s) {match.group(0)!r} in public_id.'
* value = _utf8(value)
*/
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_match); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 580, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_match); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 581, __pyx_L1_error)
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":581
+ /* "lxml/etree.pyx":582
* match = _find_invalid_public_id_characters(value)
* if match:
* raise ValueError, f'Invalid character(s) {match.group(0)!r} in public_id.' # <<<<<<<<<<<<<<
* value = _utf8(value)
* c_value = tree.xmlStrdup(_xcstr(value))
*/
- __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 581, __pyx_L1_error)
+ __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 582, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_6 = 0;
__pyx_t_7 = 127;
__pyx_t_6 += 21;
__Pyx_GIVEREF(__pyx_kp_u_Invalid_character_s);
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_u_Invalid_character_s);
- __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_match, __pyx_n_s_group); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 581, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_match, __pyx_n_s_group); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 582, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_8 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
}
__pyx_t_4 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_8, __pyx_int_0) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_int_0);
__Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
- if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 581, __pyx_L1_error)
+ if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 582, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_t_4), __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 581, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_t_4), __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 582, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_7 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_7) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_7;
__pyx_t_6 += 14;
__Pyx_GIVEREF(__pyx_kp_u_in_public_id);
PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_kp_u_in_public_id);
- __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_3, 3, __pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 581, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_3, 3, __pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 582, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_t_5, 0, 0);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- __PYX_ERR(0, 581, __pyx_L1_error)
+ __PYX_ERR(0, 582, __pyx_L1_error)
- /* "lxml/etree.pyx":580
+ /* "lxml/etree.pyx":581
* if value is not None:
* match = _find_invalid_public_id_characters(value)
* if match: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":582
+ /* "lxml/etree.pyx":583
* if match:
* raise ValueError, f'Invalid character(s) {match.group(0)!r} in public_id.'
* value = _utf8(value) # <<<<<<<<<<<<<<
* c_value = tree.xmlStrdup(_xcstr(value))
* if not c_value:
*/
- __pyx_t_5 = __pyx_f_4lxml_5etree__utf8(__pyx_v_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 582, __pyx_L1_error)
+ __pyx_t_5 = __pyx_f_4lxml_5etree__utf8(__pyx_v_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 583, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF_SET(__pyx_v_value, __pyx_t_5);
__pyx_t_5 = 0;
- /* "lxml/etree.pyx":583
+ /* "lxml/etree.pyx":584
* raise ValueError, f'Invalid character(s) {match.group(0)!r} in public_id.'
* value = _utf8(value)
* c_value = tree.xmlStrdup(_xcstr(value)) # <<<<<<<<<<<<<<
*/
__pyx_v_c_value = xmlStrdup((const xmlChar*)PyBytes_AS_STRING(__pyx_v_value));
- /* "lxml/etree.pyx":584
+ /* "lxml/etree.pyx":585
* value = _utf8(value)
* c_value = tree.xmlStrdup(_xcstr(value))
* if not c_value: # <<<<<<<<<<<<<<
__pyx_t_2 = ((!(__pyx_v_c_value != 0)) != 0);
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":585
+ /* "lxml/etree.pyx":586
* c_value = tree.xmlStrdup(_xcstr(value))
* if not c_value:
* raise MemoryError() # <<<<<<<<<<<<<<
*
* c_dtd = self._get_c_dtd()
*/
- PyErr_NoMemory(); __PYX_ERR(0, 585, __pyx_L1_error)
+ PyErr_NoMemory(); __PYX_ERR(0, 586, __pyx_L1_error)
- /* "lxml/etree.pyx":584
+ /* "lxml/etree.pyx":585
* value = _utf8(value)
* c_value = tree.xmlStrdup(_xcstr(value))
* if not c_value: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":578
+ /* "lxml/etree.pyx":579
* def __set__(self, value):
* cdef xmlChar* c_value = NULL
* if value is not None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":587
+ /* "lxml/etree.pyx":588
* raise MemoryError()
*
* c_dtd = self._get_c_dtd() # <<<<<<<<<<<<<<
*/
__pyx_v_c_dtd = __pyx_f_4lxml_5etree_7DocInfo__get_c_dtd(__pyx_v_self);
- /* "lxml/etree.pyx":588
+ /* "lxml/etree.pyx":589
*
* c_dtd = self._get_c_dtd()
* if not c_dtd: # <<<<<<<<<<<<<<
__pyx_t_2 = ((!(__pyx_v_c_dtd != 0)) != 0);
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":589
+ /* "lxml/etree.pyx":590
* c_dtd = self._get_c_dtd()
* if not c_dtd:
* tree.xmlFree(c_value) # <<<<<<<<<<<<<<
*/
xmlFree(__pyx_v_c_value);
- /* "lxml/etree.pyx":590
+ /* "lxml/etree.pyx":591
* if not c_dtd:
* tree.xmlFree(c_value)
* raise MemoryError() # <<<<<<<<<<<<<<
* if c_dtd.ExternalID:
* tree.xmlFree(<void*>c_dtd.ExternalID)
*/
- PyErr_NoMemory(); __PYX_ERR(0, 590, __pyx_L1_error)
+ PyErr_NoMemory(); __PYX_ERR(0, 591, __pyx_L1_error)
- /* "lxml/etree.pyx":588
+ /* "lxml/etree.pyx":589
*
* c_dtd = self._get_c_dtd()
* if not c_dtd: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":591
+ /* "lxml/etree.pyx":592
* tree.xmlFree(c_value)
* raise MemoryError()
* if c_dtd.ExternalID: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_v_c_dtd->ExternalID != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":592
+ /* "lxml/etree.pyx":593
* raise MemoryError()
* if c_dtd.ExternalID:
* tree.xmlFree(<void*>c_dtd.ExternalID) # <<<<<<<<<<<<<<
*/
xmlFree(((void *)__pyx_v_c_dtd->ExternalID));
- /* "lxml/etree.pyx":591
+ /* "lxml/etree.pyx":592
* tree.xmlFree(c_value)
* raise MemoryError()
* if c_dtd.ExternalID: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":593
+ /* "lxml/etree.pyx":594
* if c_dtd.ExternalID:
* tree.xmlFree(<void*>c_dtd.ExternalID)
* c_dtd.ExternalID = c_value # <<<<<<<<<<<<<<
*/
__pyx_v_c_dtd->ExternalID = __pyx_v_c_value;
- /* "lxml/etree.pyx":576
+ /* "lxml/etree.pyx":577
* return public_id
*
* def __set__(self, value): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":601
+/* "lxml/etree.pyx":602
* exist, setting this variable (even to None) will create one.
* """
* def __get__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":602
+ /* "lxml/etree.pyx":603
* """
* def __get__(self):
* root_name, public_id, system_url = self._doc.getdoctype() # <<<<<<<<<<<<<<
* return system_url
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_9_Document_getdoctype(__pyx_v_self->_doc); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 602, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_9_Document_getdoctype(__pyx_v_self->_doc); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 603, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
PyObject* sequence = __pyx_t_1;
if (unlikely(size != 3)) {
if (size > 3) __Pyx_RaiseTooManyValuesError(3);
else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
- __PYX_ERR(0, 602, __pyx_L1_error)
+ __PYX_ERR(0, 603, __pyx_L1_error)
}
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
if (likely(PyTuple_CheckExact(sequence))) {
__Pyx_INCREF(__pyx_t_3);
__Pyx_INCREF(__pyx_t_4);
#else
- __pyx_t_2 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 602, __pyx_L1_error)
+ __pyx_t_2 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 603, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_3 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 602, __pyx_L1_error)
+ __pyx_t_3 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 603, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_4 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 602, __pyx_L1_error)
+ __pyx_t_4 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 603, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
#endif
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
} else {
Py_ssize_t index = -1;
- __pyx_t_5 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 602, __pyx_L1_error)
+ __pyx_t_5 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 603, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_6 = Py_TYPE(__pyx_t_5)->tp_iternext;
__Pyx_GOTREF(__pyx_t_3);
index = 2; __pyx_t_4 = __pyx_t_6(__pyx_t_5); if (unlikely(!__pyx_t_4)) goto __pyx_L3_unpacking_failed;
__Pyx_GOTREF(__pyx_t_4);
- if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 3) < 0) __PYX_ERR(0, 602, __pyx_L1_error)
+ if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 3) < 0) __PYX_ERR(0, 603, __pyx_L1_error)
__pyx_t_6 = NULL;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
goto __pyx_L4_unpacking_done;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_t_6 = NULL;
if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
- __PYX_ERR(0, 602, __pyx_L1_error)
+ __PYX_ERR(0, 603, __pyx_L1_error)
__pyx_L4_unpacking_done:;
}
__pyx_v_root_name = __pyx_t_2;
__pyx_v_system_url = __pyx_t_4;
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":603
+ /* "lxml/etree.pyx":604
* def __get__(self):
* root_name, public_id, system_url = self._doc.getdoctype()
* return system_url # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_system_url;
goto __pyx_L0;
- /* "lxml/etree.pyx":601
+ /* "lxml/etree.pyx":602
* exist, setting this variable (even to None) will create one.
* """
* def __get__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":605
+/* "lxml/etree.pyx":606
* return system_url
*
* def __set__(self, value): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__set__", 0);
- /* "lxml/etree.pyx":606
+ /* "lxml/etree.pyx":607
*
* def __set__(self, value):
* cdef xmlChar* c_value = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_c_value = NULL;
- /* "lxml/etree.pyx":607
+ /* "lxml/etree.pyx":608
* def __set__(self, value):
* cdef xmlChar* c_value = NULL
* if value is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":608
+ /* "lxml/etree.pyx":609
* cdef xmlChar* c_value = NULL
* if value is not None:
* bvalue = _utf8(value) # <<<<<<<<<<<<<<
* # sys_url may be any valid unicode string that can be
* # enclosed in single quotes or quotes.
*/
- __pyx_t_3 = __pyx_f_4lxml_5etree__utf8(__pyx_v_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 608, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree__utf8(__pyx_v_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 609, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_v_bvalue = ((PyObject*)__pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":611
+ /* "lxml/etree.pyx":612
* # sys_url may be any valid unicode string that can be
* # enclosed in single quotes or quotes.
* if b"'" in bvalue and b'"' in bvalue: # <<<<<<<<<<<<<<
* raise ValueError(
* 'System URL may not contain both single (\') and double quotes (").')
*/
- __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_kp_b__22, __pyx_v_bvalue, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 611, __pyx_L1_error)
+ __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_kp_b__22, __pyx_v_bvalue, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 612, __pyx_L1_error)
__pyx_t_4 = (__pyx_t_1 != 0);
if (__pyx_t_4) {
} else {
__pyx_t_2 = __pyx_t_4;
goto __pyx_L5_bool_binop_done;
}
- __pyx_t_4 = (__Pyx_PySequence_ContainsTF(__pyx_kp_b__23, __pyx_v_bvalue, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 611, __pyx_L1_error)
+ __pyx_t_4 = (__Pyx_PySequence_ContainsTF(__pyx_kp_b__23, __pyx_v_bvalue, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 612, __pyx_L1_error)
__pyx_t_1 = (__pyx_t_4 != 0);
__pyx_t_2 = __pyx_t_1;
__pyx_L5_bool_binop_done:;
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":612
+ /* "lxml/etree.pyx":613
* # enclosed in single quotes or quotes.
* if b"'" in bvalue and b'"' in bvalue:
* raise ValueError( # <<<<<<<<<<<<<<
* 'System URL may not contain both single (\') and double quotes (").')
* c_value = tree.xmlStrdup(_xcstr(bvalue))
*/
- __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__24, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 612, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__24, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 613, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_Raise(__pyx_t_3, 0, 0, 0);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- __PYX_ERR(0, 612, __pyx_L1_error)
+ __PYX_ERR(0, 613, __pyx_L1_error)
- /* "lxml/etree.pyx":611
+ /* "lxml/etree.pyx":612
* # sys_url may be any valid unicode string that can be
* # enclosed in single quotes or quotes.
* if b"'" in bvalue and b'"' in bvalue: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":614
+ /* "lxml/etree.pyx":615
* raise ValueError(
* 'System URL may not contain both single (\') and double quotes (").')
* c_value = tree.xmlStrdup(_xcstr(bvalue)) # <<<<<<<<<<<<<<
*/
__pyx_v_c_value = xmlStrdup((const xmlChar*)PyBytes_AS_STRING(__pyx_v_bvalue));
- /* "lxml/etree.pyx":615
+ /* "lxml/etree.pyx":616
* 'System URL may not contain both single (\') and double quotes (").')
* c_value = tree.xmlStrdup(_xcstr(bvalue))
* if not c_value: # <<<<<<<<<<<<<<
__pyx_t_2 = ((!(__pyx_v_c_value != 0)) != 0);
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":616
+ /* "lxml/etree.pyx":617
* c_value = tree.xmlStrdup(_xcstr(bvalue))
* if not c_value:
* raise MemoryError() # <<<<<<<<<<<<<<
*
* c_dtd = self._get_c_dtd()
*/
- PyErr_NoMemory(); __PYX_ERR(0, 616, __pyx_L1_error)
+ PyErr_NoMemory(); __PYX_ERR(0, 617, __pyx_L1_error)
- /* "lxml/etree.pyx":615
+ /* "lxml/etree.pyx":616
* 'System URL may not contain both single (\') and double quotes (").')
* c_value = tree.xmlStrdup(_xcstr(bvalue))
* if not c_value: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":607
+ /* "lxml/etree.pyx":608
* def __set__(self, value):
* cdef xmlChar* c_value = NULL
* if value is not None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":618
+ /* "lxml/etree.pyx":619
* raise MemoryError()
*
* c_dtd = self._get_c_dtd() # <<<<<<<<<<<<<<
*/
__pyx_v_c_dtd = __pyx_f_4lxml_5etree_7DocInfo__get_c_dtd(__pyx_v_self);
- /* "lxml/etree.pyx":619
+ /* "lxml/etree.pyx":620
*
* c_dtd = self._get_c_dtd()
* if not c_dtd: # <<<<<<<<<<<<<<
__pyx_t_2 = ((!(__pyx_v_c_dtd != 0)) != 0);
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":620
+ /* "lxml/etree.pyx":621
* c_dtd = self._get_c_dtd()
* if not c_dtd:
* tree.xmlFree(c_value) # <<<<<<<<<<<<<<
*/
xmlFree(__pyx_v_c_value);
- /* "lxml/etree.pyx":621
+ /* "lxml/etree.pyx":622
* if not c_dtd:
* tree.xmlFree(c_value)
* raise MemoryError() # <<<<<<<<<<<<<<
* if c_dtd.SystemID:
* tree.xmlFree(<void*>c_dtd.SystemID)
*/
- PyErr_NoMemory(); __PYX_ERR(0, 621, __pyx_L1_error)
+ PyErr_NoMemory(); __PYX_ERR(0, 622, __pyx_L1_error)
- /* "lxml/etree.pyx":619
+ /* "lxml/etree.pyx":620
*
* c_dtd = self._get_c_dtd()
* if not c_dtd: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":622
+ /* "lxml/etree.pyx":623
* tree.xmlFree(c_value)
* raise MemoryError()
* if c_dtd.SystemID: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_v_c_dtd->SystemID != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":623
+ /* "lxml/etree.pyx":624
* raise MemoryError()
* if c_dtd.SystemID:
* tree.xmlFree(<void*>c_dtd.SystemID) # <<<<<<<<<<<<<<
*/
xmlFree(((void *)__pyx_v_c_dtd->SystemID));
- /* "lxml/etree.pyx":622
+ /* "lxml/etree.pyx":623
* tree.xmlFree(c_value)
* raise MemoryError()
* if c_dtd.SystemID: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":624
+ /* "lxml/etree.pyx":625
* if c_dtd.SystemID:
* tree.xmlFree(<void*>c_dtd.SystemID)
* c_dtd.SystemID = c_value # <<<<<<<<<<<<<<
*/
__pyx_v_c_dtd->SystemID = __pyx_v_c_value;
- /* "lxml/etree.pyx":605
+ /* "lxml/etree.pyx":606
* return system_url
*
* def __set__(self, value): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":627
+/* "lxml/etree.pyx":628
*
* @property
* def xml_version(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":629
+ /* "lxml/etree.pyx":630
* def xml_version(self):
* """Returns the XML version as declared by the document."""
* xml_version, encoding = self._doc.getxmlinfo() # <<<<<<<<<<<<<<
* return xml_version
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_9_Document_getxmlinfo(__pyx_v_self->_doc); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 629, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_9_Document_getxmlinfo(__pyx_v_self->_doc); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 630, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
PyObject* sequence = __pyx_t_1;
if (unlikely(size != 2)) {
if (size > 2) __Pyx_RaiseTooManyValuesError(2);
else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
- __PYX_ERR(0, 629, __pyx_L1_error)
+ __PYX_ERR(0, 630, __pyx_L1_error)
}
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
if (likely(PyTuple_CheckExact(sequence))) {
__Pyx_INCREF(__pyx_t_2);
__Pyx_INCREF(__pyx_t_3);
#else
- __pyx_t_2 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 629, __pyx_L1_error)
+ __pyx_t_2 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 630, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_3 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 629, __pyx_L1_error)
+ __pyx_t_3 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 630, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
#endif
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
} else {
Py_ssize_t index = -1;
- __pyx_t_4 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 629, __pyx_L1_error)
+ __pyx_t_4 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 630, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_5 = Py_TYPE(__pyx_t_4)->tp_iternext;
__Pyx_GOTREF(__pyx_t_2);
index = 1; __pyx_t_3 = __pyx_t_5(__pyx_t_4); if (unlikely(!__pyx_t_3)) goto __pyx_L3_unpacking_failed;
__Pyx_GOTREF(__pyx_t_3);
- if (__Pyx_IternextUnpackEndCheck(__pyx_t_5(__pyx_t_4), 2) < 0) __PYX_ERR(0, 629, __pyx_L1_error)
+ if (__Pyx_IternextUnpackEndCheck(__pyx_t_5(__pyx_t_4), 2) < 0) __PYX_ERR(0, 630, __pyx_L1_error)
__pyx_t_5 = NULL;
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
goto __pyx_L4_unpacking_done;
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_5 = NULL;
if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
- __PYX_ERR(0, 629, __pyx_L1_error)
+ __PYX_ERR(0, 630, __pyx_L1_error)
__pyx_L4_unpacking_done:;
}
__pyx_v_xml_version = __pyx_t_2;
__pyx_v_encoding = __pyx_t_3;
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":630
+ /* "lxml/etree.pyx":631
* """Returns the XML version as declared by the document."""
* xml_version, encoding = self._doc.getxmlinfo()
* return xml_version # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_xml_version;
goto __pyx_L0;
- /* "lxml/etree.pyx":627
+ /* "lxml/etree.pyx":628
*
* @property
* def xml_version(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":633
+/* "lxml/etree.pyx":634
*
* @property
* def encoding(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":635
+ /* "lxml/etree.pyx":636
* def encoding(self):
* """Returns the encoding name as declared by the document."""
* xml_version, encoding = self._doc.getxmlinfo() # <<<<<<<<<<<<<<
* return encoding
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_9_Document_getxmlinfo(__pyx_v_self->_doc); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 635, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_9_Document_getxmlinfo(__pyx_v_self->_doc); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 636, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
PyObject* sequence = __pyx_t_1;
if (unlikely(size != 2)) {
if (size > 2) __Pyx_RaiseTooManyValuesError(2);
else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
- __PYX_ERR(0, 635, __pyx_L1_error)
+ __PYX_ERR(0, 636, __pyx_L1_error)
}
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
if (likely(PyTuple_CheckExact(sequence))) {
__Pyx_INCREF(__pyx_t_2);
__Pyx_INCREF(__pyx_t_3);
#else
- __pyx_t_2 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 635, __pyx_L1_error)
+ __pyx_t_2 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 636, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_3 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 635, __pyx_L1_error)
+ __pyx_t_3 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 636, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
#endif
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
} else {
Py_ssize_t index = -1;
- __pyx_t_4 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 635, __pyx_L1_error)
+ __pyx_t_4 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 636, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_5 = Py_TYPE(__pyx_t_4)->tp_iternext;
__Pyx_GOTREF(__pyx_t_2);
index = 1; __pyx_t_3 = __pyx_t_5(__pyx_t_4); if (unlikely(!__pyx_t_3)) goto __pyx_L3_unpacking_failed;
__Pyx_GOTREF(__pyx_t_3);
- if (__Pyx_IternextUnpackEndCheck(__pyx_t_5(__pyx_t_4), 2) < 0) __PYX_ERR(0, 635, __pyx_L1_error)
+ if (__Pyx_IternextUnpackEndCheck(__pyx_t_5(__pyx_t_4), 2) < 0) __PYX_ERR(0, 636, __pyx_L1_error)
__pyx_t_5 = NULL;
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
goto __pyx_L4_unpacking_done;
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_5 = NULL;
if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
- __PYX_ERR(0, 635, __pyx_L1_error)
+ __PYX_ERR(0, 636, __pyx_L1_error)
__pyx_L4_unpacking_done:;
}
__pyx_v_xml_version = __pyx_t_2;
__pyx_v_encoding = __pyx_t_3;
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":636
+ /* "lxml/etree.pyx":637
* """Returns the encoding name as declared by the document."""
* xml_version, encoding = self._doc.getxmlinfo()
* return encoding # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_encoding;
goto __pyx_L0;
- /* "lxml/etree.pyx":633
+ /* "lxml/etree.pyx":634
*
* @property
* def encoding(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":639
+/* "lxml/etree.pyx":640
*
* @property
* def standalone(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":647
+ /* "lxml/etree.pyx":648
* ``standalone`` flag was set to ``'yes'`` or not.
* """
* return self._doc.isstandalone() # <<<<<<<<<<<<<<
* property URL:
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __pyx_f_4lxml_5etree_9_Document_isstandalone(__pyx_v_self->_doc); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 647, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_9_Document_isstandalone(__pyx_v_self->_doc); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 648, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":639
+ /* "lxml/etree.pyx":640
*
* @property
* def standalone(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":651
+/* "lxml/etree.pyx":652
* property URL:
* u"The source URL of the document (or None if unknown)."
* def __get__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":652
+ /* "lxml/etree.pyx":653
* u"The source URL of the document (or None if unknown)."
* def __get__(self):
* if self._doc._c_doc.URL is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_self->_doc->_c_doc->URL == NULL) != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":653
+ /* "lxml/etree.pyx":654
* def __get__(self):
* if self._doc._c_doc.URL is NULL:
* return None # <<<<<<<<<<<<<<
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
- /* "lxml/etree.pyx":652
+ /* "lxml/etree.pyx":653
* u"The source URL of the document (or None if unknown)."
* def __get__(self):
* if self._doc._c_doc.URL is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":654
+ /* "lxml/etree.pyx":655
* if self._doc._c_doc.URL is NULL:
* return None
* return _decodeFilename(self._doc._c_doc.URL) # <<<<<<<<<<<<<<
* url = _encodeFilename(url)
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __pyx_f_4lxml_5etree__decodeFilename(__pyx_v_self->_doc->_c_doc->URL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 654, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__decodeFilename(__pyx_v_self->_doc->_c_doc->URL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 655, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":651
+ /* "lxml/etree.pyx":652
* property URL:
* u"The source URL of the document (or None if unknown)."
* def __get__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":655
+/* "lxml/etree.pyx":656
* return None
* return _decodeFilename(self._doc._c_doc.URL)
* def __set__(self, url): # <<<<<<<<<<<<<<
__Pyx_RefNannySetupContext("__set__", 0);
__Pyx_INCREF(__pyx_v_url);
- /* "lxml/etree.pyx":656
+ /* "lxml/etree.pyx":657
* return _decodeFilename(self._doc._c_doc.URL)
* def __set__(self, url):
* url = _encodeFilename(url) # <<<<<<<<<<<<<<
* c_oldurl = self._doc._c_doc.URL
* if url is None:
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__encodeFilename(__pyx_v_url); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 656, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__encodeFilename(__pyx_v_url); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 657, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF_SET(__pyx_v_url, __pyx_t_1);
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":657
+ /* "lxml/etree.pyx":658
* def __set__(self, url):
* url = _encodeFilename(url)
* c_oldurl = self._doc._c_doc.URL # <<<<<<<<<<<<<<
__pyx_t_2 = __pyx_v_self->_doc->_c_doc->URL;
__pyx_v_c_oldurl = __pyx_t_2;
- /* "lxml/etree.pyx":658
+ /* "lxml/etree.pyx":659
* url = _encodeFilename(url)
* c_oldurl = self._doc._c_doc.URL
* if url is None: # <<<<<<<<<<<<<<
__pyx_t_4 = (__pyx_t_3 != 0);
if (__pyx_t_4) {
- /* "lxml/etree.pyx":659
+ /* "lxml/etree.pyx":660
* c_oldurl = self._doc._c_doc.URL
* if url is None:
* self._doc._c_doc.URL = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_self->_doc->_c_doc->URL = NULL;
- /* "lxml/etree.pyx":658
+ /* "lxml/etree.pyx":659
* url = _encodeFilename(url)
* c_oldurl = self._doc._c_doc.URL
* if url is None: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":661
+ /* "lxml/etree.pyx":662
* self._doc._c_doc.URL = NULL
* else:
* self._doc._c_doc.URL = tree.xmlStrdup(_xcstr(url)) # <<<<<<<<<<<<<<
}
__pyx_L3:;
- /* "lxml/etree.pyx":662
+ /* "lxml/etree.pyx":663
* else:
* self._doc._c_doc.URL = tree.xmlStrdup(_xcstr(url))
* if c_oldurl is not NULL: # <<<<<<<<<<<<<<
__pyx_t_4 = ((__pyx_v_c_oldurl != NULL) != 0);
if (__pyx_t_4) {
- /* "lxml/etree.pyx":663
+ /* "lxml/etree.pyx":664
* self._doc._c_doc.URL = tree.xmlStrdup(_xcstr(url))
* if c_oldurl is not NULL:
* tree.xmlFree(<void*>c_oldurl) # <<<<<<<<<<<<<<
*/
xmlFree(((void *)__pyx_v_c_oldurl));
- /* "lxml/etree.pyx":662
+ /* "lxml/etree.pyx":663
* else:
* self._doc._c_doc.URL = tree.xmlStrdup(_xcstr(url))
* if c_oldurl is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":655
+ /* "lxml/etree.pyx":656
* return None
* return _decodeFilename(self._doc._c_doc.URL)
* def __set__(self, url): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":666
+/* "lxml/etree.pyx":667
*
* @property
* def doctype(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":668
+ /* "lxml/etree.pyx":669
* def doctype(self):
* """Returns a DOCTYPE declaration string for the document."""
* root_name, public_id, system_url = self._doc.getdoctype() # <<<<<<<<<<<<<<
* if system_url:
* # If '"' in system_url, we must escape it with single
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_9_Document_getdoctype(__pyx_v_self->_doc); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 668, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_9_Document_getdoctype(__pyx_v_self->_doc); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 669, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) {
PyObject* sequence = __pyx_t_1;
if (unlikely(size != 3)) {
if (size > 3) __Pyx_RaiseTooManyValuesError(3);
else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
- __PYX_ERR(0, 668, __pyx_L1_error)
+ __PYX_ERR(0, 669, __pyx_L1_error)
}
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
if (likely(PyTuple_CheckExact(sequence))) {
__Pyx_INCREF(__pyx_t_3);
__Pyx_INCREF(__pyx_t_4);
#else
- __pyx_t_2 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 668, __pyx_L1_error)
+ __pyx_t_2 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 669, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_3 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 668, __pyx_L1_error)
+ __pyx_t_3 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 669, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_4 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 668, __pyx_L1_error)
+ __pyx_t_4 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 669, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
#endif
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
} else {
Py_ssize_t index = -1;
- __pyx_t_5 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 668, __pyx_L1_error)
+ __pyx_t_5 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 669, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_6 = Py_TYPE(__pyx_t_5)->tp_iternext;
__Pyx_GOTREF(__pyx_t_3);
index = 2; __pyx_t_4 = __pyx_t_6(__pyx_t_5); if (unlikely(!__pyx_t_4)) goto __pyx_L3_unpacking_failed;
__Pyx_GOTREF(__pyx_t_4);
- if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 3) < 0) __PYX_ERR(0, 668, __pyx_L1_error)
+ if (__Pyx_IternextUnpackEndCheck(__pyx_t_6(__pyx_t_5), 3) < 0) __PYX_ERR(0, 669, __pyx_L1_error)
__pyx_t_6 = NULL;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
goto __pyx_L4_unpacking_done;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_t_6 = NULL;
if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
- __PYX_ERR(0, 668, __pyx_L1_error)
+ __PYX_ERR(0, 669, __pyx_L1_error)
__pyx_L4_unpacking_done:;
}
__pyx_v_root_name = __pyx_t_2;
__pyx_v_system_url = __pyx_t_4;
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":669
+ /* "lxml/etree.pyx":670
* """Returns a DOCTYPE declaration string for the document."""
* root_name, public_id, system_url = self._doc.getdoctype()
* if system_url: # <<<<<<<<<<<<<<
* # If '"' in system_url, we must escape it with single
* # quotes, otherwise escape with double quotes. If url
*/
- __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_v_system_url); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 669, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_v_system_url); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 670, __pyx_L1_error)
if (__pyx_t_7) {
- /* "lxml/etree.pyx":674
+ /* "lxml/etree.pyx":675
* # contains both a single quote and a double quote, XML
* # standard is being violated.
* if '"' in system_url: # <<<<<<<<<<<<<<
* quoted_system_url = f"'{system_url}'"
* else:
*/
- __pyx_t_7 = (__Pyx_PySequence_ContainsTF(__pyx_kp_s__23, __pyx_v_system_url, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 674, __pyx_L1_error)
+ __pyx_t_7 = (__Pyx_PySequence_ContainsTF(__pyx_kp_s__23, __pyx_v_system_url, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(0, 675, __pyx_L1_error)
__pyx_t_8 = (__pyx_t_7 != 0);
if (__pyx_t_8) {
- /* "lxml/etree.pyx":675
+ /* "lxml/etree.pyx":676
* # standard is being violated.
* if '"' in system_url:
* quoted_system_url = f"'{system_url}'" # <<<<<<<<<<<<<<
* else:
* quoted_system_url = f'"{system_url}"'
*/
- __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 675, __pyx_L1_error)
+ __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 676, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_9 = 0;
__pyx_t_10 = 127;
__pyx_t_9 += 1;
__Pyx_GIVEREF(__pyx_kp_u__22);
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u__22);
- __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_v_system_url, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 675, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_v_system_url, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 676, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_10 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_10) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_10;
__pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
__pyx_t_9 += 1;
__Pyx_GIVEREF(__pyx_kp_u__22);
PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u__22);
- __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_1, 3, __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 675, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_1, 3, __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 676, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_v_quoted_system_url = ((PyObject*)__pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":674
+ /* "lxml/etree.pyx":675
* # contains both a single quote and a double quote, XML
* # standard is being violated.
* if '"' in system_url: # <<<<<<<<<<<<<<
goto __pyx_L6;
}
- /* "lxml/etree.pyx":677
+ /* "lxml/etree.pyx":678
* quoted_system_url = f"'{system_url}'"
* else:
* quoted_system_url = f'"{system_url}"' # <<<<<<<<<<<<<<
* if system_url:
*/
/*else*/ {
- __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 677, __pyx_L1_error)
+ __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 678, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_9 = 0;
__pyx_t_10 = 127;
__pyx_t_9 += 1;
__Pyx_GIVEREF(__pyx_kp_u__23);
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u__23);
- __pyx_t_1 = __Pyx_PyObject_FormatSimple(__pyx_v_system_url, __pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 677, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_FormatSimple(__pyx_v_system_url, __pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 678, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_10 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) > __pyx_t_10) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) : __pyx_t_10;
__pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1);
__pyx_t_9 += 1;
__Pyx_GIVEREF(__pyx_kp_u__23);
PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_kp_u__23);
- __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_4, 3, __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 677, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_4, 3, __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 678, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_v_quoted_system_url = ((PyObject*)__pyx_t_1);
}
__pyx_L6:;
- /* "lxml/etree.pyx":669
+ /* "lxml/etree.pyx":670
* """Returns a DOCTYPE declaration string for the document."""
* root_name, public_id, system_url = self._doc.getdoctype()
* if system_url: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":678
+ /* "lxml/etree.pyx":679
* else:
* quoted_system_url = f'"{system_url}"'
* if public_id: # <<<<<<<<<<<<<<
* if system_url:
* return f'<!DOCTYPE {root_name} PUBLIC "{public_id}" {quoted_system_url}>'
*/
- __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_v_public_id); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 678, __pyx_L1_error)
+ __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_v_public_id); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 679, __pyx_L1_error)
if (__pyx_t_8) {
- /* "lxml/etree.pyx":679
+ /* "lxml/etree.pyx":680
* quoted_system_url = f'"{system_url}"'
* if public_id:
* if system_url: # <<<<<<<<<<<<<<
* return f'<!DOCTYPE {root_name} PUBLIC "{public_id}" {quoted_system_url}>'
* else:
*/
- __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_v_system_url); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 679, __pyx_L1_error)
+ __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_v_system_url); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 680, __pyx_L1_error)
if (__pyx_t_8) {
- /* "lxml/etree.pyx":680
+ /* "lxml/etree.pyx":681
* if public_id:
* if system_url:
* return f'<!DOCTYPE {root_name} PUBLIC "{public_id}" {quoted_system_url}>' # <<<<<<<<<<<<<<
* return f'<!DOCTYPE {root_name} PUBLIC "{public_id}">'
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = PyTuple_New(7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 680, __pyx_L1_error)
+ __pyx_t_1 = PyTuple_New(7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 681, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_9 = 0;
__pyx_t_10 = 127;
__pyx_t_9 += 10;
__Pyx_GIVEREF(__pyx_kp_u_DOCTYPE);
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_DOCTYPE);
- __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_v_root_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 680, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_v_root_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 681, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_10 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_10) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_10;
__pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
__pyx_t_9 += 9;
__Pyx_GIVEREF(__pyx_kp_u_PUBLIC);
PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u_PUBLIC);
- __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_v_public_id, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 680, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_v_public_id, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 681, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_10 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_10) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_10;
__pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
__pyx_t_9 += 2;
__Pyx_GIVEREF(__pyx_kp_u__25);
PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u__25);
- if (unlikely(!__pyx_v_quoted_system_url)) { __Pyx_RaiseUnboundLocalError("quoted_system_url"); __PYX_ERR(0, 680, __pyx_L1_error) }
+ if (unlikely(!__pyx_v_quoted_system_url)) { __Pyx_RaiseUnboundLocalError("quoted_system_url"); __PYX_ERR(0, 681, __pyx_L1_error) }
__Pyx_INCREF(__pyx_v_quoted_system_url);
__pyx_t_10 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_v_quoted_system_url) > __pyx_t_10) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_v_quoted_system_url) : __pyx_t_10;
__pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_v_quoted_system_url);
__pyx_t_9 += 1;
__Pyx_GIVEREF(__pyx_kp_u__26);
PyTuple_SET_ITEM(__pyx_t_1, 6, __pyx_kp_u__26);
- __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_1, 7, __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 680, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_1, 7, __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 681, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_r = __pyx_t_4;
__pyx_t_4 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":679
+ /* "lxml/etree.pyx":680
* quoted_system_url = f'"{system_url}"'
* if public_id:
* if system_url: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":682
+ /* "lxml/etree.pyx":683
* return f'<!DOCTYPE {root_name} PUBLIC "{public_id}" {quoted_system_url}>'
* else:
* return f'<!DOCTYPE {root_name} PUBLIC "{public_id}">' # <<<<<<<<<<<<<<
*/
/*else*/ {
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = PyTuple_New(5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 682, __pyx_L1_error)
+ __pyx_t_4 = PyTuple_New(5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 683, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_9 = 0;
__pyx_t_10 = 127;
__pyx_t_9 += 10;
__Pyx_GIVEREF(__pyx_kp_u_DOCTYPE);
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_DOCTYPE);
- __pyx_t_1 = __Pyx_PyObject_FormatSimple(__pyx_v_root_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 682, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_FormatSimple(__pyx_v_root_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 683, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_10 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) > __pyx_t_10) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) : __pyx_t_10;
__pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1);
__pyx_t_9 += 9;
__Pyx_GIVEREF(__pyx_kp_u_PUBLIC);
PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_kp_u_PUBLIC);
- __pyx_t_1 = __Pyx_PyObject_FormatSimple(__pyx_v_public_id, __pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 682, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_FormatSimple(__pyx_v_public_id, __pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 683, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_10 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) > __pyx_t_10) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) : __pyx_t_10;
__pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1);
__pyx_t_9 += 2;
__Pyx_GIVEREF(__pyx_kp_u__27);
PyTuple_SET_ITEM(__pyx_t_4, 4, __pyx_kp_u__27);
- __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_4, 5, __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 682, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_4, 5, __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 683, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_r = __pyx_t_1;
goto __pyx_L0;
}
- /* "lxml/etree.pyx":678
+ /* "lxml/etree.pyx":679
* else:
* quoted_system_url = f'"{system_url}"'
* if public_id: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":683
+ /* "lxml/etree.pyx":684
* else:
* return f'<!DOCTYPE {root_name} PUBLIC "{public_id}">'
* elif system_url: # <<<<<<<<<<<<<<
* return f'<!DOCTYPE {root_name} SYSTEM {quoted_system_url}>'
* elif self._doc.hasdoctype():
*/
- __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_v_system_url); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 683, __pyx_L1_error)
+ __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_v_system_url); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 684, __pyx_L1_error)
if (__pyx_t_8) {
- /* "lxml/etree.pyx":684
+ /* "lxml/etree.pyx":685
* return f'<!DOCTYPE {root_name} PUBLIC "{public_id}">'
* elif system_url:
* return f'<!DOCTYPE {root_name} SYSTEM {quoted_system_url}>' # <<<<<<<<<<<<<<
* return f'<!DOCTYPE {root_name}>'
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = PyTuple_New(5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 684, __pyx_L1_error)
+ __pyx_t_1 = PyTuple_New(5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 685, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_9 = 0;
__pyx_t_10 = 127;
__pyx_t_9 += 10;
__Pyx_GIVEREF(__pyx_kp_u_DOCTYPE);
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_DOCTYPE);
- __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_v_root_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 684, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_v_root_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 685, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_10 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_10) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_10;
__pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
__pyx_t_9 += 8;
__Pyx_GIVEREF(__pyx_kp_u_SYSTEM);
PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u_SYSTEM);
- if (unlikely(!__pyx_v_quoted_system_url)) { __Pyx_RaiseUnboundLocalError("quoted_system_url"); __PYX_ERR(0, 684, __pyx_L1_error) }
+ if (unlikely(!__pyx_v_quoted_system_url)) { __Pyx_RaiseUnboundLocalError("quoted_system_url"); __PYX_ERR(0, 685, __pyx_L1_error) }
__Pyx_INCREF(__pyx_v_quoted_system_url);
__pyx_t_10 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_v_quoted_system_url) > __pyx_t_10) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_v_quoted_system_url) : __pyx_t_10;
__pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_v_quoted_system_url);
__pyx_t_9 += 1;
__Pyx_GIVEREF(__pyx_kp_u__26);
PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u__26);
- __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_1, 5, __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 684, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_1, 5, __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 685, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_r = __pyx_t_4;
__pyx_t_4 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":683
+ /* "lxml/etree.pyx":684
* else:
* return f'<!DOCTYPE {root_name} PUBLIC "{public_id}">'
* elif system_url: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":685
+ /* "lxml/etree.pyx":686
* elif system_url:
* return f'<!DOCTYPE {root_name} SYSTEM {quoted_system_url}>'
* elif self._doc.hasdoctype(): # <<<<<<<<<<<<<<
__pyx_t_8 = (__pyx_f_4lxml_5etree_9_Document_hasdoctype(__pyx_v_self->_doc) != 0);
if (__pyx_t_8) {
- /* "lxml/etree.pyx":686
+ /* "lxml/etree.pyx":687
* return f'<!DOCTYPE {root_name} SYSTEM {quoted_system_url}>'
* elif self._doc.hasdoctype():
* return f'<!DOCTYPE {root_name}>' # <<<<<<<<<<<<<<
* return u''
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 686, __pyx_L1_error)
+ __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 687, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_9 = 0;
__pyx_t_10 = 127;
__pyx_t_9 += 10;
__Pyx_GIVEREF(__pyx_kp_u_DOCTYPE);
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_DOCTYPE);
- __pyx_t_1 = __Pyx_PyObject_FormatSimple(__pyx_v_root_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 686, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_FormatSimple(__pyx_v_root_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 687, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_10 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) > __pyx_t_10) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) : __pyx_t_10;
__pyx_t_9 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1);
__pyx_t_9 += 1;
__Pyx_GIVEREF(__pyx_kp_u__26);
PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_kp_u__26);
- __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_4, 3, __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 686, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_4, 3, __pyx_t_9, __pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 687, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":685
+ /* "lxml/etree.pyx":686
* elif system_url:
* return f'<!DOCTYPE {root_name} SYSTEM {quoted_system_url}>'
* elif self._doc.hasdoctype(): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":688
+ /* "lxml/etree.pyx":689
* return f'<!DOCTYPE {root_name}>'
* else:
* return u'' # <<<<<<<<<<<<<<
goto __pyx_L0;
}
- /* "lxml/etree.pyx":666
+ /* "lxml/etree.pyx":667
*
* @property
* def doctype(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":691
+/* "lxml/etree.pyx":692
*
* @property
* def internalDTD(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":693
+ /* "lxml/etree.pyx":694
* def internalDTD(self):
* """Returns a DTD validator based on the internal subset of the document."""
* return _dtdFactory(self._doc._c_doc.intSubset) # <<<<<<<<<<<<<<
* @property
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__dtdFactory(__pyx_v_self->_doc->_c_doc->intSubset)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 693, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__dtdFactory(__pyx_v_self->_doc->_c_doc->intSubset)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 694, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":691
+ /* "lxml/etree.pyx":692
*
* @property
* def internalDTD(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":696
+/* "lxml/etree.pyx":697
*
* @property
* def externalDTD(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":698
+ /* "lxml/etree.pyx":699
* def externalDTD(self):
* """Returns a DTD validator based on the external subset of the document."""
* return _dtdFactory(self._doc._c_doc.extSubset) # <<<<<<<<<<<<<<
*
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__dtdFactory(__pyx_v_self->_doc->_c_doc->extSubset)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 698, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__dtdFactory(__pyx_v_self->_doc->_c_doc->extSubset)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 699, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":696
+ /* "lxml/etree.pyx":697
*
* @property
* def externalDTD(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":714
+/* "lxml/etree.pyx":715
* cdef object _tag
*
* def _init(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":723
+/* "lxml/etree.pyx":724
* @cython.linetrace(False)
* @cython.profile(False)
* def __dealloc__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__dealloc__", 0);
- /* "lxml/etree.pyx":726
+ /* "lxml/etree.pyx":727
* #print "trying to free node:", <int>self._c_node
* #displayNode(self._c_node, 0)
* if self._c_node is not NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_self->_c_node != NULL) != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":727
+ /* "lxml/etree.pyx":728
* #displayNode(self._c_node, 0)
* if self._c_node is not NULL:
* _unregisterProxy(self) # <<<<<<<<<<<<<<
* attemptDeallocation(self._c_node)
*
*/
- __pyx_t_2 = __pyx_f_4lxml_5etree__unregisterProxy(__pyx_v_self); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 727, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__unregisterProxy(__pyx_v_self); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 728, __pyx_L1_error)
- /* "lxml/etree.pyx":728
+ /* "lxml/etree.pyx":729
* if self._c_node is not NULL:
* _unregisterProxy(self)
* attemptDeallocation(self._c_node) # <<<<<<<<<<<<<<
*/
(void)(__pyx_f_4lxml_5etree_attemptDeallocation(__pyx_v_self->_c_node));
- /* "lxml/etree.pyx":726
+ /* "lxml/etree.pyx":727
* #print "trying to free node:", <int>self._c_node
* #displayNode(self._c_node, 0)
* if self._c_node is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":723
+ /* "lxml/etree.pyx":724
* @cython.linetrace(False)
* @cython.profile(False)
* def __dealloc__(self): # <<<<<<<<<<<<<<
__Pyx_RefNannyFinishContext();
}
-/* "lxml/etree.pyx":732
+/* "lxml/etree.pyx":733
* # MANIPULATORS
*
* def __setitem__(self, x, value): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__setitem__", 0);
- /* "lxml/etree.pyx":737
+ /* "lxml/etree.pyx":738
* Replaces the given subelement index or slice.
* """
* cdef xmlNode* c_node = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_c_node = NULL;
- /* "lxml/etree.pyx":742
+ /* "lxml/etree.pyx":743
* cdef _Element element
* cdef bint left_to_right
* cdef Py_ssize_t slicelength = 0, step = 0 # <<<<<<<<<<<<<<
__pyx_v_slicelength = 0;
__pyx_v_step = 0;
- /* "lxml/etree.pyx":743
+ /* "lxml/etree.pyx":744
* cdef bint left_to_right
* cdef Py_ssize_t slicelength = 0, step = 0
* _assertValidNode(self) # <<<<<<<<<<<<<<
* if value is None:
* raise ValueError, u"cannot assign None"
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 743, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 744, __pyx_L1_error)
- /* "lxml/etree.pyx":744
+ /* "lxml/etree.pyx":745
* cdef Py_ssize_t slicelength = 0, step = 0
* _assertValidNode(self)
* if value is None: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_2 != 0);
if (unlikely(__pyx_t_3)) {
- /* "lxml/etree.pyx":745
+ /* "lxml/etree.pyx":746
* _assertValidNode(self)
* if value is None:
* raise ValueError, u"cannot assign None" # <<<<<<<<<<<<<<
* # slice assignment
*/
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_cannot_assign_None, 0, 0);
- __PYX_ERR(0, 745, __pyx_L1_error)
+ __PYX_ERR(0, 746, __pyx_L1_error)
- /* "lxml/etree.pyx":744
+ /* "lxml/etree.pyx":745
* cdef Py_ssize_t slicelength = 0, step = 0
* _assertValidNode(self)
* if value is None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":746
+ /* "lxml/etree.pyx":747
* if value is None:
* raise ValueError, u"cannot assign None"
* if isinstance(x, slice): # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_3 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":748
+ /* "lxml/etree.pyx":749
* if isinstance(x, slice):
* # slice assignment
* _findChildSlice(<slice>x, self._c_node, &c_node, &step, &slicelength) # <<<<<<<<<<<<<<
* if step > 0:
* left_to_right = 1
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__findChildSlice(((PyObject*)__pyx_v_x), __pyx_v_self->_c_node, (&__pyx_v_c_node), (&__pyx_v_step), (&__pyx_v_slicelength)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 748, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__findChildSlice(((PyObject*)__pyx_v_x), __pyx_v_self->_c_node, (&__pyx_v_c_node), (&__pyx_v_step), (&__pyx_v_slicelength)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 749, __pyx_L1_error)
- /* "lxml/etree.pyx":749
+ /* "lxml/etree.pyx":750
* # slice assignment
* _findChildSlice(<slice>x, self._c_node, &c_node, &step, &slicelength)
* if step > 0: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_step > 0) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":750
+ /* "lxml/etree.pyx":751
* _findChildSlice(<slice>x, self._c_node, &c_node, &step, &slicelength)
* if step > 0:
* left_to_right = 1 # <<<<<<<<<<<<<<
*/
__pyx_v_left_to_right = 1;
- /* "lxml/etree.pyx":749
+ /* "lxml/etree.pyx":750
* # slice assignment
* _findChildSlice(<slice>x, self._c_node, &c_node, &step, &slicelength)
* if step > 0: # <<<<<<<<<<<<<<
goto __pyx_L5;
}
- /* "lxml/etree.pyx":752
+ /* "lxml/etree.pyx":753
* left_to_right = 1
* else:
* left_to_right = 0 # <<<<<<<<<<<<<<
/*else*/ {
__pyx_v_left_to_right = 0;
- /* "lxml/etree.pyx":753
+ /* "lxml/etree.pyx":754
* else:
* left_to_right = 0
* step = -step # <<<<<<<<<<<<<<
}
__pyx_L5:;
- /* "lxml/etree.pyx":754
+ /* "lxml/etree.pyx":755
* left_to_right = 0
* step = -step
* _replaceSlice(self, c_node, slicelength, step, left_to_right, value) # <<<<<<<<<<<<<<
* return
* else:
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__replaceSlice(__pyx_v_self, __pyx_v_c_node, __pyx_v_slicelength, __pyx_v_step, __pyx_v_left_to_right, __pyx_v_value); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 754, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__replaceSlice(__pyx_v_self, __pyx_v_c_node, __pyx_v_slicelength, __pyx_v_step, __pyx_v_left_to_right, __pyx_v_value); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 755, __pyx_L1_error)
- /* "lxml/etree.pyx":755
+ /* "lxml/etree.pyx":756
* step = -step
* _replaceSlice(self, c_node, slicelength, step, left_to_right, value)
* return # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":746
+ /* "lxml/etree.pyx":747
* if value is None:
* raise ValueError, u"cannot assign None"
* if isinstance(x, slice): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":758
+ /* "lxml/etree.pyx":759
* else:
* # otherwise: normal item assignment
* element = value # <<<<<<<<<<<<<<
* c_node = _findChild(self._c_node, x)
*/
/*else*/ {
- if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_4lxml_5etree__Element))))) __PYX_ERR(0, 758, __pyx_L1_error)
+ if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_4lxml_5etree__Element))))) __PYX_ERR(0, 759, __pyx_L1_error)
__pyx_t_4 = __pyx_v_value;
__Pyx_INCREF(__pyx_t_4);
__pyx_v_element = ((struct LxmlElement *)__pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":759
+ /* "lxml/etree.pyx":760
* # otherwise: normal item assignment
* element = value
* _assertValidNode(element) # <<<<<<<<<<<<<<
* c_node = _findChild(self._c_node, x)
* if c_node is NULL:
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 759, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 760, __pyx_L1_error)
- /* "lxml/etree.pyx":760
+ /* "lxml/etree.pyx":761
* element = value
* _assertValidNode(element)
* c_node = _findChild(self._c_node, x) # <<<<<<<<<<<<<<
* if c_node is NULL:
* raise IndexError, u"list index out of range"
*/
- __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_v_x); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 760, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_v_x); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 761, __pyx_L1_error)
__pyx_v_c_node = __pyx_f_4lxml_5etree__findChild(__pyx_v_self->_c_node, __pyx_t_5);
- /* "lxml/etree.pyx":761
+ /* "lxml/etree.pyx":762
* _assertValidNode(element)
* c_node = _findChild(self._c_node, x)
* if c_node is NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_node == NULL) != 0);
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":762
+ /* "lxml/etree.pyx":763
* c_node = _findChild(self._c_node, x)
* if c_node is NULL:
* raise IndexError, u"list index out of range" # <<<<<<<<<<<<<<
* c_next = element._c_node.next
*/
__Pyx_Raise(__pyx_builtin_IndexError, __pyx_kp_u_list_index_out_of_range, 0, 0);
- __PYX_ERR(0, 762, __pyx_L1_error)
+ __PYX_ERR(0, 763, __pyx_L1_error)
- /* "lxml/etree.pyx":761
+ /* "lxml/etree.pyx":762
* _assertValidNode(element)
* c_node = _findChild(self._c_node, x)
* if c_node is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":763
+ /* "lxml/etree.pyx":764
* if c_node is NULL:
* raise IndexError, u"list index out of range"
* c_source_doc = element._c_node.doc # <<<<<<<<<<<<<<
__pyx_t_6 = __pyx_v_element->_c_node->doc;
__pyx_v_c_source_doc = __pyx_t_6;
- /* "lxml/etree.pyx":764
+ /* "lxml/etree.pyx":765
* raise IndexError, u"list index out of range"
* c_source_doc = element._c_node.doc
* c_next = element._c_node.next # <<<<<<<<<<<<<<
__pyx_t_7 = __pyx_v_element->_c_node->next;
__pyx_v_c_next = __pyx_t_7;
- /* "lxml/etree.pyx":765
+ /* "lxml/etree.pyx":766
* c_source_doc = element._c_node.doc
* c_next = element._c_node.next
* _removeText(c_node.next) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree__removeText(__pyx_v_c_node->next);
- /* "lxml/etree.pyx":766
+ /* "lxml/etree.pyx":767
* c_next = element._c_node.next
* _removeText(c_node.next)
* tree.xmlReplaceNode(c_node, element._c_node) # <<<<<<<<<<<<<<
*/
(void)(xmlReplaceNode(__pyx_v_c_node, __pyx_v_element->_c_node));
- /* "lxml/etree.pyx":767
+ /* "lxml/etree.pyx":768
* _removeText(c_node.next)
* tree.xmlReplaceNode(c_node, element._c_node)
* _moveTail(c_next, element._c_node) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree__moveTail(__pyx_v_c_next, __pyx_v_element->_c_node);
- /* "lxml/etree.pyx":768
+ /* "lxml/etree.pyx":769
* tree.xmlReplaceNode(c_node, element._c_node)
* _moveTail(c_next, element._c_node)
* moveNodeToDocument(self._doc, c_source_doc, element._c_node) # <<<<<<<<<<<<<<
*/
__pyx_t_4 = ((PyObject *)__pyx_v_self->_doc);
__Pyx_INCREF(__pyx_t_4);
- __pyx_t_1 = __pyx_f_4lxml_5etree_moveNodeToDocument(((struct LxmlDocument *)__pyx_t_4), __pyx_v_c_source_doc, __pyx_v_element->_c_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 768, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_moveNodeToDocument(((struct LxmlDocument *)__pyx_t_4), __pyx_v_c_source_doc, __pyx_v_element->_c_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 769, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "lxml/etree.pyx":769
+ /* "lxml/etree.pyx":770
* _moveTail(c_next, element._c_node)
* moveNodeToDocument(self._doc, c_source_doc, element._c_node)
* if not attemptDeallocation(c_node): # <<<<<<<<<<<<<<
__pyx_t_2 = ((!(__pyx_f_4lxml_5etree_attemptDeallocation(__pyx_v_c_node) != 0)) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":770
+ /* "lxml/etree.pyx":771
* moveNodeToDocument(self._doc, c_source_doc, element._c_node)
* if not attemptDeallocation(c_node):
* moveNodeToDocument(self._doc, c_node.doc, c_node) # <<<<<<<<<<<<<<
*/
__pyx_t_4 = ((PyObject *)__pyx_v_self->_doc);
__Pyx_INCREF(__pyx_t_4);
- __pyx_t_1 = __pyx_f_4lxml_5etree_moveNodeToDocument(((struct LxmlDocument *)__pyx_t_4), __pyx_v_c_node->doc, __pyx_v_c_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 770, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_moveNodeToDocument(((struct LxmlDocument *)__pyx_t_4), __pyx_v_c_node->doc, __pyx_v_c_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 771, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "lxml/etree.pyx":769
+ /* "lxml/etree.pyx":770
* _moveTail(c_next, element._c_node)
* moveNodeToDocument(self._doc, c_source_doc, element._c_node)
* if not attemptDeallocation(c_node): # <<<<<<<<<<<<<<
}
}
- /* "lxml/etree.pyx":732
+ /* "lxml/etree.pyx":733
* # MANIPULATORS
*
* def __setitem__(self, x, value): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":772
+/* "lxml/etree.pyx":773
* moveNodeToDocument(self._doc, c_node.doc, c_node)
*
* def __delitem__(self, x): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__delitem__", 0);
- /* "lxml/etree.pyx":777
+ /* "lxml/etree.pyx":778
* Deletes the given subelement or a slice.
* """
* cdef xmlNode* c_node = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_c_node = NULL;
- /* "lxml/etree.pyx":779
+ /* "lxml/etree.pyx":780
* cdef xmlNode* c_node = NULL
* cdef xmlNode* c_next
* cdef Py_ssize_t step = 0, slicelength = 0 # <<<<<<<<<<<<<<
__pyx_v_step = 0;
__pyx_v_slicelength = 0;
- /* "lxml/etree.pyx":780
+ /* "lxml/etree.pyx":781
* cdef xmlNode* c_next
* cdef Py_ssize_t step = 0, slicelength = 0
* _assertValidNode(self) # <<<<<<<<<<<<<<
* if isinstance(x, slice):
* # slice deletion
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 780, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 781, __pyx_L1_error)
- /* "lxml/etree.pyx":781
+ /* "lxml/etree.pyx":782
* cdef Py_ssize_t step = 0, slicelength = 0
* _assertValidNode(self)
* if isinstance(x, slice): # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_2 != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":783
+ /* "lxml/etree.pyx":784
* if isinstance(x, slice):
* # slice deletion
* if _isFullSlice(<slice>x): # <<<<<<<<<<<<<<
* c_node = self._c_node.children
* if c_node is not NULL:
*/
- __pyx_t_3 = __pyx_f_4lxml_5etree__isFullSlice(((PyObject*)__pyx_v_x)); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 783, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree__isFullSlice(((PyObject*)__pyx_v_x)); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 784, __pyx_L1_error)
__pyx_t_2 = (__pyx_t_3 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":784
+ /* "lxml/etree.pyx":785
* # slice deletion
* if _isFullSlice(<slice>x):
* c_node = self._c_node.children # <<<<<<<<<<<<<<
__pyx_t_4 = __pyx_v_self->_c_node->children;
__pyx_v_c_node = __pyx_t_4;
- /* "lxml/etree.pyx":785
+ /* "lxml/etree.pyx":786
* if _isFullSlice(<slice>x):
* c_node = self._c_node.children
* if c_node is not NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_node != NULL) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":786
+ /* "lxml/etree.pyx":787
* c_node = self._c_node.children
* if c_node is not NULL:
* if not _isElement(c_node): # <<<<<<<<<<<<<<
__pyx_t_2 = ((!(_isElement(__pyx_v_c_node) != 0)) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":787
+ /* "lxml/etree.pyx":788
* if c_node is not NULL:
* if not _isElement(c_node):
* c_node = _nextElement(c_node) # <<<<<<<<<<<<<<
*/
__pyx_v_c_node = __pyx_f_4lxml_5etree__nextElement(__pyx_v_c_node);
- /* "lxml/etree.pyx":786
+ /* "lxml/etree.pyx":787
* c_node = self._c_node.children
* if c_node is not NULL:
* if not _isElement(c_node): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":788
+ /* "lxml/etree.pyx":789
* if not _isElement(c_node):
* c_node = _nextElement(c_node)
* while c_node is not NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_node != NULL) != 0);
if (!__pyx_t_2) break;
- /* "lxml/etree.pyx":789
+ /* "lxml/etree.pyx":790
* c_node = _nextElement(c_node)
* while c_node is not NULL:
* c_next = _nextElement(c_node) # <<<<<<<<<<<<<<
*/
__pyx_v_c_next = __pyx_f_4lxml_5etree__nextElement(__pyx_v_c_node);
- /* "lxml/etree.pyx":790
+ /* "lxml/etree.pyx":791
* while c_node is not NULL:
* c_next = _nextElement(c_node)
* _removeNode(self._doc, c_node) # <<<<<<<<<<<<<<
*/
__pyx_t_5 = ((PyObject *)__pyx_v_self->_doc);
__Pyx_INCREF(__pyx_t_5);
- __pyx_t_1 = __pyx_f_4lxml_5etree__removeNode(((struct LxmlDocument *)__pyx_t_5), __pyx_v_c_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 790, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__removeNode(((struct LxmlDocument *)__pyx_t_5), __pyx_v_c_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 791, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- /* "lxml/etree.pyx":791
+ /* "lxml/etree.pyx":792
* c_next = _nextElement(c_node)
* _removeNode(self._doc, c_node)
* c_node = c_next # <<<<<<<<<<<<<<
__pyx_v_c_node = __pyx_v_c_next;
}
- /* "lxml/etree.pyx":785
+ /* "lxml/etree.pyx":786
* if _isFullSlice(<slice>x):
* c_node = self._c_node.children
* if c_node is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":783
+ /* "lxml/etree.pyx":784
* if isinstance(x, slice):
* # slice deletion
* if _isFullSlice(<slice>x): # <<<<<<<<<<<<<<
goto __pyx_L4;
}
- /* "lxml/etree.pyx":793
+ /* "lxml/etree.pyx":794
* c_node = c_next
* else:
* _findChildSlice(<slice>x, self._c_node, &c_node, &step, &slicelength) # <<<<<<<<<<<<<<
* else:
*/
/*else*/ {
- __pyx_t_1 = __pyx_f_4lxml_5etree__findChildSlice(((PyObject*)__pyx_v_x), __pyx_v_self->_c_node, (&__pyx_v_c_node), (&__pyx_v_step), (&__pyx_v_slicelength)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 793, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__findChildSlice(((PyObject*)__pyx_v_x), __pyx_v_self->_c_node, (&__pyx_v_c_node), (&__pyx_v_step), (&__pyx_v_slicelength)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 794, __pyx_L1_error)
- /* "lxml/etree.pyx":794
+ /* "lxml/etree.pyx":795
* else:
* _findChildSlice(<slice>x, self._c_node, &c_node, &step, &slicelength)
* _deleteSlice(self._doc, c_node, slicelength, step) # <<<<<<<<<<<<<<
*/
__pyx_t_5 = ((PyObject *)__pyx_v_self->_doc);
__Pyx_INCREF(__pyx_t_5);
- __pyx_t_1 = __pyx_f_4lxml_5etree__deleteSlice(((struct LxmlDocument *)__pyx_t_5), __pyx_v_c_node, __pyx_v_slicelength, __pyx_v_step); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 794, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__deleteSlice(((struct LxmlDocument *)__pyx_t_5), __pyx_v_c_node, __pyx_v_slicelength, __pyx_v_step); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 795, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
}
__pyx_L4:;
- /* "lxml/etree.pyx":781
+ /* "lxml/etree.pyx":782
* cdef Py_ssize_t step = 0, slicelength = 0
* _assertValidNode(self)
* if isinstance(x, slice): # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":797
+ /* "lxml/etree.pyx":798
* else:
* # item deletion
* c_node = _findChild(self._c_node, x) # <<<<<<<<<<<<<<
* raise IndexError, f"index out of range: {x}"
*/
/*else*/ {
- __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_v_x); if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 797, __pyx_L1_error)
+ __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_v_x); if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 798, __pyx_L1_error)
__pyx_v_c_node = __pyx_f_4lxml_5etree__findChild(__pyx_v_self->_c_node, __pyx_t_6);
- /* "lxml/etree.pyx":798
+ /* "lxml/etree.pyx":799
* # item deletion
* c_node = _findChild(self._c_node, x)
* if c_node is NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_node == NULL) != 0);
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":799
+ /* "lxml/etree.pyx":800
* c_node = _findChild(self._c_node, x)
* if c_node is NULL:
* raise IndexError, f"index out of range: {x}" # <<<<<<<<<<<<<<
* _removeNode(self._doc, c_node)
*
*/
- __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_v_x, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 799, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_v_x, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 800, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
- __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_index_out_of_range, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 799, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyUnicode_Concat(__pyx_kp_u_index_out_of_range, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 800, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_Raise(__pyx_builtin_IndexError, __pyx_t_7, 0, 0);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- __PYX_ERR(0, 799, __pyx_L1_error)
+ __PYX_ERR(0, 800, __pyx_L1_error)
- /* "lxml/etree.pyx":798
+ /* "lxml/etree.pyx":799
* # item deletion
* c_node = _findChild(self._c_node, x)
* if c_node is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":800
+ /* "lxml/etree.pyx":801
* if c_node is NULL:
* raise IndexError, f"index out of range: {x}"
* _removeNode(self._doc, c_node) # <<<<<<<<<<<<<<
*/
__pyx_t_7 = ((PyObject *)__pyx_v_self->_doc);
__Pyx_INCREF(__pyx_t_7);
- __pyx_t_1 = __pyx_f_4lxml_5etree__removeNode(((struct LxmlDocument *)__pyx_t_7), __pyx_v_c_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 800, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__removeNode(((struct LxmlDocument *)__pyx_t_7), __pyx_v_c_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 801, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
}
__pyx_L3:;
- /* "lxml/etree.pyx":772
+ /* "lxml/etree.pyx":773
* moveNodeToDocument(self._doc, c_node.doc, c_node)
*
* def __delitem__(self, x): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":802
+/* "lxml/etree.pyx":803
* _removeNode(self._doc, c_node)
*
* def __deepcopy__(self, memo): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__deepcopy__", 0);
- /* "lxml/etree.pyx":804
+ /* "lxml/etree.pyx":805
* def __deepcopy__(self, memo):
* u"__deepcopy__(self, memo)"
* return self.__copy__() # <<<<<<<<<<<<<<
* def __copy__(self):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_copy_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 804, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_copy_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 805, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
}
__pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
- if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 804, __pyx_L1_error)
+ if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 805, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":802
+ /* "lxml/etree.pyx":803
* _removeNode(self._doc, c_node)
*
* def __deepcopy__(self, memo): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":806
+/* "lxml/etree.pyx":807
* return self.__copy__()
*
* def __copy__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__copy__", 0);
- /* "lxml/etree.pyx":811
+ /* "lxml/etree.pyx":812
* cdef xmlNode* c_node
* cdef _Document new_doc
* _assertValidNode(self) # <<<<<<<<<<<<<<
* c_doc = _copyDocRoot(self._doc._c_doc, self._c_node) # recursive
* new_doc = _documentFactory(c_doc, self._doc._parser)
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 811, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 812, __pyx_L1_error)
- /* "lxml/etree.pyx":812
+ /* "lxml/etree.pyx":813
* cdef _Document new_doc
* _assertValidNode(self)
* c_doc = _copyDocRoot(self._doc._c_doc, self._c_node) # recursive # <<<<<<<<<<<<<<
* new_doc = _documentFactory(c_doc, self._doc._parser)
* root = new_doc.getroot()
*/
- __pyx_t_2 = __pyx_f_4lxml_5etree__copyDocRoot(__pyx_v_self->_doc->_c_doc, __pyx_v_self->_c_node); if (unlikely(__pyx_t_2 == ((xmlDoc *)NULL))) __PYX_ERR(0, 812, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__copyDocRoot(__pyx_v_self->_doc->_c_doc, __pyx_v_self->_c_node); if (unlikely(__pyx_t_2 == ((xmlDoc *)NULL))) __PYX_ERR(0, 813, __pyx_L1_error)
__pyx_v_c_doc = __pyx_t_2;
- /* "lxml/etree.pyx":813
+ /* "lxml/etree.pyx":814
* _assertValidNode(self)
* c_doc = _copyDocRoot(self._doc._c_doc, self._c_node) # recursive
* new_doc = _documentFactory(c_doc, self._doc._parser) # <<<<<<<<<<<<<<
*/
__pyx_t_3 = ((PyObject *)__pyx_v_self->_doc->_parser);
__Pyx_INCREF(__pyx_t_3);
- __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree__documentFactory(__pyx_v_c_doc, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_t_3))); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 813, __pyx_L1_error)
+ __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree__documentFactory(__pyx_v_c_doc, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_t_3))); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 814, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_v_new_doc = ((struct LxmlDocument *)__pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":814
+ /* "lxml/etree.pyx":815
* c_doc = _copyDocRoot(self._doc._c_doc, self._c_node) # recursive
* new_doc = _documentFactory(c_doc, self._doc._parser)
* root = new_doc.getroot() # <<<<<<<<<<<<<<
* if root is not None:
* return root
*/
- __pyx_t_4 = __pyx_f_4lxml_5etree_9_Document_getroot(__pyx_v_new_doc); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 814, __pyx_L1_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree_9_Document_getroot(__pyx_v_new_doc); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 815, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_v_root = __pyx_t_4;
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":815
+ /* "lxml/etree.pyx":816
* new_doc = _documentFactory(c_doc, self._doc._parser)
* root = new_doc.getroot()
* if root is not None: # <<<<<<<<<<<<<<
__pyx_t_6 = (__pyx_t_5 != 0);
if (__pyx_t_6) {
- /* "lxml/etree.pyx":816
+ /* "lxml/etree.pyx":817
* root = new_doc.getroot()
* if root is not None:
* return root # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_root;
goto __pyx_L0;
- /* "lxml/etree.pyx":815
+ /* "lxml/etree.pyx":816
* new_doc = _documentFactory(c_doc, self._doc._parser)
* root = new_doc.getroot()
* if root is not None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":818
+ /* "lxml/etree.pyx":819
* return root
* # Comment/PI
* c_node = c_doc.children # <<<<<<<<<<<<<<
__pyx_t_7 = __pyx_v_c_doc->children;
__pyx_v_c_node = __pyx_t_7;
- /* "lxml/etree.pyx":819
+ /* "lxml/etree.pyx":820
* # Comment/PI
* c_node = c_doc.children
* while c_node is not NULL and c_node.type != self._c_node.type: # <<<<<<<<<<<<<<
__pyx_L6_bool_binop_done:;
if (!__pyx_t_6) break;
- /* "lxml/etree.pyx":820
+ /* "lxml/etree.pyx":821
* c_node = c_doc.children
* while c_node is not NULL and c_node.type != self._c_node.type:
* c_node = c_node.next # <<<<<<<<<<<<<<
__pyx_v_c_node = __pyx_t_7;
}
- /* "lxml/etree.pyx":821
+ /* "lxml/etree.pyx":822
* while c_node is not NULL and c_node.type != self._c_node.type:
* c_node = c_node.next
* if c_node is NULL: # <<<<<<<<<<<<<<
__pyx_t_6 = ((__pyx_v_c_node == NULL) != 0);
if (__pyx_t_6) {
- /* "lxml/etree.pyx":822
+ /* "lxml/etree.pyx":823
* c_node = c_node.next
* if c_node is NULL:
* return None # <<<<<<<<<<<<<<
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
- /* "lxml/etree.pyx":821
+ /* "lxml/etree.pyx":822
* while c_node is not NULL and c_node.type != self._c_node.type:
* c_node = c_node.next
* if c_node is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":823
+ /* "lxml/etree.pyx":824
* if c_node is NULL:
* return None
* return _elementFactory(new_doc, c_node) # <<<<<<<<<<<<<<
* def set(self, key, value):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(__pyx_v_new_doc, __pyx_v_c_node)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 823, __pyx_L1_error)
+ __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(__pyx_v_new_doc, __pyx_v_c_node)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 824, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_r = __pyx_t_4;
__pyx_t_4 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":806
+ /* "lxml/etree.pyx":807
* return self.__copy__()
*
* def __copy__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":825
+/* "lxml/etree.pyx":826
* return _elementFactory(new_doc, c_node)
*
* def set(self, key, value): # <<<<<<<<<<<<<<
case 1:
if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("set", 1, 2, 2, 1); __PYX_ERR(0, 825, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("set", 1, 2, 2, 1); __PYX_ERR(0, 826, __pyx_L3_error)
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set") < 0)) __PYX_ERR(0, 825, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set") < 0)) __PYX_ERR(0, 826, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("set", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 825, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("set", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 826, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._Element.set", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("set", 0);
- /* "lxml/etree.pyx":832
+ /* "lxml/etree.pyx":833
* an attribute without value (just the attribute name).
* """
* _assertValidNode(self) # <<<<<<<<<<<<<<
* _setAttributeValue(self, key, value)
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 832, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 833, __pyx_L1_error)
- /* "lxml/etree.pyx":833
+ /* "lxml/etree.pyx":834
* """
* _assertValidNode(self)
* _setAttributeValue(self, key, value) # <<<<<<<<<<<<<<
*
* def append(self, _Element element not None):
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__setAttributeValue(__pyx_v_self, __pyx_v_key, __pyx_v_value); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 833, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__setAttributeValue(__pyx_v_self, __pyx_v_key, __pyx_v_value); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 834, __pyx_L1_error)
- /* "lxml/etree.pyx":825
+ /* "lxml/etree.pyx":826
* return _elementFactory(new_doc, c_node)
*
* def set(self, key, value): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":835
+/* "lxml/etree.pyx":836
* _setAttributeValue(self, key, value)
*
* def append(self, _Element element not None): # <<<<<<<<<<<<<<
PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("append (wrapper)", 0);
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), __pyx_ptype_4lxml_5etree__Element, 0, "element", 0))) __PYX_ERR(0, 835, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), __pyx_ptype_4lxml_5etree__Element, 0, "element", 0))) __PYX_ERR(0, 836, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_8_Element_14append(((struct LxmlElement *)__pyx_v_self), ((struct LxmlElement *)__pyx_v_element));
/* function exit code */
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("append", 0);
- /* "lxml/etree.pyx":840
+ /* "lxml/etree.pyx":841
* Adds a subelement to the end of this element.
* """
* _assertValidNode(self) # <<<<<<<<<<<<<<
* _assertValidNode(element)
* _appendChild(self, element)
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 840, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 841, __pyx_L1_error)
- /* "lxml/etree.pyx":841
+ /* "lxml/etree.pyx":842
* """
* _assertValidNode(self)
* _assertValidNode(element) # <<<<<<<<<<<<<<
* _appendChild(self, element)
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 841, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 842, __pyx_L1_error)
- /* "lxml/etree.pyx":842
+ /* "lxml/etree.pyx":843
* _assertValidNode(self)
* _assertValidNode(element)
* _appendChild(self, element) # <<<<<<<<<<<<<<
*
* def addnext(self, _Element element not None):
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__appendChild(__pyx_v_self, __pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 842, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__appendChild(__pyx_v_self, __pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 843, __pyx_L1_error)
- /* "lxml/etree.pyx":835
+ /* "lxml/etree.pyx":836
* _setAttributeValue(self, key, value)
*
* def append(self, _Element element not None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":844
+/* "lxml/etree.pyx":845
* _appendChild(self, element)
*
* def addnext(self, _Element element not None): # <<<<<<<<<<<<<<
PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("addnext (wrapper)", 0);
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), __pyx_ptype_4lxml_5etree__Element, 0, "element", 0))) __PYX_ERR(0, 844, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), __pyx_ptype_4lxml_5etree__Element, 0, "element", 0))) __PYX_ERR(0, 845, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_8_Element_16addnext(((struct LxmlElement *)__pyx_v_self), ((struct LxmlElement *)__pyx_v_element));
/* function exit code */
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("addnext", 0);
- /* "lxml/etree.pyx":854
+ /* "lxml/etree.pyx":855
* discarded when adding at the root level.
* """
* _assertValidNode(self) # <<<<<<<<<<<<<<
* _assertValidNode(element)
* if self._c_node.parent != NULL and not _isElement(self._c_node.parent):
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 854, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 855, __pyx_L1_error)
- /* "lxml/etree.pyx":855
+ /* "lxml/etree.pyx":856
* """
* _assertValidNode(self)
* _assertValidNode(element) # <<<<<<<<<<<<<<
* if self._c_node.parent != NULL and not _isElement(self._c_node.parent):
* if element._c_node.type != tree.XML_PI_NODE:
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 855, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 856, __pyx_L1_error)
- /* "lxml/etree.pyx":856
+ /* "lxml/etree.pyx":857
* _assertValidNode(self)
* _assertValidNode(element)
* if self._c_node.parent != NULL and not _isElement(self._c_node.parent): # <<<<<<<<<<<<<<
__pyx_L4_bool_binop_done:;
if (__pyx_t_2) {
- /* "lxml/etree.pyx":857
+ /* "lxml/etree.pyx":858
* _assertValidNode(element)
* if self._c_node.parent != NULL and not _isElement(self._c_node.parent):
* if element._c_node.type != tree.XML_PI_NODE: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_element->_c_node->type != XML_PI_NODE) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":858
+ /* "lxml/etree.pyx":859
* if self._c_node.parent != NULL and not _isElement(self._c_node.parent):
* if element._c_node.type != tree.XML_PI_NODE:
* if element._c_node.type != tree.XML_COMMENT_NODE: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_element->_c_node->type != XML_COMMENT_NODE) != 0);
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":859
+ /* "lxml/etree.pyx":860
* if element._c_node.type != tree.XML_PI_NODE:
* if element._c_node.type != tree.XML_COMMENT_NODE:
* raise TypeError, u"Only processing instructions and comments can be siblings of the root element" # <<<<<<<<<<<<<<
* _appendSibling(self, element)
*/
__Pyx_Raise(__pyx_builtin_TypeError, __pyx_kp_u_Only_processing_instructions_and, 0, 0);
- __PYX_ERR(0, 859, __pyx_L1_error)
+ __PYX_ERR(0, 860, __pyx_L1_error)
- /* "lxml/etree.pyx":858
+ /* "lxml/etree.pyx":859
* if self._c_node.parent != NULL and not _isElement(self._c_node.parent):
* if element._c_node.type != tree.XML_PI_NODE:
* if element._c_node.type != tree.XML_COMMENT_NODE: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":857
+ /* "lxml/etree.pyx":858
* _assertValidNode(element)
* if self._c_node.parent != NULL and not _isElement(self._c_node.parent):
* if element._c_node.type != tree.XML_PI_NODE: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":860
+ /* "lxml/etree.pyx":861
* if element._c_node.type != tree.XML_COMMENT_NODE:
* raise TypeError, u"Only processing instructions and comments can be siblings of the root element"
* element.tail = None # <<<<<<<<<<<<<<
* _appendSibling(self, element)
*
*/
- if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_element), __pyx_n_s_tail, Py_None) < 0) __PYX_ERR(0, 860, __pyx_L1_error)
+ if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_element), __pyx_n_s_tail, Py_None) < 0) __PYX_ERR(0, 861, __pyx_L1_error)
- /* "lxml/etree.pyx":856
+ /* "lxml/etree.pyx":857
* _assertValidNode(self)
* _assertValidNode(element)
* if self._c_node.parent != NULL and not _isElement(self._c_node.parent): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":861
+ /* "lxml/etree.pyx":862
* raise TypeError, u"Only processing instructions and comments can be siblings of the root element"
* element.tail = None
* _appendSibling(self, element) # <<<<<<<<<<<<<<
*
* def addprevious(self, _Element element not None):
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__appendSibling(__pyx_v_self, __pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 861, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__appendSibling(__pyx_v_self, __pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 862, __pyx_L1_error)
- /* "lxml/etree.pyx":844
+ /* "lxml/etree.pyx":845
* _appendChild(self, element)
*
* def addnext(self, _Element element not None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":863
+/* "lxml/etree.pyx":864
* _appendSibling(self, element)
*
* def addprevious(self, _Element element not None): # <<<<<<<<<<<<<<
PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("addprevious (wrapper)", 0);
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), __pyx_ptype_4lxml_5etree__Element, 0, "element", 0))) __PYX_ERR(0, 863, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), __pyx_ptype_4lxml_5etree__Element, 0, "element", 0))) __PYX_ERR(0, 864, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_8_Element_18addprevious(((struct LxmlElement *)__pyx_v_self), ((struct LxmlElement *)__pyx_v_element));
/* function exit code */
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("addprevious", 0);
- /* "lxml/etree.pyx":873
+ /* "lxml/etree.pyx":874
* automatically discarded when adding at the root level.
* """
* _assertValidNode(self) # <<<<<<<<<<<<<<
* _assertValidNode(element)
* if self._c_node.parent != NULL and not _isElement(self._c_node.parent):
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 873, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 874, __pyx_L1_error)
- /* "lxml/etree.pyx":874
+ /* "lxml/etree.pyx":875
* """
* _assertValidNode(self)
* _assertValidNode(element) # <<<<<<<<<<<<<<
* if self._c_node.parent != NULL and not _isElement(self._c_node.parent):
* if element._c_node.type != tree.XML_PI_NODE:
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 874, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 875, __pyx_L1_error)
- /* "lxml/etree.pyx":875
+ /* "lxml/etree.pyx":876
* _assertValidNode(self)
* _assertValidNode(element)
* if self._c_node.parent != NULL and not _isElement(self._c_node.parent): # <<<<<<<<<<<<<<
__pyx_L4_bool_binop_done:;
if (__pyx_t_2) {
- /* "lxml/etree.pyx":876
+ /* "lxml/etree.pyx":877
* _assertValidNode(element)
* if self._c_node.parent != NULL and not _isElement(self._c_node.parent):
* if element._c_node.type != tree.XML_PI_NODE: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_element->_c_node->type != XML_PI_NODE) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":877
+ /* "lxml/etree.pyx":878
* if self._c_node.parent != NULL and not _isElement(self._c_node.parent):
* if element._c_node.type != tree.XML_PI_NODE:
* if element._c_node.type != tree.XML_COMMENT_NODE: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_element->_c_node->type != XML_COMMENT_NODE) != 0);
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":878
+ /* "lxml/etree.pyx":879
* if element._c_node.type != tree.XML_PI_NODE:
* if element._c_node.type != tree.XML_COMMENT_NODE:
* raise TypeError, u"Only processing instructions and comments can be siblings of the root element" # <<<<<<<<<<<<<<
* _prependSibling(self, element)
*/
__Pyx_Raise(__pyx_builtin_TypeError, __pyx_kp_u_Only_processing_instructions_and, 0, 0);
- __PYX_ERR(0, 878, __pyx_L1_error)
+ __PYX_ERR(0, 879, __pyx_L1_error)
- /* "lxml/etree.pyx":877
+ /* "lxml/etree.pyx":878
* if self._c_node.parent != NULL and not _isElement(self._c_node.parent):
* if element._c_node.type != tree.XML_PI_NODE:
* if element._c_node.type != tree.XML_COMMENT_NODE: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":876
+ /* "lxml/etree.pyx":877
* _assertValidNode(element)
* if self._c_node.parent != NULL and not _isElement(self._c_node.parent):
* if element._c_node.type != tree.XML_PI_NODE: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":879
+ /* "lxml/etree.pyx":880
* if element._c_node.type != tree.XML_COMMENT_NODE:
* raise TypeError, u"Only processing instructions and comments can be siblings of the root element"
* element.tail = None # <<<<<<<<<<<<<<
* _prependSibling(self, element)
*
*/
- if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_element), __pyx_n_s_tail, Py_None) < 0) __PYX_ERR(0, 879, __pyx_L1_error)
+ if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_element), __pyx_n_s_tail, Py_None) < 0) __PYX_ERR(0, 880, __pyx_L1_error)
- /* "lxml/etree.pyx":875
+ /* "lxml/etree.pyx":876
* _assertValidNode(self)
* _assertValidNode(element)
* if self._c_node.parent != NULL and not _isElement(self._c_node.parent): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":880
+ /* "lxml/etree.pyx":881
* raise TypeError, u"Only processing instructions and comments can be siblings of the root element"
* element.tail = None
* _prependSibling(self, element) # <<<<<<<<<<<<<<
*
* def extend(self, elements):
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__prependSibling(__pyx_v_self, __pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 880, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__prependSibling(__pyx_v_self, __pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 881, __pyx_L1_error)
- /* "lxml/etree.pyx":863
+ /* "lxml/etree.pyx":864
* _appendSibling(self, element)
*
* def addprevious(self, _Element element not None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":882
+/* "lxml/etree.pyx":883
* _prependSibling(self, element)
*
* def extend(self, elements): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("extend", 0);
- /* "lxml/etree.pyx":888
+ /* "lxml/etree.pyx":889
* """
* cdef _Element element
* _assertValidNode(self) # <<<<<<<<<<<<<<
* for element in elements:
* if element is None:
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 888, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 889, __pyx_L1_error)
- /* "lxml/etree.pyx":889
+ /* "lxml/etree.pyx":890
* cdef _Element element
* _assertValidNode(self)
* for element in elements: # <<<<<<<<<<<<<<
__pyx_t_2 = __pyx_v_elements; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = 0;
__pyx_t_4 = NULL;
} else {
- __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_elements); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 889, __pyx_L1_error)
+ __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_elements); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 890, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_4 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 889, __pyx_L1_error)
+ __pyx_t_4 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 890, __pyx_L1_error)
}
for (;;) {
if (likely(!__pyx_t_4)) {
if (likely(PyList_CheckExact(__pyx_t_2))) {
if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_2)) break;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
- __pyx_t_5 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_5); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 889, __pyx_L1_error)
+ __pyx_t_5 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_5); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 890, __pyx_L1_error)
#else
- __pyx_t_5 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 889, __pyx_L1_error)
+ __pyx_t_5 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 890, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
#endif
} else {
if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
- __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_5); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 889, __pyx_L1_error)
+ __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_5); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(0, 890, __pyx_L1_error)
#else
- __pyx_t_5 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 889, __pyx_L1_error)
+ __pyx_t_5 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 890, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
#endif
}
PyObject* exc_type = PyErr_Occurred();
if (exc_type) {
if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
- else __PYX_ERR(0, 889, __pyx_L1_error)
+ else __PYX_ERR(0, 890, __pyx_L1_error)
}
break;
}
__Pyx_GOTREF(__pyx_t_5);
}
- if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_4lxml_5etree__Element))))) __PYX_ERR(0, 889, __pyx_L1_error)
+ if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_4lxml_5etree__Element))))) __PYX_ERR(0, 890, __pyx_L1_error)
__Pyx_XDECREF_SET(__pyx_v_element, ((struct LxmlElement *)__pyx_t_5));
__pyx_t_5 = 0;
- /* "lxml/etree.pyx":890
+ /* "lxml/etree.pyx":891
* _assertValidNode(self)
* for element in elements:
* if element is None: # <<<<<<<<<<<<<<
__pyx_t_7 = (__pyx_t_6 != 0);
if (unlikely(__pyx_t_7)) {
- /* "lxml/etree.pyx":891
+ /* "lxml/etree.pyx":892
* for element in elements:
* if element is None:
* raise TypeError, u"Node must not be None" # <<<<<<<<<<<<<<
* _appendChild(self, element)
*/
__Pyx_Raise(__pyx_builtin_TypeError, __pyx_kp_u_Node_must_not_be_None, 0, 0);
- __PYX_ERR(0, 891, __pyx_L1_error)
+ __PYX_ERR(0, 892, __pyx_L1_error)
- /* "lxml/etree.pyx":890
+ /* "lxml/etree.pyx":891
* _assertValidNode(self)
* for element in elements:
* if element is None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":892
+ /* "lxml/etree.pyx":893
* if element is None:
* raise TypeError, u"Node must not be None"
* _assertValidNode(element) # <<<<<<<<<<<<<<
* _appendChild(self, element)
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 892, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 893, __pyx_L1_error)
- /* "lxml/etree.pyx":893
+ /* "lxml/etree.pyx":894
* raise TypeError, u"Node must not be None"
* _assertValidNode(element)
* _appendChild(self, element) # <<<<<<<<<<<<<<
*
* def clear(self, bint keep_tail=False):
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__appendChild(__pyx_v_self, __pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 893, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__appendChild(__pyx_v_self, __pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 894, __pyx_L1_error)
- /* "lxml/etree.pyx":889
+ /* "lxml/etree.pyx":890
* cdef _Element element
* _assertValidNode(self)
* for element in elements: # <<<<<<<<<<<<<<
}
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":882
+ /* "lxml/etree.pyx":883
* _prependSibling(self, element)
*
* def extend(self, elements): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":895
+/* "lxml/etree.pyx":896
* _appendChild(self, element)
*
* def clear(self, bint keep_tail=False): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "clear") < 0)) __PYX_ERR(0, 895, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "clear") < 0)) __PYX_ERR(0, 896, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
}
if (values[0]) {
- __pyx_v_keep_tail = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_keep_tail == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 895, __pyx_L3_error)
+ __pyx_v_keep_tail = __Pyx_PyObject_IsTrue(values[0]); if (unlikely((__pyx_v_keep_tail == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 896, __pyx_L3_error)
} else {
__pyx_v_keep_tail = ((int)0);
}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("clear", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 895, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("clear", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 896, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._Element.clear", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("clear", 0);
- /* "lxml/etree.pyx":907
+ /* "lxml/etree.pyx":908
* cdef xmlNode* c_node
* cdef xmlNode* c_node_next
* _assertValidNode(self) # <<<<<<<<<<<<<<
* c_node = self._c_node
* # remove self.text and self.tail
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 907, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 908, __pyx_L1_error)
- /* "lxml/etree.pyx":908
+ /* "lxml/etree.pyx":909
* cdef xmlNode* c_node_next
* _assertValidNode(self)
* c_node = self._c_node # <<<<<<<<<<<<<<
__pyx_t_2 = __pyx_v_self->_c_node;
__pyx_v_c_node = __pyx_t_2;
- /* "lxml/etree.pyx":910
+ /* "lxml/etree.pyx":911
* c_node = self._c_node
* # remove self.text and self.tail
* _removeText(c_node.children) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree__removeText(__pyx_v_c_node->children);
- /* "lxml/etree.pyx":911
+ /* "lxml/etree.pyx":912
* # remove self.text and self.tail
* _removeText(c_node.children)
* if not keep_tail: # <<<<<<<<<<<<<<
__pyx_t_3 = ((!(__pyx_v_keep_tail != 0)) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":912
+ /* "lxml/etree.pyx":913
* _removeText(c_node.children)
* if not keep_tail:
* _removeText(c_node.next) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree__removeText(__pyx_v_c_node->next);
- /* "lxml/etree.pyx":911
+ /* "lxml/etree.pyx":912
* # remove self.text and self.tail
* _removeText(c_node.children)
* if not keep_tail: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":914
+ /* "lxml/etree.pyx":915
* _removeText(c_node.next)
* # remove all attributes
* c_attr = c_node.properties # <<<<<<<<<<<<<<
__pyx_t_4 = __pyx_v_c_node->properties;
__pyx_v_c_attr = __pyx_t_4;
- /* "lxml/etree.pyx":915
+ /* "lxml/etree.pyx":916
* # remove all attributes
* c_attr = c_node.properties
* if c_attr: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_v_c_attr != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":916
+ /* "lxml/etree.pyx":917
* c_attr = c_node.properties
* if c_attr:
* c_node.properties = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_c_node->properties = NULL;
- /* "lxml/etree.pyx":917
+ /* "lxml/etree.pyx":918
* if c_attr:
* c_node.properties = NULL
* tree.xmlFreePropList(c_attr) # <<<<<<<<<<<<<<
*/
xmlFreePropList(__pyx_v_c_attr);
- /* "lxml/etree.pyx":915
+ /* "lxml/etree.pyx":916
* # remove all attributes
* c_attr = c_node.properties
* if c_attr: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":919
+ /* "lxml/etree.pyx":920
* tree.xmlFreePropList(c_attr)
* # remove all subelements
* c_node = c_node.children # <<<<<<<<<<<<<<
__pyx_t_2 = __pyx_v_c_node->children;
__pyx_v_c_node = __pyx_t_2;
- /* "lxml/etree.pyx":920
+ /* "lxml/etree.pyx":921
* # remove all subelements
* c_node = c_node.children
* if c_node and not _isElement(c_node): # <<<<<<<<<<<<<<
__pyx_L6_bool_binop_done:;
if (__pyx_t_3) {
- /* "lxml/etree.pyx":921
+ /* "lxml/etree.pyx":922
* c_node = c_node.children
* if c_node and not _isElement(c_node):
* c_node = _nextElement(c_node) # <<<<<<<<<<<<<<
*/
__pyx_v_c_node = __pyx_f_4lxml_5etree__nextElement(__pyx_v_c_node);
- /* "lxml/etree.pyx":920
+ /* "lxml/etree.pyx":921
* # remove all subelements
* c_node = c_node.children
* if c_node and not _isElement(c_node): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":922
+ /* "lxml/etree.pyx":923
* if c_node and not _isElement(c_node):
* c_node = _nextElement(c_node)
* while c_node is not NULL: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_node != NULL) != 0);
if (!__pyx_t_3) break;
- /* "lxml/etree.pyx":923
+ /* "lxml/etree.pyx":924
* c_node = _nextElement(c_node)
* while c_node is not NULL:
* c_node_next = _nextElement(c_node) # <<<<<<<<<<<<<<
*/
__pyx_v_c_node_next = __pyx_f_4lxml_5etree__nextElement(__pyx_v_c_node);
- /* "lxml/etree.pyx":924
+ /* "lxml/etree.pyx":925
* while c_node is not NULL:
* c_node_next = _nextElement(c_node)
* _removeNode(self._doc, c_node) # <<<<<<<<<<<<<<
*/
__pyx_t_6 = ((PyObject *)__pyx_v_self->_doc);
__Pyx_INCREF(__pyx_t_6);
- __pyx_t_1 = __pyx_f_4lxml_5etree__removeNode(((struct LxmlDocument *)__pyx_t_6), __pyx_v_c_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 924, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__removeNode(((struct LxmlDocument *)__pyx_t_6), __pyx_v_c_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 925, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
- /* "lxml/etree.pyx":925
+ /* "lxml/etree.pyx":926
* c_node_next = _nextElement(c_node)
* _removeNode(self._doc, c_node)
* c_node = c_node_next # <<<<<<<<<<<<<<
__pyx_v_c_node = __pyx_v_c_node_next;
}
- /* "lxml/etree.pyx":895
+ /* "lxml/etree.pyx":896
* _appendChild(self, element)
*
* def clear(self, bint keep_tail=False): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":927
+/* "lxml/etree.pyx":928
* c_node = c_node_next
*
* def insert(self, index: int, _Element element not None): # <<<<<<<<<<<<<<
case 1:
if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_element)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("insert", 1, 2, 2, 1); __PYX_ERR(0, 927, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("insert", 1, 2, 2, 1); __PYX_ERR(0, 928, __pyx_L3_error)
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "insert") < 0)) __PYX_ERR(0, 927, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "insert") < 0)) __PYX_ERR(0, 928, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("insert", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 927, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("insert", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 928, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._Element.insert", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return NULL;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), __pyx_ptype_4lxml_5etree__Element, 0, "element", 0))) __PYX_ERR(0, 927, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), __pyx_ptype_4lxml_5etree__Element, 0, "element", 0))) __PYX_ERR(0, 928, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_8_Element_24insert(((struct LxmlElement *)__pyx_v_self), __pyx_v_index, __pyx_v_element);
/* function exit code */
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("insert", 0);
- /* "lxml/etree.pyx":935
+ /* "lxml/etree.pyx":936
* cdef xmlNode* c_next
* cdef xmlDoc* c_source_doc
* _assertValidNode(self) # <<<<<<<<<<<<<<
* _assertValidNode(element)
* c_node = _findChild(self._c_node, index)
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 935, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 936, __pyx_L1_error)
- /* "lxml/etree.pyx":936
+ /* "lxml/etree.pyx":937
* cdef xmlDoc* c_source_doc
* _assertValidNode(self)
* _assertValidNode(element) # <<<<<<<<<<<<<<
* c_node = _findChild(self._c_node, index)
* if c_node is NULL:
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 936, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 937, __pyx_L1_error)
- /* "lxml/etree.pyx":937
+ /* "lxml/etree.pyx":938
* _assertValidNode(self)
* _assertValidNode(element)
* c_node = _findChild(self._c_node, index) # <<<<<<<<<<<<<<
* if c_node is NULL:
* _appendChild(self, element)
*/
- __pyx_t_2 = __Pyx_PyIndex_AsSsize_t(__pyx_v_index); if (unlikely((__pyx_t_2 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 937, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyIndex_AsSsize_t(__pyx_v_index); if (unlikely((__pyx_t_2 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 938, __pyx_L1_error)
__pyx_v_c_node = __pyx_f_4lxml_5etree__findChild(__pyx_v_self->_c_node, __pyx_t_2);
- /* "lxml/etree.pyx":938
+ /* "lxml/etree.pyx":939
* _assertValidNode(element)
* c_node = _findChild(self._c_node, index)
* if c_node is NULL: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_node == NULL) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":939
+ /* "lxml/etree.pyx":940
* c_node = _findChild(self._c_node, index)
* if c_node is NULL:
* _appendChild(self, element) # <<<<<<<<<<<<<<
* return
* c_source_doc = element._c_node.doc
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__appendChild(__pyx_v_self, __pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 939, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__appendChild(__pyx_v_self, __pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 940, __pyx_L1_error)
- /* "lxml/etree.pyx":940
+ /* "lxml/etree.pyx":941
* if c_node is NULL:
* _appendChild(self, element)
* return # <<<<<<<<<<<<<<
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
- /* "lxml/etree.pyx":938
+ /* "lxml/etree.pyx":939
* _assertValidNode(element)
* c_node = _findChild(self._c_node, index)
* if c_node is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":941
+ /* "lxml/etree.pyx":942
* _appendChild(self, element)
* return
* c_source_doc = element._c_node.doc # <<<<<<<<<<<<<<
__pyx_t_4 = __pyx_v_element->_c_node->doc;
__pyx_v_c_source_doc = __pyx_t_4;
- /* "lxml/etree.pyx":942
+ /* "lxml/etree.pyx":943
* return
* c_source_doc = element._c_node.doc
* c_next = element._c_node.next # <<<<<<<<<<<<<<
__pyx_t_5 = __pyx_v_element->_c_node->next;
__pyx_v_c_next = __pyx_t_5;
- /* "lxml/etree.pyx":943
+ /* "lxml/etree.pyx":944
* c_source_doc = element._c_node.doc
* c_next = element._c_node.next
* tree.xmlAddPrevSibling(c_node, element._c_node) # <<<<<<<<<<<<<<
*/
(void)(xmlAddPrevSibling(__pyx_v_c_node, __pyx_v_element->_c_node));
- /* "lxml/etree.pyx":944
+ /* "lxml/etree.pyx":945
* c_next = element._c_node.next
* tree.xmlAddPrevSibling(c_node, element._c_node)
* _moveTail(c_next, element._c_node) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree__moveTail(__pyx_v_c_next, __pyx_v_element->_c_node);
- /* "lxml/etree.pyx":945
+ /* "lxml/etree.pyx":946
* tree.xmlAddPrevSibling(c_node, element._c_node)
* _moveTail(c_next, element._c_node)
* moveNodeToDocument(self._doc, c_source_doc, element._c_node) # <<<<<<<<<<<<<<
*/
__pyx_t_6 = ((PyObject *)__pyx_v_self->_doc);
__Pyx_INCREF(__pyx_t_6);
- __pyx_t_1 = __pyx_f_4lxml_5etree_moveNodeToDocument(((struct LxmlDocument *)__pyx_t_6), __pyx_v_c_source_doc, __pyx_v_element->_c_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 945, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_moveNodeToDocument(((struct LxmlDocument *)__pyx_t_6), __pyx_v_c_source_doc, __pyx_v_element->_c_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 946, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
- /* "lxml/etree.pyx":927
+ /* "lxml/etree.pyx":928
* c_node = c_node_next
*
* def insert(self, index: int, _Element element not None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":947
+/* "lxml/etree.pyx":948
* moveNodeToDocument(self._doc, c_source_doc, element._c_node)
*
* def remove(self, _Element element not None): # <<<<<<<<<<<<<<
PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("remove (wrapper)", 0);
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), __pyx_ptype_4lxml_5etree__Element, 0, "element", 0))) __PYX_ERR(0, 947, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), __pyx_ptype_4lxml_5etree__Element, 0, "element", 0))) __PYX_ERR(0, 948, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_8_Element_26remove(((struct LxmlElement *)__pyx_v_self), ((struct LxmlElement *)__pyx_v_element));
/* function exit code */
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("remove", 0);
- /* "lxml/etree.pyx":956
+ /* "lxml/etree.pyx":957
* cdef xmlNode* c_node
* cdef xmlNode* c_next
* _assertValidNode(self) # <<<<<<<<<<<<<<
* _assertValidNode(element)
* c_node = element._c_node
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 956, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 957, __pyx_L1_error)
- /* "lxml/etree.pyx":957
+ /* "lxml/etree.pyx":958
* cdef xmlNode* c_next
* _assertValidNode(self)
* _assertValidNode(element) # <<<<<<<<<<<<<<
* c_node = element._c_node
* if c_node.parent is not self._c_node:
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 957, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 958, __pyx_L1_error)
- /* "lxml/etree.pyx":958
+ /* "lxml/etree.pyx":959
* _assertValidNode(self)
* _assertValidNode(element)
* c_node = element._c_node # <<<<<<<<<<<<<<
__pyx_t_2 = __pyx_v_element->_c_node;
__pyx_v_c_node = __pyx_t_2;
- /* "lxml/etree.pyx":959
+ /* "lxml/etree.pyx":960
* _assertValidNode(element)
* c_node = element._c_node
* if c_node.parent is not self._c_node: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_node->parent != __pyx_v_self->_c_node) != 0);
if (unlikely(__pyx_t_3)) {
- /* "lxml/etree.pyx":960
+ /* "lxml/etree.pyx":961
* c_node = element._c_node
* if c_node.parent is not self._c_node:
* raise ValueError, u"Element is not a child of this node." # <<<<<<<<<<<<<<
* tree.xmlUnlinkNode(c_node)
*/
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_Element_is_not_a_child_of_this_n, 0, 0);
- __PYX_ERR(0, 960, __pyx_L1_error)
+ __PYX_ERR(0, 961, __pyx_L1_error)
- /* "lxml/etree.pyx":959
+ /* "lxml/etree.pyx":960
* _assertValidNode(element)
* c_node = element._c_node
* if c_node.parent is not self._c_node: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":961
+ /* "lxml/etree.pyx":962
* if c_node.parent is not self._c_node:
* raise ValueError, u"Element is not a child of this node."
* c_next = element._c_node.next # <<<<<<<<<<<<<<
__pyx_t_2 = __pyx_v_element->_c_node->next;
__pyx_v_c_next = __pyx_t_2;
- /* "lxml/etree.pyx":962
+ /* "lxml/etree.pyx":963
* raise ValueError, u"Element is not a child of this node."
* c_next = element._c_node.next
* tree.xmlUnlinkNode(c_node) # <<<<<<<<<<<<<<
*/
xmlUnlinkNode(__pyx_v_c_node);
- /* "lxml/etree.pyx":963
+ /* "lxml/etree.pyx":964
* c_next = element._c_node.next
* tree.xmlUnlinkNode(c_node)
* _moveTail(c_next, c_node) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree__moveTail(__pyx_v_c_next, __pyx_v_c_node);
- /* "lxml/etree.pyx":965
+ /* "lxml/etree.pyx":966
* _moveTail(c_next, c_node)
* # fix namespace declarations
* moveNodeToDocument(self._doc, c_node.doc, c_node) # <<<<<<<<<<<<<<
*/
__pyx_t_4 = ((PyObject *)__pyx_v_self->_doc);
__Pyx_INCREF(__pyx_t_4);
- __pyx_t_1 = __pyx_f_4lxml_5etree_moveNodeToDocument(((struct LxmlDocument *)__pyx_t_4), __pyx_v_c_node->doc, __pyx_v_c_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 965, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_moveNodeToDocument(((struct LxmlDocument *)__pyx_t_4), __pyx_v_c_node->doc, __pyx_v_c_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 966, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "lxml/etree.pyx":947
+ /* "lxml/etree.pyx":948
* moveNodeToDocument(self._doc, c_source_doc, element._c_node)
*
* def remove(self, _Element element not None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":967
+/* "lxml/etree.pyx":968
* moveNodeToDocument(self._doc, c_node.doc, c_node)
*
* def replace(self, _Element old_element not None, # <<<<<<<<<<<<<<
case 1:
if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_new_element)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("replace", 1, 2, 2, 1); __PYX_ERR(0, 967, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("replace", 1, 2, 2, 1); __PYX_ERR(0, 968, __pyx_L3_error)
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "replace") < 0)) __PYX_ERR(0, 967, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "replace") < 0)) __PYX_ERR(0, 968, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("replace", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 967, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("replace", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 968, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._Element.replace", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return NULL;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_old_element), __pyx_ptype_4lxml_5etree__Element, 0, "old_element", 0))) __PYX_ERR(0, 967, __pyx_L1_error)
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_new_element), __pyx_ptype_4lxml_5etree__Element, 0, "new_element", 0))) __PYX_ERR(0, 968, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_old_element), __pyx_ptype_4lxml_5etree__Element, 0, "old_element", 0))) __PYX_ERR(0, 968, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_new_element), __pyx_ptype_4lxml_5etree__Element, 0, "new_element", 0))) __PYX_ERR(0, 969, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_8_Element_28replace(((struct LxmlElement *)__pyx_v_self), __pyx_v_old_element, __pyx_v_new_element);
/* function exit code */
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("replace", 0);
- /* "lxml/etree.pyx":978
+ /* "lxml/etree.pyx":979
* cdef xmlNode* c_new_next
* cdef xmlDoc* c_source_doc
* _assertValidNode(self) # <<<<<<<<<<<<<<
* _assertValidNode(old_element)
* _assertValidNode(new_element)
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 978, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 979, __pyx_L1_error)
- /* "lxml/etree.pyx":979
+ /* "lxml/etree.pyx":980
* cdef xmlDoc* c_source_doc
* _assertValidNode(self)
* _assertValidNode(old_element) # <<<<<<<<<<<<<<
* _assertValidNode(new_element)
* c_old_node = old_element._c_node
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_old_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 979, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_old_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 980, __pyx_L1_error)
- /* "lxml/etree.pyx":980
+ /* "lxml/etree.pyx":981
* _assertValidNode(self)
* _assertValidNode(old_element)
* _assertValidNode(new_element) # <<<<<<<<<<<<<<
* c_old_node = old_element._c_node
* if c_old_node.parent is not self._c_node:
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_new_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 980, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_new_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 981, __pyx_L1_error)
- /* "lxml/etree.pyx":981
+ /* "lxml/etree.pyx":982
* _assertValidNode(old_element)
* _assertValidNode(new_element)
* c_old_node = old_element._c_node # <<<<<<<<<<<<<<
__pyx_t_2 = __pyx_v_old_element->_c_node;
__pyx_v_c_old_node = __pyx_t_2;
- /* "lxml/etree.pyx":982
+ /* "lxml/etree.pyx":983
* _assertValidNode(new_element)
* c_old_node = old_element._c_node
* if c_old_node.parent is not self._c_node: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_old_node->parent != __pyx_v_self->_c_node) != 0);
if (unlikely(__pyx_t_3)) {
- /* "lxml/etree.pyx":983
+ /* "lxml/etree.pyx":984
* c_old_node = old_element._c_node
* if c_old_node.parent is not self._c_node:
* raise ValueError, u"Element is not a child of this node." # <<<<<<<<<<<<<<
* c_new_node = new_element._c_node
*/
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_Element_is_not_a_child_of_this_n, 0, 0);
- __PYX_ERR(0, 983, __pyx_L1_error)
+ __PYX_ERR(0, 984, __pyx_L1_error)
- /* "lxml/etree.pyx":982
+ /* "lxml/etree.pyx":983
* _assertValidNode(new_element)
* c_old_node = old_element._c_node
* if c_old_node.parent is not self._c_node: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":984
+ /* "lxml/etree.pyx":985
* if c_old_node.parent is not self._c_node:
* raise ValueError, u"Element is not a child of this node."
* c_old_next = c_old_node.next # <<<<<<<<<<<<<<
__pyx_t_2 = __pyx_v_c_old_node->next;
__pyx_v_c_old_next = __pyx_t_2;
- /* "lxml/etree.pyx":985
+ /* "lxml/etree.pyx":986
* raise ValueError, u"Element is not a child of this node."
* c_old_next = c_old_node.next
* c_new_node = new_element._c_node # <<<<<<<<<<<<<<
__pyx_t_2 = __pyx_v_new_element->_c_node;
__pyx_v_c_new_node = __pyx_t_2;
- /* "lxml/etree.pyx":986
+ /* "lxml/etree.pyx":987
* c_old_next = c_old_node.next
* c_new_node = new_element._c_node
* c_new_next = c_new_node.next # <<<<<<<<<<<<<<
__pyx_t_2 = __pyx_v_c_new_node->next;
__pyx_v_c_new_next = __pyx_t_2;
- /* "lxml/etree.pyx":987
+ /* "lxml/etree.pyx":988
* c_new_node = new_element._c_node
* c_new_next = c_new_node.next
* c_source_doc = c_new_node.doc # <<<<<<<<<<<<<<
__pyx_t_4 = __pyx_v_c_new_node->doc;
__pyx_v_c_source_doc = __pyx_t_4;
- /* "lxml/etree.pyx":988
+ /* "lxml/etree.pyx":989
* c_new_next = c_new_node.next
* c_source_doc = c_new_node.doc
* tree.xmlReplaceNode(c_old_node, c_new_node) # <<<<<<<<<<<<<<
*/
(void)(xmlReplaceNode(__pyx_v_c_old_node, __pyx_v_c_new_node));
- /* "lxml/etree.pyx":989
+ /* "lxml/etree.pyx":990
* c_source_doc = c_new_node.doc
* tree.xmlReplaceNode(c_old_node, c_new_node)
* _moveTail(c_new_next, c_new_node) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree__moveTail(__pyx_v_c_new_next, __pyx_v_c_new_node);
- /* "lxml/etree.pyx":990
+ /* "lxml/etree.pyx":991
* tree.xmlReplaceNode(c_old_node, c_new_node)
* _moveTail(c_new_next, c_new_node)
* _moveTail(c_old_next, c_old_node) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree__moveTail(__pyx_v_c_old_next, __pyx_v_c_old_node);
- /* "lxml/etree.pyx":991
+ /* "lxml/etree.pyx":992
* _moveTail(c_new_next, c_new_node)
* _moveTail(c_old_next, c_old_node)
* moveNodeToDocument(self._doc, c_source_doc, c_new_node) # <<<<<<<<<<<<<<
*/
__pyx_t_5 = ((PyObject *)__pyx_v_self->_doc);
__Pyx_INCREF(__pyx_t_5);
- __pyx_t_1 = __pyx_f_4lxml_5etree_moveNodeToDocument(((struct LxmlDocument *)__pyx_t_5), __pyx_v_c_source_doc, __pyx_v_c_new_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 991, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_moveNodeToDocument(((struct LxmlDocument *)__pyx_t_5), __pyx_v_c_source_doc, __pyx_v_c_new_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 992, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- /* "lxml/etree.pyx":993
+ /* "lxml/etree.pyx":994
* moveNodeToDocument(self._doc, c_source_doc, c_new_node)
* # fix namespace declarations
* moveNodeToDocument(self._doc, c_old_node.doc, c_old_node) # <<<<<<<<<<<<<<
*/
__pyx_t_5 = ((PyObject *)__pyx_v_self->_doc);
__Pyx_INCREF(__pyx_t_5);
- __pyx_t_1 = __pyx_f_4lxml_5etree_moveNodeToDocument(((struct LxmlDocument *)__pyx_t_5), __pyx_v_c_old_node->doc, __pyx_v_c_old_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 993, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_moveNodeToDocument(((struct LxmlDocument *)__pyx_t_5), __pyx_v_c_old_node->doc, __pyx_v_c_old_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 994, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- /* "lxml/etree.pyx":967
+ /* "lxml/etree.pyx":968
* moveNodeToDocument(self._doc, c_node.doc, c_node)
*
* def replace(self, _Element old_element not None, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":999
+/* "lxml/etree.pyx":1000
* u"""Element tag
* """
* def __get__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":1000
+ /* "lxml/etree.pyx":1001
* """
* def __get__(self):
* if self._tag is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1001
+ /* "lxml/etree.pyx":1002
* def __get__(self):
* if self._tag is not None:
* return self._tag # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_self->_tag;
goto __pyx_L0;
- /* "lxml/etree.pyx":1000
+ /* "lxml/etree.pyx":1001
* """
* def __get__(self):
* if self._tag is not None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1002
+ /* "lxml/etree.pyx":1003
* if self._tag is not None:
* return self._tag
* _assertValidNode(self) # <<<<<<<<<<<<<<
* self._tag = _namespacedName(self._c_node)
* return self._tag
*/
- __pyx_t_3 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1002, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1003, __pyx_L1_error)
- /* "lxml/etree.pyx":1003
+ /* "lxml/etree.pyx":1004
* return self._tag
* _assertValidNode(self)
* self._tag = _namespacedName(self._c_node) # <<<<<<<<<<<<<<
* return self._tag
*
*/
- __pyx_t_4 = __pyx_f_4lxml_5etree__namespacedName(__pyx_v_self->_c_node); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1003, __pyx_L1_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree__namespacedName(__pyx_v_self->_c_node); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1004, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_GIVEREF(__pyx_t_4);
__Pyx_GOTREF(__pyx_v_self->_tag);
__pyx_v_self->_tag = __pyx_t_4;
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":1004
+ /* "lxml/etree.pyx":1005
* _assertValidNode(self)
* self._tag = _namespacedName(self._c_node)
* return self._tag # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_self->_tag;
goto __pyx_L0;
- /* "lxml/etree.pyx":999
+ /* "lxml/etree.pyx":1000
* u"""Element tag
* """
* def __get__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1006
+/* "lxml/etree.pyx":1007
* return self._tag
*
* def __set__(self, value): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__set__", 0);
- /* "lxml/etree.pyx":1008
+ /* "lxml/etree.pyx":1009
* def __set__(self, value):
* cdef _BaseParser parser
* _assertValidNode(self) # <<<<<<<<<<<<<<
* ns, name = _getNsTag(value)
* parser = self._doc._parser
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1008, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1009, __pyx_L1_error)
- /* "lxml/etree.pyx":1009
+ /* "lxml/etree.pyx":1010
* cdef _BaseParser parser
* _assertValidNode(self)
* ns, name = _getNsTag(value) # <<<<<<<<<<<<<<
* parser = self._doc._parser
* if parser is not None and parser._for_html:
*/
- __pyx_t_2 = __pyx_f_4lxml_5etree__getNsTag(__pyx_v_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1009, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__getNsTag(__pyx_v_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1010, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
if (likely(__pyx_t_2 != Py_None)) {
PyObject* sequence = __pyx_t_2;
if (unlikely(size != 2)) {
if (size > 2) __Pyx_RaiseTooManyValuesError(2);
else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
- __PYX_ERR(0, 1009, __pyx_L1_error)
+ __PYX_ERR(0, 1010, __pyx_L1_error)
}
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
__pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
__Pyx_INCREF(__pyx_t_3);
__Pyx_INCREF(__pyx_t_4);
#else
- __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1009, __pyx_L1_error)
+ __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1010, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1009, __pyx_L1_error)
+ __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1010, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
#endif
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
} else {
- __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(0, 1009, __pyx_L1_error)
+ __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(0, 1010, __pyx_L1_error)
}
__pyx_v_ns = __pyx_t_3;
__pyx_t_3 = 0;
__pyx_v_name = __pyx_t_4;
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":1010
+ /* "lxml/etree.pyx":1011
* _assertValidNode(self)
* ns, name = _getNsTag(value)
* parser = self._doc._parser # <<<<<<<<<<<<<<
__pyx_v_parser = ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_t_2);
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":1011
+ /* "lxml/etree.pyx":1012
* ns, name = _getNsTag(value)
* parser = self._doc._parser
* if parser is not None and parser._for_html: # <<<<<<<<<<<<<<
__pyx_L4_bool_binop_done:;
if (__pyx_t_5) {
- /* "lxml/etree.pyx":1012
+ /* "lxml/etree.pyx":1013
* parser = self._doc._parser
* if parser is not None and parser._for_html:
* _htmlTagValidOrRaise(name) # <<<<<<<<<<<<<<
* else:
* _tagValidOrRaise(name)
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__htmlTagValidOrRaise(__pyx_v_name); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1012, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__htmlTagValidOrRaise(__pyx_v_name); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1013, __pyx_L1_error)
- /* "lxml/etree.pyx":1011
+ /* "lxml/etree.pyx":1012
* ns, name = _getNsTag(value)
* parser = self._doc._parser
* if parser is not None and parser._for_html: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":1014
+ /* "lxml/etree.pyx":1015
* _htmlTagValidOrRaise(name)
* else:
* _tagValidOrRaise(name) # <<<<<<<<<<<<<<
* tree.xmlNodeSetName(self._c_node, _xcstr(name))
*/
/*else*/ {
- __pyx_t_1 = __pyx_f_4lxml_5etree__tagValidOrRaise(__pyx_v_name); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1014, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__tagValidOrRaise(__pyx_v_name); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1015, __pyx_L1_error)
}
__pyx_L3:;
- /* "lxml/etree.pyx":1015
+ /* "lxml/etree.pyx":1016
* else:
* _tagValidOrRaise(name)
* self._tag = value # <<<<<<<<<<<<<<
__Pyx_DECREF(__pyx_v_self->_tag);
__pyx_v_self->_tag = __pyx_v_value;
- /* "lxml/etree.pyx":1016
+ /* "lxml/etree.pyx":1017
* _tagValidOrRaise(name)
* self._tag = value
* tree.xmlNodeSetName(self._c_node, _xcstr(name)) # <<<<<<<<<<<<<<
*/
xmlNodeSetName(__pyx_v_self->_c_node, (const xmlChar*)PyBytes_AS_STRING(__pyx_v_name));
- /* "lxml/etree.pyx":1017
+ /* "lxml/etree.pyx":1018
* self._tag = value
* tree.xmlNodeSetName(self._c_node, _xcstr(name))
* if ns is None: # <<<<<<<<<<<<<<
__pyx_t_7 = (__pyx_t_5 != 0);
if (__pyx_t_7) {
- /* "lxml/etree.pyx":1018
+ /* "lxml/etree.pyx":1019
* tree.xmlNodeSetName(self._c_node, _xcstr(name))
* if ns is None:
* self._c_node.ns = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_self->_c_node->ns = NULL;
- /* "lxml/etree.pyx":1017
+ /* "lxml/etree.pyx":1018
* self._tag = value
* tree.xmlNodeSetName(self._c_node, _xcstr(name))
* if ns is None: # <<<<<<<<<<<<<<
goto __pyx_L6;
}
- /* "lxml/etree.pyx":1020
+ /* "lxml/etree.pyx":1021
* self._c_node.ns = NULL
* else:
* self._doc._setNodeNs(self._c_node, _xcstr(ns)) # <<<<<<<<<<<<<<
* @property
*/
/*else*/ {
- __pyx_t_1 = __pyx_f_4lxml_5etree_9_Document__setNodeNs(__pyx_v_self->_doc, __pyx_v_self->_c_node, (const xmlChar*)PyBytes_AS_STRING(__pyx_v_ns)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1020, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_9_Document__setNodeNs(__pyx_v_self->_doc, __pyx_v_self->_c_node, (const xmlChar*)PyBytes_AS_STRING(__pyx_v_ns)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1021, __pyx_L1_error)
}
__pyx_L6:;
- /* "lxml/etree.pyx":1006
+ /* "lxml/etree.pyx":1007
* return self._tag
*
* def __set__(self, value): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1023
+/* "lxml/etree.pyx":1024
*
* @property
* def attrib(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":1027
+ /* "lxml/etree.pyx":1028
* keys(), values() and items() to access element attributes.
* """
* return _Attrib.__new__(_Attrib, self) # <<<<<<<<<<<<<<
* property text:
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1027, __pyx_L1_error)
+ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1028, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(((PyObject *)__pyx_v_self));
__Pyx_GIVEREF(((PyObject *)__pyx_v_self));
PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_self));
- __pyx_t_2 = ((PyObject *)__pyx_tp_new_4lxml_5etree__Attrib(((PyTypeObject *)__pyx_ptype_4lxml_5etree__Attrib), __pyx_t_1, NULL)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1027, __pyx_L1_error)
+ __pyx_t_2 = ((PyObject *)__pyx_tp_new_4lxml_5etree__Attrib(((PyTypeObject *)__pyx_ptype_4lxml_5etree__Attrib), __pyx_t_1, NULL)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1028, __pyx_L1_error)
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_r = ((PyObject *)__pyx_t_2);
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1023
+ /* "lxml/etree.pyx":1024
*
* @property
* def attrib(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1033
+/* "lxml/etree.pyx":1034
* the value None, if there was no text.
* """
* def __get__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":1034
+ /* "lxml/etree.pyx":1035
* """
* def __get__(self):
* _assertValidNode(self) # <<<<<<<<<<<<<<
* return _collectText(self._c_node.children)
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1034, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1035, __pyx_L1_error)
- /* "lxml/etree.pyx":1035
+ /* "lxml/etree.pyx":1036
* def __get__(self):
* _assertValidNode(self)
* return _collectText(self._c_node.children) # <<<<<<<<<<<<<<
* def __set__(self, value):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __pyx_f_4lxml_5etree__collectText(__pyx_v_self->_c_node->children); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1035, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__collectText(__pyx_v_self->_c_node->children); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1036, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1033
+ /* "lxml/etree.pyx":1034
* the value None, if there was no text.
* """
* def __get__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1037
+/* "lxml/etree.pyx":1038
* return _collectText(self._c_node.children)
*
* def __set__(self, value): # <<<<<<<<<<<<<<
__Pyx_RefNannySetupContext("__set__", 0);
__Pyx_INCREF(__pyx_v_value);
- /* "lxml/etree.pyx":1038
+ /* "lxml/etree.pyx":1039
*
* def __set__(self, value):
* _assertValidNode(self) # <<<<<<<<<<<<<<
* if isinstance(value, QName):
* value = _resolveQNameText(self, value).decode('utf8')
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1038, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1039, __pyx_L1_error)
- /* "lxml/etree.pyx":1039
+ /* "lxml/etree.pyx":1040
* def __set__(self, value):
* _assertValidNode(self)
* if isinstance(value, QName): # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_2 != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":1040
+ /* "lxml/etree.pyx":1041
* _assertValidNode(self)
* if isinstance(value, QName):
* value = _resolveQNameText(self, value).decode('utf8') # <<<<<<<<<<<<<<
* _setNodeText(self._c_node, value)
*
*/
- __pyx_t_4 = __pyx_f_4lxml_5etree__resolveQNameText(__pyx_v_self, __pyx_v_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1040, __pyx_L1_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree__resolveQNameText(__pyx_v_self, __pyx_v_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1041, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
if (unlikely(__pyx_t_4 == Py_None)) {
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode");
- __PYX_ERR(0, 1040, __pyx_L1_error)
+ __PYX_ERR(0, 1041, __pyx_L1_error)
}
- __pyx_t_5 = __Pyx_decode_bytes(__pyx_t_4, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1040, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_decode_bytes(__pyx_t_4, 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1041, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF_SET(__pyx_v_value, __pyx_t_5);
__pyx_t_5 = 0;
- /* "lxml/etree.pyx":1039
+ /* "lxml/etree.pyx":1040
* def __set__(self, value):
* _assertValidNode(self)
* if isinstance(value, QName): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1041
+ /* "lxml/etree.pyx":1042
* if isinstance(value, QName):
* value = _resolveQNameText(self, value).decode('utf8')
* _setNodeText(self._c_node, value) # <<<<<<<<<<<<<<
*
* # using 'del el.text' is the wrong thing to do
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__setNodeText(__pyx_v_self->_c_node, __pyx_v_value); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1041, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__setNodeText(__pyx_v_self->_c_node, __pyx_v_value); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1042, __pyx_L1_error)
- /* "lxml/etree.pyx":1037
+ /* "lxml/etree.pyx":1038
* return _collectText(self._c_node.children)
*
* def __set__(self, value): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1052
+/* "lxml/etree.pyx":1053
* there was no text.
* """
* def __get__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":1053
+ /* "lxml/etree.pyx":1054
* """
* def __get__(self):
* _assertValidNode(self) # <<<<<<<<<<<<<<
* return _collectText(self._c_node.next)
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1053, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1054, __pyx_L1_error)
- /* "lxml/etree.pyx":1054
+ /* "lxml/etree.pyx":1055
* def __get__(self):
* _assertValidNode(self)
* return _collectText(self._c_node.next) # <<<<<<<<<<<<<<
* def __set__(self, value):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __pyx_f_4lxml_5etree__collectText(__pyx_v_self->_c_node->next); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1054, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__collectText(__pyx_v_self->_c_node->next); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1055, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1052
+ /* "lxml/etree.pyx":1053
* there was no text.
* """
* def __get__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1056
+/* "lxml/etree.pyx":1057
* return _collectText(self._c_node.next)
*
* def __set__(self, value): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__set__", 0);
- /* "lxml/etree.pyx":1057
+ /* "lxml/etree.pyx":1058
*
* def __set__(self, value):
* _assertValidNode(self) # <<<<<<<<<<<<<<
* _setTailText(self._c_node, value)
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1057, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1058, __pyx_L1_error)
- /* "lxml/etree.pyx":1058
+ /* "lxml/etree.pyx":1059
* def __set__(self, value):
* _assertValidNode(self)
* _setTailText(self._c_node, value) # <<<<<<<<<<<<<<
*
* # using 'del el.tail' is the wrong thing to do
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__setTailText(__pyx_v_self->_c_node, __pyx_v_value); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1058, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__setTailText(__pyx_v_self->_c_node, __pyx_v_value); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1059, __pyx_L1_error)
- /* "lxml/etree.pyx":1056
+ /* "lxml/etree.pyx":1057
* return _collectText(self._c_node.next)
*
* def __set__(self, value): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1066
+/* "lxml/etree.pyx":1067
* # not in ElementTree, read-only
* @property
* def prefix(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":1069
+ /* "lxml/etree.pyx":1070
* """Namespace prefix or None.
* """
* if self._c_node.ns is not NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_self->_c_node->ns != NULL) != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":1070
+ /* "lxml/etree.pyx":1071
* """
* if self._c_node.ns is not NULL:
* if self._c_node.ns.prefix is not NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_self->_c_node->ns->prefix != NULL) != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":1071
+ /* "lxml/etree.pyx":1072
* if self._c_node.ns is not NULL:
* if self._c_node.ns.prefix is not NULL:
* return funicode(self._c_node.ns.prefix) # <<<<<<<<<<<<<<
*
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __pyx_f_4lxml_5etree_funicode(__pyx_v_self->_c_node->ns->prefix); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1071, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree_funicode(__pyx_v_self->_c_node->ns->prefix); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1072, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1070
+ /* "lxml/etree.pyx":1071
* """
* if self._c_node.ns is not NULL:
* if self._c_node.ns.prefix is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1069
+ /* "lxml/etree.pyx":1070
* """Namespace prefix or None.
* """
* if self._c_node.ns is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1072
+ /* "lxml/etree.pyx":1073
* if self._c_node.ns.prefix is not NULL:
* return funicode(self._c_node.ns.prefix)
* return None # <<<<<<<<<<<<<<
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
- /* "lxml/etree.pyx":1066
+ /* "lxml/etree.pyx":1067
* # not in ElementTree, read-only
* @property
* def prefix(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1078
+/* "lxml/etree.pyx":1079
* u"""Original line number as found by the parser or None if unknown.
* """
* def __get__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":1080
+ /* "lxml/etree.pyx":1081
* def __get__(self):
* cdef long line
* _assertValidNode(self) # <<<<<<<<<<<<<<
* line = tree.xmlGetLineNo(self._c_node)
* return line if line > 0 else None
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1080, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1081, __pyx_L1_error)
- /* "lxml/etree.pyx":1081
+ /* "lxml/etree.pyx":1082
* cdef long line
* _assertValidNode(self)
* line = tree.xmlGetLineNo(self._c_node) # <<<<<<<<<<<<<<
*/
__pyx_v_line = xmlGetLineNo(__pyx_v_self->_c_node);
- /* "lxml/etree.pyx":1082
+ /* "lxml/etree.pyx":1083
* _assertValidNode(self)
* line = tree.xmlGetLineNo(self._c_node)
* return line if line > 0 else None # <<<<<<<<<<<<<<
*/
__Pyx_XDECREF(__pyx_r);
if (((__pyx_v_line > 0) != 0)) {
- __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v_line); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1082, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyInt_From_long(__pyx_v_line); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1083, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_2 = __pyx_t_3;
__pyx_t_3 = 0;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1078
+ /* "lxml/etree.pyx":1079
* u"""Original line number as found by the parser or None if unknown.
* """
* def __get__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1084
+/* "lxml/etree.pyx":1085
* return line if line > 0 else None
*
* def __set__(self, line): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__set__", 0);
- /* "lxml/etree.pyx":1085
+ /* "lxml/etree.pyx":1086
*
* def __set__(self, line):
* _assertValidNode(self) # <<<<<<<<<<<<<<
* if line <= 0:
* self._c_node.line = 0
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1085, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1086, __pyx_L1_error)
- /* "lxml/etree.pyx":1086
+ /* "lxml/etree.pyx":1087
* def __set__(self, line):
* _assertValidNode(self)
* if line <= 0: # <<<<<<<<<<<<<<
* self._c_node.line = 0
* else:
*/
- __pyx_t_2 = PyObject_RichCompare(__pyx_v_line, __pyx_int_0, Py_LE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1086, __pyx_L1_error)
- __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 1086, __pyx_L1_error)
+ __pyx_t_2 = PyObject_RichCompare(__pyx_v_line, __pyx_int_0, Py_LE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1087, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 1087, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
if (__pyx_t_3) {
- /* "lxml/etree.pyx":1087
+ /* "lxml/etree.pyx":1088
* _assertValidNode(self)
* if line <= 0:
* self._c_node.line = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_self->_c_node->line = 0;
- /* "lxml/etree.pyx":1086
+ /* "lxml/etree.pyx":1087
* def __set__(self, line):
* _assertValidNode(self)
* if line <= 0: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":1089
+ /* "lxml/etree.pyx":1090
* self._c_node.line = 0
* else:
* self._c_node.line = line # <<<<<<<<<<<<<<
* # not in ElementTree, read-only
*/
/*else*/ {
- __pyx_t_4 = __Pyx_PyInt_As_unsigned_short(__pyx_v_line); if (unlikely((__pyx_t_4 == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(0, 1089, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyInt_As_unsigned_short(__pyx_v_line); if (unlikely((__pyx_t_4 == (unsigned short)-1) && PyErr_Occurred())) __PYX_ERR(0, 1090, __pyx_L1_error)
__pyx_v_self->_c_node->line = __pyx_t_4;
}
__pyx_L3:;
- /* "lxml/etree.pyx":1084
+ /* "lxml/etree.pyx":1085
* return line if line > 0 else None
*
* def __set__(self, line): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1093
+/* "lxml/etree.pyx":1094
* # not in ElementTree, read-only
* @property
* def nsmap(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":1100
+ /* "lxml/etree.pyx":1101
* Note that changing the returned dict has no effect on the Element.
* """
* _assertValidNode(self) # <<<<<<<<<<<<<<
* return _build_nsmap(self._c_node)
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1100, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1101, __pyx_L1_error)
- /* "lxml/etree.pyx":1101
+ /* "lxml/etree.pyx":1102
* """
* _assertValidNode(self)
* return _build_nsmap(self._c_node) # <<<<<<<<<<<<<<
* # not in ElementTree, read-only
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __pyx_f_4lxml_5etree__build_nsmap(__pyx_v_self->_c_node); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1101, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__build_nsmap(__pyx_v_self->_c_node); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1102, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1093
+ /* "lxml/etree.pyx":1094
* # not in ElementTree, read-only
* @property
* def nsmap(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1115
+/* "lxml/etree.pyx":1116
* Element, regardless of the document type (XML or HTML).
* """
* def __get__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":1116
+ /* "lxml/etree.pyx":1117
* """
* def __get__(self):
* _assertValidNode(self) # <<<<<<<<<<<<<<
* c_base = tree.xmlNodeGetBase(self._doc._c_doc, self._c_node)
* if c_base is NULL:
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1116, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1117, __pyx_L1_error)
- /* "lxml/etree.pyx":1117
+ /* "lxml/etree.pyx":1118
* def __get__(self):
* _assertValidNode(self)
* c_base = tree.xmlNodeGetBase(self._doc._c_doc, self._c_node) # <<<<<<<<<<<<<<
*/
__pyx_v_c_base = xmlNodeGetBase(__pyx_v_self->_doc->_c_doc, __pyx_v_self->_c_node);
- /* "lxml/etree.pyx":1118
+ /* "lxml/etree.pyx":1119
* _assertValidNode(self)
* c_base = tree.xmlNodeGetBase(self._doc._c_doc, self._c_node)
* if c_base is NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_base == NULL) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1119
+ /* "lxml/etree.pyx":1120
* c_base = tree.xmlNodeGetBase(self._doc._c_doc, self._c_node)
* if c_base is NULL:
* if self._doc._c_doc.URL is NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_self->_doc->_c_doc->URL == NULL) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1120
+ /* "lxml/etree.pyx":1121
* if c_base is NULL:
* if self._doc._c_doc.URL is NULL:
* return None # <<<<<<<<<<<<<<
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
- /* "lxml/etree.pyx":1119
+ /* "lxml/etree.pyx":1120
* c_base = tree.xmlNodeGetBase(self._doc._c_doc, self._c_node)
* if c_base is NULL:
* if self._doc._c_doc.URL is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1121
+ /* "lxml/etree.pyx":1122
* if self._doc._c_doc.URL is NULL:
* return None
* return _decodeFilename(self._doc._c_doc.URL) # <<<<<<<<<<<<<<
* base = _decodeFilename(c_base)
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_3 = __pyx_f_4lxml_5etree__decodeFilename(__pyx_v_self->_doc->_c_doc->URL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1121, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree__decodeFilename(__pyx_v_self->_doc->_c_doc->URL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1122, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1118
+ /* "lxml/etree.pyx":1119
* _assertValidNode(self)
* c_base = tree.xmlNodeGetBase(self._doc._c_doc, self._c_node)
* if c_base is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1122
+ /* "lxml/etree.pyx":1123
* return None
* return _decodeFilename(self._doc._c_doc.URL)
* try: # <<<<<<<<<<<<<<
*/
/*try:*/ {
- /* "lxml/etree.pyx":1123
+ /* "lxml/etree.pyx":1124
* return _decodeFilename(self._doc._c_doc.URL)
* try:
* base = _decodeFilename(c_base) # <<<<<<<<<<<<<<
* finally:
* tree.xmlFree(c_base)
*/
- __pyx_t_3 = __pyx_f_4lxml_5etree__decodeFilename(__pyx_v_c_base); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1123, __pyx_L6_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree__decodeFilename(__pyx_v_c_base); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1124, __pyx_L6_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_v_base = __pyx_t_3;
__pyx_t_3 = 0;
}
- /* "lxml/etree.pyx":1125
+ /* "lxml/etree.pyx":1126
* base = _decodeFilename(c_base)
* finally:
* tree.xmlFree(c_base) # <<<<<<<<<<<<<<
__pyx_L7:;
}
- /* "lxml/etree.pyx":1126
+ /* "lxml/etree.pyx":1127
* finally:
* tree.xmlFree(c_base)
* return base # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_base;
goto __pyx_L0;
- /* "lxml/etree.pyx":1115
+ /* "lxml/etree.pyx":1116
* Element, regardless of the document type (XML or HTML).
* """
* def __get__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1128
+/* "lxml/etree.pyx":1129
* return base
*
* def __set__(self, url): # <<<<<<<<<<<<<<
__Pyx_RefNannySetupContext("__set__", 0);
__Pyx_INCREF(__pyx_v_url);
- /* "lxml/etree.pyx":1129
+ /* "lxml/etree.pyx":1130
*
* def __set__(self, url):
* _assertValidNode(self) # <<<<<<<<<<<<<<
* if url is None:
* c_base = <const_xmlChar*>NULL
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1129, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1130, __pyx_L1_error)
- /* "lxml/etree.pyx":1130
+ /* "lxml/etree.pyx":1131
* def __set__(self, url):
* _assertValidNode(self)
* if url is None: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_2 != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":1131
+ /* "lxml/etree.pyx":1132
* _assertValidNode(self)
* if url is None:
* c_base = <const_xmlChar*>NULL # <<<<<<<<<<<<<<
*/
__pyx_v_c_base = ((const xmlChar *)NULL);
- /* "lxml/etree.pyx":1130
+ /* "lxml/etree.pyx":1131
* def __set__(self, url):
* _assertValidNode(self)
* if url is None: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":1133
+ /* "lxml/etree.pyx":1134
* c_base = <const_xmlChar*>NULL
* else:
* url = _encodeFilename(url) # <<<<<<<<<<<<<<
* tree.xmlNodeSetBase(self._c_node, c_base)
*/
/*else*/ {
- __pyx_t_4 = __pyx_f_4lxml_5etree__encodeFilename(__pyx_v_url); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1133, __pyx_L1_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree__encodeFilename(__pyx_v_url); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1134, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF_SET(__pyx_v_url, __pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":1134
+ /* "lxml/etree.pyx":1135
* else:
* url = _encodeFilename(url)
* c_base = _xcstr(url) # <<<<<<<<<<<<<<
}
__pyx_L3:;
- /* "lxml/etree.pyx":1135
+ /* "lxml/etree.pyx":1136
* url = _encodeFilename(url)
* c_base = _xcstr(url)
* tree.xmlNodeSetBase(self._c_node, c_base) # <<<<<<<<<<<<<<
*/
xmlNodeSetBase(__pyx_v_self->_c_node, __pyx_v_c_base);
- /* "lxml/etree.pyx":1128
+ /* "lxml/etree.pyx":1129
* return base
*
* def __set__(self, url): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1138
+/* "lxml/etree.pyx":1139
*
* # ACCESSORS
* def __repr__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__repr__", 0);
- /* "lxml/etree.pyx":1140
+ /* "lxml/etree.pyx":1141
* def __repr__(self):
* u"__repr__(self)"
* return "<Element %s at 0x%x>" % (strrepr(self.tag), id(self)) # <<<<<<<<<<<<<<
* def __getitem__(self, x):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_tag); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1140, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_tag); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1141, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree_strrepr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1140, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree_strrepr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1141, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_id, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1140, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_id, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1141, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1140, __pyx_L1_error)
+ __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1141, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_GIVEREF(__pyx_t_2);
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
__pyx_t_2 = 0;
__pyx_t_1 = 0;
- __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Element_s_at_0x_x, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1140, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_Element_s_at_0x_x, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1141, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1138
+ /* "lxml/etree.pyx":1139
*
* # ACCESSORS
* def __repr__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1142
+/* "lxml/etree.pyx":1143
* return "<Element %s at 0x%x>" % (strrepr(self.tag), id(self))
*
* def __getitem__(self, x): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__getitem__", 0);
- /* "lxml/etree.pyx":1146
+ /* "lxml/etree.pyx":1147
* slice.
* """
* cdef xmlNode* c_node = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_c_node = NULL;
- /* "lxml/etree.pyx":1147
+ /* "lxml/etree.pyx":1148
* """
* cdef xmlNode* c_node = NULL
* cdef Py_ssize_t step = 0, slicelength = 0 # <<<<<<<<<<<<<<
__pyx_v_step = 0;
__pyx_v_slicelength = 0;
- /* "lxml/etree.pyx":1151
+ /* "lxml/etree.pyx":1152
* cdef _node_to_node_function next_element
* cdef list result
* _assertValidNode(self) # <<<<<<<<<<<<<<
* if isinstance(x, slice):
* # slicing
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1151, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1152, __pyx_L1_error)
- /* "lxml/etree.pyx":1152
+ /* "lxml/etree.pyx":1153
* cdef list result
* _assertValidNode(self)
* if isinstance(x, slice): # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_2 != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":1154
+ /* "lxml/etree.pyx":1155
* if isinstance(x, slice):
* # slicing
* if _isFullSlice(<slice>x): # <<<<<<<<<<<<<<
* return _collectChildren(self)
* _findChildSlice(<slice>x, self._c_node, &c_node, &step, &slicelength)
*/
- __pyx_t_3 = __pyx_f_4lxml_5etree__isFullSlice(((PyObject*)__pyx_v_x)); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1154, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree__isFullSlice(((PyObject*)__pyx_v_x)); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1155, __pyx_L1_error)
__pyx_t_2 = (__pyx_t_3 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1155
+ /* "lxml/etree.pyx":1156
* # slicing
* if _isFullSlice(<slice>x):
* return _collectChildren(self) # <<<<<<<<<<<<<<
* if c_node is NULL:
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = __pyx_f_4lxml_5etree__collectChildren(__pyx_v_self); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1155, __pyx_L1_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree__collectChildren(__pyx_v_self); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1156, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_r = __pyx_t_4;
__pyx_t_4 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1154
+ /* "lxml/etree.pyx":1155
* if isinstance(x, slice):
* # slicing
* if _isFullSlice(<slice>x): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1156
+ /* "lxml/etree.pyx":1157
* if _isFullSlice(<slice>x):
* return _collectChildren(self)
* _findChildSlice(<slice>x, self._c_node, &c_node, &step, &slicelength) # <<<<<<<<<<<<<<
* if c_node is NULL:
* return []
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__findChildSlice(((PyObject*)__pyx_v_x), __pyx_v_self->_c_node, (&__pyx_v_c_node), (&__pyx_v_step), (&__pyx_v_slicelength)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1156, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__findChildSlice(((PyObject*)__pyx_v_x), __pyx_v_self->_c_node, (&__pyx_v_c_node), (&__pyx_v_step), (&__pyx_v_slicelength)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1157, __pyx_L1_error)
- /* "lxml/etree.pyx":1157
+ /* "lxml/etree.pyx":1158
* return _collectChildren(self)
* _findChildSlice(<slice>x, self._c_node, &c_node, &step, &slicelength)
* if c_node is NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_node == NULL) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1158
+ /* "lxml/etree.pyx":1159
* _findChildSlice(<slice>x, self._c_node, &c_node, &step, &slicelength)
* if c_node is NULL:
* return [] # <<<<<<<<<<<<<<
* next_element = _nextElement
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1158, __pyx_L1_error)
+ __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1159, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_r = __pyx_t_4;
__pyx_t_4 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1157
+ /* "lxml/etree.pyx":1158
* return _collectChildren(self)
* _findChildSlice(<slice>x, self._c_node, &c_node, &step, &slicelength)
* if c_node is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1159
+ /* "lxml/etree.pyx":1160
* if c_node is NULL:
* return []
* if step > 0: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_step > 0) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1160
+ /* "lxml/etree.pyx":1161
* return []
* if step > 0:
* next_element = _nextElement # <<<<<<<<<<<<<<
*/
__pyx_v_next_element = __pyx_f_4lxml_5etree__nextElement;
- /* "lxml/etree.pyx":1159
+ /* "lxml/etree.pyx":1160
* if c_node is NULL:
* return []
* if step > 0: # <<<<<<<<<<<<<<
goto __pyx_L6;
}
- /* "lxml/etree.pyx":1162
+ /* "lxml/etree.pyx":1163
* next_element = _nextElement
* else:
* step = -step # <<<<<<<<<<<<<<
/*else*/ {
__pyx_v_step = (-__pyx_v_step);
- /* "lxml/etree.pyx":1163
+ /* "lxml/etree.pyx":1164
* else:
* step = -step
* next_element = _previousElement # <<<<<<<<<<<<<<
}
__pyx_L6:;
- /* "lxml/etree.pyx":1164
+ /* "lxml/etree.pyx":1165
* step = -step
* next_element = _previousElement
* result = [] # <<<<<<<<<<<<<<
* c = 0
* while c_node is not NULL and c < slicelength:
*/
- __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1164, __pyx_L1_error)
+ __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1165, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_v_result = ((PyObject*)__pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":1165
+ /* "lxml/etree.pyx":1166
* next_element = _previousElement
* result = []
* c = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_c = 0;
- /* "lxml/etree.pyx":1166
+ /* "lxml/etree.pyx":1167
* result = []
* c = 0
* while c_node is not NULL and c < slicelength: # <<<<<<<<<<<<<<
__pyx_L9_bool_binop_done:;
if (!__pyx_t_2) break;
- /* "lxml/etree.pyx":1167
+ /* "lxml/etree.pyx":1168
* c = 0
* while c_node is not NULL and c < slicelength:
* result.append(_elementFactory(self._doc, c_node)) # <<<<<<<<<<<<<<
*/
__pyx_t_4 = ((PyObject *)__pyx_v_self->_doc);
__Pyx_INCREF(__pyx_t_4);
- __pyx_t_5 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(((struct LxmlDocument *)__pyx_t_4), __pyx_v_c_node)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1167, __pyx_L1_error)
+ __pyx_t_5 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(((struct LxmlDocument *)__pyx_t_4), __pyx_v_c_node)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1168, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- __pyx_t_6 = __Pyx_PyList_Append(__pyx_v_result, __pyx_t_5); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1167, __pyx_L1_error)
+ __pyx_t_6 = __Pyx_PyList_Append(__pyx_v_result, __pyx_t_5); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1168, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- /* "lxml/etree.pyx":1168
+ /* "lxml/etree.pyx":1169
* while c_node is not NULL and c < slicelength:
* result.append(_elementFactory(self._doc, c_node))
* c += 1 # <<<<<<<<<<<<<<
*/
__pyx_v_c = (__pyx_v_c + 1);
- /* "lxml/etree.pyx":1169
+ /* "lxml/etree.pyx":1170
* result.append(_elementFactory(self._doc, c_node))
* c += 1
* for i in range(step): # <<<<<<<<<<<<<<
for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) {
__pyx_v_i = __pyx_t_9;
- /* "lxml/etree.pyx":1170
+ /* "lxml/etree.pyx":1171
* c += 1
* for i in range(step):
* c_node = next_element(c_node) # <<<<<<<<<<<<<<
*/
__pyx_v_c_node = __pyx_v_next_element(__pyx_v_c_node);
- /* "lxml/etree.pyx":1171
+ /* "lxml/etree.pyx":1172
* for i in range(step):
* c_node = next_element(c_node)
* if c_node is NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_node == NULL) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1172
+ /* "lxml/etree.pyx":1173
* c_node = next_element(c_node)
* if c_node is NULL:
* break # <<<<<<<<<<<<<<
*/
goto __pyx_L12_break;
- /* "lxml/etree.pyx":1171
+ /* "lxml/etree.pyx":1172
* for i in range(step):
* c_node = next_element(c_node)
* if c_node is NULL: # <<<<<<<<<<<<<<
__pyx_L12_break:;
}
- /* "lxml/etree.pyx":1173
+ /* "lxml/etree.pyx":1174
* if c_node is NULL:
* break
* return result # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_result;
goto __pyx_L0;
- /* "lxml/etree.pyx":1152
+ /* "lxml/etree.pyx":1153
* cdef list result
* _assertValidNode(self)
* if isinstance(x, slice): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1176
+ /* "lxml/etree.pyx":1177
* else:
* # indexing
* c_node = _findChild(self._c_node, x) # <<<<<<<<<<<<<<
* raise IndexError, u"list index out of range"
*/
/*else*/ {
- __pyx_t_7 = __Pyx_PyIndex_AsSsize_t(__pyx_v_x); if (unlikely((__pyx_t_7 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1176, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyIndex_AsSsize_t(__pyx_v_x); if (unlikely((__pyx_t_7 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1177, __pyx_L1_error)
__pyx_v_c_node = __pyx_f_4lxml_5etree__findChild(__pyx_v_self->_c_node, __pyx_t_7);
- /* "lxml/etree.pyx":1177
+ /* "lxml/etree.pyx":1178
* # indexing
* c_node = _findChild(self._c_node, x)
* if c_node is NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_node == NULL) != 0);
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":1178
+ /* "lxml/etree.pyx":1179
* c_node = _findChild(self._c_node, x)
* if c_node is NULL:
* raise IndexError, u"list index out of range" # <<<<<<<<<<<<<<
*
*/
__Pyx_Raise(__pyx_builtin_IndexError, __pyx_kp_u_list_index_out_of_range, 0, 0);
- __PYX_ERR(0, 1178, __pyx_L1_error)
+ __PYX_ERR(0, 1179, __pyx_L1_error)
- /* "lxml/etree.pyx":1177
+ /* "lxml/etree.pyx":1178
* # indexing
* c_node = _findChild(self._c_node, x)
* if c_node is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1179
+ /* "lxml/etree.pyx":1180
* if c_node is NULL:
* raise IndexError, u"list index out of range"
* return _elementFactory(self._doc, c_node) # <<<<<<<<<<<<<<
__Pyx_XDECREF(__pyx_r);
__pyx_t_5 = ((PyObject *)__pyx_v_self->_doc);
__Pyx_INCREF(__pyx_t_5);
- __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(((struct LxmlDocument *)__pyx_t_5), __pyx_v_c_node)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1179, __pyx_L1_error)
+ __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(((struct LxmlDocument *)__pyx_t_5), __pyx_v_c_node)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1180, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_r = __pyx_t_4;
goto __pyx_L0;
}
- /* "lxml/etree.pyx":1142
+ /* "lxml/etree.pyx":1143
* return "<Element %s at 0x%x>" % (strrepr(self.tag), id(self))
*
* def __getitem__(self, x): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1181
+/* "lxml/etree.pyx":1182
* return _elementFactory(self._doc, c_node)
*
* def __len__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__len__", 0);
- /* "lxml/etree.pyx":1186
+ /* "lxml/etree.pyx":1187
* Returns the number of subelements.
* """
* _assertValidNode(self) # <<<<<<<<<<<<<<
* return _countElements(self._c_node.children)
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1186, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1187, __pyx_L1_error)
- /* "lxml/etree.pyx":1187
+ /* "lxml/etree.pyx":1188
* """
* _assertValidNode(self)
* return _countElements(self._c_node.children) # <<<<<<<<<<<<<<
__pyx_r = __pyx_f_4lxml_5etree__countElements(__pyx_v_self->_c_node->children);
goto __pyx_L0;
- /* "lxml/etree.pyx":1181
+ /* "lxml/etree.pyx":1182
* return _elementFactory(self._doc, c_node)
*
* def __len__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1189
+/* "lxml/etree.pyx":1190
* return _countElements(self._c_node.children)
*
* def __nonzero__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__nonzero__", 0);
- /* "lxml/etree.pyx":1191
+ /* "lxml/etree.pyx":1192
* def __nonzero__(self):
* #u"__nonzero__(self)" # currently fails in Py3.1
* import warnings # <<<<<<<<<<<<<<
* warnings.warn(
* u"The behavior of this method will change in future versions. "
*/
- __pyx_t_1 = __Pyx_Import(__pyx_n_s_warnings, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1191, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_Import(__pyx_n_s_warnings, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1192, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_v_warnings = __pyx_t_1;
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":1192
+ /* "lxml/etree.pyx":1193
* #u"__nonzero__(self)" # currently fails in Py3.1
* import warnings
* warnings.warn( # <<<<<<<<<<<<<<
* u"The behavior of this method will change in future versions. "
* u"Use specific 'len(elem)' or 'elem is not None' test instead.",
*/
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_warnings, __pyx_n_s_warn); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1192, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_warnings, __pyx_n_s_warn); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1193, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- /* "lxml/etree.pyx":1195
+ /* "lxml/etree.pyx":1196
* u"The behavior of this method will change in future versions. "
* u"Use specific 'len(elem)' or 'elem is not None' test instead.",
* FutureWarning # <<<<<<<<<<<<<<
* )
* # emulate old behaviour
*/
- __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__28, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1192, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__28, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1193, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":1198
+ /* "lxml/etree.pyx":1199
* )
* # emulate old behaviour
* _assertValidNode(self) # <<<<<<<<<<<<<<
* return _hasChild(self._c_node)
*
*/
- __pyx_t_3 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1198, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1199, __pyx_L1_error)
- /* "lxml/etree.pyx":1199
+ /* "lxml/etree.pyx":1200
* # emulate old behaviour
* _assertValidNode(self)
* return _hasChild(self._c_node) # <<<<<<<<<<<<<<
__pyx_r = __pyx_f_4lxml_5etree__hasChild(__pyx_v_self->_c_node);
goto __pyx_L0;
- /* "lxml/etree.pyx":1189
+ /* "lxml/etree.pyx":1190
* return _countElements(self._c_node.children)
*
* def __nonzero__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1201
+/* "lxml/etree.pyx":1202
* return _hasChild(self._c_node)
*
* def __contains__(self, element): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__contains__", 0);
- /* "lxml/etree.pyx":1204
+ /* "lxml/etree.pyx":1205
* u"__contains__(self, element)"
* cdef xmlNode* c_node
* _assertValidNode(self) # <<<<<<<<<<<<<<
* if not isinstance(element, _Element):
* return 0
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1204, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1205, __pyx_L1_error)
- /* "lxml/etree.pyx":1205
+ /* "lxml/etree.pyx":1206
* cdef xmlNode* c_node
* _assertValidNode(self)
* if not isinstance(element, _Element): # <<<<<<<<<<<<<<
__pyx_t_3 = ((!(__pyx_t_2 != 0)) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":1206
+ /* "lxml/etree.pyx":1207
* _assertValidNode(self)
* if not isinstance(element, _Element):
* return 0 # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1205
+ /* "lxml/etree.pyx":1206
* cdef xmlNode* c_node
* _assertValidNode(self)
* if not isinstance(element, _Element): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1207
+ /* "lxml/etree.pyx":1208
* if not isinstance(element, _Element):
* return 0
* c_node = (<_Element>element)._c_node # <<<<<<<<<<<<<<
__pyx_t_4 = ((struct LxmlElement *)__pyx_v_element)->_c_node;
__pyx_v_c_node = __pyx_t_4;
- /* "lxml/etree.pyx":1208
+ /* "lxml/etree.pyx":1209
* return 0
* c_node = (<_Element>element)._c_node
* return c_node is not NULL and c_node.parent is self._c_node # <<<<<<<<<<<<<<
__pyx_r = __pyx_t_1;
goto __pyx_L0;
- /* "lxml/etree.pyx":1201
+ /* "lxml/etree.pyx":1202
* return _hasChild(self._c_node)
*
* def __contains__(self, element): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1210
+/* "lxml/etree.pyx":1211
* return c_node is not NULL and c_node.parent is self._c_node
*
* def __iter__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__iter__", 0);
- /* "lxml/etree.pyx":1212
+ /* "lxml/etree.pyx":1213
* def __iter__(self):
* u"__iter__(self)"
* return ElementChildIterator(self) # <<<<<<<<<<<<<<
* def __reversed__(self):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4lxml_5etree_ElementChildIterator), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1212, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4lxml_5etree_ElementChildIterator), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1213, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1210
+ /* "lxml/etree.pyx":1211
* return c_node is not NULL and c_node.parent is self._c_node
*
* def __iter__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1214
+/* "lxml/etree.pyx":1215
* return ElementChildIterator(self)
*
* def __reversed__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__reversed__", 0);
- /* "lxml/etree.pyx":1216
+ /* "lxml/etree.pyx":1217
* def __reversed__(self):
* u"__reversed__(self)"
* return ElementChildIterator(self, reversed=True) # <<<<<<<<<<<<<<
* def index(self, _Element child not None, start: int = None, stop: int = None):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1216, __pyx_L1_error)
+ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1217, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(((PyObject *)__pyx_v_self));
__Pyx_GIVEREF(((PyObject *)__pyx_v_self));
PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_self));
- __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1216, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1217, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_reversed, Py_True) < 0) __PYX_ERR(0, 1216, __pyx_L1_error)
- __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_ElementChildIterator), __pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1216, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_reversed, Py_True) < 0) __PYX_ERR(0, 1217, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_ElementChildIterator), __pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1217, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1214
+ /* "lxml/etree.pyx":1215
* return ElementChildIterator(self)
*
* def __reversed__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1218
+/* "lxml/etree.pyx":1219
* return ElementChildIterator(self, reversed=True)
*
* def index(self, _Element child not None, start: int = None, stop: int = None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "index") < 0)) __PYX_ERR(0, 1218, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "index") < 0)) __PYX_ERR(0, 1219, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("index", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1218, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("index", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1219, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._Element.index", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return NULL;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_child), __pyx_ptype_4lxml_5etree__Element, 0, "child", 0))) __PYX_ERR(0, 1218, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_child), __pyx_ptype_4lxml_5etree__Element, 0, "child", 0))) __PYX_ERR(0, 1219, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_8_Element_44index(((struct LxmlElement *)__pyx_v_self), __pyx_v_child, __pyx_v_start, __pyx_v_stop);
/* function exit code */
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("index", 0);
- /* "lxml/etree.pyx":1229
+ /* "lxml/etree.pyx":1230
* cdef xmlNode* c_child
* cdef xmlNode* c_start_node
* _assertValidNode(self) # <<<<<<<<<<<<<<
* _assertValidNode(child)
* c_child = child._c_node
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1229, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1230, __pyx_L1_error)
- /* "lxml/etree.pyx":1230
+ /* "lxml/etree.pyx":1231
* cdef xmlNode* c_start_node
* _assertValidNode(self)
* _assertValidNode(child) # <<<<<<<<<<<<<<
* c_child = child._c_node
* if c_child.parent is not self._c_node:
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_child); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1230, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_child); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1231, __pyx_L1_error)
- /* "lxml/etree.pyx":1231
+ /* "lxml/etree.pyx":1232
* _assertValidNode(self)
* _assertValidNode(child)
* c_child = child._c_node # <<<<<<<<<<<<<<
__pyx_t_2 = __pyx_v_child->_c_node;
__pyx_v_c_child = __pyx_t_2;
- /* "lxml/etree.pyx":1232
+ /* "lxml/etree.pyx":1233
* _assertValidNode(child)
* c_child = child._c_node
* if c_child.parent is not self._c_node: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_child->parent != __pyx_v_self->_c_node) != 0);
if (unlikely(__pyx_t_3)) {
- /* "lxml/etree.pyx":1233
+ /* "lxml/etree.pyx":1234
* c_child = child._c_node
* if c_child.parent is not self._c_node:
* raise ValueError, u"Element is not a child of this node." # <<<<<<<<<<<<<<
* # handle the unbounded search straight away (normal case)
*/
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_Element_is_not_a_child_of_this_n, 0, 0);
- __PYX_ERR(0, 1233, __pyx_L1_error)
+ __PYX_ERR(0, 1234, __pyx_L1_error)
- /* "lxml/etree.pyx":1232
+ /* "lxml/etree.pyx":1233
* _assertValidNode(child)
* c_child = child._c_node
* if c_child.parent is not self._c_node: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1236
+ /* "lxml/etree.pyx":1237
*
* # handle the unbounded search straight away (normal case)
* if stop is None and (start is None or start == 0): # <<<<<<<<<<<<<<
__pyx_t_3 = __pyx_t_4;
goto __pyx_L5_bool_binop_done;
}
- __pyx_t_6 = __Pyx_PyInt_EqObjC(__pyx_v_start, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1236, __pyx_L1_error)
+ __pyx_t_6 = __Pyx_PyInt_EqObjC(__pyx_v_start, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1237, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
- __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 1236, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 1237, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__pyx_t_3 = __pyx_t_4;
__pyx_L5_bool_binop_done:;
if (__pyx_t_3) {
- /* "lxml/etree.pyx":1237
+ /* "lxml/etree.pyx":1238
* # handle the unbounded search straight away (normal case)
* if stop is None and (start is None or start == 0):
* k = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_k = 0;
- /* "lxml/etree.pyx":1238
+ /* "lxml/etree.pyx":1239
* if stop is None and (start is None or start == 0):
* k = 0
* c_child = c_child.prev # <<<<<<<<<<<<<<
__pyx_t_2 = __pyx_v_c_child->prev;
__pyx_v_c_child = __pyx_t_2;
- /* "lxml/etree.pyx":1239
+ /* "lxml/etree.pyx":1240
* k = 0
* c_child = c_child.prev
* while c_child is not NULL: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_child != NULL) != 0);
if (!__pyx_t_3) break;
- /* "lxml/etree.pyx":1240
+ /* "lxml/etree.pyx":1241
* c_child = c_child.prev
* while c_child is not NULL:
* if _isElement(c_child): # <<<<<<<<<<<<<<
__pyx_t_3 = (_isElement(__pyx_v_c_child) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":1241
+ /* "lxml/etree.pyx":1242
* while c_child is not NULL:
* if _isElement(c_child):
* k += 1 # <<<<<<<<<<<<<<
*/
__pyx_v_k = (__pyx_v_k + 1);
- /* "lxml/etree.pyx":1240
+ /* "lxml/etree.pyx":1241
* c_child = c_child.prev
* while c_child is not NULL:
* if _isElement(c_child): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1242
+ /* "lxml/etree.pyx":1243
* if _isElement(c_child):
* k += 1
* c_child = c_child.prev # <<<<<<<<<<<<<<
__pyx_v_c_child = __pyx_t_2;
}
- /* "lxml/etree.pyx":1243
+ /* "lxml/etree.pyx":1244
* k += 1
* c_child = c_child.prev
* return k # <<<<<<<<<<<<<<
* # check indices
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_k); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1243, __pyx_L1_error)
+ __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_k); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1244, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__pyx_r = __pyx_t_6;
__pyx_t_6 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1236
+ /* "lxml/etree.pyx":1237
*
* # handle the unbounded search straight away (normal case)
* if stop is None and (start is None or start == 0): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1246
+ /* "lxml/etree.pyx":1247
*
* # check indices
* if start is None: # <<<<<<<<<<<<<<
__pyx_t_4 = (__pyx_t_3 != 0);
if (__pyx_t_4) {
- /* "lxml/etree.pyx":1247
+ /* "lxml/etree.pyx":1248
* # check indices
* if start is None:
* c_start = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_c_start = 0;
- /* "lxml/etree.pyx":1246
+ /* "lxml/etree.pyx":1247
*
* # check indices
* if start is None: # <<<<<<<<<<<<<<
goto __pyx_L11;
}
- /* "lxml/etree.pyx":1249
+ /* "lxml/etree.pyx":1250
* c_start = 0
* else:
* c_start = start # <<<<<<<<<<<<<<
* c_stop = 0
*/
/*else*/ {
- __pyx_t_7 = __Pyx_PyIndex_AsSsize_t(__pyx_v_start); if (unlikely((__pyx_t_7 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1249, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyIndex_AsSsize_t(__pyx_v_start); if (unlikely((__pyx_t_7 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1250, __pyx_L1_error)
__pyx_v_c_start = __pyx_t_7;
}
__pyx_L11:;
- /* "lxml/etree.pyx":1250
+ /* "lxml/etree.pyx":1251
* else:
* c_start = start
* if stop is None: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_4 != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":1251
+ /* "lxml/etree.pyx":1252
* c_start = start
* if stop is None:
* c_stop = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_c_stop = 0;
- /* "lxml/etree.pyx":1250
+ /* "lxml/etree.pyx":1251
* else:
* c_start = start
* if stop is None: # <<<<<<<<<<<<<<
goto __pyx_L12;
}
- /* "lxml/etree.pyx":1253
+ /* "lxml/etree.pyx":1254
* c_stop = 0
* else:
* c_stop = stop # <<<<<<<<<<<<<<
* c_start >= c_stop and (c_stop > 0 or c_start < 0):
*/
/*else*/ {
- __pyx_t_7 = __Pyx_PyIndex_AsSsize_t(__pyx_v_stop); if (unlikely((__pyx_t_7 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1253, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyIndex_AsSsize_t(__pyx_v_stop); if (unlikely((__pyx_t_7 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1254, __pyx_L1_error)
__pyx_v_c_stop = __pyx_t_7;
- /* "lxml/etree.pyx":1254
+ /* "lxml/etree.pyx":1255
* else:
* c_stop = stop
* if c_stop == 0 or \ # <<<<<<<<<<<<<<
goto __pyx_L14_bool_binop_done;
}
- /* "lxml/etree.pyx":1255
+ /* "lxml/etree.pyx":1256
* c_stop = stop
* if c_stop == 0 or \
* c_start >= c_stop and (c_stop > 0 or c_start < 0): # <<<<<<<<<<<<<<
__pyx_t_3 = __pyx_t_4;
__pyx_L14_bool_binop_done:;
- /* "lxml/etree.pyx":1254
+ /* "lxml/etree.pyx":1255
* else:
* c_stop = stop
* if c_stop == 0 or \ # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_t_3)) {
- /* "lxml/etree.pyx":1256
+ /* "lxml/etree.pyx":1257
* if c_stop == 0 or \
* c_start >= c_stop and (c_stop > 0 or c_start < 0):
* raise ValueError, u"list.index(x): x not in slice" # <<<<<<<<<<<<<<
* # for negative slice indices, check slice before searching index
*/
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_list_index_x_x_not_in_slice, 0, 0);
- __PYX_ERR(0, 1256, __pyx_L1_error)
+ __PYX_ERR(0, 1257, __pyx_L1_error)
- /* "lxml/etree.pyx":1254
+ /* "lxml/etree.pyx":1255
* else:
* c_stop = stop
* if c_stop == 0 or \ # <<<<<<<<<<<<<<
}
__pyx_L12:;
- /* "lxml/etree.pyx":1259
+ /* "lxml/etree.pyx":1260
*
* # for negative slice indices, check slice before searching index
* if c_start < 0 or c_stop < 0: # <<<<<<<<<<<<<<
__pyx_L19_bool_binop_done:;
if (__pyx_t_3) {
- /* "lxml/etree.pyx":1261
+ /* "lxml/etree.pyx":1262
* if c_start < 0 or c_stop < 0:
* # start from right, at most up to leftmost(c_start, c_stop)
* if c_start < c_stop: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_start < __pyx_v_c_stop) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":1262
+ /* "lxml/etree.pyx":1263
* # start from right, at most up to leftmost(c_start, c_stop)
* if c_start < c_stop:
* k = -c_start # <<<<<<<<<<<<<<
*/
__pyx_v_k = (-__pyx_v_c_start);
- /* "lxml/etree.pyx":1261
+ /* "lxml/etree.pyx":1262
* if c_start < 0 or c_stop < 0:
* # start from right, at most up to leftmost(c_start, c_stop)
* if c_start < c_stop: # <<<<<<<<<<<<<<
goto __pyx_L21;
}
- /* "lxml/etree.pyx":1264
+ /* "lxml/etree.pyx":1265
* k = -c_start
* else:
* k = -c_stop # <<<<<<<<<<<<<<
}
__pyx_L21:;
- /* "lxml/etree.pyx":1265
+ /* "lxml/etree.pyx":1266
* else:
* k = -c_stop
* c_start_node = self._c_node.last # <<<<<<<<<<<<<<
__pyx_t_2 = __pyx_v_self->_c_node->last;
__pyx_v_c_start_node = __pyx_t_2;
- /* "lxml/etree.pyx":1266
+ /* "lxml/etree.pyx":1267
* k = -c_stop
* c_start_node = self._c_node.last
* l = 1 # <<<<<<<<<<<<<<
*/
__pyx_v_l = 1;
- /* "lxml/etree.pyx":1267
+ /* "lxml/etree.pyx":1268
* c_start_node = self._c_node.last
* l = 1
* while c_start_node != c_child and l < k: # <<<<<<<<<<<<<<
__pyx_L24_bool_binop_done:;
if (!__pyx_t_3) break;
- /* "lxml/etree.pyx":1268
+ /* "lxml/etree.pyx":1269
* l = 1
* while c_start_node != c_child and l < k:
* if _isElement(c_start_node): # <<<<<<<<<<<<<<
__pyx_t_3 = (_isElement(__pyx_v_c_start_node) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":1269
+ /* "lxml/etree.pyx":1270
* while c_start_node != c_child and l < k:
* if _isElement(c_start_node):
* l += 1 # <<<<<<<<<<<<<<
*/
__pyx_v_l = (__pyx_v_l + 1);
- /* "lxml/etree.pyx":1268
+ /* "lxml/etree.pyx":1269
* l = 1
* while c_start_node != c_child and l < k:
* if _isElement(c_start_node): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1270
+ /* "lxml/etree.pyx":1271
* if _isElement(c_start_node):
* l += 1
* c_start_node = c_start_node.prev # <<<<<<<<<<<<<<
__pyx_v_c_start_node = __pyx_t_2;
}
- /* "lxml/etree.pyx":1271
+ /* "lxml/etree.pyx":1272
* l += 1
* c_start_node = c_start_node.prev
* if c_start_node == c_child: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_start_node == __pyx_v_c_child) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":1273
+ /* "lxml/etree.pyx":1274
* if c_start_node == c_child:
* # found! before slice end?
* if c_stop < 0 and l <= -c_stop: # <<<<<<<<<<<<<<
__pyx_L29_bool_binop_done:;
if (unlikely(__pyx_t_3)) {
- /* "lxml/etree.pyx":1274
+ /* "lxml/etree.pyx":1275
* # found! before slice end?
* if c_stop < 0 and l <= -c_stop:
* raise ValueError, u"list.index(x): x not in slice" # <<<<<<<<<<<<<<
* raise ValueError, u"list.index(x): x not in slice"
*/
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_list_index_x_x_not_in_slice, 0, 0);
- __PYX_ERR(0, 1274, __pyx_L1_error)
+ __PYX_ERR(0, 1275, __pyx_L1_error)
- /* "lxml/etree.pyx":1273
+ /* "lxml/etree.pyx":1274
* if c_start_node == c_child:
* # found! before slice end?
* if c_stop < 0 and l <= -c_stop: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1271
+ /* "lxml/etree.pyx":1272
* l += 1
* c_start_node = c_start_node.prev
* if c_start_node == c_child: # <<<<<<<<<<<<<<
goto __pyx_L27;
}
- /* "lxml/etree.pyx":1275
+ /* "lxml/etree.pyx":1276
* if c_stop < 0 and l <= -c_stop:
* raise ValueError, u"list.index(x): x not in slice"
* elif c_start < 0: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_start < 0) != 0);
if (unlikely(__pyx_t_3)) {
- /* "lxml/etree.pyx":1276
+ /* "lxml/etree.pyx":1277
* raise ValueError, u"list.index(x): x not in slice"
* elif c_start < 0:
* raise ValueError, u"list.index(x): x not in slice" # <<<<<<<<<<<<<<
* # now determine the index backwards from child
*/
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_list_index_x_x_not_in_slice, 0, 0);
- __PYX_ERR(0, 1276, __pyx_L1_error)
+ __PYX_ERR(0, 1277, __pyx_L1_error)
- /* "lxml/etree.pyx":1275
+ /* "lxml/etree.pyx":1276
* if c_stop < 0 and l <= -c_stop:
* raise ValueError, u"list.index(x): x not in slice"
* elif c_start < 0: # <<<<<<<<<<<<<<
}
__pyx_L27:;
- /* "lxml/etree.pyx":1259
+ /* "lxml/etree.pyx":1260
*
* # for negative slice indices, check slice before searching index
* if c_start < 0 or c_stop < 0: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1279
+ /* "lxml/etree.pyx":1280
*
* # now determine the index backwards from child
* c_child = c_child.prev # <<<<<<<<<<<<<<
__pyx_t_2 = __pyx_v_c_child->prev;
__pyx_v_c_child = __pyx_t_2;
- /* "lxml/etree.pyx":1280
+ /* "lxml/etree.pyx":1281
* # now determine the index backwards from child
* c_child = c_child.prev
* k = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_k = 0;
- /* "lxml/etree.pyx":1281
+ /* "lxml/etree.pyx":1282
* c_child = c_child.prev
* k = 0
* if c_stop > 0: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_stop > 0) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":1283
+ /* "lxml/etree.pyx":1284
* if c_stop > 0:
* # we can optimize: stop after c_stop elements if not found
* while c_child != NULL and k < c_stop: # <<<<<<<<<<<<<<
__pyx_L34_bool_binop_done:;
if (!__pyx_t_3) break;
- /* "lxml/etree.pyx":1284
+ /* "lxml/etree.pyx":1285
* # we can optimize: stop after c_stop elements if not found
* while c_child != NULL and k < c_stop:
* if _isElement(c_child): # <<<<<<<<<<<<<<
__pyx_t_3 = (_isElement(__pyx_v_c_child) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":1285
+ /* "lxml/etree.pyx":1286
* while c_child != NULL and k < c_stop:
* if _isElement(c_child):
* k += 1 # <<<<<<<<<<<<<<
*/
__pyx_v_k = (__pyx_v_k + 1);
- /* "lxml/etree.pyx":1284
+ /* "lxml/etree.pyx":1285
* # we can optimize: stop after c_stop elements if not found
* while c_child != NULL and k < c_stop:
* if _isElement(c_child): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1286
+ /* "lxml/etree.pyx":1287
* if _isElement(c_child):
* k += 1
* c_child = c_child.prev # <<<<<<<<<<<<<<
__pyx_v_c_child = __pyx_t_2;
}
- /* "lxml/etree.pyx":1287
+ /* "lxml/etree.pyx":1288
* k += 1
* c_child = c_child.prev
* if k < c_stop: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_k < __pyx_v_c_stop) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":1288
+ /* "lxml/etree.pyx":1289
* c_child = c_child.prev
* if k < c_stop:
* return k # <<<<<<<<<<<<<<
* # traverse all
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_k); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1288, __pyx_L1_error)
+ __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_k); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1289, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__pyx_r = __pyx_t_6;
__pyx_t_6 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1287
+ /* "lxml/etree.pyx":1288
* k += 1
* c_child = c_child.prev
* if k < c_stop: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1281
+ /* "lxml/etree.pyx":1282
* c_child = c_child.prev
* k = 0
* if c_stop > 0: # <<<<<<<<<<<<<<
goto __pyx_L31;
}
- /* "lxml/etree.pyx":1291
+ /* "lxml/etree.pyx":1292
* else:
* # traverse all
* while c_child != NULL: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_child != NULL) != 0);
if (!__pyx_t_3) break;
- /* "lxml/etree.pyx":1292
+ /* "lxml/etree.pyx":1293
* # traverse all
* while c_child != NULL:
* if _isElement(c_child): # <<<<<<<<<<<<<<
__pyx_t_3 = (_isElement(__pyx_v_c_child) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":1293
+ /* "lxml/etree.pyx":1294
* while c_child != NULL:
* if _isElement(c_child):
* k = k + 1 # <<<<<<<<<<<<<<
*/
__pyx_v_k = (__pyx_v_k + 1);
- /* "lxml/etree.pyx":1292
+ /* "lxml/etree.pyx":1293
* # traverse all
* while c_child != NULL:
* if _isElement(c_child): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1294
+ /* "lxml/etree.pyx":1295
* if _isElement(c_child):
* k = k + 1
* c_child = c_child.prev # <<<<<<<<<<<<<<
__pyx_v_c_child = __pyx_t_2;
}
- /* "lxml/etree.pyx":1295
+ /* "lxml/etree.pyx":1296
* k = k + 1
* c_child = c_child.prev
* if c_start > 0: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_start > 0) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":1296
+ /* "lxml/etree.pyx":1297
* c_child = c_child.prev
* if c_start > 0:
* if k >= c_start: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_k >= __pyx_v_c_start) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":1297
+ /* "lxml/etree.pyx":1298
* if c_start > 0:
* if k >= c_start:
* return k # <<<<<<<<<<<<<<
* return k
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_k); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1297, __pyx_L1_error)
+ __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_k); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1298, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__pyx_r = __pyx_t_6;
__pyx_t_6 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1296
+ /* "lxml/etree.pyx":1297
* c_child = c_child.prev
* if c_start > 0:
* if k >= c_start: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1295
+ /* "lxml/etree.pyx":1296
* k = k + 1
* c_child = c_child.prev
* if c_start > 0: # <<<<<<<<<<<<<<
goto __pyx_L41;
}
- /* "lxml/etree.pyx":1299
+ /* "lxml/etree.pyx":1300
* return k
* else:
* return k # <<<<<<<<<<<<<<
*/
/*else*/ {
__Pyx_XDECREF(__pyx_r);
- __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_k); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1299, __pyx_L1_error)
+ __pyx_t_6 = PyInt_FromSsize_t(__pyx_v_k); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1300, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__pyx_r = __pyx_t_6;
__pyx_t_6 = 0;
}
__pyx_L31:;
- /* "lxml/etree.pyx":1300
+ /* "lxml/etree.pyx":1301
* else:
* return k
* if c_start != 0 or c_stop != 0: # <<<<<<<<<<<<<<
__pyx_L44_bool_binop_done:;
if (unlikely(__pyx_t_3)) {
- /* "lxml/etree.pyx":1301
+ /* "lxml/etree.pyx":1302
* return k
* if c_start != 0 or c_stop != 0:
* raise ValueError, u"list.index(x): x not in slice" # <<<<<<<<<<<<<<
* raise ValueError, u"list.index(x): x not in list"
*/
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_list_index_x_x_not_in_slice, 0, 0);
- __PYX_ERR(0, 1301, __pyx_L1_error)
+ __PYX_ERR(0, 1302, __pyx_L1_error)
- /* "lxml/etree.pyx":1300
+ /* "lxml/etree.pyx":1301
* else:
* return k
* if c_start != 0 or c_stop != 0: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1303
+ /* "lxml/etree.pyx":1304
* raise ValueError, u"list.index(x): x not in slice"
* else:
* raise ValueError, u"list.index(x): x not in list" # <<<<<<<<<<<<<<
*/
/*else*/ {
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_list_index_x_x_not_in_list, 0, 0);
- __PYX_ERR(0, 1303, __pyx_L1_error)
+ __PYX_ERR(0, 1304, __pyx_L1_error)
}
- /* "lxml/etree.pyx":1218
+ /* "lxml/etree.pyx":1219
* return ElementChildIterator(self, reversed=True)
*
* def index(self, _Element child not None, start: int = None, stop: int = None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1305
+/* "lxml/etree.pyx":1306
* raise ValueError, u"list.index(x): x not in list"
*
* def get(self, key, default=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "get") < 0)) __PYX_ERR(0, 1305, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "get") < 0)) __PYX_ERR(0, 1306, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("get", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1305, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("get", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1306, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._Element.get", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("get", 0);
- /* "lxml/etree.pyx":1310
+ /* "lxml/etree.pyx":1311
* Gets an element attribute.
* """
* _assertValidNode(self) # <<<<<<<<<<<<<<
* return _getAttributeValue(self, key, default)
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1310, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1311, __pyx_L1_error)
- /* "lxml/etree.pyx":1311
+ /* "lxml/etree.pyx":1312
* """
* _assertValidNode(self)
* return _getAttributeValue(self, key, default) # <<<<<<<<<<<<<<
* def keys(self):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __pyx_f_4lxml_5etree__getAttributeValue(__pyx_v_self, __pyx_v_key, __pyx_v_default); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1311, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__getAttributeValue(__pyx_v_self, __pyx_v_key, __pyx_v_default); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1312, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1305
+ /* "lxml/etree.pyx":1306
* raise ValueError, u"list.index(x): x not in list"
*
* def get(self, key, default=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1313
+/* "lxml/etree.pyx":1314
* return _getAttributeValue(self, key, default)
*
* def keys(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("keys", 0);
- /* "lxml/etree.pyx":1319
+ /* "lxml/etree.pyx":1320
* arbitrary order (just like for an ordinary Python dictionary).
* """
* _assertValidNode(self) # <<<<<<<<<<<<<<
* return _collectAttributes(self._c_node, 1)
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1319, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1320, __pyx_L1_error)
- /* "lxml/etree.pyx":1320
+ /* "lxml/etree.pyx":1321
* """
* _assertValidNode(self)
* return _collectAttributes(self._c_node, 1) # <<<<<<<<<<<<<<
* def values(self):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_c_node, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1320, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_c_node, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1321, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1313
+ /* "lxml/etree.pyx":1314
* return _getAttributeValue(self, key, default)
*
* def keys(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1322
+/* "lxml/etree.pyx":1323
* return _collectAttributes(self._c_node, 1)
*
* def values(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("values", 0);
- /* "lxml/etree.pyx":1328
+ /* "lxml/etree.pyx":1329
* attributes are returned in an arbitrary order.
* """
* _assertValidNode(self) # <<<<<<<<<<<<<<
* return _collectAttributes(self._c_node, 2)
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1328, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1329, __pyx_L1_error)
- /* "lxml/etree.pyx":1329
+ /* "lxml/etree.pyx":1330
* """
* _assertValidNode(self)
* return _collectAttributes(self._c_node, 2) # <<<<<<<<<<<<<<
* def items(self):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_c_node, 2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1329, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_c_node, 2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1330, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1322
+ /* "lxml/etree.pyx":1323
* return _collectAttributes(self._c_node, 1)
*
* def values(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1331
+/* "lxml/etree.pyx":1332
* return _collectAttributes(self._c_node, 2)
*
* def items(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("items", 0);
- /* "lxml/etree.pyx":1337
+ /* "lxml/etree.pyx":1338
* an arbitrary order.
* """
* _assertValidNode(self) # <<<<<<<<<<<<<<
* return _collectAttributes(self._c_node, 3)
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1337, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1338, __pyx_L1_error)
- /* "lxml/etree.pyx":1338
+ /* "lxml/etree.pyx":1339
* """
* _assertValidNode(self)
* return _collectAttributes(self._c_node, 3) # <<<<<<<<<<<<<<
* def getchildren(self):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_c_node, 3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1338, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_c_node, 3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1339, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1331
+ /* "lxml/etree.pyx":1332
* return _collectAttributes(self._c_node, 2)
*
* def items(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1340
+/* "lxml/etree.pyx":1341
* return _collectAttributes(self._c_node, 3)
*
* def getchildren(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("getchildren", 0);
- /* "lxml/etree.pyx":1350
+ /* "lxml/etree.pyx":1351
* ``list(element)`` or simply iterate over elements.
* """
* _assertValidNode(self) # <<<<<<<<<<<<<<
* return _collectChildren(self)
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1350, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1351, __pyx_L1_error)
- /* "lxml/etree.pyx":1351
+ /* "lxml/etree.pyx":1352
* """
* _assertValidNode(self)
* return _collectChildren(self) # <<<<<<<<<<<<<<
* def getparent(self):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __pyx_f_4lxml_5etree__collectChildren(__pyx_v_self); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1351, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__collectChildren(__pyx_v_self); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1352, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1340
+ /* "lxml/etree.pyx":1341
* return _collectAttributes(self._c_node, 3)
*
* def getchildren(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1353
+/* "lxml/etree.pyx":1354
* return _collectChildren(self)
*
* def getparent(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("getparent", 0);
- /* "lxml/etree.pyx":1360
+ /* "lxml/etree.pyx":1361
* cdef xmlNode* c_node
* #_assertValidNode(self) # not needed
* c_node = _parentElement(self._c_node) # <<<<<<<<<<<<<<
*/
__pyx_v_c_node = __pyx_f_4lxml_5etree__parentElement(__pyx_v_self->_c_node);
- /* "lxml/etree.pyx":1361
+ /* "lxml/etree.pyx":1362
* #_assertValidNode(self) # not needed
* c_node = _parentElement(self._c_node)
* if c_node is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_node == NULL) != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":1362
+ /* "lxml/etree.pyx":1363
* c_node = _parentElement(self._c_node)
* if c_node is NULL:
* return None # <<<<<<<<<<<<<<
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
- /* "lxml/etree.pyx":1361
+ /* "lxml/etree.pyx":1362
* #_assertValidNode(self) # not needed
* c_node = _parentElement(self._c_node)
* if c_node is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1363
+ /* "lxml/etree.pyx":1364
* if c_node is NULL:
* return None
* return _elementFactory(self._doc, c_node) # <<<<<<<<<<<<<<
__Pyx_XDECREF(__pyx_r);
__pyx_t_2 = ((PyObject *)__pyx_v_self->_doc);
__Pyx_INCREF(__pyx_t_2);
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(((struct LxmlDocument *)__pyx_t_2), __pyx_v_c_node)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1363, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(((struct LxmlDocument *)__pyx_t_2), __pyx_v_c_node)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1364, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1353
+ /* "lxml/etree.pyx":1354
* return _collectChildren(self)
*
* def getparent(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1365
+/* "lxml/etree.pyx":1366
* return _elementFactory(self._doc, c_node)
*
* def getnext(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("getnext", 0);
- /* "lxml/etree.pyx":1372
+ /* "lxml/etree.pyx":1373
* cdef xmlNode* c_node
* #_assertValidNode(self) # not needed
* c_node = _nextElement(self._c_node) # <<<<<<<<<<<<<<
*/
__pyx_v_c_node = __pyx_f_4lxml_5etree__nextElement(__pyx_v_self->_c_node);
- /* "lxml/etree.pyx":1373
+ /* "lxml/etree.pyx":1374
* #_assertValidNode(self) # not needed
* c_node = _nextElement(self._c_node)
* if c_node is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_node == NULL) != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":1374
+ /* "lxml/etree.pyx":1375
* c_node = _nextElement(self._c_node)
* if c_node is NULL:
* return None # <<<<<<<<<<<<<<
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
- /* "lxml/etree.pyx":1373
+ /* "lxml/etree.pyx":1374
* #_assertValidNode(self) # not needed
* c_node = _nextElement(self._c_node)
* if c_node is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1375
+ /* "lxml/etree.pyx":1376
* if c_node is NULL:
* return None
* return _elementFactory(self._doc, c_node) # <<<<<<<<<<<<<<
__Pyx_XDECREF(__pyx_r);
__pyx_t_2 = ((PyObject *)__pyx_v_self->_doc);
__Pyx_INCREF(__pyx_t_2);
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(((struct LxmlDocument *)__pyx_t_2), __pyx_v_c_node)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1375, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(((struct LxmlDocument *)__pyx_t_2), __pyx_v_c_node)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1376, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1365
+ /* "lxml/etree.pyx":1366
* return _elementFactory(self._doc, c_node)
*
* def getnext(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1377
+/* "lxml/etree.pyx":1378
* return _elementFactory(self._doc, c_node)
*
* def getprevious(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("getprevious", 0);
- /* "lxml/etree.pyx":1384
+ /* "lxml/etree.pyx":1385
* cdef xmlNode* c_node
* #_assertValidNode(self) # not needed
* c_node = _previousElement(self._c_node) # <<<<<<<<<<<<<<
*/
__pyx_v_c_node = __pyx_f_4lxml_5etree__previousElement(__pyx_v_self->_c_node);
- /* "lxml/etree.pyx":1385
+ /* "lxml/etree.pyx":1386
* #_assertValidNode(self) # not needed
* c_node = _previousElement(self._c_node)
* if c_node is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_node == NULL) != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":1386
+ /* "lxml/etree.pyx":1387
* c_node = _previousElement(self._c_node)
* if c_node is NULL:
* return None # <<<<<<<<<<<<<<
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
- /* "lxml/etree.pyx":1385
+ /* "lxml/etree.pyx":1386
* #_assertValidNode(self) # not needed
* c_node = _previousElement(self._c_node)
* if c_node is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1387
+ /* "lxml/etree.pyx":1388
* if c_node is NULL:
* return None
* return _elementFactory(self._doc, c_node) # <<<<<<<<<<<<<<
__Pyx_XDECREF(__pyx_r);
__pyx_t_2 = ((PyObject *)__pyx_v_self->_doc);
__Pyx_INCREF(__pyx_t_2);
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(((struct LxmlDocument *)__pyx_t_2), __pyx_v_c_node)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1387, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(((struct LxmlDocument *)__pyx_t_2), __pyx_v_c_node)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1388, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1377
+ /* "lxml/etree.pyx":1378
* return _elementFactory(self._doc, c_node)
*
* def getprevious(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1389
+/* "lxml/etree.pyx":1390
* return _elementFactory(self._doc, c_node)
*
* def itersiblings(self, tag=None, *tags, preceding=False): # <<<<<<<<<<<<<<
}
if (unlikely(kw_args > 0)) {
const Py_ssize_t used_pos_args = (pos_args < 1) ? pos_args : 1;
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, used_pos_args, "itersiblings") < 0)) __PYX_ERR(0, 1389, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, used_pos_args, "itersiblings") < 0)) __PYX_ERR(0, 1390, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
__Pyx_RefNannySetupContext("itersiblings", 0);
__Pyx_INCREF(__pyx_v_tags);
- /* "lxml/etree.pyx":1403
+ /* "lxml/etree.pyx":1404
* see `iter`.
* """
* if preceding: # <<<<<<<<<<<<<<
* if self._c_node and not self._c_node.prev:
* return ITER_EMPTY
*/
- __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_preceding); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 1403, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_preceding); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 1404, __pyx_L1_error)
if (__pyx_t_1) {
- /* "lxml/etree.pyx":1404
+ /* "lxml/etree.pyx":1405
* """
* if preceding:
* if self._c_node and not self._c_node.prev: # <<<<<<<<<<<<<<
__pyx_L5_bool_binop_done:;
if (__pyx_t_1) {
- /* "lxml/etree.pyx":1405
+ /* "lxml/etree.pyx":1406
* if preceding:
* if self._c_node and not self._c_node.prev:
* return ITER_EMPTY # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_4lxml_5etree_ITER_EMPTY;
goto __pyx_L0;
- /* "lxml/etree.pyx":1404
+ /* "lxml/etree.pyx":1405
* """
* if preceding:
* if self._c_node and not self._c_node.prev: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1403
+ /* "lxml/etree.pyx":1404
* see `iter`.
* """
* if preceding: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":1406
+ /* "lxml/etree.pyx":1407
* if self._c_node and not self._c_node.prev:
* return ITER_EMPTY
* elif self._c_node and not self._c_node.next: # <<<<<<<<<<<<<<
__pyx_L7_bool_binop_done:;
if (__pyx_t_1) {
- /* "lxml/etree.pyx":1407
+ /* "lxml/etree.pyx":1408
* return ITER_EMPTY
* elif self._c_node and not self._c_node.next:
* return ITER_EMPTY # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_4lxml_5etree_ITER_EMPTY;
goto __pyx_L0;
- /* "lxml/etree.pyx":1406
+ /* "lxml/etree.pyx":1407
* if self._c_node and not self._c_node.prev:
* return ITER_EMPTY
* elif self._c_node and not self._c_node.next: # <<<<<<<<<<<<<<
}
__pyx_L3:;
- /* "lxml/etree.pyx":1408
+ /* "lxml/etree.pyx":1409
* elif self._c_node and not self._c_node.next:
* return ITER_EMPTY
* if tag is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1409
+ /* "lxml/etree.pyx":1410
* return ITER_EMPTY
* if tag is not None:
* tags += (tag,) # <<<<<<<<<<<<<<
* return SiblingsIterator(self, tags, preceding=preceding)
*
*/
- __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1409, __pyx_L1_error)
+ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1410, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_INCREF(__pyx_v_tag);
__Pyx_GIVEREF(__pyx_v_tag);
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_tag);
- __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_tags, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1409, __pyx_L1_error)
+ __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_tags, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1410, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF_SET(__pyx_v_tags, ((PyObject*)__pyx_t_4));
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":1408
+ /* "lxml/etree.pyx":1409
* elif self._c_node and not self._c_node.next:
* return ITER_EMPTY
* if tag is not None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1410
+ /* "lxml/etree.pyx":1411
* if tag is not None:
* tags += (tag,)
* return SiblingsIterator(self, tags, preceding=preceding) # <<<<<<<<<<<<<<
* def iterancestors(self, tag=None, *tags):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1410, __pyx_L1_error)
+ __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1411, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_INCREF(((PyObject *)__pyx_v_self));
__Pyx_GIVEREF(((PyObject *)__pyx_v_self));
__Pyx_INCREF(__pyx_v_tags);
__Pyx_GIVEREF(__pyx_v_tags);
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_tags);
- __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1410, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1411, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_preceding, __pyx_v_preceding) < 0) __PYX_ERR(0, 1410, __pyx_L1_error)
- __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_SiblingsIterator), __pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1410, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_preceding, __pyx_v_preceding) < 0) __PYX_ERR(0, 1411, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_SiblingsIterator), __pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1411, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_5 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1389
+ /* "lxml/etree.pyx":1390
* return _elementFactory(self._doc, c_node)
*
* def itersiblings(self, tag=None, *tags, preceding=False): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1412
+/* "lxml/etree.pyx":1413
* return SiblingsIterator(self, tags, preceding=preceding)
*
* def iterancestors(self, tag=None, *tags): # <<<<<<<<<<<<<<
}
if (unlikely(kw_args > 0)) {
const Py_ssize_t used_pos_args = (pos_args < 1) ? pos_args : 1;
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, used_pos_args, "iterancestors") < 0)) __PYX_ERR(0, 1412, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, used_pos_args, "iterancestors") < 0)) __PYX_ERR(0, 1413, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
__Pyx_RefNannySetupContext("iterancestors", 0);
__Pyx_INCREF(__pyx_v_tags);
- /* "lxml/etree.pyx":1420
+ /* "lxml/etree.pyx":1421
* see `iter`.
* """
* if self._c_node and not self._c_node.parent: # <<<<<<<<<<<<<<
__pyx_L4_bool_binop_done:;
if (__pyx_t_1) {
- /* "lxml/etree.pyx":1421
+ /* "lxml/etree.pyx":1422
* """
* if self._c_node and not self._c_node.parent:
* return ITER_EMPTY # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_4lxml_5etree_ITER_EMPTY;
goto __pyx_L0;
- /* "lxml/etree.pyx":1420
+ /* "lxml/etree.pyx":1421
* see `iter`.
* """
* if self._c_node and not self._c_node.parent: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1422
+ /* "lxml/etree.pyx":1423
* if self._c_node and not self._c_node.parent:
* return ITER_EMPTY
* if tag is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1423
+ /* "lxml/etree.pyx":1424
* return ITER_EMPTY
* if tag is not None:
* tags += (tag,) # <<<<<<<<<<<<<<
* return AncestorsIterator(self, tags)
*
*/
- __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1423, __pyx_L1_error)
+ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1424, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_INCREF(__pyx_v_tag);
__Pyx_GIVEREF(__pyx_v_tag);
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_tag);
- __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_tags, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1423, __pyx_L1_error)
+ __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_tags, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1424, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF_SET(__pyx_v_tags, ((PyObject*)__pyx_t_4));
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":1422
+ /* "lxml/etree.pyx":1423
* if self._c_node and not self._c_node.parent:
* return ITER_EMPTY
* if tag is not None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1424
+ /* "lxml/etree.pyx":1425
* if tag is not None:
* tags += (tag,)
* return AncestorsIterator(self, tags) # <<<<<<<<<<<<<<
* def iterdescendants(self, tag=None, *tags):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1424, __pyx_L1_error)
+ __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1425, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_INCREF(((PyObject *)__pyx_v_self));
__Pyx_GIVEREF(((PyObject *)__pyx_v_self));
__Pyx_INCREF(__pyx_v_tags);
__Pyx_GIVEREF(__pyx_v_tags);
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_tags);
- __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_AncestorsIterator), __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1424, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_AncestorsIterator), __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1425, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1412
+ /* "lxml/etree.pyx":1413
* return SiblingsIterator(self, tags, preceding=preceding)
*
* def iterancestors(self, tag=None, *tags): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1426
+/* "lxml/etree.pyx":1427
* return AncestorsIterator(self, tags)
*
* def iterdescendants(self, tag=None, *tags): # <<<<<<<<<<<<<<
}
if (unlikely(kw_args > 0)) {
const Py_ssize_t used_pos_args = (pos_args < 1) ? pos_args : 1;
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, used_pos_args, "iterdescendants") < 0)) __PYX_ERR(0, 1426, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, used_pos_args, "iterdescendants") < 0)) __PYX_ERR(0, 1427, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
__Pyx_RefNannySetupContext("iterdescendants", 0);
__Pyx_INCREF(__pyx_v_tags);
- /* "lxml/etree.pyx":1435
+ /* "lxml/etree.pyx":1436
* with specific tags, see `iter`.
* """
* if self._c_node and not self._c_node.children: # <<<<<<<<<<<<<<
__pyx_L4_bool_binop_done:;
if (__pyx_t_1) {
- /* "lxml/etree.pyx":1436
+ /* "lxml/etree.pyx":1437
* """
* if self._c_node and not self._c_node.children:
* return ITER_EMPTY # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_4lxml_5etree_ITER_EMPTY;
goto __pyx_L0;
- /* "lxml/etree.pyx":1435
+ /* "lxml/etree.pyx":1436
* with specific tags, see `iter`.
* """
* if self._c_node and not self._c_node.children: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1437
+ /* "lxml/etree.pyx":1438
* if self._c_node and not self._c_node.children:
* return ITER_EMPTY
* if tag is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1438
+ /* "lxml/etree.pyx":1439
* return ITER_EMPTY
* if tag is not None:
* tags += (tag,) # <<<<<<<<<<<<<<
* return ElementDepthFirstIterator(self, tags, inclusive=False)
*
*/
- __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1438, __pyx_L1_error)
+ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1439, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_INCREF(__pyx_v_tag);
__Pyx_GIVEREF(__pyx_v_tag);
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_tag);
- __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_tags, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1438, __pyx_L1_error)
+ __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_tags, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1439, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF_SET(__pyx_v_tags, ((PyObject*)__pyx_t_4));
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":1437
+ /* "lxml/etree.pyx":1438
* if self._c_node and not self._c_node.children:
* return ITER_EMPTY
* if tag is not None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1439
+ /* "lxml/etree.pyx":1440
* if tag is not None:
* tags += (tag,)
* return ElementDepthFirstIterator(self, tags, inclusive=False) # <<<<<<<<<<<<<<
* def iterchildren(self, tag=None, *tags, reversed=False):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1439, __pyx_L1_error)
+ __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1440, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_INCREF(((PyObject *)__pyx_v_self));
__Pyx_GIVEREF(((PyObject *)__pyx_v_self));
__Pyx_INCREF(__pyx_v_tags);
__Pyx_GIVEREF(__pyx_v_tags);
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_tags);
- __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1439, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1440, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_inclusive, Py_False) < 0) __PYX_ERR(0, 1439, __pyx_L1_error)
- __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_ElementDepthFirstIterator), __pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1439, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_inclusive, Py_False) < 0) __PYX_ERR(0, 1440, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_ElementDepthFirstIterator), __pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1440, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_5 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1426
+ /* "lxml/etree.pyx":1427
* return AncestorsIterator(self, tags)
*
* def iterdescendants(self, tag=None, *tags): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1441
+/* "lxml/etree.pyx":1442
* return ElementDepthFirstIterator(self, tags, inclusive=False)
*
* def iterchildren(self, tag=None, *tags, reversed=False): # <<<<<<<<<<<<<<
}
if (unlikely(kw_args > 0)) {
const Py_ssize_t used_pos_args = (pos_args < 1) ? pos_args : 1;
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, used_pos_args, "iterchildren") < 0)) __PYX_ERR(0, 1441, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, used_pos_args, "iterchildren") < 0)) __PYX_ERR(0, 1442, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
__Pyx_RefNannySetupContext("iterchildren", 0);
__Pyx_INCREF(__pyx_v_tags);
- /* "lxml/etree.pyx":1450
+ /* "lxml/etree.pyx":1451
* to find only elements with specific tags, see `iter`.
* """
* if self._c_node and not self._c_node.children: # <<<<<<<<<<<<<<
__pyx_L4_bool_binop_done:;
if (__pyx_t_1) {
- /* "lxml/etree.pyx":1451
+ /* "lxml/etree.pyx":1452
* """
* if self._c_node and not self._c_node.children:
* return ITER_EMPTY # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_4lxml_5etree_ITER_EMPTY;
goto __pyx_L0;
- /* "lxml/etree.pyx":1450
+ /* "lxml/etree.pyx":1451
* to find only elements with specific tags, see `iter`.
* """
* if self._c_node and not self._c_node.children: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1452
+ /* "lxml/etree.pyx":1453
* if self._c_node and not self._c_node.children:
* return ITER_EMPTY
* if tag is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1453
+ /* "lxml/etree.pyx":1454
* return ITER_EMPTY
* if tag is not None:
* tags += (tag,) # <<<<<<<<<<<<<<
* return ElementChildIterator(self, tags, reversed=reversed)
*
*/
- __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1453, __pyx_L1_error)
+ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1454, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_INCREF(__pyx_v_tag);
__Pyx_GIVEREF(__pyx_v_tag);
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_tag);
- __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_tags, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1453, __pyx_L1_error)
+ __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_tags, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1454, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF_SET(__pyx_v_tags, ((PyObject*)__pyx_t_4));
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":1452
+ /* "lxml/etree.pyx":1453
* if self._c_node and not self._c_node.children:
* return ITER_EMPTY
* if tag is not None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1454
+ /* "lxml/etree.pyx":1455
* if tag is not None:
* tags += (tag,)
* return ElementChildIterator(self, tags, reversed=reversed) # <<<<<<<<<<<<<<
* def getroottree(self):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1454, __pyx_L1_error)
+ __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1455, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_INCREF(((PyObject *)__pyx_v_self));
__Pyx_GIVEREF(((PyObject *)__pyx_v_self));
__Pyx_INCREF(__pyx_v_tags);
__Pyx_GIVEREF(__pyx_v_tags);
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_tags);
- __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1454, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1455, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_reversed, __pyx_v_reversed) < 0) __PYX_ERR(0, 1454, __pyx_L1_error)
- __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_ElementChildIterator), __pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1454, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_reversed, __pyx_v_reversed) < 0) __PYX_ERR(0, 1455, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_ElementChildIterator), __pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1455, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_5 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1441
+ /* "lxml/etree.pyx":1442
* return ElementDepthFirstIterator(self, tags, inclusive=False)
*
* def iterchildren(self, tag=None, *tags, reversed=False): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1456
+/* "lxml/etree.pyx":1457
* return ElementChildIterator(self, tags, reversed=reversed)
*
* def getroottree(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("getroottree", 0);
- /* "lxml/etree.pyx":1465
+ /* "lxml/etree.pyx":1466
* returns None (for the root element) and then build an ElementTree for
* the last parent that was returned."""
* _assertValidDoc(self._doc) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_doc);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidDoc(((struct LxmlDocument *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1465, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidDoc(((struct LxmlDocument *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1466, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":1466
+ /* "lxml/etree.pyx":1467
* the last parent that was returned."""
* _assertValidDoc(self._doc)
* return _elementTreeFactory(self._doc, None) # <<<<<<<<<<<<<<
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = ((PyObject *)__pyx_v_self->_doc);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__elementTreeFactory(((struct LxmlDocument *)__pyx_t_1), ((struct LxmlElement *)Py_None))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1466, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__elementTreeFactory(((struct LxmlDocument *)__pyx_t_1), ((struct LxmlElement *)Py_None))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1467, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1456
+ /* "lxml/etree.pyx":1457
* return ElementChildIterator(self, tags, reversed=reversed)
*
* def getroottree(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1468
+/* "lxml/etree.pyx":1469
* return _elementTreeFactory(self._doc, None)
*
* def getiterator(self, tag=None, *tags): # <<<<<<<<<<<<<<
}
if (unlikely(kw_args > 0)) {
const Py_ssize_t used_pos_args = (pos_args < 1) ? pos_args : 1;
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, used_pos_args, "getiterator") < 0)) __PYX_ERR(0, 1468, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, used_pos_args, "getiterator") < 0)) __PYX_ERR(0, 1469, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
__Pyx_RefNannySetupContext("getiterator", 0);
__Pyx_INCREF(__pyx_v_tags);
- /* "lxml/etree.pyx":1486
+ /* "lxml/etree.pyx":1487
* with older versions of lxml or ElementTree.
* """
* if tag is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1487
+ /* "lxml/etree.pyx":1488
* """
* if tag is not None:
* tags += (tag,) # <<<<<<<<<<<<<<
* return ElementDepthFirstIterator(self, tags)
*
*/
- __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1487, __pyx_L1_error)
+ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1488, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_INCREF(__pyx_v_tag);
__Pyx_GIVEREF(__pyx_v_tag);
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_tag);
- __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_tags, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1487, __pyx_L1_error)
+ __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_tags, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1488, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF_SET(__pyx_v_tags, ((PyObject*)__pyx_t_4));
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":1486
+ /* "lxml/etree.pyx":1487
* with older versions of lxml or ElementTree.
* """
* if tag is not None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1488
+ /* "lxml/etree.pyx":1489
* if tag is not None:
* tags += (tag,)
* return ElementDepthFirstIterator(self, tags) # <<<<<<<<<<<<<<
* def iter(self, tag=None, *tags):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1488, __pyx_L1_error)
+ __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1489, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_INCREF(((PyObject *)__pyx_v_self));
__Pyx_GIVEREF(((PyObject *)__pyx_v_self));
__Pyx_INCREF(__pyx_v_tags);
__Pyx_GIVEREF(__pyx_v_tags);
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_tags);
- __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_ElementDepthFirstIterator), __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1488, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_ElementDepthFirstIterator), __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1489, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1468
+ /* "lxml/etree.pyx":1469
* return _elementTreeFactory(self._doc, None)
*
* def getiterator(self, tag=None, *tags): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1490
+/* "lxml/etree.pyx":1491
* return ElementDepthFirstIterator(self, tags)
*
* def iter(self, tag=None, *tags): # <<<<<<<<<<<<<<
}
if (unlikely(kw_args > 0)) {
const Py_ssize_t used_pos_args = (pos_args < 1) ? pos_args : 1;
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, used_pos_args, "iter") < 0)) __PYX_ERR(0, 1490, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, used_pos_args, "iter") < 0)) __PYX_ERR(0, 1491, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
__Pyx_RefNannySetupContext("iter", 0);
__Pyx_INCREF(__pyx_v_tags);
- /* "lxml/etree.pyx":1510
+ /* "lxml/etree.pyx":1511
* in document order.
* """
* if tag is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1511
+ /* "lxml/etree.pyx":1512
* """
* if tag is not None:
* tags += (tag,) # <<<<<<<<<<<<<<
* return ElementDepthFirstIterator(self, tags)
*
*/
- __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1511, __pyx_L1_error)
+ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1512, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_INCREF(__pyx_v_tag);
__Pyx_GIVEREF(__pyx_v_tag);
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_tag);
- __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_tags, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1511, __pyx_L1_error)
+ __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_tags, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1512, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF_SET(__pyx_v_tags, ((PyObject*)__pyx_t_4));
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":1510
+ /* "lxml/etree.pyx":1511
* in document order.
* """
* if tag is not None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1512
+ /* "lxml/etree.pyx":1513
* if tag is not None:
* tags += (tag,)
* return ElementDepthFirstIterator(self, tags) # <<<<<<<<<<<<<<
* def itertext(self, tag=None, *tags, with_tail=True):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1512, __pyx_L1_error)
+ __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1513, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_INCREF(((PyObject *)__pyx_v_self));
__Pyx_GIVEREF(((PyObject *)__pyx_v_self));
__Pyx_INCREF(__pyx_v_tags);
__Pyx_GIVEREF(__pyx_v_tags);
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_tags);
- __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_ElementDepthFirstIterator), __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1512, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_ElementDepthFirstIterator), __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1513, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1490
+ /* "lxml/etree.pyx":1491
* return ElementDepthFirstIterator(self, tags)
*
* def iter(self, tag=None, *tags): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1514
+/* "lxml/etree.pyx":1515
* return ElementDepthFirstIterator(self, tags)
*
* def itertext(self, tag=None, *tags, with_tail=True): # <<<<<<<<<<<<<<
}
if (unlikely(kw_args > 0)) {
const Py_ssize_t used_pos_args = (pos_args < 1) ? pos_args : 1;
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, used_pos_args, "itertext") < 0)) __PYX_ERR(0, 1514, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, used_pos_args, "itertext") < 0)) __PYX_ERR(0, 1515, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
__Pyx_RefNannySetupContext("itertext", 0);
__Pyx_INCREF(__pyx_v_tags);
- /* "lxml/etree.pyx":1525
+ /* "lxml/etree.pyx":1526
* over tail text.
* """
* if tag is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1526
+ /* "lxml/etree.pyx":1527
* """
* if tag is not None:
* tags += (tag,) # <<<<<<<<<<<<<<
* return ElementTextIterator(self, tags, with_tail=with_tail)
*
*/
- __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1526, __pyx_L1_error)
+ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1527, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_INCREF(__pyx_v_tag);
__Pyx_GIVEREF(__pyx_v_tag);
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_tag);
- __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_tags, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1526, __pyx_L1_error)
+ __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_tags, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1527, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF_SET(__pyx_v_tags, ((PyObject*)__pyx_t_4));
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":1525
+ /* "lxml/etree.pyx":1526
* over tail text.
* """
* if tag is not None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1527
+ /* "lxml/etree.pyx":1528
* if tag is not None:
* tags += (tag,)
* return ElementTextIterator(self, tags, with_tail=with_tail) # <<<<<<<<<<<<<<
* def makeelement(self, _tag, attrib=None, nsmap=None, **_extra):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1527, __pyx_L1_error)
+ __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1528, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_INCREF(((PyObject *)__pyx_v_self));
__Pyx_GIVEREF(((PyObject *)__pyx_v_self));
__Pyx_INCREF(__pyx_v_tags);
__Pyx_GIVEREF(__pyx_v_tags);
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_tags);
- __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1527, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1528, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_with_tail, __pyx_v_with_tail) < 0) __PYX_ERR(0, 1527, __pyx_L1_error)
- __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_ElementTextIterator), __pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1527, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_with_tail, __pyx_v_with_tail) < 0) __PYX_ERR(0, 1528, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_ElementTextIterator), __pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1528, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_5 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1514
+ /* "lxml/etree.pyx":1515
* return ElementDepthFirstIterator(self, tags)
*
* def itertext(self, tag=None, *tags, with_tail=True): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1529
+/* "lxml/etree.pyx":1530
* return ElementTextIterator(self, tags, with_tail=with_tail)
*
* def makeelement(self, _tag, attrib=None, nsmap=None, **_extra): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v__extra, values, pos_args, "makeelement") < 0)) __PYX_ERR(0, 1529, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v__extra, values, pos_args, "makeelement") < 0)) __PYX_ERR(0, 1530, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("makeelement", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1529, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("makeelement", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1530, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_DECREF(__pyx_v__extra); __pyx_v__extra = 0;
__Pyx_AddTraceback("lxml.etree._Element.makeelement", __pyx_clineno, __pyx_lineno, __pyx_filename);
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("makeelement", 0);
- /* "lxml/etree.pyx":1534
+ /* "lxml/etree.pyx":1535
* Creates a new element associated with the same document.
* """
* _assertValidDoc(self._doc) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_doc);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidDoc(((struct LxmlDocument *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1534, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidDoc(((struct LxmlDocument *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 1535, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":1535
+ /* "lxml/etree.pyx":1536
* """
* _assertValidDoc(self._doc)
* return _makeElement(_tag, NULL, self._doc, None, None, None, # <<<<<<<<<<<<<<
__pyx_t_1 = ((PyObject *)__pyx_v_self->_doc);
__Pyx_INCREF(__pyx_t_1);
- /* "lxml/etree.pyx":1536
+ /* "lxml/etree.pyx":1537
* _assertValidDoc(self._doc)
* return _makeElement(_tag, NULL, self._doc, None, None, None,
* attrib, nsmap, _extra) # <<<<<<<<<<<<<<
*
* def find(self, path, namespaces=None):
*/
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__makeElement(__pyx_v__tag, NULL, ((struct LxmlDocument *)__pyx_t_1), ((struct __pyx_obj_4lxml_5etree__BaseParser *)Py_None), Py_None, Py_None, __pyx_v_attrib, __pyx_v_nsmap, __pyx_v__extra)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1535, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__makeElement(__pyx_v__tag, NULL, ((struct LxmlDocument *)__pyx_t_1), ((struct __pyx_obj_4lxml_5etree__BaseParser *)Py_None), Py_None, Py_None, __pyx_v_attrib, __pyx_v_nsmap, __pyx_v__extra)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1536, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1529
+ /* "lxml/etree.pyx":1530
* return ElementTextIterator(self, tags, with_tail=with_tail)
*
* def makeelement(self, _tag, attrib=None, nsmap=None, **_extra): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1538
+/* "lxml/etree.pyx":1539
* attrib, nsmap, _extra)
*
* def find(self, path, namespaces=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "find") < 0)) __PYX_ERR(0, 1538, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "find") < 0)) __PYX_ERR(0, 1539, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("find", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1538, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("find", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1539, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._Element.find", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
__Pyx_RefNannySetupContext("find", 0);
__Pyx_INCREF(__pyx_v_path);
- /* "lxml/etree.pyx":1547
+ /* "lxml/etree.pyx":1548
* prefixes in the path expression.
* """
* if isinstance(path, QName): # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1548
+ /* "lxml/etree.pyx":1549
* """
* if isinstance(path, QName):
* path = (<QName>path).text # <<<<<<<<<<<<<<
__Pyx_DECREF_SET(__pyx_v_path, __pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":1547
+ /* "lxml/etree.pyx":1548
* prefixes in the path expression.
* """
* if isinstance(path, QName): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1549
+ /* "lxml/etree.pyx":1550
* if isinstance(path, QName):
* path = (<QName>path).text
* return _elementpath.find(self, path, namespaces) # <<<<<<<<<<<<<<
* def findtext(self, path, default=None, namespaces=None):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree__elementpath, __pyx_n_s_find); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1549, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree__elementpath, __pyx_n_s_find); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1550, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_5 = NULL;
__pyx_t_6 = 0;
#if CYTHON_FAST_PYCALL
if (PyFunction_Check(__pyx_t_4)) {
PyObject *__pyx_temp[4] = {__pyx_t_5, ((PyObject *)__pyx_v_self), __pyx_v_path, __pyx_v_namespaces};
- __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1549, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1550, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_GOTREF(__pyx_t_3);
} else
#if CYTHON_FAST_PYCCALL
if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
PyObject *__pyx_temp[4] = {__pyx_t_5, ((PyObject *)__pyx_v_self), __pyx_v_path, __pyx_v_namespaces};
- __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1549, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1550, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_GOTREF(__pyx_t_3);
} else
#endif
{
- __pyx_t_7 = PyTuple_New(3+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1549, __pyx_L1_error)
+ __pyx_t_7 = PyTuple_New(3+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1550, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
if (__pyx_t_5) {
__Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL;
__Pyx_INCREF(__pyx_v_namespaces);
__Pyx_GIVEREF(__pyx_v_namespaces);
PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_6, __pyx_v_namespaces);
- __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1549, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1550, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
}
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1538
+ /* "lxml/etree.pyx":1539
* attrib, nsmap, _extra)
*
* def find(self, path, namespaces=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1551
+/* "lxml/etree.pyx":1552
* return _elementpath.find(self, path, namespaces)
*
* def findtext(self, path, default=None, namespaces=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "findtext") < 0)) __PYX_ERR(0, 1551, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "findtext") < 0)) __PYX_ERR(0, 1552, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("findtext", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1551, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("findtext", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1552, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._Element.findtext", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
__Pyx_RefNannySetupContext("findtext", 0);
__Pyx_INCREF(__pyx_v_path);
- /* "lxml/etree.pyx":1560
+ /* "lxml/etree.pyx":1561
* prefixes in the path expression.
* """
* if isinstance(path, QName): # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1561
+ /* "lxml/etree.pyx":1562
* """
* if isinstance(path, QName):
* path = (<QName>path).text # <<<<<<<<<<<<<<
__Pyx_DECREF_SET(__pyx_v_path, __pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":1560
+ /* "lxml/etree.pyx":1561
* prefixes in the path expression.
* """
* if isinstance(path, QName): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1562
+ /* "lxml/etree.pyx":1563
* if isinstance(path, QName):
* path = (<QName>path).text
* return _elementpath.findtext(self, path, default, namespaces) # <<<<<<<<<<<<<<
* def findall(self, path, namespaces=None):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree__elementpath, __pyx_n_s_findtext); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1562, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree__elementpath, __pyx_n_s_findtext); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1563, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_5 = NULL;
__pyx_t_6 = 0;
#if CYTHON_FAST_PYCALL
if (PyFunction_Check(__pyx_t_4)) {
PyObject *__pyx_temp[5] = {__pyx_t_5, ((PyObject *)__pyx_v_self), __pyx_v_path, __pyx_v_default, __pyx_v_namespaces};
- __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1562, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1563, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_GOTREF(__pyx_t_3);
} else
#if CYTHON_FAST_PYCCALL
if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
PyObject *__pyx_temp[5] = {__pyx_t_5, ((PyObject *)__pyx_v_self), __pyx_v_path, __pyx_v_default, __pyx_v_namespaces};
- __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1562, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 4+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1563, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_GOTREF(__pyx_t_3);
} else
#endif
{
- __pyx_t_7 = PyTuple_New(4+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1562, __pyx_L1_error)
+ __pyx_t_7 = PyTuple_New(4+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1563, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
if (__pyx_t_5) {
__Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL;
__Pyx_INCREF(__pyx_v_namespaces);
__Pyx_GIVEREF(__pyx_v_namespaces);
PyTuple_SET_ITEM(__pyx_t_7, 3+__pyx_t_6, __pyx_v_namespaces);
- __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1562, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1563, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
}
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1551
+ /* "lxml/etree.pyx":1552
* return _elementpath.find(self, path, namespaces)
*
* def findtext(self, path, default=None, namespaces=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1564
+/* "lxml/etree.pyx":1565
* return _elementpath.findtext(self, path, default, namespaces)
*
* def findall(self, path, namespaces=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "findall") < 0)) __PYX_ERR(0, 1564, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "findall") < 0)) __PYX_ERR(0, 1565, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("findall", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1564, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("findall", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1565, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._Element.findall", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
__Pyx_RefNannySetupContext("findall", 0);
__Pyx_INCREF(__pyx_v_path);
- /* "lxml/etree.pyx":1573
+ /* "lxml/etree.pyx":1574
* prefixes in the path expression.
* """
* if isinstance(path, QName): # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1574
+ /* "lxml/etree.pyx":1575
* """
* if isinstance(path, QName):
* path = (<QName>path).text # <<<<<<<<<<<<<<
__Pyx_DECREF_SET(__pyx_v_path, __pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":1573
+ /* "lxml/etree.pyx":1574
* prefixes in the path expression.
* """
* if isinstance(path, QName): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1575
+ /* "lxml/etree.pyx":1576
* if isinstance(path, QName):
* path = (<QName>path).text
* return _elementpath.findall(self, path, namespaces) # <<<<<<<<<<<<<<
* def iterfind(self, path, namespaces=None):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree__elementpath, __pyx_n_s_findall); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1575, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree__elementpath, __pyx_n_s_findall); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1576, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_5 = NULL;
__pyx_t_6 = 0;
#if CYTHON_FAST_PYCALL
if (PyFunction_Check(__pyx_t_4)) {
PyObject *__pyx_temp[4] = {__pyx_t_5, ((PyObject *)__pyx_v_self), __pyx_v_path, __pyx_v_namespaces};
- __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1575, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1576, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_GOTREF(__pyx_t_3);
} else
#if CYTHON_FAST_PYCCALL
if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
PyObject *__pyx_temp[4] = {__pyx_t_5, ((PyObject *)__pyx_v_self), __pyx_v_path, __pyx_v_namespaces};
- __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1575, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1576, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_GOTREF(__pyx_t_3);
} else
#endif
{
- __pyx_t_7 = PyTuple_New(3+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1575, __pyx_L1_error)
+ __pyx_t_7 = PyTuple_New(3+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1576, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
if (__pyx_t_5) {
__Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL;
__Pyx_INCREF(__pyx_v_namespaces);
__Pyx_GIVEREF(__pyx_v_namespaces);
PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_6, __pyx_v_namespaces);
- __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1575, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1576, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
}
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1564
+ /* "lxml/etree.pyx":1565
* return _elementpath.findtext(self, path, default, namespaces)
*
* def findall(self, path, namespaces=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1577
+/* "lxml/etree.pyx":1578
* return _elementpath.findall(self, path, namespaces)
*
* def iterfind(self, path, namespaces=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "iterfind") < 0)) __PYX_ERR(0, 1577, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "iterfind") < 0)) __PYX_ERR(0, 1578, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("iterfind", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1577, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("iterfind", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1578, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._Element.iterfind", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
__Pyx_RefNannySetupContext("iterfind", 0);
__Pyx_INCREF(__pyx_v_path);
- /* "lxml/etree.pyx":1586
+ /* "lxml/etree.pyx":1587
* prefixes in the path expression.
* """
* if isinstance(path, QName): # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1587
+ /* "lxml/etree.pyx":1588
* """
* if isinstance(path, QName):
* path = (<QName>path).text # <<<<<<<<<<<<<<
__Pyx_DECREF_SET(__pyx_v_path, __pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":1586
+ /* "lxml/etree.pyx":1587
* prefixes in the path expression.
* """
* if isinstance(path, QName): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1588
+ /* "lxml/etree.pyx":1589
* if isinstance(path, QName):
* path = (<QName>path).text
* return _elementpath.iterfind(self, path, namespaces) # <<<<<<<<<<<<<<
* def xpath(self, _path, *, namespaces=None, extensions=None,
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree__elementpath, __pyx_n_s_iterfind); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1588, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree__elementpath, __pyx_n_s_iterfind); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1589, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_5 = NULL;
__pyx_t_6 = 0;
#if CYTHON_FAST_PYCALL
if (PyFunction_Check(__pyx_t_4)) {
PyObject *__pyx_temp[4] = {__pyx_t_5, ((PyObject *)__pyx_v_self), __pyx_v_path, __pyx_v_namespaces};
- __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1588, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1589, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_GOTREF(__pyx_t_3);
} else
#if CYTHON_FAST_PYCCALL
if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
PyObject *__pyx_temp[4] = {__pyx_t_5, ((PyObject *)__pyx_v_self), __pyx_v_path, __pyx_v_namespaces};
- __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1588, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_6, 3+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1589, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_GOTREF(__pyx_t_3);
} else
#endif
{
- __pyx_t_7 = PyTuple_New(3+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1588, __pyx_L1_error)
+ __pyx_t_7 = PyTuple_New(3+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1589, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
if (__pyx_t_5) {
__Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_5); __pyx_t_5 = NULL;
__Pyx_INCREF(__pyx_v_namespaces);
__Pyx_GIVEREF(__pyx_v_namespaces);
PyTuple_SET_ITEM(__pyx_t_7, 2+__pyx_t_6, __pyx_v_namespaces);
- __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1588, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1589, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
}
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1577
+ /* "lxml/etree.pyx":1578
* return _elementpath.findall(self, path, namespaces)
*
* def iterfind(self, path, namespaces=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1590
+/* "lxml/etree.pyx":1591
* return _elementpath.iterfind(self, path, namespaces)
*
* def xpath(self, _path, *, namespaces=None, extensions=None, # <<<<<<<<<<<<<<
values[1] = ((PyObject *)Py_None);
values[2] = ((PyObject *)Py_None);
- /* "lxml/etree.pyx":1591
+ /* "lxml/etree.pyx":1592
*
* def xpath(self, _path, *, namespaces=None, extensions=None,
* smart_strings=True, **_variables): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v__variables, values, pos_args, "xpath") < 0)) __PYX_ERR(0, 1590, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v__variables, values, pos_args, "xpath") < 0)) __PYX_ERR(0, 1591, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("xpath", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1590, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("xpath", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1591, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_DECREF(__pyx_v__variables); __pyx_v__variables = 0;
__Pyx_AddTraceback("lxml.etree._Element.xpath", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_L4_argument_unpacking_done:;
__pyx_r = __pyx_pf_4lxml_5etree_8_Element_88xpath(((struct LxmlElement *)__pyx_v_self), __pyx_v__path, __pyx_v_namespaces, __pyx_v_extensions, __pyx_v_smart_strings, __pyx_v__variables);
- /* "lxml/etree.pyx":1590
+ /* "lxml/etree.pyx":1591
* return _elementpath.iterfind(self, path, namespaces)
*
* def xpath(self, _path, *, namespaces=None, extensions=None, # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("xpath", 0);
- /* "lxml/etree.pyx":1596
+ /* "lxml/etree.pyx":1597
* Evaluate an xpath expression using the element as context node.
* """
* evaluator = XPathElementEvaluator(self, namespaces=namespaces, # <<<<<<<<<<<<<<
* extensions=extensions,
* smart_strings=smart_strings)
*/
- __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1596, __pyx_L1_error)
+ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1597, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(((PyObject *)__pyx_v_self));
__Pyx_GIVEREF(((PyObject *)__pyx_v_self));
PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_self));
- __pyx_t_2 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1596, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1597, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_namespaces, __pyx_v_namespaces) < 0) __PYX_ERR(0, 1596, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_namespaces, __pyx_v_namespaces) < 0) __PYX_ERR(0, 1597, __pyx_L1_error)
- /* "lxml/etree.pyx":1597
+ /* "lxml/etree.pyx":1598
* """
* evaluator = XPathElementEvaluator(self, namespaces=namespaces,
* extensions=extensions, # <<<<<<<<<<<<<<
* smart_strings=smart_strings)
* return evaluator(_path, **_variables)
*/
- if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_extensions, __pyx_v_extensions) < 0) __PYX_ERR(0, 1596, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_extensions, __pyx_v_extensions) < 0) __PYX_ERR(0, 1597, __pyx_L1_error)
- /* "lxml/etree.pyx":1598
+ /* "lxml/etree.pyx":1599
* evaluator = XPathElementEvaluator(self, namespaces=namespaces,
* extensions=extensions,
* smart_strings=smart_strings) # <<<<<<<<<<<<<<
* return evaluator(_path, **_variables)
*
*/
- if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_smart_strings, __pyx_v_smart_strings) < 0) __PYX_ERR(0, 1596, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_smart_strings, __pyx_v_smart_strings) < 0) __PYX_ERR(0, 1597, __pyx_L1_error)
- /* "lxml/etree.pyx":1596
+ /* "lxml/etree.pyx":1597
* Evaluate an xpath expression using the element as context node.
* """
* evaluator = XPathElementEvaluator(self, namespaces=namespaces, # <<<<<<<<<<<<<<
* extensions=extensions,
* smart_strings=smart_strings)
*/
- __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_XPathElementEvaluator), __pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1596, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_XPathElementEvaluator), __pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1597, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_v_evaluator = ((struct __pyx_obj_4lxml_5etree_XPathElementEvaluator *)__pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":1599
+ /* "lxml/etree.pyx":1600
* extensions=extensions,
* smart_strings=smart_strings)
* return evaluator(_path, **_variables) # <<<<<<<<<<<<<<
* def cssselect(self, expr, *, translator='xml'):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1599, __pyx_L1_error)
+ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1600, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_INCREF(__pyx_v__path);
__Pyx_GIVEREF(__pyx_v__path);
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v__path);
- __pyx_t_2 = PyDict_Copy(__pyx_v__variables); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1599, __pyx_L1_error)
+ __pyx_t_2 = PyDict_Copy(__pyx_v__variables); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1600, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_v_evaluator), __pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1599, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_v_evaluator), __pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1600, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1590
+ /* "lxml/etree.pyx":1591
* return _elementpath.iterfind(self, path, namespaces)
*
* def xpath(self, _path, *, namespaces=None, extensions=None, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1601
+/* "lxml/etree.pyx":1602
* return evaluator(_path, **_variables)
*
* def cssselect(self, expr, *, translator='xml'): # <<<<<<<<<<<<<<
if (value) { values[index] = value; kw_args--; }
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "cssselect") < 0)) __PYX_ERR(0, 1601, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "cssselect") < 0)) __PYX_ERR(0, 1602, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("cssselect", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1601, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("cssselect", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1602, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._Element.cssselect", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("cssselect", 0);
- /* "lxml/etree.pyx":1611
+ /* "lxml/etree.pyx":1612
* """
* # Do the import here to make the dependency optional.
* from lxml.cssselect import CSSSelector # <<<<<<<<<<<<<<
* return CSSSelector(expr, translator=translator)(self)
*
*/
- __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1611, __pyx_L1_error)
+ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1612, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(__pyx_n_s_CSSSelector);
__Pyx_GIVEREF(__pyx_n_s_CSSSelector);
PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_CSSSelector);
- __pyx_t_2 = __Pyx_Import(__pyx_n_s_lxml_cssselect, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1611, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_Import(__pyx_n_s_lxml_cssselect, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1612, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_CSSSelector); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1611, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_CSSSelector); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1612, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(__pyx_t_1);
__pyx_v_CSSSelector = __pyx_t_1;
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":1612
+ /* "lxml/etree.pyx":1613
* # Do the import here to make the dependency optional.
* from lxml.cssselect import CSSSelector
* return CSSSelector(expr, translator=translator)(self) # <<<<<<<<<<<<<<
*
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1612, __pyx_L1_error)
+ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1613, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(__pyx_v_expr);
__Pyx_GIVEREF(__pyx_v_expr);
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_expr);
- __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1612, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1613, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_translator, __pyx_v_translator) < 0) __PYX_ERR(0, 1612, __pyx_L1_error)
- __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v_CSSSelector, __pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1612, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_translator, __pyx_v_translator) < 0) __PYX_ERR(0, 1613, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_Call(__pyx_v_CSSSelector, __pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1613, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
}
__pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_3, ((PyObject *)__pyx_v_self)) : __Pyx_PyObject_CallOneArg(__pyx_t_4, ((PyObject *)__pyx_v_self));
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
- if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1612, __pyx_L1_error)
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1613, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1601
+ /* "lxml/etree.pyx":1602
* return evaluator(_path, **_variables)
*
* def cssselect(self, expr, *, translator='xml'): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1621
+/* "lxml/etree.pyx":1622
*
* @cython.linetrace(False)
* cdef _Element _elementFactory(_Document doc, xmlNode* c_node): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_elementFactory", 0);
- /* "lxml/etree.pyx":1623
+ /* "lxml/etree.pyx":1624
* cdef _Element _elementFactory(_Document doc, xmlNode* c_node):
* cdef _Element result
* result = getProxy(c_node) # <<<<<<<<<<<<<<
* if result is not None:
* return result
*/
- __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_getProxy(__pyx_v_c_node)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1623, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_getProxy(__pyx_v_c_node)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1624, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_v_result = ((struct LxmlElement *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":1624
+ /* "lxml/etree.pyx":1625
* cdef _Element result
* result = getProxy(c_node)
* if result is not None: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_2 != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":1625
+ /* "lxml/etree.pyx":1626
* result = getProxy(c_node)
* if result is not None:
* return result # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_result;
goto __pyx_L0;
- /* "lxml/etree.pyx":1624
+ /* "lxml/etree.pyx":1625
* cdef _Element result
* result = getProxy(c_node)
* if result is not None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1626
+ /* "lxml/etree.pyx":1627
* if result is not None:
* return result
* if c_node is NULL: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_node == NULL) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":1627
+ /* "lxml/etree.pyx":1628
* return result
* if c_node is NULL:
* return None # <<<<<<<<<<<<<<
__pyx_r = ((struct LxmlElement *)Py_None); __Pyx_INCREF(Py_None);
goto __pyx_L0;
- /* "lxml/etree.pyx":1626
+ /* "lxml/etree.pyx":1627
* if result is not None:
* return result
* if c_node is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1630
+ /* "lxml/etree.pyx":1631
*
* element_class = LOOKUP_ELEMENT_CLASS(
* ELEMENT_CLASS_LOOKUP_STATE, doc, c_node) # <<<<<<<<<<<<<<
__pyx_t_1 = __pyx_v_4lxml_5etree_ELEMENT_CLASS_LOOKUP_STATE;
__Pyx_INCREF(__pyx_t_1);
- /* "lxml/etree.pyx":1629
+ /* "lxml/etree.pyx":1630
* return None
*
* element_class = LOOKUP_ELEMENT_CLASS( # <<<<<<<<<<<<<<
* ELEMENT_CLASS_LOOKUP_STATE, doc, c_node)
* if hasProxy(c_node):
*/
- __pyx_t_4 = __pyx_v_4lxml_5etree_LOOKUP_ELEMENT_CLASS(__pyx_t_1, __pyx_v_doc, __pyx_v_c_node); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1629, __pyx_L1_error)
+ __pyx_t_4 = __pyx_v_4lxml_5etree_LOOKUP_ELEMENT_CLASS(__pyx_t_1, __pyx_v_doc, __pyx_v_c_node); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1630, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_v_element_class = __pyx_t_4;
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":1631
+ /* "lxml/etree.pyx":1632
* element_class = LOOKUP_ELEMENT_CLASS(
* ELEMENT_CLASS_LOOKUP_STATE, doc, c_node)
* if hasProxy(c_node): # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_f_4lxml_5etree_hasProxy(__pyx_v_c_node) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":1633
+ /* "lxml/etree.pyx":1634
* if hasProxy(c_node):
* # prevent re-entry race condition - we just called into Python
* return getProxy(c_node) # <<<<<<<<<<<<<<
* if hasProxy(c_node):
*/
__Pyx_XDECREF(((PyObject *)__pyx_r));
- __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree_getProxy(__pyx_v_c_node)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1633, __pyx_L1_error)
+ __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree_getProxy(__pyx_v_c_node)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1634, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_r = ((struct LxmlElement *)__pyx_t_4);
__pyx_t_4 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1631
+ /* "lxml/etree.pyx":1632
* element_class = LOOKUP_ELEMENT_CLASS(
* ELEMENT_CLASS_LOOKUP_STATE, doc, c_node)
* if hasProxy(c_node): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1634
+ /* "lxml/etree.pyx":1635
* # prevent re-entry race condition - we just called into Python
* return getProxy(c_node)
* result = NEW_ELEMENT(element_class) # <<<<<<<<<<<<<<
* if hasProxy(c_node):
* # prevent re-entry race condition - we just called into Python
*/
- __pyx_t_4 = PY_NEW(__pyx_v_element_class); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1634, __pyx_L1_error)
+ __pyx_t_4 = PY_NEW(__pyx_v_element_class); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1635, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
- if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_4lxml_5etree__Element))))) __PYX_ERR(0, 1634, __pyx_L1_error)
+ if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_4lxml_5etree__Element))))) __PYX_ERR(0, 1635, __pyx_L1_error)
__Pyx_DECREF_SET(__pyx_v_result, ((struct LxmlElement *)__pyx_t_4));
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":1635
+ /* "lxml/etree.pyx":1636
* return getProxy(c_node)
* result = NEW_ELEMENT(element_class)
* if hasProxy(c_node): # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_f_4lxml_5etree_hasProxy(__pyx_v_c_node) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":1637
+ /* "lxml/etree.pyx":1638
* if hasProxy(c_node):
* # prevent re-entry race condition - we just called into Python
* result._c_node = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_result->_c_node = NULL;
- /* "lxml/etree.pyx":1638
+ /* "lxml/etree.pyx":1639
* # prevent re-entry race condition - we just called into Python
* result._c_node = NULL
* return getProxy(c_node) # <<<<<<<<<<<<<<
* _registerProxy(result, doc, c_node)
*/
__Pyx_XDECREF(((PyObject *)__pyx_r));
- __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree_getProxy(__pyx_v_c_node)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1638, __pyx_L1_error)
+ __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree_getProxy(__pyx_v_c_node)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1639, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_r = ((struct LxmlElement *)__pyx_t_4);
__pyx_t_4 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1635
+ /* "lxml/etree.pyx":1636
* return getProxy(c_node)
* result = NEW_ELEMENT(element_class)
* if hasProxy(c_node): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1640
+ /* "lxml/etree.pyx":1641
* return getProxy(c_node)
*
* _registerProxy(result, doc, c_node) # <<<<<<<<<<<<<<
* if element_class is not _Element:
* result._init()
*/
- __pyx_t_5 = __pyx_f_4lxml_5etree__registerProxy(__pyx_v_result, __pyx_v_doc, __pyx_v_c_node); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 1640, __pyx_L1_error)
+ __pyx_t_5 = __pyx_f_4lxml_5etree__registerProxy(__pyx_v_result, __pyx_v_doc, __pyx_v_c_node); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 1641, __pyx_L1_error)
- /* "lxml/etree.pyx":1641
+ /* "lxml/etree.pyx":1642
*
* _registerProxy(result, doc, c_node)
* if element_class is not _Element: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_3 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1642
+ /* "lxml/etree.pyx":1643
* _registerProxy(result, doc, c_node)
* if element_class is not _Element:
* result._init() # <<<<<<<<<<<<<<
* return result
*
*/
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_result), __pyx_n_s_init_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1642, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_result), __pyx_n_s_init_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1643, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_6 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
}
__pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_1);
__Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
- if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1642, __pyx_L1_error)
+ if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1643, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "lxml/etree.pyx":1641
+ /* "lxml/etree.pyx":1642
*
* _registerProxy(result, doc, c_node)
* if element_class is not _Element: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1643
+ /* "lxml/etree.pyx":1644
* if element_class is not _Element:
* result._init()
* return result # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_result;
goto __pyx_L0;
- /* "lxml/etree.pyx":1621
+ /* "lxml/etree.pyx":1622
*
* @cython.linetrace(False)
* cdef _Element _elementFactory(_Document doc, xmlNode* c_node): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1648
+/* "lxml/etree.pyx":1649
* @cython.internal
* cdef class __ContentOnlyElement(_Element):
* cdef int _raiseImmutable(self) except -1: # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_raiseImmutable", 0);
- /* "lxml/etree.pyx":1649
+ /* "lxml/etree.pyx":1650
* cdef class __ContentOnlyElement(_Element):
* cdef int _raiseImmutable(self) except -1:
* raise TypeError, u"this element does not have children or attributes" # <<<<<<<<<<<<<<
* def set(self, key, value):
*/
__Pyx_Raise(__pyx_builtin_TypeError, __pyx_kp_u_this_element_does_not_have_child, 0, 0);
- __PYX_ERR(0, 1649, __pyx_L1_error)
+ __PYX_ERR(0, 1650, __pyx_L1_error)
- /* "lxml/etree.pyx":1648
+ /* "lxml/etree.pyx":1649
* @cython.internal
* cdef class __ContentOnlyElement(_Element):
* cdef int _raiseImmutable(self) except -1: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1651
+/* "lxml/etree.pyx":1652
* raise TypeError, u"this element does not have children or attributes"
*
* def set(self, key, value): # <<<<<<<<<<<<<<
case 1:
if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("set", 1, 2, 2, 1); __PYX_ERR(0, 1651, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("set", 1, 2, 2, 1); __PYX_ERR(0, 1652, __pyx_L3_error)
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set") < 0)) __PYX_ERR(0, 1651, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set") < 0)) __PYX_ERR(0, 1652, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("set", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1651, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("set", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1652, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.__ContentOnlyElement.set", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("set", 0);
- /* "lxml/etree.pyx":1653
+ /* "lxml/etree.pyx":1654
* def set(self, key, value):
* u"set(self, key, value)"
* self._raiseImmutable() # <<<<<<<<<<<<<<
*
* def append(self, value):
*/
- __pyx_t_1 = ((struct __pyx_vtabstruct_4lxml_5etree___ContentOnlyElement *)__pyx_v_self->__pyx_vtab)->_raiseImmutable(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1653, __pyx_L1_error)
+ __pyx_t_1 = ((struct __pyx_vtabstruct_4lxml_5etree___ContentOnlyElement *)__pyx_v_self->__pyx_vtab)->_raiseImmutable(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1654, __pyx_L1_error)
- /* "lxml/etree.pyx":1651
+ /* "lxml/etree.pyx":1652
* raise TypeError, u"this element does not have children or attributes"
*
* def set(self, key, value): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1655
+/* "lxml/etree.pyx":1656
* self._raiseImmutable()
*
* def append(self, value): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("append", 0);
- /* "lxml/etree.pyx":1657
+ /* "lxml/etree.pyx":1658
* def append(self, value):
* u"append(self, value)"
* self._raiseImmutable() # <<<<<<<<<<<<<<
*
* def insert(self, index, value):
*/
- __pyx_t_1 = ((struct __pyx_vtabstruct_4lxml_5etree___ContentOnlyElement *)__pyx_v_self->__pyx_vtab)->_raiseImmutable(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1657, __pyx_L1_error)
+ __pyx_t_1 = ((struct __pyx_vtabstruct_4lxml_5etree___ContentOnlyElement *)__pyx_v_self->__pyx_vtab)->_raiseImmutable(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1658, __pyx_L1_error)
- /* "lxml/etree.pyx":1655
+ /* "lxml/etree.pyx":1656
* self._raiseImmutable()
*
* def append(self, value): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1659
+/* "lxml/etree.pyx":1660
* self._raiseImmutable()
*
* def insert(self, index, value): # <<<<<<<<<<<<<<
case 1:
if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("insert", 1, 2, 2, 1); __PYX_ERR(0, 1659, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("insert", 1, 2, 2, 1); __PYX_ERR(0, 1660, __pyx_L3_error)
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "insert") < 0)) __PYX_ERR(0, 1659, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "insert") < 0)) __PYX_ERR(0, 1660, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("insert", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1659, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("insert", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1660, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.__ContentOnlyElement.insert", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("insert", 0);
- /* "lxml/etree.pyx":1661
+ /* "lxml/etree.pyx":1662
* def insert(self, index, value):
* u"insert(self, index, value)"
* self._raiseImmutable() # <<<<<<<<<<<<<<
*
* def __setitem__(self, index, value):
*/
- __pyx_t_1 = ((struct __pyx_vtabstruct_4lxml_5etree___ContentOnlyElement *)__pyx_v_self->__pyx_vtab)->_raiseImmutable(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1661, __pyx_L1_error)
+ __pyx_t_1 = ((struct __pyx_vtabstruct_4lxml_5etree___ContentOnlyElement *)__pyx_v_self->__pyx_vtab)->_raiseImmutable(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1662, __pyx_L1_error)
- /* "lxml/etree.pyx":1659
+ /* "lxml/etree.pyx":1660
* self._raiseImmutable()
*
* def insert(self, index, value): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1663
+/* "lxml/etree.pyx":1664
* self._raiseImmutable()
*
* def __setitem__(self, index, value): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__setitem__", 0);
- /* "lxml/etree.pyx":1665
+ /* "lxml/etree.pyx":1666
* def __setitem__(self, index, value):
* u"__setitem__(self, index, value)"
* self._raiseImmutable() # <<<<<<<<<<<<<<
*
* @property
*/
- __pyx_t_1 = ((struct __pyx_vtabstruct_4lxml_5etree___ContentOnlyElement *)__pyx_v_self->__pyx_vtab)->_raiseImmutable(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1665, __pyx_L1_error)
+ __pyx_t_1 = ((struct __pyx_vtabstruct_4lxml_5etree___ContentOnlyElement *)__pyx_v_self->__pyx_vtab)->_raiseImmutable(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1666, __pyx_L1_error)
- /* "lxml/etree.pyx":1663
+ /* "lxml/etree.pyx":1664
* self._raiseImmutable()
*
* def __setitem__(self, index, value): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1668
+/* "lxml/etree.pyx":1669
*
* @property
* def attrib(self): # <<<<<<<<<<<<<<
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":1669
+ /* "lxml/etree.pyx":1670
* @property
* def attrib(self):
* return IMMUTABLE_EMPTY_MAPPING # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_4lxml_5etree_IMMUTABLE_EMPTY_MAPPING;
goto __pyx_L0;
- /* "lxml/etree.pyx":1668
+ /* "lxml/etree.pyx":1669
*
* @property
* def attrib(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1672
+/* "lxml/etree.pyx":1673
*
* property text:
* def __get__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":1673
+ /* "lxml/etree.pyx":1674
* property text:
* def __get__(self):
* _assertValidNode(self) # <<<<<<<<<<<<<<
* return funicodeOrEmpty(self._c_node.content)
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_v_self)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1673, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_v_self)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1674, __pyx_L1_error)
- /* "lxml/etree.pyx":1674
+ /* "lxml/etree.pyx":1675
* def __get__(self):
* _assertValidNode(self)
* return funicodeOrEmpty(self._c_node.content) # <<<<<<<<<<<<<<
* def __set__(self, value):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __pyx_f_4lxml_5etree_funicodeOrEmpty(__pyx_v_self->__pyx_base._c_node->content); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1674, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree_funicodeOrEmpty(__pyx_v_self->__pyx_base._c_node->content); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1675, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1672
+ /* "lxml/etree.pyx":1673
*
* property text:
* def __get__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1676
+/* "lxml/etree.pyx":1677
* return funicodeOrEmpty(self._c_node.content)
*
* def __set__(self, value): # <<<<<<<<<<<<<<
__Pyx_RefNannySetupContext("__set__", 0);
__Pyx_INCREF(__pyx_v_value);
- /* "lxml/etree.pyx":1678
+ /* "lxml/etree.pyx":1679
* def __set__(self, value):
* cdef tree.xmlDict* c_dict
* _assertValidNode(self) # <<<<<<<<<<<<<<
* if value is None:
* c_text = <const_xmlChar*>NULL
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_v_self)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1678, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_v_self)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1679, __pyx_L1_error)
- /* "lxml/etree.pyx":1679
+ /* "lxml/etree.pyx":1680
* cdef tree.xmlDict* c_dict
* _assertValidNode(self)
* if value is None: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_2 != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":1680
+ /* "lxml/etree.pyx":1681
* _assertValidNode(self)
* if value is None:
* c_text = <const_xmlChar*>NULL # <<<<<<<<<<<<<<
*/
__pyx_v_c_text = ((const xmlChar *)NULL);
- /* "lxml/etree.pyx":1679
+ /* "lxml/etree.pyx":1680
* cdef tree.xmlDict* c_dict
* _assertValidNode(self)
* if value is None: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":1682
+ /* "lxml/etree.pyx":1683
* c_text = <const_xmlChar*>NULL
* else:
* value = _utf8(value) # <<<<<<<<<<<<<<
* tree.xmlNodeSetContent(self._c_node, c_text)
*/
/*else*/ {
- __pyx_t_4 = __pyx_f_4lxml_5etree__utf8(__pyx_v_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1682, __pyx_L1_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree__utf8(__pyx_v_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1683, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF_SET(__pyx_v_value, __pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":1683
+ /* "lxml/etree.pyx":1684
* else:
* value = _utf8(value)
* c_text = _xcstr(value) # <<<<<<<<<<<<<<
}
__pyx_L3:;
- /* "lxml/etree.pyx":1684
+ /* "lxml/etree.pyx":1685
* value = _utf8(value)
* c_text = _xcstr(value)
* tree.xmlNodeSetContent(self._c_node, c_text) # <<<<<<<<<<<<<<
*/
xmlNodeSetContent(__pyx_v_self->__pyx_base._c_node, __pyx_v_c_text);
- /* "lxml/etree.pyx":1676
+ /* "lxml/etree.pyx":1677
* return funicodeOrEmpty(self._c_node.content)
*
* def __set__(self, value): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1687
+/* "lxml/etree.pyx":1688
*
* # ACCESSORS
* def __getitem__(self, x): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__getitem__", 0);
- /* "lxml/etree.pyx":1689
+ /* "lxml/etree.pyx":1690
* def __getitem__(self, x):
* u"__getitem__(self, x)"
* if isinstance(x, slice): # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (likely(__pyx_t_2)) {
- /* "lxml/etree.pyx":1690
+ /* "lxml/etree.pyx":1691
* u"__getitem__(self, x)"
* if isinstance(x, slice):
* return [] # <<<<<<<<<<<<<<
* raise IndexError, u"list index out of range"
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1690, __pyx_L1_error)
+ __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1691, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1689
+ /* "lxml/etree.pyx":1690
* def __getitem__(self, x):
* u"__getitem__(self, x)"
* if isinstance(x, slice): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1692
+ /* "lxml/etree.pyx":1693
* return []
* else:
* raise IndexError, u"list index out of range" # <<<<<<<<<<<<<<
*/
/*else*/ {
__Pyx_Raise(__pyx_builtin_IndexError, __pyx_kp_u_list_index_out_of_range, 0, 0);
- __PYX_ERR(0, 1692, __pyx_L1_error)
+ __PYX_ERR(0, 1693, __pyx_L1_error)
}
- /* "lxml/etree.pyx":1687
+ /* "lxml/etree.pyx":1688
*
* # ACCESSORS
* def __getitem__(self, x): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1694
+/* "lxml/etree.pyx":1695
* raise IndexError, u"list index out of range"
*
* def __len__(self): # <<<<<<<<<<<<<<
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__len__", 0);
- /* "lxml/etree.pyx":1696
+ /* "lxml/etree.pyx":1697
* def __len__(self):
* u"__len__(self)"
* return 0 # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1694
+ /* "lxml/etree.pyx":1695
* raise IndexError, u"list index out of range"
*
* def __len__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1698
+/* "lxml/etree.pyx":1699
* return 0
*
* def get(self, key, default=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "get") < 0)) __PYX_ERR(0, 1698, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "get") < 0)) __PYX_ERR(0, 1699, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("get", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1698, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("get", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1699, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.__ContentOnlyElement.get", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("get", 0);
- /* "lxml/etree.pyx":1700
+ /* "lxml/etree.pyx":1701
* def get(self, key, default=None):
* u"get(self, key, default=None)"
* return None # <<<<<<<<<<<<<<
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
- /* "lxml/etree.pyx":1698
+ /* "lxml/etree.pyx":1699
* return 0
*
* def get(self, key, default=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1702
+/* "lxml/etree.pyx":1703
* return None
*
* def keys(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("keys", 0);
- /* "lxml/etree.pyx":1704
+ /* "lxml/etree.pyx":1705
* def keys(self):
* u"keys(self)"
* return [] # <<<<<<<<<<<<<<
* def items(self):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1704, __pyx_L1_error)
+ __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1705, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1702
+ /* "lxml/etree.pyx":1703
* return None
*
* def keys(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1706
+/* "lxml/etree.pyx":1707
* return []
*
* def items(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("items", 0);
- /* "lxml/etree.pyx":1708
+ /* "lxml/etree.pyx":1709
* def items(self):
* u"items(self)"
* return [] # <<<<<<<<<<<<<<
* def values(self):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1708, __pyx_L1_error)
+ __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1709, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1706
+ /* "lxml/etree.pyx":1707
* return []
*
* def items(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1710
+/* "lxml/etree.pyx":1711
* return []
*
* def values(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("values", 0);
- /* "lxml/etree.pyx":1712
+ /* "lxml/etree.pyx":1713
* def values(self):
* u"values(self)"
* return [] # <<<<<<<<<<<<<<
* cdef class _Comment(__ContentOnlyElement):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1712, __pyx_L1_error)
+ __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1713, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1710
+ /* "lxml/etree.pyx":1711
* return []
*
* def values(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1716
+/* "lxml/etree.pyx":1717
* cdef class _Comment(__ContentOnlyElement):
* @property
* def tag(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":1717
+ /* "lxml/etree.pyx":1718
* @property
* def tag(self):
* return Comment # <<<<<<<<<<<<<<
* def __repr__(self):
*/
__Pyx_XDECREF(__pyx_r);
- __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_Comment); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1717, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_Comment); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1718, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1716
+ /* "lxml/etree.pyx":1717
* cdef class _Comment(__ContentOnlyElement):
* @property
* def tag(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1719
+/* "lxml/etree.pyx":1720
* return Comment
*
* def __repr__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__repr__", 0);
- /* "lxml/etree.pyx":1720
+ /* "lxml/etree.pyx":1721
*
* def __repr__(self):
* return "<!--%s-->" % strrepr(self.text) # <<<<<<<<<<<<<<
* cdef class _ProcessingInstruction(__ContentOnlyElement):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_text); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1720, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_text); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1721, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree_strrepr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1720, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree_strrepr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1721, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __pyx_t_1 = __Pyx_PyString_FormatSafe(__pyx_kp_s_s, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1720, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyString_FormatSafe(__pyx_kp_s_s, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1721, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1719
+ /* "lxml/etree.pyx":1720
* return Comment
*
* def __repr__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1724
+/* "lxml/etree.pyx":1725
* cdef class _ProcessingInstruction(__ContentOnlyElement):
* @property
* def tag(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":1725
+ /* "lxml/etree.pyx":1726
* @property
* def tag(self):
* return ProcessingInstruction # <<<<<<<<<<<<<<
* property target:
*/
__Pyx_XDECREF(__pyx_r);
- __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_ProcessingInstruction); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1725, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_ProcessingInstruction); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1726, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1724
+ /* "lxml/etree.pyx":1725
* cdef class _ProcessingInstruction(__ContentOnlyElement):
* @property
* def tag(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1729
+/* "lxml/etree.pyx":1730
* property target:
* # not in ElementTree
* def __get__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":1730
+ /* "lxml/etree.pyx":1731
* # not in ElementTree
* def __get__(self):
* _assertValidNode(self) # <<<<<<<<<<<<<<
* return funicode(self._c_node.name)
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_v_self)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1730, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_v_self)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1731, __pyx_L1_error)
- /* "lxml/etree.pyx":1731
+ /* "lxml/etree.pyx":1732
* def __get__(self):
* _assertValidNode(self)
* return funicode(self._c_node.name) # <<<<<<<<<<<<<<
* def __set__(self, value):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __pyx_f_4lxml_5etree_funicode(__pyx_v_self->__pyx_base.__pyx_base._c_node->name); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1731, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree_funicode(__pyx_v_self->__pyx_base.__pyx_base._c_node->name); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1732, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1729
+ /* "lxml/etree.pyx":1730
* property target:
* # not in ElementTree
* def __get__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1733
+/* "lxml/etree.pyx":1734
* return funicode(self._c_node.name)
*
* def __set__(self, value): # <<<<<<<<<<<<<<
__Pyx_RefNannySetupContext("__set__", 0);
__Pyx_INCREF(__pyx_v_value);
- /* "lxml/etree.pyx":1734
+ /* "lxml/etree.pyx":1735
*
* def __set__(self, value):
* _assertValidNode(self) # <<<<<<<<<<<<<<
* value = _utf8(value)
* c_text = _xcstr(value)
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_v_self)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1734, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_v_self)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1735, __pyx_L1_error)
- /* "lxml/etree.pyx":1735
+ /* "lxml/etree.pyx":1736
* def __set__(self, value):
* _assertValidNode(self)
* value = _utf8(value) # <<<<<<<<<<<<<<
* c_text = _xcstr(value)
* tree.xmlNodeSetName(self._c_node, c_text)
*/
- __pyx_t_2 = __pyx_f_4lxml_5etree__utf8(__pyx_v_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1735, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__utf8(__pyx_v_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1736, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF_SET(__pyx_v_value, __pyx_t_2);
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":1736
+ /* "lxml/etree.pyx":1737
* _assertValidNode(self)
* value = _utf8(value)
* c_text = _xcstr(value) # <<<<<<<<<<<<<<
*/
__pyx_v_c_text = (const xmlChar*)PyBytes_AS_STRING(__pyx_v_value);
- /* "lxml/etree.pyx":1737
+ /* "lxml/etree.pyx":1738
* value = _utf8(value)
* c_text = _xcstr(value)
* tree.xmlNodeSetName(self._c_node, c_text) # <<<<<<<<<<<<<<
*/
xmlNodeSetName(__pyx_v_self->__pyx_base.__pyx_base._c_node, __pyx_v_c_text);
- /* "lxml/etree.pyx":1733
+ /* "lxml/etree.pyx":1734
* return funicode(self._c_node.name)
*
* def __set__(self, value): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1739
+/* "lxml/etree.pyx":1740
* tree.xmlNodeSetName(self._c_node, c_text)
*
* def __repr__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__repr__", 0);
- /* "lxml/etree.pyx":1740
+ /* "lxml/etree.pyx":1741
*
* def __repr__(self):
* text = self.text # <<<<<<<<<<<<<<
* if text:
* return "<?%s %s?>" % (strrepr(self.target),
*/
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_text); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1740, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_text); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1741, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_v_text = __pyx_t_1;
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":1741
+ /* "lxml/etree.pyx":1742
* def __repr__(self):
* text = self.text
* if text: # <<<<<<<<<<<<<<
* return "<?%s %s?>" % (strrepr(self.target),
* strrepr(text))
*/
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_text); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1741, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_text); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1742, __pyx_L1_error)
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1742
+ /* "lxml/etree.pyx":1743
* text = self.text
* if text:
* return "<?%s %s?>" % (strrepr(self.target), # <<<<<<<<<<<<<<
* else:
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_target); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1742, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_target); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1743, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_3 = __pyx_f_4lxml_5etree_strrepr(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1742, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree_strrepr(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1743, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":1743
+ /* "lxml/etree.pyx":1744
* if text:
* return "<?%s %s?>" % (strrepr(self.target),
* strrepr(text)) # <<<<<<<<<<<<<<
* else:
* return "<?%s?>" % strrepr(self.target)
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_strrepr(__pyx_v_text); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1743, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_strrepr(__pyx_v_text); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1744, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- /* "lxml/etree.pyx":1742
+ /* "lxml/etree.pyx":1743
* text = self.text
* if text:
* return "<?%s %s?>" % (strrepr(self.target), # <<<<<<<<<<<<<<
* strrepr(text))
* else:
*/
- __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1742, __pyx_L1_error)
+ __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1743, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_GIVEREF(__pyx_t_3);
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
__pyx_t_3 = 0;
__pyx_t_1 = 0;
- __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_s_s, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1742, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_s_s, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1743, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1741
+ /* "lxml/etree.pyx":1742
* def __repr__(self):
* text = self.text
* if text: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1745
+ /* "lxml/etree.pyx":1746
* strrepr(text))
* else:
* return "<?%s?>" % strrepr(self.target) # <<<<<<<<<<<<<<
*/
/*else*/ {
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_target); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1745, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_target); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1746, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_4 = __pyx_f_4lxml_5etree_strrepr(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1745, __pyx_L1_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree_strrepr(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1746, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __pyx_t_1 = __Pyx_PyString_FormatSafe(__pyx_kp_s_s_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1745, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyString_FormatSafe(__pyx_kp_s_s_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1746, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_r = __pyx_t_1;
goto __pyx_L0;
}
- /* "lxml/etree.pyx":1739
+ /* "lxml/etree.pyx":1740
* tree.xmlNodeSetName(self._c_node, c_text)
*
* def __repr__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1747
+/* "lxml/etree.pyx":1748
* return "<?%s?>" % strrepr(self.target)
*
* def get(self, key, default=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "get") < 0)) __PYX_ERR(0, 1747, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "get") < 0)) __PYX_ERR(0, 1748, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("get", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1747, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("get", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1748, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._ProcessingInstruction.get", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("get", 0);
- /* "lxml/etree.pyx":1759
+ /* "lxml/etree.pyx":1760
* It is not guaranteed to work for all possible text content.
* """
* return self.attrib.get(key, default) # <<<<<<<<<<<<<<
* @property
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_attrib); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1759, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_attrib); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1760, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_get); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1759, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_get); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1760, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_2 = NULL;
#if CYTHON_FAST_PYCALL
if (PyFunction_Check(__pyx_t_3)) {
PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_v_key, __pyx_v_default};
- __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1759, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1760, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_GOTREF(__pyx_t_1);
} else
#if CYTHON_FAST_PYCCALL
if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
PyObject *__pyx_temp[3] = {__pyx_t_2, __pyx_v_key, __pyx_v_default};
- __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1759, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1760, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_GOTREF(__pyx_t_1);
} else
#endif
{
- __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1759, __pyx_L1_error)
+ __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1760, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
if (__pyx_t_2) {
__Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); __pyx_t_2 = NULL;
__Pyx_INCREF(__pyx_v_default);
__Pyx_GIVEREF(__pyx_v_default);
PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_default);
- __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1759, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1760, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
}
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1747
+ /* "lxml/etree.pyx":1748
* return "<?%s?>" % strrepr(self.target)
*
* def get(self, key, default=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1762
+/* "lxml/etree.pyx":1763
*
* @property
* def attrib(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":1768
+ /* "lxml/etree.pyx":1769
* XML node, although this is not guaranteed to stay this way.
* """
* return { attr : (value1 or value2) # <<<<<<<<<<<<<<
*/
__Pyx_XDECREF(__pyx_r);
{ /* enter inner scope */
- __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1768, __pyx_L5_error)
+ __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1769, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_1);
- /* "lxml/etree.pyx":1769
+ /* "lxml/etree.pyx":1770
* """
* return { attr : (value1 or value2)
* for attr, value1, value2 in _FIND_PI_ATTRIBUTES(u' ' + self.text) } # <<<<<<<<<<<<<<
*
* cdef object _FIND_PI_ATTRIBUTES = re.compile(ur'\s+(\w+)\s*=\s*(?:\'([^\']*)\'|"([^"]*)")', re.U).findall
*/
- __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_text); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1769, __pyx_L5_error)
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_text); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1770, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_4 = PyNumber_Add(__pyx_kp_u__11, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1769, __pyx_L5_error)
+ __pyx_t_4 = PyNumber_Add(__pyx_kp_u__11, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1770, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_INCREF(__pyx_v_4lxml_5etree__FIND_PI_ATTRIBUTES);
__pyx_t_2 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_5, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4);
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1769, __pyx_L5_error)
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1770, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) {
__pyx_t_3 = __pyx_t_2; __Pyx_INCREF(__pyx_t_3); __pyx_t_6 = 0;
__pyx_t_7 = NULL;
} else {
- __pyx_t_6 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1769, __pyx_L5_error)
+ __pyx_t_6 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1770, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_7 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1769, __pyx_L5_error)
+ __pyx_t_7 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1770, __pyx_L5_error)
}
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
for (;;) {
if (likely(PyList_CheckExact(__pyx_t_3))) {
if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_3)) break;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
- __pyx_t_2 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_6); __Pyx_INCREF(__pyx_t_2); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(0, 1769, __pyx_L5_error)
+ __pyx_t_2 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_6); __Pyx_INCREF(__pyx_t_2); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(0, 1770, __pyx_L5_error)
#else
- __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1769, __pyx_L5_error)
+ __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1770, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_2);
#endif
} else {
if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_3)) break;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
- __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_6); __Pyx_INCREF(__pyx_t_2); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(0, 1769, __pyx_L5_error)
+ __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_6); __Pyx_INCREF(__pyx_t_2); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(0, 1770, __pyx_L5_error)
#else
- __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1769, __pyx_L5_error)
+ __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1770, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_2);
#endif
}
PyObject* exc_type = PyErr_Occurred();
if (exc_type) {
if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
- else __PYX_ERR(0, 1769, __pyx_L5_error)
+ else __PYX_ERR(0, 1770, __pyx_L5_error)
}
break;
}
if (unlikely(size != 3)) {
if (size > 3) __Pyx_RaiseTooManyValuesError(3);
else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
- __PYX_ERR(0, 1769, __pyx_L5_error)
+ __PYX_ERR(0, 1770, __pyx_L5_error)
}
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
if (likely(PyTuple_CheckExact(sequence))) {
__Pyx_INCREF(__pyx_t_5);
__Pyx_INCREF(__pyx_t_8);
#else
- __pyx_t_4 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1769, __pyx_L5_error)
+ __pyx_t_4 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1770, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_4);
- __pyx_t_5 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1769, __pyx_L5_error)
+ __pyx_t_5 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1770, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_5);
- __pyx_t_8 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1769, __pyx_L5_error)
+ __pyx_t_8 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1770, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_8);
#endif
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
} else {
Py_ssize_t index = -1;
- __pyx_t_9 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1769, __pyx_L5_error)
+ __pyx_t_9 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1770, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_9);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_10 = Py_TYPE(__pyx_t_9)->tp_iternext;
__Pyx_GOTREF(__pyx_t_5);
index = 2; __pyx_t_8 = __pyx_t_10(__pyx_t_9); if (unlikely(!__pyx_t_8)) goto __pyx_L8_unpacking_failed;
__Pyx_GOTREF(__pyx_t_8);
- if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_9), 3) < 0) __PYX_ERR(0, 1769, __pyx_L5_error)
+ if (__Pyx_IternextUnpackEndCheck(__pyx_t_10(__pyx_t_9), 3) < 0) __PYX_ERR(0, 1770, __pyx_L5_error)
__pyx_t_10 = NULL;
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
goto __pyx_L9_unpacking_done;
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
__pyx_t_10 = NULL;
if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
- __PYX_ERR(0, 1769, __pyx_L5_error)
+ __PYX_ERR(0, 1770, __pyx_L5_error)
__pyx_L9_unpacking_done:;
}
__Pyx_XDECREF_SET(__pyx_8genexpr1__pyx_v_attr, __pyx_t_4);
__Pyx_XDECREF_SET(__pyx_8genexpr1__pyx_v_value2, __pyx_t_8);
__pyx_t_8 = 0;
- /* "lxml/etree.pyx":1768
+ /* "lxml/etree.pyx":1769
* XML node, although this is not guaranteed to stay this way.
* """
* return { attr : (value1 or value2) # <<<<<<<<<<<<<<
* for attr, value1, value2 in _FIND_PI_ATTRIBUTES(u' ' + self.text) }
*
*/
- __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_8genexpr1__pyx_v_value1); if (unlikely(__pyx_t_11 < 0)) __PYX_ERR(0, 1768, __pyx_L5_error)
+ __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_8genexpr1__pyx_v_value1); if (unlikely(__pyx_t_11 < 0)) __PYX_ERR(0, 1769, __pyx_L5_error)
if (!__pyx_t_11) {
} else {
__Pyx_INCREF(__pyx_8genexpr1__pyx_v_value1);
__Pyx_INCREF(__pyx_8genexpr1__pyx_v_value2);
__pyx_t_2 = __pyx_8genexpr1__pyx_v_value2;
__pyx_L10_bool_binop_done:;
- if (unlikely(PyDict_SetItem(__pyx_t_1, (PyObject*)__pyx_8genexpr1__pyx_v_attr, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 1768, __pyx_L5_error)
+ if (unlikely(PyDict_SetItem(__pyx_t_1, (PyObject*)__pyx_8genexpr1__pyx_v_attr, (PyObject*)__pyx_t_2))) __PYX_ERR(0, 1769, __pyx_L5_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":1769
+ /* "lxml/etree.pyx":1770
* """
* return { attr : (value1 or value2)
* for attr, value1, value2 in _FIND_PI_ATTRIBUTES(u' ' + self.text) } # <<<<<<<<<<<<<<
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1762
+ /* "lxml/etree.pyx":1763
*
* @property
* def attrib(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1775
+/* "lxml/etree.pyx":1776
* cdef class _Entity(__ContentOnlyElement):
* @property
* def tag(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":1776
+ /* "lxml/etree.pyx":1777
* @property
* def tag(self):
* return Entity # <<<<<<<<<<<<<<
* property name:
*/
__Pyx_XDECREF(__pyx_r);
- __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_Entity); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1776, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_Entity); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1777, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1775
+ /* "lxml/etree.pyx":1776
* cdef class _Entity(__ContentOnlyElement):
* @property
* def tag(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1780
+/* "lxml/etree.pyx":1781
* property name:
* # not in ElementTree
* def __get__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":1781
+ /* "lxml/etree.pyx":1782
* # not in ElementTree
* def __get__(self):
* _assertValidNode(self) # <<<<<<<<<<<<<<
* return funicode(self._c_node.name)
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_v_self)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1781, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_v_self)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1782, __pyx_L1_error)
- /* "lxml/etree.pyx":1782
+ /* "lxml/etree.pyx":1783
* def __get__(self):
* _assertValidNode(self)
* return funicode(self._c_node.name) # <<<<<<<<<<<<<<
* def __set__(self, value):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __pyx_f_4lxml_5etree_funicode(__pyx_v_self->__pyx_base.__pyx_base._c_node->name); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1782, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree_funicode(__pyx_v_self->__pyx_base.__pyx_base._c_node->name); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1783, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1780
+ /* "lxml/etree.pyx":1781
* property name:
* # not in ElementTree
* def __get__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1784
+/* "lxml/etree.pyx":1785
* return funicode(self._c_node.name)
*
* def __set__(self, value): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__set__", 0);
- /* "lxml/etree.pyx":1785
+ /* "lxml/etree.pyx":1786
*
* def __set__(self, value):
* _assertValidNode(self) # <<<<<<<<<<<<<<
* value_utf = _utf8(value)
* if b'&' in value_utf or b';' in value_utf:
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_v_self)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1785, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_v_self)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1786, __pyx_L1_error)
- /* "lxml/etree.pyx":1786
+ /* "lxml/etree.pyx":1787
* def __set__(self, value):
* _assertValidNode(self)
* value_utf = _utf8(value) # <<<<<<<<<<<<<<
* if b'&' in value_utf or b';' in value_utf:
* raise ValueError, f"Invalid entity name '{value}'"
*/
- __pyx_t_2 = __pyx_f_4lxml_5etree__utf8(__pyx_v_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1786, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__utf8(__pyx_v_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1787, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_v_value_utf = ((PyObject*)__pyx_t_2);
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":1787
+ /* "lxml/etree.pyx":1788
* _assertValidNode(self)
* value_utf = _utf8(value)
* if b'&' in value_utf or b';' in value_utf: # <<<<<<<<<<<<<<
* raise ValueError, f"Invalid entity name '{value}'"
* tree.xmlNodeSetName(self._c_node, _xcstr(value_utf))
*/
- __pyx_t_4 = (__Pyx_PySequence_ContainsTF(__pyx_kp_b__29, __pyx_v_value_utf, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 1787, __pyx_L1_error)
+ __pyx_t_4 = (__Pyx_PySequence_ContainsTF(__pyx_kp_b__29, __pyx_v_value_utf, Py_EQ)); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 1788, __pyx_L1_error)
__pyx_t_5 = (__pyx_t_4 != 0);
if (!__pyx_t_5) {
} else {
__pyx_t_3 = __pyx_t_5;
goto __pyx_L4_bool_binop_done;
}
- __pyx_t_5 = (__Pyx_PySequence_ContainsTF(__pyx_kp_b__30, __pyx_v_value_utf, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 1787, __pyx_L1_error)
+ __pyx_t_5 = (__Pyx_PySequence_ContainsTF(__pyx_kp_b__30, __pyx_v_value_utf, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 1788, __pyx_L1_error)
__pyx_t_4 = (__pyx_t_5 != 0);
__pyx_t_3 = __pyx_t_4;
__pyx_L4_bool_binop_done:;
if (unlikely(__pyx_t_3)) {
- /* "lxml/etree.pyx":1788
+ /* "lxml/etree.pyx":1789
* value_utf = _utf8(value)
* if b'&' in value_utf or b';' in value_utf:
* raise ValueError, f"Invalid entity name '{value}'" # <<<<<<<<<<<<<<
* tree.xmlNodeSetName(self._c_node, _xcstr(value_utf))
*
*/
- __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1788, __pyx_L1_error)
+ __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1789, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_6 = 0;
__pyx_t_7 = 127;
__pyx_t_6 += 21;
__Pyx_GIVEREF(__pyx_kp_u_Invalid_entity_name);
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_kp_u_Invalid_entity_name);
- __pyx_t_8 = __Pyx_PyObject_FormatSimple(__pyx_v_value, __pyx_empty_unicode); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1788, __pyx_L1_error)
+ __pyx_t_8 = __Pyx_PyObject_FormatSimple(__pyx_v_value, __pyx_empty_unicode); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1789, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_8);
__pyx_t_7 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_8) > __pyx_t_7) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_8) : __pyx_t_7;
__pyx_t_6 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_8);
__pyx_t_6 += 1;
__Pyx_GIVEREF(__pyx_kp_u__22);
PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_kp_u__22);
- __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_2, 3, __pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1788, __pyx_L1_error)
+ __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_2, 3, __pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1789, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_8);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_t_8, 0, 0);
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
- __PYX_ERR(0, 1788, __pyx_L1_error)
+ __PYX_ERR(0, 1789, __pyx_L1_error)
- /* "lxml/etree.pyx":1787
+ /* "lxml/etree.pyx":1788
* _assertValidNode(self)
* value_utf = _utf8(value)
* if b'&' in value_utf or b';' in value_utf: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1789
+ /* "lxml/etree.pyx":1790
* if b'&' in value_utf or b';' in value_utf:
* raise ValueError, f"Invalid entity name '{value}'"
* tree.xmlNodeSetName(self._c_node, _xcstr(value_utf)) # <<<<<<<<<<<<<<
*/
xmlNodeSetName(__pyx_v_self->__pyx_base.__pyx_base._c_node, (const xmlChar*)PyBytes_AS_STRING(__pyx_v_value_utf));
- /* "lxml/etree.pyx":1784
+ /* "lxml/etree.pyx":1785
* return funicode(self._c_node.name)
*
* def __set__(self, value): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1792
+/* "lxml/etree.pyx":1793
*
* @property
* def text(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":1795
+ /* "lxml/etree.pyx":1796
* # FIXME: should this be None or '&[VALUE];' or the resolved
* # entity value ?
* _assertValidNode(self) # <<<<<<<<<<<<<<
* return f'&{funicode(self._c_node.name)};'
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_v_self)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1795, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_v_self)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1796, __pyx_L1_error)
- /* "lxml/etree.pyx":1796
+ /* "lxml/etree.pyx":1797
* # entity value ?
* _assertValidNode(self)
* return f'&{funicode(self._c_node.name)};' # <<<<<<<<<<<<<<
* def __repr__(self):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1796, __pyx_L1_error)
+ __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1797, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = 0;
__pyx_t_4 = 127;
__pyx_t_3 += 1;
__Pyx_GIVEREF(__pyx_kp_u__29);
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_kp_u__29);
- __pyx_t_5 = __pyx_f_4lxml_5etree_funicode(__pyx_v_self->__pyx_base.__pyx_base._c_node->name); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1796, __pyx_L1_error)
+ __pyx_t_5 = __pyx_f_4lxml_5etree_funicode(__pyx_v_self->__pyx_base.__pyx_base._c_node->name); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1797, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
- __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1796, __pyx_L1_error)
+ __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1797, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_t_4 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) > __pyx_t_4) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) : __pyx_t_4;
__pyx_t_3 += 1;
__Pyx_GIVEREF(__pyx_kp_u__30);
PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_kp_u__30);
- __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_2, 3, __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1796, __pyx_L1_error)
+ __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_2, 3, __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1797, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_r = __pyx_t_6;
__pyx_t_6 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1792
+ /* "lxml/etree.pyx":1793
*
* @property
* def text(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1798
+/* "lxml/etree.pyx":1799
* return f'&{funicode(self._c_node.name)};'
*
* def __repr__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__repr__", 0);
- /* "lxml/etree.pyx":1799
+ /* "lxml/etree.pyx":1800
*
* def __repr__(self):
* return "&%s;" % strrepr(self.name) # <<<<<<<<<<<<<<
*
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_name_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1799, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_name_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1800, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree_strrepr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1799, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree_strrepr(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1800, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __pyx_t_1 = __Pyx_PyString_FormatSafe(__pyx_kp_s_s_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1799, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyString_FormatSafe(__pyx_kp_s_s_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1800, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1798
+ /* "lxml/etree.pyx":1799
* return f'&{funicode(self._c_node.name)};'
*
* def __repr__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1826
+/* "lxml/etree.pyx":1827
* cdef readonly unicode localname
* cdef readonly unicode namespace
* def __init__(self, text_or_uri_or_element, tag=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 1826, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 1827, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1826, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1827, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.QName.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
__Pyx_INCREF(__pyx_v_text_or_uri_or_element);
__Pyx_INCREF(__pyx_v_tag);
- /* "lxml/etree.pyx":1827
+ /* "lxml/etree.pyx":1828
* cdef readonly unicode namespace
* def __init__(self, text_or_uri_or_element, tag=None):
* if text_or_uri_or_element is None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1829
+ /* "lxml/etree.pyx":1830
* if text_or_uri_or_element is None:
* # Allow None as no namespace.
* text_or_uri_or_element, tag = tag, None # <<<<<<<<<<<<<<
__Pyx_DECREF_SET(__pyx_v_tag, __pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":1827
+ /* "lxml/etree.pyx":1828
* cdef readonly unicode namespace
* def __init__(self, text_or_uri_or_element, tag=None):
* if text_or_uri_or_element is None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1830
+ /* "lxml/etree.pyx":1831
* # Allow None as no namespace.
* text_or_uri_or_element, tag = tag, None
* if not _isString(text_or_uri_or_element): # <<<<<<<<<<<<<<
__pyx_t_2 = ((!(_isString(__pyx_v_text_or_uri_or_element) != 0)) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1831
+ /* "lxml/etree.pyx":1832
* text_or_uri_or_element, tag = tag, None
* if not _isString(text_or_uri_or_element):
* if isinstance(text_or_uri_or_element, _Element): # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_t_2 != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":1832
+ /* "lxml/etree.pyx":1833
* if not _isString(text_or_uri_or_element):
* if isinstance(text_or_uri_or_element, _Element):
* text_or_uri_or_element = (<_Element>text_or_uri_or_element).tag # <<<<<<<<<<<<<<
* if not _isString(text_or_uri_or_element):
* raise ValueError, f"Invalid input tag of type {type(text_or_uri_or_element)!r}"
*/
- __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_text_or_uri_or_element, __pyx_n_s_tag); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1832, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_text_or_uri_or_element, __pyx_n_s_tag); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1833, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF_SET(__pyx_v_text_or_uri_or_element, __pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":1833
+ /* "lxml/etree.pyx":1834
* if isinstance(text_or_uri_or_element, _Element):
* text_or_uri_or_element = (<_Element>text_or_uri_or_element).tag
* if not _isString(text_or_uri_or_element): # <<<<<<<<<<<<<<
__pyx_t_1 = ((!(_isString(__pyx_v_text_or_uri_or_element) != 0)) != 0);
if (unlikely(__pyx_t_1)) {
- /* "lxml/etree.pyx":1834
+ /* "lxml/etree.pyx":1835
* text_or_uri_or_element = (<_Element>text_or_uri_or_element).tag
* if not _isString(text_or_uri_or_element):
* raise ValueError, f"Invalid input tag of type {type(text_or_uri_or_element)!r}" # <<<<<<<<<<<<<<
* elif isinstance(text_or_uri_or_element, QName):
* text_or_uri_or_element = (<QName>text_or_uri_or_element).text
*/
- __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(((PyObject *)Py_TYPE(__pyx_v_text_or_uri_or_element))), __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1834, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(((PyObject *)Py_TYPE(__pyx_v_text_or_uri_or_element))), __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1835, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
- __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Invalid_input_tag_of_type, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1834, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Invalid_input_tag_of_type, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1835, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_t_3, 0, 0);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- __PYX_ERR(0, 1834, __pyx_L1_error)
+ __PYX_ERR(0, 1835, __pyx_L1_error)
- /* "lxml/etree.pyx":1833
+ /* "lxml/etree.pyx":1834
* if isinstance(text_or_uri_or_element, _Element):
* text_or_uri_or_element = (<_Element>text_or_uri_or_element).tag
* if not _isString(text_or_uri_or_element): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1831
+ /* "lxml/etree.pyx":1832
* text_or_uri_or_element, tag = tag, None
* if not _isString(text_or_uri_or_element):
* if isinstance(text_or_uri_or_element, _Element): # <<<<<<<<<<<<<<
goto __pyx_L5;
}
- /* "lxml/etree.pyx":1835
+ /* "lxml/etree.pyx":1836
* if not _isString(text_or_uri_or_element):
* raise ValueError, f"Invalid input tag of type {type(text_or_uri_or_element)!r}"
* elif isinstance(text_or_uri_or_element, QName): # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1836
+ /* "lxml/etree.pyx":1837
* raise ValueError, f"Invalid input tag of type {type(text_or_uri_or_element)!r}"
* elif isinstance(text_or_uri_or_element, QName):
* text_or_uri_or_element = (<QName>text_or_uri_or_element).text # <<<<<<<<<<<<<<
__Pyx_DECREF_SET(__pyx_v_text_or_uri_or_element, __pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":1835
+ /* "lxml/etree.pyx":1836
* if not _isString(text_or_uri_or_element):
* raise ValueError, f"Invalid input tag of type {type(text_or_uri_or_element)!r}"
* elif isinstance(text_or_uri_or_element, QName): # <<<<<<<<<<<<<<
goto __pyx_L5;
}
- /* "lxml/etree.pyx":1837
+ /* "lxml/etree.pyx":1838
* elif isinstance(text_or_uri_or_element, QName):
* text_or_uri_or_element = (<QName>text_or_uri_or_element).text
* elif text_or_uri_or_element is not None: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_t_2 != 0);
if (likely(__pyx_t_1)) {
- /* "lxml/etree.pyx":1838
+ /* "lxml/etree.pyx":1839
* text_or_uri_or_element = (<QName>text_or_uri_or_element).text
* elif text_or_uri_or_element is not None:
* text_or_uri_or_element = unicode(text_or_uri_or_element) # <<<<<<<<<<<<<<
* else:
* raise ValueError, f"Invalid input tag of type {type(text_or_uri_or_element)!r}"
*/
- __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_v_text_or_uri_or_element); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1838, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_Unicode(__pyx_v_text_or_uri_or_element); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1839, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF_SET(__pyx_v_text_or_uri_or_element, __pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":1837
+ /* "lxml/etree.pyx":1838
* elif isinstance(text_or_uri_or_element, QName):
* text_or_uri_or_element = (<QName>text_or_uri_or_element).text
* elif text_or_uri_or_element is not None: # <<<<<<<<<<<<<<
goto __pyx_L5;
}
- /* "lxml/etree.pyx":1840
+ /* "lxml/etree.pyx":1841
* text_or_uri_or_element = unicode(text_or_uri_or_element)
* else:
* raise ValueError, f"Invalid input tag of type {type(text_or_uri_or_element)!r}" # <<<<<<<<<<<<<<
* ns_utf, tag_utf = _getNsTag(text_or_uri_or_element)
*/
/*else*/ {
- __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(((PyObject *)Py_TYPE(__pyx_v_text_or_uri_or_element))), __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1840, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(((PyObject *)Py_TYPE(__pyx_v_text_or_uri_or_element))), __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1841, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Invalid_input_tag_of_type, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1840, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Invalid_input_tag_of_type, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1841, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_t_4, 0, 0);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- __PYX_ERR(0, 1840, __pyx_L1_error)
+ __PYX_ERR(0, 1841, __pyx_L1_error)
}
__pyx_L5:;
- /* "lxml/etree.pyx":1830
+ /* "lxml/etree.pyx":1831
* # Allow None as no namespace.
* text_or_uri_or_element, tag = tag, None
* if not _isString(text_or_uri_or_element): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1842
+ /* "lxml/etree.pyx":1843
* raise ValueError, f"Invalid input tag of type {type(text_or_uri_or_element)!r}"
*
* ns_utf, tag_utf = _getNsTag(text_or_uri_or_element) # <<<<<<<<<<<<<<
* if tag is not None:
* # either ('ns', 'tag') or ('{ns}oldtag', 'newtag')
*/
- __pyx_t_4 = __pyx_f_4lxml_5etree__getNsTag(__pyx_v_text_or_uri_or_element); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1842, __pyx_L1_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree__getNsTag(__pyx_v_text_or_uri_or_element); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1843, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
if (likely(__pyx_t_4 != Py_None)) {
PyObject* sequence = __pyx_t_4;
if (unlikely(size != 2)) {
if (size > 2) __Pyx_RaiseTooManyValuesError(2);
else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
- __PYX_ERR(0, 1842, __pyx_L1_error)
+ __PYX_ERR(0, 1843, __pyx_L1_error)
}
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
__pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
__Pyx_INCREF(__pyx_t_3);
__Pyx_INCREF(__pyx_t_5);
#else
- __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1842, __pyx_L1_error)
+ __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1843, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_5 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1842, __pyx_L1_error)
+ __pyx_t_5 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1843, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
#endif
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
} else {
- __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(0, 1842, __pyx_L1_error)
+ __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(0, 1843, __pyx_L1_error)
}
__pyx_v_ns_utf = __pyx_t_3;
__pyx_t_3 = 0;
__pyx_v_tag_utf = __pyx_t_5;
__pyx_t_5 = 0;
- /* "lxml/etree.pyx":1843
+ /* "lxml/etree.pyx":1844
*
* ns_utf, tag_utf = _getNsTag(text_or_uri_or_element)
* if tag is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1845
+ /* "lxml/etree.pyx":1846
* if tag is not None:
* # either ('ns', 'tag') or ('{ns}oldtag', 'newtag')
* if ns_utf is None: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_t_2 != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":1846
+ /* "lxml/etree.pyx":1847
* # either ('ns', 'tag') or ('{ns}oldtag', 'newtag')
* if ns_utf is None:
* ns_utf = tag_utf # case 1: namespace ended up as tag name # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_v_tag_utf);
__Pyx_DECREF_SET(__pyx_v_ns_utf, __pyx_v_tag_utf);
- /* "lxml/etree.pyx":1845
+ /* "lxml/etree.pyx":1846
* if tag is not None:
* # either ('ns', 'tag') or ('{ns}oldtag', 'newtag')
* if ns_utf is None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1847
+ /* "lxml/etree.pyx":1848
* if ns_utf is None:
* ns_utf = tag_utf # case 1: namespace ended up as tag name
* tag_utf = _utf8(tag) # <<<<<<<<<<<<<<
* _tagValidOrRaise(tag_utf)
* self.localname = (<bytes>tag_utf).decode('utf8')
*/
- __pyx_t_4 = __pyx_f_4lxml_5etree__utf8(__pyx_v_tag); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1847, __pyx_L1_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree__utf8(__pyx_v_tag); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1848, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF_SET(__pyx_v_tag_utf, __pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":1843
+ /* "lxml/etree.pyx":1844
*
* ns_utf, tag_utf = _getNsTag(text_or_uri_or_element)
* if tag is not None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1848
+ /* "lxml/etree.pyx":1849
* ns_utf = tag_utf # case 1: namespace ended up as tag name
* tag_utf = _utf8(tag)
* _tagValidOrRaise(tag_utf) # <<<<<<<<<<<<<<
* self.localname = (<bytes>tag_utf).decode('utf8')
* if ns_utf is None:
*/
- __pyx_t_6 = __pyx_f_4lxml_5etree__tagValidOrRaise(__pyx_v_tag_utf); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1848, __pyx_L1_error)
+ __pyx_t_6 = __pyx_f_4lxml_5etree__tagValidOrRaise(__pyx_v_tag_utf); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1849, __pyx_L1_error)
- /* "lxml/etree.pyx":1849
+ /* "lxml/etree.pyx":1850
* tag_utf = _utf8(tag)
* _tagValidOrRaise(tag_utf)
* self.localname = (<bytes>tag_utf).decode('utf8') # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_v_tag_utf == Py_None)) {
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode");
- __PYX_ERR(0, 1849, __pyx_L1_error)
+ __PYX_ERR(0, 1850, __pyx_L1_error)
}
- __pyx_t_4 = __Pyx_decode_bytes(((PyObject*)__pyx_v_tag_utf), 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1849, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_decode_bytes(((PyObject*)__pyx_v_tag_utf), 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1850, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_GIVEREF(__pyx_t_4);
__Pyx_GOTREF(__pyx_v_self->localname);
__pyx_v_self->localname = ((PyObject*)__pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":1850
+ /* "lxml/etree.pyx":1851
* _tagValidOrRaise(tag_utf)
* self.localname = (<bytes>tag_utf).decode('utf8')
* if ns_utf is None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1851
+ /* "lxml/etree.pyx":1852
* self.localname = (<bytes>tag_utf).decode('utf8')
* if ns_utf is None:
* self.namespace = None # <<<<<<<<<<<<<<
__Pyx_DECREF(__pyx_v_self->namespace);
__pyx_v_self->namespace = ((PyObject*)Py_None);
- /* "lxml/etree.pyx":1852
+ /* "lxml/etree.pyx":1853
* if ns_utf is None:
* self.namespace = None
* self.text = self.localname # <<<<<<<<<<<<<<
__pyx_v_self->text = ((PyObject*)__pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":1850
+ /* "lxml/etree.pyx":1851
* _tagValidOrRaise(tag_utf)
* self.localname = (<bytes>tag_utf).decode('utf8')
* if ns_utf is None: # <<<<<<<<<<<<<<
goto __pyx_L9;
}
- /* "lxml/etree.pyx":1854
+ /* "lxml/etree.pyx":1855
* self.text = self.localname
* else:
* self.namespace = (<bytes>ns_utf).decode('utf8') # <<<<<<<<<<<<<<
/*else*/ {
if (unlikely(__pyx_v_ns_utf == Py_None)) {
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "decode");
- __PYX_ERR(0, 1854, __pyx_L1_error)
+ __PYX_ERR(0, 1855, __pyx_L1_error)
}
- __pyx_t_4 = __Pyx_decode_bytes(((PyObject*)__pyx_v_ns_utf), 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1854, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_decode_bytes(((PyObject*)__pyx_v_ns_utf), 0, PY_SSIZE_T_MAX, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1855, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_GIVEREF(__pyx_t_4);
__Pyx_GOTREF(__pyx_v_self->namespace);
__pyx_v_self->namespace = ((PyObject*)__pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":1855
+ /* "lxml/etree.pyx":1856
* else:
* self.namespace = (<bytes>ns_utf).decode('utf8')
* self.text = u"{%s}%s" % (self.namespace, self.localname) # <<<<<<<<<<<<<<
* def __str__(self):
* return self.text
*/
- __pyx_t_4 = PyTuple_New(4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1855, __pyx_L1_error)
+ __pyx_t_4 = PyTuple_New(4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1856, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_7 = 0;
__pyx_t_8 = 127;
__pyx_t_7 += 1;
__Pyx_GIVEREF(__pyx_kp_u__31);
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u__31);
- __pyx_t_5 = __Pyx_PyUnicode_Unicode(__pyx_v_self->namespace); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1855, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyUnicode_Unicode(__pyx_v_self->namespace); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1856, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_8 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_8) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_8;
__pyx_t_7 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
__pyx_t_7 += 1;
__Pyx_GIVEREF(__pyx_kp_u__32);
PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_kp_u__32);
- __pyx_t_5 = __Pyx_PyUnicode_Unicode(__pyx_v_self->localname); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1855, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyUnicode_Unicode(__pyx_v_self->localname); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1856, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_8 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_8) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_8;
__pyx_t_7 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
__Pyx_GIVEREF(__pyx_t_5);
PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_5);
__pyx_t_5 = 0;
- __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_4, 4, __pyx_t_7, __pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1855, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_4, 4, __pyx_t_7, __pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1856, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_GIVEREF(__pyx_t_5);
}
__pyx_L9:;
- /* "lxml/etree.pyx":1826
+ /* "lxml/etree.pyx":1827
* cdef readonly unicode localname
* cdef readonly unicode namespace
* def __init__(self, text_or_uri_or_element, tag=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1856
+/* "lxml/etree.pyx":1857
* self.namespace = (<bytes>ns_utf).decode('utf8')
* self.text = u"{%s}%s" % (self.namespace, self.localname)
* def __str__(self): # <<<<<<<<<<<<<<
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__str__", 0);
- /* "lxml/etree.pyx":1857
+ /* "lxml/etree.pyx":1858
* self.text = u"{%s}%s" % (self.namespace, self.localname)
* def __str__(self):
* return self.text # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_self->text;
goto __pyx_L0;
- /* "lxml/etree.pyx":1856
+ /* "lxml/etree.pyx":1857
* self.namespace = (<bytes>ns_utf).decode('utf8')
* self.text = u"{%s}%s" % (self.namespace, self.localname)
* def __str__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1858
+/* "lxml/etree.pyx":1859
* def __str__(self):
* return self.text
* def __hash__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__hash__", 0);
- /* "lxml/etree.pyx":1859
+ /* "lxml/etree.pyx":1860
* return self.text
* def __hash__(self):
* return hash(self.text) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = __pyx_v_self->text;
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = PyObject_Hash(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_hash_t)-1))) __PYX_ERR(0, 1859, __pyx_L1_error)
+ __pyx_t_2 = PyObject_Hash(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_hash_t)-1))) __PYX_ERR(0, 1860, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_r = __pyx_t_2;
goto __pyx_L0;
- /* "lxml/etree.pyx":1858
+ /* "lxml/etree.pyx":1859
* def __str__(self):
* return self.text
* def __hash__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1860
+/* "lxml/etree.pyx":1861
* def __hash__(self):
* return hash(self.text)
* def __richcmp__(self, other, int op): # <<<<<<<<<<<<<<
__Pyx_RefNannySetupContext("__richcmp__", 0);
__Pyx_INCREF(__pyx_v_other);
- /* "lxml/etree.pyx":1861
+ /* "lxml/etree.pyx":1862
* return hash(self.text)
* def __richcmp__(self, other, int op):
* try: # <<<<<<<<<<<<<<
__Pyx_XGOTREF(__pyx_t_3);
/*try:*/ {
- /* "lxml/etree.pyx":1862
+ /* "lxml/etree.pyx":1863
* def __richcmp__(self, other, int op):
* try:
* if type(other) is QName: # <<<<<<<<<<<<<<
__pyx_t_5 = (__pyx_t_4 != 0);
if (__pyx_t_5) {
- /* "lxml/etree.pyx":1863
+ /* "lxml/etree.pyx":1864
* try:
* if type(other) is QName:
* other = (<QName>other).text # <<<<<<<<<<<<<<
__Pyx_DECREF_SET(__pyx_v_other, __pyx_t_6);
__pyx_t_6 = 0;
- /* "lxml/etree.pyx":1862
+ /* "lxml/etree.pyx":1863
* def __richcmp__(self, other, int op):
* try:
* if type(other) is QName: # <<<<<<<<<<<<<<
goto __pyx_L9;
}
- /* "lxml/etree.pyx":1864
+ /* "lxml/etree.pyx":1865
* if type(other) is QName:
* other = (<QName>other).text
* elif not isinstance(other, unicode): # <<<<<<<<<<<<<<
__pyx_t_4 = ((!(__pyx_t_5 != 0)) != 0);
if (__pyx_t_4) {
- /* "lxml/etree.pyx":1865
+ /* "lxml/etree.pyx":1866
* other = (<QName>other).text
* elif not isinstance(other, unicode):
* other = unicode(other) # <<<<<<<<<<<<<<
* except (ValueError, UnicodeDecodeError):
* return NotImplemented
*/
- __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_v_other); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1865, __pyx_L3_error)
+ __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_v_other); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1866, __pyx_L3_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF_SET(__pyx_v_other, __pyx_t_6);
__pyx_t_6 = 0;
- /* "lxml/etree.pyx":1864
+ /* "lxml/etree.pyx":1865
* if type(other) is QName:
* other = (<QName>other).text
* elif not isinstance(other, unicode): # <<<<<<<<<<<<<<
}
__pyx_L9:;
- /* "lxml/etree.pyx":1861
+ /* "lxml/etree.pyx":1862
* return hash(self.text)
* def __richcmp__(self, other, int op):
* try: # <<<<<<<<<<<<<<
__pyx_L3_error:;
__Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
- /* "lxml/etree.pyx":1866
+ /* "lxml/etree.pyx":1867
* elif not isinstance(other, unicode):
* other = unicode(other)
* except (ValueError, UnicodeDecodeError): # <<<<<<<<<<<<<<
__pyx_t_7 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError) || __Pyx_PyErr_ExceptionMatches(__pyx_builtin_UnicodeDecodeError);
if (__pyx_t_7) {
__Pyx_AddTraceback("lxml.etree.QName.__richcmp__", __pyx_clineno, __pyx_lineno, __pyx_filename);
- if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_9) < 0) __PYX_ERR(0, 1866, __pyx_L5_except_error)
+ if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_8, &__pyx_t_9) < 0) __PYX_ERR(0, 1867, __pyx_L5_except_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_GOTREF(__pyx_t_8);
__Pyx_GOTREF(__pyx_t_9);
- /* "lxml/etree.pyx":1867
+ /* "lxml/etree.pyx":1868
* other = unicode(other)
* except (ValueError, UnicodeDecodeError):
* return NotImplemented # <<<<<<<<<<<<<<
goto __pyx_L5_except_error;
__pyx_L5_except_error:;
- /* "lxml/etree.pyx":1861
+ /* "lxml/etree.pyx":1862
* return hash(self.text)
* def __richcmp__(self, other, int op):
* try: # <<<<<<<<<<<<<<
__pyx_L8_try_end:;
}
- /* "lxml/etree.pyx":1868
+ /* "lxml/etree.pyx":1869
* except (ValueError, UnicodeDecodeError):
* return NotImplemented
* return python.PyObject_RichCompare(self.text, other, op) # <<<<<<<<<<<<<<
__Pyx_XDECREF(__pyx_r);
__pyx_t_9 = __pyx_v_self->text;
__Pyx_INCREF(__pyx_t_9);
- __pyx_t_8 = PyObject_RichCompare(__pyx_t_9, __pyx_v_other, __pyx_v_op); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1868, __pyx_L1_error)
+ __pyx_t_8 = PyObject_RichCompare(__pyx_t_9, __pyx_v_other, __pyx_v_op); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1869, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_8);
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
__pyx_r = __pyx_t_8;
__pyx_t_8 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1860
+ /* "lxml/etree.pyx":1861
* def __hash__(self):
* return hash(self.text)
* def __richcmp__(self, other, int op): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1823
+/* "lxml/etree.pyx":1824
* their text content.
* """
* cdef readonly unicode text # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1824
+/* "lxml/etree.pyx":1825
* """
* cdef readonly unicode text
* cdef readonly unicode localname # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1825
+/* "lxml/etree.pyx":1826
* cdef readonly unicode text
* cdef readonly unicode localname
* cdef readonly unicode namespace # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1881
+/* "lxml/etree.pyx":1882
*
* @cython.final
* cdef int _assertHasRoot(self) except -1: # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_assertHasRoot", 0);
- /* "lxml/etree.pyx":1887
+ /* "lxml/etree.pyx":1888
* the caller program.
* """
* assert self._context_node is not None, \ # <<<<<<<<<<<<<<
* return 0
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
__pyx_t_1 = (((PyObject *)__pyx_v_self->_context_node) != Py_None);
if (unlikely(!(__pyx_t_1 != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_ElementTree_not_initialized_miss);
- __PYX_ERR(0, 1887, __pyx_L1_error)
+ __PYX_ERR(0, 1888, __pyx_L1_error)
}
}
#endif
- /* "lxml/etree.pyx":1889
+ /* "lxml/etree.pyx":1890
* assert self._context_node is not None, \
* u"ElementTree not initialized, missing root"
* return 0 # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1881
+ /* "lxml/etree.pyx":1882
*
* @cython.final
* cdef int _assertHasRoot(self) except -1: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1891
+/* "lxml/etree.pyx":1892
* return 0
*
* def parse(self, source, _BaseParser parser=None, *, base_url=None): # <<<<<<<<<<<<<<
if (value) { values[index] = value; kw_args--; }
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "parse") < 0)) __PYX_ERR(0, 1891, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "parse") < 0)) __PYX_ERR(0, 1892, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("parse", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1891, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("parse", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1892, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._ElementTree.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return NULL;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_parser), __pyx_ptype_4lxml_5etree__BaseParser, 1, "parser", 0))) __PYX_ERR(0, 1891, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_parser), __pyx_ptype_4lxml_5etree__BaseParser, 1, "parser", 0))) __PYX_ERR(0, 1892, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_12_ElementTree_parse(((struct LxmlElementTree *)__pyx_v_self), __pyx_v_source, __pyx_v_parser, __pyx_v_base_url);
/* function exit code */
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("parse", 0);
- /* "lxml/etree.pyx":1896
+ /* "lxml/etree.pyx":1897
* Updates self with the content of source and returns its root.
* """
* cdef _Document doc = None # <<<<<<<<<<<<<<
__Pyx_INCREF(Py_None);
__pyx_v_doc = ((struct LxmlDocument *)Py_None);
- /* "lxml/etree.pyx":1897
+ /* "lxml/etree.pyx":1898
* """
* cdef _Document doc = None
* try: # <<<<<<<<<<<<<<
__Pyx_XGOTREF(__pyx_t_3);
/*try:*/ {
- /* "lxml/etree.pyx":1898
+ /* "lxml/etree.pyx":1899
* cdef _Document doc = None
* try:
* doc = _parseDocument(source, parser, base_url) # <<<<<<<<<<<<<<
* except _TargetParserResult as result_container:
* # raises a TypeError if we don't get an _Element
*/
- __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree__parseDocument(__pyx_v_source, __pyx_v_parser, __pyx_v_base_url)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1898, __pyx_L3_error)
+ __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree__parseDocument(__pyx_v_source, __pyx_v_parser, __pyx_v_base_url)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1899, __pyx_L3_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF_SET(__pyx_v_doc, ((struct LxmlDocument *)__pyx_t_4));
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":1897
+ /* "lxml/etree.pyx":1898
* """
* cdef _Document doc = None
* try: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1903
+ /* "lxml/etree.pyx":1904
* self._context_node = result_container.result
* else:
* self._context_node = doc.getroot() # <<<<<<<<<<<<<<
* return self._context_node
*/
/*else:*/ {
- __pyx_t_4 = __pyx_f_4lxml_5etree_9_Document_getroot(__pyx_v_doc); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1903, __pyx_L5_except_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree_9_Document_getroot(__pyx_v_doc); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1904, __pyx_L5_except_error)
__Pyx_GOTREF(__pyx_t_4);
- if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_4lxml_5etree__Element))))) __PYX_ERR(0, 1903, __pyx_L5_except_error)
+ if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_4lxml_5etree__Element))))) __PYX_ERR(0, 1904, __pyx_L5_except_error)
__Pyx_GIVEREF(__pyx_t_4);
__Pyx_GOTREF(__pyx_v_self->_context_node);
__Pyx_DECREF(((PyObject *)__pyx_v_self->_context_node));
__pyx_L3_error:;
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "lxml/etree.pyx":1899
+ /* "lxml/etree.pyx":1900
* try:
* doc = _parseDocument(source, parser, base_url)
* except _TargetParserResult as result_container: # <<<<<<<<<<<<<<
* self._context_node = result_container.result
*/
__Pyx_ErrFetch(&__pyx_t_4, &__pyx_t_5, &__pyx_t_6);
- __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_TargetParserResult); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1899, __pyx_L5_except_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_TargetParserResult); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1900, __pyx_L5_except_error)
__Pyx_GOTREF(__pyx_t_7);
__pyx_t_8 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_4, __pyx_t_7);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__pyx_t_4 = 0; __pyx_t_5 = 0; __pyx_t_6 = 0;
if (__pyx_t_8) {
__Pyx_AddTraceback("lxml.etree._ElementTree.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
- if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_4) < 0) __PYX_ERR(0, 1899, __pyx_L5_except_error)
+ if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_4) < 0) __PYX_ERR(0, 1900, __pyx_L5_except_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_GOTREF(__pyx_t_5);
__Pyx_GOTREF(__pyx_t_4);
__Pyx_INCREF(__pyx_t_5);
__pyx_v_result_container = __pyx_t_5;
- /* "lxml/etree.pyx":1901
+ /* "lxml/etree.pyx":1902
* except _TargetParserResult as result_container:
* # raises a TypeError if we don't get an _Element
* self._context_node = result_container.result # <<<<<<<<<<<<<<
* else:
* self._context_node = doc.getroot()
*/
- __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_result_container, __pyx_n_s_result); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1901, __pyx_L5_except_error)
+ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_result_container, __pyx_n_s_result); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1902, __pyx_L5_except_error)
__Pyx_GOTREF(__pyx_t_7);
- if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_4lxml_5etree__Element))))) __PYX_ERR(0, 1901, __pyx_L5_except_error)
+ if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_4lxml_5etree__Element))))) __PYX_ERR(0, 1902, __pyx_L5_except_error)
__Pyx_GIVEREF(__pyx_t_7);
__Pyx_GOTREF(__pyx_v_self->_context_node);
__Pyx_DECREF(((PyObject *)__pyx_v_self->_context_node));
goto __pyx_L5_except_error;
__pyx_L5_except_error:;
- /* "lxml/etree.pyx":1897
+ /* "lxml/etree.pyx":1898
* """
* cdef _Document doc = None
* try: # <<<<<<<<<<<<<<
__pyx_L8_try_end:;
}
- /* "lxml/etree.pyx":1904
+ /* "lxml/etree.pyx":1905
* else:
* self._context_node = doc.getroot()
* self._doc = None if self._context_node is not None else doc # <<<<<<<<<<<<<<
__pyx_v_self->_doc = ((struct LxmlDocument *)__pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":1905
+ /* "lxml/etree.pyx":1906
* self._context_node = doc.getroot()
* self._doc = None if self._context_node is not None else doc
* return self._context_node # <<<<<<<<<<<<<<
__pyx_r = ((PyObject *)__pyx_v_self->_context_node);
goto __pyx_L0;
- /* "lxml/etree.pyx":1891
+ /* "lxml/etree.pyx":1892
* return 0
*
* def parse(self, source, _BaseParser parser=None, *, base_url=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1907
+/* "lxml/etree.pyx":1908
* return self._context_node
*
* def _setroot(self, _Element root not None): # <<<<<<<<<<<<<<
PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("_setroot (wrapper)", 0);
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_root), __pyx_ptype_4lxml_5etree__Element, 0, "root", 0))) __PYX_ERR(0, 1907, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_root), __pyx_ptype_4lxml_5etree__Element, 0, "root", 0))) __PYX_ERR(0, 1908, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_12_ElementTree_2_setroot(((struct LxmlElementTree *)__pyx_v_self), ((struct LxmlElement *)__pyx_v_root));
/* function exit code */
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_setroot", 0);
- /* "lxml/etree.pyx":1912
+ /* "lxml/etree.pyx":1913
* Relocate the ElementTree to a new root node.
* """
* _assertValidNode(root) # <<<<<<<<<<<<<<
* if root._c_node.type != tree.XML_ELEMENT_NODE:
* raise TypeError, u"Only elements can be the root of an ElementTree"
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_root); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1912, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_root); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1913, __pyx_L1_error)
- /* "lxml/etree.pyx":1913
+ /* "lxml/etree.pyx":1914
* """
* _assertValidNode(root)
* if root._c_node.type != tree.XML_ELEMENT_NODE: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_root->_c_node->type != XML_ELEMENT_NODE) != 0);
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":1914
+ /* "lxml/etree.pyx":1915
* _assertValidNode(root)
* if root._c_node.type != tree.XML_ELEMENT_NODE:
* raise TypeError, u"Only elements can be the root of an ElementTree" # <<<<<<<<<<<<<<
* self._doc = None
*/
__Pyx_Raise(__pyx_builtin_TypeError, __pyx_kp_u_Only_elements_can_be_the_root_of, 0, 0);
- __PYX_ERR(0, 1914, __pyx_L1_error)
+ __PYX_ERR(0, 1915, __pyx_L1_error)
- /* "lxml/etree.pyx":1913
+ /* "lxml/etree.pyx":1914
* """
* _assertValidNode(root)
* if root._c_node.type != tree.XML_ELEMENT_NODE: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1915
+ /* "lxml/etree.pyx":1916
* if root._c_node.type != tree.XML_ELEMENT_NODE:
* raise TypeError, u"Only elements can be the root of an ElementTree"
* self._context_node = root # <<<<<<<<<<<<<<
__Pyx_DECREF(((PyObject *)__pyx_v_self->_context_node));
__pyx_v_self->_context_node = __pyx_v_root;
- /* "lxml/etree.pyx":1916
+ /* "lxml/etree.pyx":1917
* raise TypeError, u"Only elements can be the root of an ElementTree"
* self._context_node = root
* self._doc = None # <<<<<<<<<<<<<<
__Pyx_DECREF(((PyObject *)__pyx_v_self->_doc));
__pyx_v_self->_doc = ((struct LxmlDocument *)Py_None);
- /* "lxml/etree.pyx":1907
+ /* "lxml/etree.pyx":1908
* return self._context_node
*
* def _setroot(self, _Element root not None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1918
+/* "lxml/etree.pyx":1919
* self._doc = None
*
* def getroot(self): # <<<<<<<<<<<<<<
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("getroot", 0);
- /* "lxml/etree.pyx":1923
+ /* "lxml/etree.pyx":1924
* Gets the root element for this tree.
* """
* return self._context_node # <<<<<<<<<<<<<<
__pyx_r = ((PyObject *)__pyx_v_self->_context_node);
goto __pyx_L0;
- /* "lxml/etree.pyx":1918
+ /* "lxml/etree.pyx":1919
* self._doc = None
*
* def getroot(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1925
+/* "lxml/etree.pyx":1926
* return self._context_node
*
* def __copy__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__copy__", 0);
- /* "lxml/etree.pyx":1926
+ /* "lxml/etree.pyx":1927
*
* def __copy__(self):
* return _elementTreeFactory(self._doc, self._context_node) # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_t_1);
__pyx_t_2 = ((PyObject *)__pyx_v_self->_context_node);
__Pyx_INCREF(__pyx_t_2);
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__elementTreeFactory(((struct LxmlDocument *)__pyx_t_1), ((struct LxmlElement *)__pyx_t_2))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1926, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__elementTreeFactory(((struct LxmlDocument *)__pyx_t_1), ((struct LxmlElement *)__pyx_t_2))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1927, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1925
+ /* "lxml/etree.pyx":1926
* return self._context_node
*
* def __copy__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1928
+/* "lxml/etree.pyx":1929
* return _elementTreeFactory(self._doc, self._context_node)
*
* def __deepcopy__(self, memo): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__deepcopy__", 0);
- /* "lxml/etree.pyx":1932
+ /* "lxml/etree.pyx":1933
* cdef _Document doc
* cdef xmlDoc* c_doc
* if self._context_node is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1933
+ /* "lxml/etree.pyx":1934
* cdef xmlDoc* c_doc
* if self._context_node is not None:
* root = self._context_node.__copy__() # <<<<<<<<<<<<<<
* assert root is not None
* _assertValidNode(root)
*/
- __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->_context_node), __pyx_n_s_copy_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1933, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->_context_node), __pyx_n_s_copy_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1934, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_5 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
}
__pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
- if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1933, __pyx_L1_error)
+ if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1934, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_4lxml_5etree__Element))))) __PYX_ERR(0, 1933, __pyx_L1_error)
+ if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_4lxml_5etree__Element))))) __PYX_ERR(0, 1934, __pyx_L1_error)
__pyx_v_root = ((struct LxmlElement *)__pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":1934
+ /* "lxml/etree.pyx":1935
* if self._context_node is not None:
* root = self._context_node.__copy__()
* assert root is not None # <<<<<<<<<<<<<<
* _copyNonElementSiblings(self._context_node._c_node, root._c_node)
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
__pyx_t_2 = (((PyObject *)__pyx_v_root) != Py_None);
if (unlikely(!(__pyx_t_2 != 0))) {
PyErr_SetNone(PyExc_AssertionError);
- __PYX_ERR(0, 1934, __pyx_L1_error)
+ __PYX_ERR(0, 1935, __pyx_L1_error)
}
}
#endif
- /* "lxml/etree.pyx":1935
+ /* "lxml/etree.pyx":1936
* root = self._context_node.__copy__()
* assert root is not None
* _assertValidNode(root) # <<<<<<<<<<<<<<
* _copyNonElementSiblings(self._context_node._c_node, root._c_node)
* return _elementTreeFactory(None, root)
*/
- __pyx_t_6 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_root); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1935, __pyx_L1_error)
+ __pyx_t_6 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_root); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1936, __pyx_L1_error)
- /* "lxml/etree.pyx":1936
+ /* "lxml/etree.pyx":1937
* assert root is not None
* _assertValidNode(root)
* _copyNonElementSiblings(self._context_node._c_node, root._c_node) # <<<<<<<<<<<<<<
* return _elementTreeFactory(None, root)
* elif self._doc is not None:
*/
- __pyx_t_6 = __pyx_f_4lxml_5etree__copyNonElementSiblings(__pyx_v_self->_context_node->_c_node, __pyx_v_root->_c_node); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1936, __pyx_L1_error)
+ __pyx_t_6 = __pyx_f_4lxml_5etree__copyNonElementSiblings(__pyx_v_self->_context_node->_c_node, __pyx_v_root->_c_node); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1937, __pyx_L1_error)
- /* "lxml/etree.pyx":1937
+ /* "lxml/etree.pyx":1938
* _assertValidNode(root)
* _copyNonElementSiblings(self._context_node._c_node, root._c_node)
* return _elementTreeFactory(None, root) # <<<<<<<<<<<<<<
* _assertValidDoc(self._doc)
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__elementTreeFactory(((struct LxmlDocument *)Py_None), __pyx_v_root)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1937, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__elementTreeFactory(((struct LxmlDocument *)Py_None), __pyx_v_root)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1938, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1932
+ /* "lxml/etree.pyx":1933
* cdef _Document doc
* cdef xmlDoc* c_doc
* if self._context_node is not None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1938
+ /* "lxml/etree.pyx":1939
* _copyNonElementSiblings(self._context_node._c_node, root._c_node)
* return _elementTreeFactory(None, root)
* elif self._doc is not None: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_t_2 != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":1939
+ /* "lxml/etree.pyx":1940
* return _elementTreeFactory(None, root)
* elif self._doc is not None:
* _assertValidDoc(self._doc) # <<<<<<<<<<<<<<
*/
__pyx_t_3 = ((PyObject *)__pyx_v_self->_doc);
__Pyx_INCREF(__pyx_t_3);
- __pyx_t_6 = __pyx_f_4lxml_5etree__assertValidDoc(((struct LxmlDocument *)__pyx_t_3)); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1939, __pyx_L1_error)
+ __pyx_t_6 = __pyx_f_4lxml_5etree__assertValidDoc(((struct LxmlDocument *)__pyx_t_3)); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 1940, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- /* "lxml/etree.pyx":1940
+ /* "lxml/etree.pyx":1941
* elif self._doc is not None:
* _assertValidDoc(self._doc)
* c_doc = tree.xmlCopyDoc(self._doc._c_doc, 1) # <<<<<<<<<<<<<<
*/
__pyx_v_c_doc = xmlCopyDoc(__pyx_v_self->_doc->_c_doc, 1);
- /* "lxml/etree.pyx":1941
+ /* "lxml/etree.pyx":1942
* _assertValidDoc(self._doc)
* c_doc = tree.xmlCopyDoc(self._doc._c_doc, 1)
* if c_doc is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_doc == NULL) != 0);
if (unlikely(__pyx_t_1)) {
- /* "lxml/etree.pyx":1942
+ /* "lxml/etree.pyx":1943
* c_doc = tree.xmlCopyDoc(self._doc._c_doc, 1)
* if c_doc is NULL:
* raise MemoryError() # <<<<<<<<<<<<<<
* doc = _documentFactory(c_doc, self._doc._parser)
* return _elementTreeFactory(doc, None)
*/
- PyErr_NoMemory(); __PYX_ERR(0, 1942, __pyx_L1_error)
+ PyErr_NoMemory(); __PYX_ERR(0, 1943, __pyx_L1_error)
- /* "lxml/etree.pyx":1941
+ /* "lxml/etree.pyx":1942
* _assertValidDoc(self._doc)
* c_doc = tree.xmlCopyDoc(self._doc._c_doc, 1)
* if c_doc is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1943
+ /* "lxml/etree.pyx":1944
* if c_doc is NULL:
* raise MemoryError()
* doc = _documentFactory(c_doc, self._doc._parser) # <<<<<<<<<<<<<<
*/
__pyx_t_3 = ((PyObject *)__pyx_v_self->_doc->_parser);
__Pyx_INCREF(__pyx_t_3);
- __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree__documentFactory(__pyx_v_c_doc, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_t_3))); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1943, __pyx_L1_error)
+ __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree__documentFactory(__pyx_v_c_doc, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_t_3))); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1944, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_v_doc = ((struct LxmlDocument *)__pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":1944
+ /* "lxml/etree.pyx":1945
* raise MemoryError()
* doc = _documentFactory(c_doc, self._doc._parser)
* return _elementTreeFactory(doc, None) # <<<<<<<<<<<<<<
* # so what ...
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree__elementTreeFactory(__pyx_v_doc, ((struct LxmlElement *)Py_None))); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1944, __pyx_L1_error)
+ __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree__elementTreeFactory(__pyx_v_doc, ((struct LxmlElement *)Py_None))); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1945, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_r = __pyx_t_4;
__pyx_t_4 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1938
+ /* "lxml/etree.pyx":1939
* _copyNonElementSiblings(self._context_node._c_node, root._c_node)
* return _elementTreeFactory(None, root)
* elif self._doc is not None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1947
+ /* "lxml/etree.pyx":1948
* else:
* # so what ...
* return self # <<<<<<<<<<<<<<
goto __pyx_L0;
}
- /* "lxml/etree.pyx":1928
+ /* "lxml/etree.pyx":1929
* return _elementTreeFactory(self._doc, self._context_node)
*
* def __deepcopy__(self, memo): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1951
+/* "lxml/etree.pyx":1952
* # not in ElementTree
* @property
* def docinfo(self) -> DocInfo: # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":1953
+ /* "lxml/etree.pyx":1954
* def docinfo(self) -> DocInfo:
* """Information about the document provided by parser and DTD."""
* self._assertHasRoot() # <<<<<<<<<<<<<<
* return DocInfo(self._context_node._doc)
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1953, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 1954, __pyx_L1_error)
- /* "lxml/etree.pyx":1954
+ /* "lxml/etree.pyx":1955
* """Information about the document provided by parser and DTD."""
* self._assertHasRoot()
* return DocInfo(self._context_node._doc) # <<<<<<<<<<<<<<
* # not in ElementTree, read-only
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4lxml_5etree_DocInfo), ((PyObject *)__pyx_v_self->_context_node->_doc)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1954, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4lxml_5etree_DocInfo), ((PyObject *)__pyx_v_self->_context_node->_doc)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1955, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":1951
+ /* "lxml/etree.pyx":1952
* # not in ElementTree
* @property
* def docinfo(self) -> DocInfo: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1958
+/* "lxml/etree.pyx":1959
* # not in ElementTree, read-only
* @property
* def parser(self): # <<<<<<<<<<<<<<
int __pyx_t_3;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":1961
+ /* "lxml/etree.pyx":1962
* """The parser that was used to parse the document in this ElementTree.
* """
* if self._context_node is not None and \ # <<<<<<<<<<<<<<
goto __pyx_L4_bool_binop_done;
}
- /* "lxml/etree.pyx":1962
+ /* "lxml/etree.pyx":1963
* """
* if self._context_node is not None and \
* self._context_node._doc is not None: # <<<<<<<<<<<<<<
__pyx_t_1 = __pyx_t_2;
__pyx_L4_bool_binop_done:;
- /* "lxml/etree.pyx":1961
+ /* "lxml/etree.pyx":1962
* """The parser that was used to parse the document in this ElementTree.
* """
* if self._context_node is not None and \ # <<<<<<<<<<<<<<
*/
if (__pyx_t_1) {
- /* "lxml/etree.pyx":1963
+ /* "lxml/etree.pyx":1964
* if self._context_node is not None and \
* self._context_node._doc is not None:
* return self._context_node._doc._parser # <<<<<<<<<<<<<<
__pyx_r = ((PyObject *)__pyx_v_self->_context_node->_doc->_parser);
goto __pyx_L0;
- /* "lxml/etree.pyx":1961
+ /* "lxml/etree.pyx":1962
* """The parser that was used to parse the document in this ElementTree.
* """
* if self._context_node is not None and \ # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1964
+ /* "lxml/etree.pyx":1965
* self._context_node._doc is not None:
* return self._context_node._doc._parser
* if self._doc is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":1965
+ /* "lxml/etree.pyx":1966
* return self._context_node._doc._parser
* if self._doc is not None:
* return self._doc._parser # <<<<<<<<<<<<<<
__pyx_r = ((PyObject *)__pyx_v_self->_doc->_parser);
goto __pyx_L0;
- /* "lxml/etree.pyx":1964
+ /* "lxml/etree.pyx":1965
* self._context_node._doc is not None:
* return self._context_node._doc._parser
* if self._doc is not None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":1966
+ /* "lxml/etree.pyx":1967
* if self._doc is not None:
* return self._doc._parser
* return None # <<<<<<<<<<<<<<
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
- /* "lxml/etree.pyx":1958
+ /* "lxml/etree.pyx":1959
* # not in ElementTree, read-only
* @property
* def parser(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":1968
+/* "lxml/etree.pyx":1969
* return None
*
* def write(self, file, *, encoding=None, method="xml", # <<<<<<<<<<<<<<
values[1] = ((PyObject *)Py_None);
values[2] = ((PyObject *)__pyx_n_s_xml);
- /* "lxml/etree.pyx":1969
+ /* "lxml/etree.pyx":1970
*
* def write(self, file, *, encoding=None, method="xml",
* bint pretty_print=False, xml_declaration=None, bint with_tail=True, # <<<<<<<<<<<<<<
*/
values[4] = ((PyObject *)Py_None);
- /* "lxml/etree.pyx":1970
+ /* "lxml/etree.pyx":1971
* def write(self, file, *, encoding=None, method="xml",
* bint pretty_print=False, xml_declaration=None, bint with_tail=True,
* standalone=None, doctype=None, compression=0, # <<<<<<<<<<<<<<
values[7] = ((PyObject *)Py_None);
values[8] = ((PyObject *)__pyx_int_0);
- /* "lxml/etree.pyx":1971
+ /* "lxml/etree.pyx":1972
* bint pretty_print=False, xml_declaration=None, bint with_tail=True,
* standalone=None, doctype=None, compression=0,
* bint exclusive=False, inclusive_ns_prefixes=None, # <<<<<<<<<<<<<<
*/
values[10] = ((PyObject *)Py_None);
- /* "lxml/etree.pyx":1973
+ /* "lxml/etree.pyx":1974
* bint exclusive=False, inclusive_ns_prefixes=None,
* bint with_comments=True, bint strip_text=False,
* docstring=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "write") < 0)) __PYX_ERR(0, 1968, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "write") < 0)) __PYX_ERR(0, 1969, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
goto __pyx_L5_argtuple_error;
__pyx_v_encoding = values[1];
__pyx_v_method = values[2];
if (values[3]) {
- __pyx_v_pretty_print = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_pretty_print == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1969, __pyx_L3_error)
+ __pyx_v_pretty_print = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_pretty_print == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1970, __pyx_L3_error)
} else {
- /* "lxml/etree.pyx":1969
+ /* "lxml/etree.pyx":1970
*
* def write(self, file, *, encoding=None, method="xml",
* bint pretty_print=False, xml_declaration=None, bint with_tail=True, # <<<<<<<<<<<<<<
}
__pyx_v_xml_declaration = values[4];
if (values[5]) {
- __pyx_v_with_tail = __Pyx_PyObject_IsTrue(values[5]); if (unlikely((__pyx_v_with_tail == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1969, __pyx_L3_error)
+ __pyx_v_with_tail = __Pyx_PyObject_IsTrue(values[5]); if (unlikely((__pyx_v_with_tail == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1970, __pyx_L3_error)
} else {
__pyx_v_with_tail = ((int)1);
}
__pyx_v_doctype = values[7];
__pyx_v_compression = values[8];
if (values[9]) {
- __pyx_v_exclusive = __Pyx_PyObject_IsTrue(values[9]); if (unlikely((__pyx_v_exclusive == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1971, __pyx_L3_error)
+ __pyx_v_exclusive = __Pyx_PyObject_IsTrue(values[9]); if (unlikely((__pyx_v_exclusive == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1972, __pyx_L3_error)
} else {
- /* "lxml/etree.pyx":1971
+ /* "lxml/etree.pyx":1972
* bint pretty_print=False, xml_declaration=None, bint with_tail=True,
* standalone=None, doctype=None, compression=0,
* bint exclusive=False, inclusive_ns_prefixes=None, # <<<<<<<<<<<<<<
}
__pyx_v_inclusive_ns_prefixes = values[10];
if (values[11]) {
- __pyx_v_with_comments = __Pyx_PyObject_IsTrue(values[11]); if (unlikely((__pyx_v_with_comments == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1972, __pyx_L3_error)
+ __pyx_v_with_comments = __Pyx_PyObject_IsTrue(values[11]); if (unlikely((__pyx_v_with_comments == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1973, __pyx_L3_error)
} else {
- /* "lxml/etree.pyx":1972
+ /* "lxml/etree.pyx":1973
* standalone=None, doctype=None, compression=0,
* bint exclusive=False, inclusive_ns_prefixes=None,
* bint with_comments=True, bint strip_text=False, # <<<<<<<<<<<<<<
__pyx_v_with_comments = ((int)1);
}
if (values[12]) {
- __pyx_v_strip_text = __Pyx_PyObject_IsTrue(values[12]); if (unlikely((__pyx_v_strip_text == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1972, __pyx_L3_error)
+ __pyx_v_strip_text = __Pyx_PyObject_IsTrue(values[12]); if (unlikely((__pyx_v_strip_text == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1973, __pyx_L3_error)
} else {
__pyx_v_strip_text = ((int)0);
}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("write", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1968, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("write", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1969, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._ElementTree.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
__pyx_L4_argument_unpacking_done:;
__pyx_r = __pyx_pf_4lxml_5etree_12_ElementTree_10write(((struct LxmlElementTree *)__pyx_v_self), __pyx_v_file, __pyx_v_encoding, __pyx_v_method, __pyx_v_pretty_print, __pyx_v_xml_declaration, __pyx_v_with_tail, __pyx_v_standalone, __pyx_v_doctype, __pyx_v_compression, __pyx_v_exclusive, __pyx_v_inclusive_ns_prefixes, __pyx_v_with_comments, __pyx_v_strip_text, __pyx_v_docstring);
- /* "lxml/etree.pyx":1968
+ /* "lxml/etree.pyx":1969
* return None
*
* def write(self, file, *, encoding=None, method="xml", # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_v_doctype);
__Pyx_INCREF(__pyx_v_compression);
- /* "lxml/etree.pyx":2020
+ /* "lxml/etree.pyx":2021
* cdef int is_standalone
*
* self._assertHasRoot() # <<<<<<<<<<<<<<
* _assertValidNode(self._context_node)
* if compression is None or compression < 0:
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2020, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2021, __pyx_L1_error)
- /* "lxml/etree.pyx":2021
+ /* "lxml/etree.pyx":2022
*
* self._assertHasRoot()
* _assertValidNode(self._context_node) # <<<<<<<<<<<<<<
*/
__pyx_t_2 = ((PyObject *)__pyx_v_self->_context_node);
__Pyx_INCREF(__pyx_t_2);
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_2)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2021, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_2)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2022, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":2022
+ /* "lxml/etree.pyx":2023
* self._assertHasRoot()
* _assertValidNode(self._context_node)
* if compression is None or compression < 0: # <<<<<<<<<<<<<<
__pyx_t_3 = __pyx_t_5;
goto __pyx_L4_bool_binop_done;
}
- __pyx_t_2 = PyObject_RichCompare(__pyx_v_compression, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2022, __pyx_L1_error)
- __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2022, __pyx_L1_error)
+ __pyx_t_2 = PyObject_RichCompare(__pyx_v_compression, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2023, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2023, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_3 = __pyx_t_5;
__pyx_L4_bool_binop_done:;
if (__pyx_t_3) {
- /* "lxml/etree.pyx":2023
+ /* "lxml/etree.pyx":2024
* _assertValidNode(self._context_node)
* if compression is None or compression < 0:
* compression = 0 # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_int_0);
__Pyx_DECREF_SET(__pyx_v_compression, __pyx_int_0);
- /* "lxml/etree.pyx":2022
+ /* "lxml/etree.pyx":2023
* self._assertHasRoot()
* _assertValidNode(self._context_node)
* if compression is None or compression < 0: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2026
+ /* "lxml/etree.pyx":2027
*
* # C14N serialisation
* if method in ('c14n', 'c14n2'): # <<<<<<<<<<<<<<
*/
__Pyx_INCREF(__pyx_v_method);
__pyx_t_2 = __pyx_v_method;
- __pyx_t_5 = (__Pyx_PyString_Equals(__pyx_t_2, __pyx_n_s_c14n, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2026, __pyx_L1_error)
+ __pyx_t_5 = (__Pyx_PyString_Equals(__pyx_t_2, __pyx_n_s_c14n, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2027, __pyx_L1_error)
if (!__pyx_t_5) {
} else {
__pyx_t_3 = __pyx_t_5;
goto __pyx_L7_bool_binop_done;
}
- __pyx_t_5 = (__Pyx_PyString_Equals(__pyx_t_2, __pyx_n_s_c14n2, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2026, __pyx_L1_error)
+ __pyx_t_5 = (__Pyx_PyString_Equals(__pyx_t_2, __pyx_n_s_c14n2, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2027, __pyx_L1_error)
__pyx_t_3 = __pyx_t_5;
__pyx_L7_bool_binop_done:;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_5 = (__pyx_t_3 != 0);
if (__pyx_t_5) {
- /* "lxml/etree.pyx":2027
+ /* "lxml/etree.pyx":2028
* # C14N serialisation
* if method in ('c14n', 'c14n2'):
* if encoding is not None: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_5 != 0);
if (unlikely(__pyx_t_3)) {
- /* "lxml/etree.pyx":2028
+ /* "lxml/etree.pyx":2029
* if method in ('c14n', 'c14n2'):
* if encoding is not None:
* raise ValueError("Cannot specify encoding with C14N") # <<<<<<<<<<<<<<
* if xml_declaration:
* raise ValueError("Cannot enable XML declaration in C14N")
*/
- __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__33, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2028, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__33, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2029, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_Raise(__pyx_t_2, 0, 0, 0);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __PYX_ERR(0, 2028, __pyx_L1_error)
+ __PYX_ERR(0, 2029, __pyx_L1_error)
- /* "lxml/etree.pyx":2027
+ /* "lxml/etree.pyx":2028
* # C14N serialisation
* if method in ('c14n', 'c14n2'):
* if encoding is not None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2029
+ /* "lxml/etree.pyx":2030
* if encoding is not None:
* raise ValueError("Cannot specify encoding with C14N")
* if xml_declaration: # <<<<<<<<<<<<<<
* raise ValueError("Cannot enable XML declaration in C14N")
*
*/
- __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_xml_declaration); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 2029, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_xml_declaration); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 2030, __pyx_L1_error)
if (unlikely(__pyx_t_3)) {
- /* "lxml/etree.pyx":2030
+ /* "lxml/etree.pyx":2031
* raise ValueError("Cannot specify encoding with C14N")
* if xml_declaration:
* raise ValueError("Cannot enable XML declaration in C14N") # <<<<<<<<<<<<<<
*
* if method == 'c14n':
*/
- __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__34, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2030, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__34, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2031, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_Raise(__pyx_t_2, 0, 0, 0);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __PYX_ERR(0, 2030, __pyx_L1_error)
+ __PYX_ERR(0, 2031, __pyx_L1_error)
- /* "lxml/etree.pyx":2029
+ /* "lxml/etree.pyx":2030
* if encoding is not None:
* raise ValueError("Cannot specify encoding with C14N")
* if xml_declaration: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2032
+ /* "lxml/etree.pyx":2033
* raise ValueError("Cannot enable XML declaration in C14N")
*
* if method == 'c14n': # <<<<<<<<<<<<<<
* _tofilelikeC14N(file, self._context_node, exclusive, with_comments,
* compression, inclusive_ns_prefixes)
*/
- __pyx_t_3 = (__Pyx_PyString_Equals(__pyx_v_method, __pyx_n_s_c14n, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 2032, __pyx_L1_error)
+ __pyx_t_3 = (__Pyx_PyString_Equals(__pyx_v_method, __pyx_n_s_c14n, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 2033, __pyx_L1_error)
if (__pyx_t_3) {
- /* "lxml/etree.pyx":2033
+ /* "lxml/etree.pyx":2034
*
* if method == 'c14n':
* _tofilelikeC14N(file, self._context_node, exclusive, with_comments, # <<<<<<<<<<<<<<
__pyx_t_2 = ((PyObject *)__pyx_v_self->_context_node);
__Pyx_INCREF(__pyx_t_2);
- /* "lxml/etree.pyx":2034
+ /* "lxml/etree.pyx":2035
* if method == 'c14n':
* _tofilelikeC14N(file, self._context_node, exclusive, with_comments,
* compression, inclusive_ns_prefixes) # <<<<<<<<<<<<<<
* else: # c14n2
* with _open_utf8_file(file, compression=compression) as f:
*/
- __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_compression); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2034, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_compression); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2035, __pyx_L1_error)
- /* "lxml/etree.pyx":2033
+ /* "lxml/etree.pyx":2034
*
* if method == 'c14n':
* _tofilelikeC14N(file, self._context_node, exclusive, with_comments, # <<<<<<<<<<<<<<
* compression, inclusive_ns_prefixes)
* else: # c14n2
*/
- __pyx_t_6 = __pyx_f_4lxml_5etree__tofilelikeC14N(__pyx_v_file, ((struct LxmlElement *)__pyx_t_2), __pyx_v_exclusive, __pyx_v_with_comments, __pyx_t_1, __pyx_v_inclusive_ns_prefixes); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2033, __pyx_L1_error)
+ __pyx_t_6 = __pyx_f_4lxml_5etree__tofilelikeC14N(__pyx_v_file, ((struct LxmlElement *)__pyx_t_2), __pyx_v_exclusive, __pyx_v_with_comments, __pyx_t_1, __pyx_v_inclusive_ns_prefixes); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2034, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
- /* "lxml/etree.pyx":2032
+ /* "lxml/etree.pyx":2033
* raise ValueError("Cannot enable XML declaration in C14N")
*
* if method == 'c14n': # <<<<<<<<<<<<<<
goto __pyx_L11;
}
- /* "lxml/etree.pyx":2036
+ /* "lxml/etree.pyx":2037
* compression, inclusive_ns_prefixes)
* else: # c14n2
* with _open_utf8_file(file, compression=compression) as f: # <<<<<<<<<<<<<<
*/
/*else*/ {
/*with:*/ {
- __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2036, __pyx_L1_error)
+ __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2037, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_INCREF(__pyx_v_file);
__Pyx_GIVEREF(__pyx_v_file);
PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_v_file);
- __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2036, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2037, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_compression, __pyx_v_compression) < 0) __PYX_ERR(0, 2036, __pyx_L1_error)
- __pyx_t_7 = __Pyx_PyObject_Call(__pyx_v_4lxml_5etree__open_utf8_file, __pyx_t_6, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2036, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_compression, __pyx_v_compression) < 0) __PYX_ERR(0, 2037, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyObject_Call(__pyx_v_4lxml_5etree__open_utf8_file, __pyx_t_6, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2037, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __pyx_t_8 = __Pyx_PyObject_LookupSpecial(__pyx_t_7, __pyx_n_s_exit); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2036, __pyx_L1_error)
+ __pyx_t_8 = __Pyx_PyObject_LookupSpecial(__pyx_t_7, __pyx_n_s_exit); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2037, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_8);
- __pyx_t_6 = __Pyx_PyObject_LookupSpecial(__pyx_t_7, __pyx_n_s_enter); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2036, __pyx_L12_error)
+ __pyx_t_6 = __Pyx_PyObject_LookupSpecial(__pyx_t_7, __pyx_n_s_enter); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2037, __pyx_L12_error)
__Pyx_GOTREF(__pyx_t_6);
__pyx_t_9 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
}
__pyx_t_2 = (__pyx_t_9) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_9) : __Pyx_PyObject_CallNoArg(__pyx_t_6);
__Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
- if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2036, __pyx_L12_error)
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2037, __pyx_L12_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__pyx_t_6 = __pyx_t_2;
__pyx_v_f = __pyx_t_6;
__pyx_t_6 = 0;
- /* "lxml/etree.pyx":2038
+ /* "lxml/etree.pyx":2039
* with _open_utf8_file(file, compression=compression) as f:
* target = C14NWriterTarget(
* f.write, with_comments=with_comments, strip_text=strip_text) # <<<<<<<<<<<<<<
* _tree_to_target(self, target)
* return
*/
- __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_write); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2038, __pyx_L16_error)
+ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_f, __pyx_n_s_write); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2039, __pyx_L16_error)
__Pyx_GOTREF(__pyx_t_6);
- /* "lxml/etree.pyx":2037
+ /* "lxml/etree.pyx":2038
* else: # c14n2
* with _open_utf8_file(file, compression=compression) as f:
* target = C14NWriterTarget( # <<<<<<<<<<<<<<
* f.write, with_comments=with_comments, strip_text=strip_text)
* _tree_to_target(self, target)
*/
- __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2037, __pyx_L16_error)
+ __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2038, __pyx_L16_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_GIVEREF(__pyx_t_6);
PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6);
__pyx_t_6 = 0;
- /* "lxml/etree.pyx":2038
+ /* "lxml/etree.pyx":2039
* with _open_utf8_file(file, compression=compression) as f:
* target = C14NWriterTarget(
* f.write, with_comments=with_comments, strip_text=strip_text) # <<<<<<<<<<<<<<
* _tree_to_target(self, target)
* return
*/
- __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2038, __pyx_L16_error)
+ __pyx_t_6 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2039, __pyx_L16_error)
__Pyx_GOTREF(__pyx_t_6);
- __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_with_comments); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2038, __pyx_L16_error)
+ __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_with_comments); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2039, __pyx_L16_error)
__Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_with_comments, __pyx_t_2) < 0) __PYX_ERR(0, 2038, __pyx_L16_error)
+ if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_with_comments, __pyx_t_2) < 0) __PYX_ERR(0, 2039, __pyx_L16_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_strip_text); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2038, __pyx_L16_error)
+ __pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_v_strip_text); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2039, __pyx_L16_error)
__Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_strip_text, __pyx_t_2) < 0) __PYX_ERR(0, 2038, __pyx_L16_error)
+ if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_strip_text, __pyx_t_2) < 0) __PYX_ERR(0, 2039, __pyx_L16_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":2037
+ /* "lxml/etree.pyx":2038
* else: # c14n2
* with _open_utf8_file(file, compression=compression) as f:
* target = C14NWriterTarget( # <<<<<<<<<<<<<<
* f.write, with_comments=with_comments, strip_text=strip_text)
* _tree_to_target(self, target)
*/
- __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_C14NWriterTarget), __pyx_t_7, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2037, __pyx_L16_error)
+ __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_C14NWriterTarget), __pyx_t_7, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2038, __pyx_L16_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__pyx_v_target = ((struct __pyx_obj_4lxml_5etree_C14NWriterTarget *)__pyx_t_2);
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":2039
+ /* "lxml/etree.pyx":2040
* target = C14NWriterTarget(
* f.write, with_comments=with_comments, strip_text=strip_text)
* _tree_to_target(self, target) # <<<<<<<<<<<<<<
* return
*
*/
- __pyx_t_2 = __pyx_f_4lxml_5etree__tree_to_target(((PyObject *)__pyx_v_self), ((PyObject *)__pyx_v_target)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2039, __pyx_L16_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__tree_to_target(((PyObject *)__pyx_v_self), ((PyObject *)__pyx_v_target)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2040, __pyx_L16_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":2036
+ /* "lxml/etree.pyx":2037
* compression, inclusive_ns_prefixes)
* else: # c14n2
* with _open_utf8_file(file, compression=compression) as f: # <<<<<<<<<<<<<<
__Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
/*except:*/ {
__Pyx_AddTraceback("lxml.etree._ElementTree.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
- if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0, 2036, __pyx_L18_except_error)
+ if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(0, 2037, __pyx_L18_except_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_GOTREF(__pyx_t_6);
__Pyx_GOTREF(__pyx_t_7);
- __pyx_t_9 = PyTuple_Pack(3, __pyx_t_2, __pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2036, __pyx_L18_except_error)
+ __pyx_t_9 = PyTuple_Pack(3, __pyx_t_2, __pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2037, __pyx_L18_except_error)
__Pyx_GOTREF(__pyx_t_9);
__pyx_t_13 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_9, NULL);
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
- if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2036, __pyx_L18_except_error)
+ if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 2037, __pyx_L18_except_error)
__Pyx_GOTREF(__pyx_t_13);
__pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_13);
__Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
- if (__pyx_t_3 < 0) __PYX_ERR(0, 2036, __pyx_L18_except_error)
+ if (__pyx_t_3 < 0) __PYX_ERR(0, 2037, __pyx_L18_except_error)
__pyx_t_5 = ((!(__pyx_t_3 != 0)) != 0);
if (__pyx_t_5) {
__Pyx_GIVEREF(__pyx_t_2);
__Pyx_XGIVEREF(__pyx_t_7);
__Pyx_ErrRestoreWithState(__pyx_t_2, __pyx_t_6, __pyx_t_7);
__pyx_t_2 = 0; __pyx_t_6 = 0; __pyx_t_7 = 0;
- __PYX_ERR(0, 2036, __pyx_L18_except_error)
+ __PYX_ERR(0, 2037, __pyx_L18_except_error)
}
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
if (__pyx_t_8) {
__pyx_t_12 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_tuple__35, NULL);
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
- if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2036, __pyx_L1_error)
+ if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 2037, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_12);
__Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
}
}
__pyx_L11:;
- /* "lxml/etree.pyx":2040
+ /* "lxml/etree.pyx":2041
* f.write, with_comments=with_comments, strip_text=strip_text)
* _tree_to_target(self, target)
* return # <<<<<<<<<<<<<<
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
- /* "lxml/etree.pyx":2026
+ /* "lxml/etree.pyx":2027
*
* # C14N serialisation
* if method in ('c14n', 'c14n2'): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2042
+ /* "lxml/etree.pyx":2043
* return
*
* if not with_comments: # <<<<<<<<<<<<<<
__pyx_t_5 = ((!(__pyx_v_with_comments != 0)) != 0);
if (unlikely(__pyx_t_5)) {
- /* "lxml/etree.pyx":2043
+ /* "lxml/etree.pyx":2044
*
* if not with_comments:
* raise ValueError("Can only discard comments in C14N serialisation") # <<<<<<<<<<<<<<
* # suppress decl. in default case (purely for ElementTree compatibility)
* if xml_declaration is not None:
*/
- __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__36, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2043, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__36, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2044, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_Raise(__pyx_t_7, 0, 0, 0);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- __PYX_ERR(0, 2043, __pyx_L1_error)
+ __PYX_ERR(0, 2044, __pyx_L1_error)
- /* "lxml/etree.pyx":2042
+ /* "lxml/etree.pyx":2043
* return
*
* if not with_comments: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2045
+ /* "lxml/etree.pyx":2046
* raise ValueError("Can only discard comments in C14N serialisation")
* # suppress decl. in default case (purely for ElementTree compatibility)
* if xml_declaration is not None: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_5 != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":2046
+ /* "lxml/etree.pyx":2047
* # suppress decl. in default case (purely for ElementTree compatibility)
* if xml_declaration is not None:
* write_declaration = xml_declaration # <<<<<<<<<<<<<<
* if encoding is None:
* encoding = 'ASCII'
*/
- __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_xml_declaration); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2046, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_xml_declaration); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2047, __pyx_L1_error)
__pyx_v_write_declaration = __pyx_t_3;
- /* "lxml/etree.pyx":2047
+ /* "lxml/etree.pyx":2048
* if xml_declaration is not None:
* write_declaration = xml_declaration
* if encoding is None: # <<<<<<<<<<<<<<
__pyx_t_5 = (__pyx_t_3 != 0);
if (__pyx_t_5) {
- /* "lxml/etree.pyx":2048
+ /* "lxml/etree.pyx":2049
* write_declaration = xml_declaration
* if encoding is None:
* encoding = 'ASCII' # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_n_s_ASCII);
__Pyx_DECREF_SET(__pyx_v_encoding, __pyx_n_s_ASCII);
- /* "lxml/etree.pyx":2047
+ /* "lxml/etree.pyx":2048
* if xml_declaration is not None:
* write_declaration = xml_declaration
* if encoding is None: # <<<<<<<<<<<<<<
goto __pyx_L28;
}
- /* "lxml/etree.pyx":2050
+ /* "lxml/etree.pyx":2051
* encoding = 'ASCII'
* else:
* encoding = encoding.upper() # <<<<<<<<<<<<<<
* encoding = 'ASCII'
*/
/*else*/ {
- __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_encoding, __pyx_n_s_upper); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2050, __pyx_L1_error)
+ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_encoding, __pyx_n_s_upper); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2051, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__pyx_t_2 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
}
__pyx_t_7 = (__pyx_t_2) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_2) : __Pyx_PyObject_CallNoArg(__pyx_t_6);
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
- if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2050, __pyx_L1_error)
+ if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2051, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__Pyx_DECREF_SET(__pyx_v_encoding, __pyx_t_7);
}
__pyx_L28:;
- /* "lxml/etree.pyx":2045
+ /* "lxml/etree.pyx":2046
* raise ValueError("Can only discard comments in C14N serialisation")
* # suppress decl. in default case (purely for ElementTree compatibility)
* if xml_declaration is not None: # <<<<<<<<<<<<<<
goto __pyx_L27;
}
- /* "lxml/etree.pyx":2051
+ /* "lxml/etree.pyx":2052
* else:
* encoding = encoding.upper()
* elif encoding is None: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_5 != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":2052
+ /* "lxml/etree.pyx":2053
* encoding = encoding.upper()
* elif encoding is None:
* encoding = 'ASCII' # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_n_s_ASCII);
__Pyx_DECREF_SET(__pyx_v_encoding, __pyx_n_s_ASCII);
- /* "lxml/etree.pyx":2053
+ /* "lxml/etree.pyx":2054
* elif encoding is None:
* encoding = 'ASCII'
* write_declaration = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_write_declaration = 0;
- /* "lxml/etree.pyx":2051
+ /* "lxml/etree.pyx":2052
* else:
* encoding = encoding.upper()
* elif encoding is None: # <<<<<<<<<<<<<<
goto __pyx_L27;
}
- /* "lxml/etree.pyx":2055
+ /* "lxml/etree.pyx":2056
* write_declaration = 0
* else:
* encoding = encoding.upper() # <<<<<<<<<<<<<<
* 'US-ASCII', 'ASCII', 'UTF8', 'UTF-8')
*/
/*else*/ {
- __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_encoding, __pyx_n_s_upper); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2055, __pyx_L1_error)
+ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_encoding, __pyx_n_s_upper); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2056, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__pyx_t_2 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
}
__pyx_t_7 = (__pyx_t_2) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_2) : __Pyx_PyObject_CallNoArg(__pyx_t_6);
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
- if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2055, __pyx_L1_error)
+ if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2056, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__Pyx_DECREF_SET(__pyx_v_encoding, __pyx_t_7);
__pyx_t_7 = 0;
- /* "lxml/etree.pyx":2056
+ /* "lxml/etree.pyx":2057
* else:
* encoding = encoding.upper()
* write_declaration = encoding not in ( # <<<<<<<<<<<<<<
*/
__Pyx_INCREF(__pyx_v_encoding);
__pyx_t_7 = __pyx_v_encoding;
- __pyx_t_5 = (__Pyx_PyString_Equals(__pyx_t_7, __pyx_kp_s_US_ASCII, Py_NE)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2056, __pyx_L1_error)
+ __pyx_t_5 = (__Pyx_PyString_Equals(__pyx_t_7, __pyx_kp_s_US_ASCII, Py_NE)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2057, __pyx_L1_error)
if (__pyx_t_5) {
} else {
__pyx_t_3 = __pyx_t_5;
goto __pyx_L29_bool_binop_done;
}
- __pyx_t_5 = (__Pyx_PyString_Equals(__pyx_t_7, __pyx_n_s_ASCII, Py_NE)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2056, __pyx_L1_error)
+ __pyx_t_5 = (__Pyx_PyString_Equals(__pyx_t_7, __pyx_n_s_ASCII, Py_NE)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2057, __pyx_L1_error)
if (__pyx_t_5) {
} else {
__pyx_t_3 = __pyx_t_5;
goto __pyx_L29_bool_binop_done;
}
- __pyx_t_5 = (__Pyx_PyString_Equals(__pyx_t_7, __pyx_n_s_UTF8, Py_NE)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2056, __pyx_L1_error)
+ __pyx_t_5 = (__Pyx_PyString_Equals(__pyx_t_7, __pyx_n_s_UTF8, Py_NE)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2057, __pyx_L1_error)
if (__pyx_t_5) {
} else {
__pyx_t_3 = __pyx_t_5;
goto __pyx_L29_bool_binop_done;
}
- __pyx_t_5 = (__Pyx_PyString_Equals(__pyx_t_7, __pyx_kp_s_UTF_8, Py_NE)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2056, __pyx_L1_error)
+ __pyx_t_5 = (__Pyx_PyString_Equals(__pyx_t_7, __pyx_kp_s_UTF_8, Py_NE)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2057, __pyx_L1_error)
__pyx_t_3 = __pyx_t_5;
__pyx_L29_bool_binop_done:;
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
}
__pyx_L27:;
- /* "lxml/etree.pyx":2058
+ /* "lxml/etree.pyx":2059
* write_declaration = encoding not in (
* 'US-ASCII', 'ASCII', 'UTF8', 'UTF-8')
* if standalone is None: # <<<<<<<<<<<<<<
__pyx_t_5 = (__pyx_t_3 != 0);
if (__pyx_t_5) {
- /* "lxml/etree.pyx":2059
+ /* "lxml/etree.pyx":2060
* 'US-ASCII', 'ASCII', 'UTF8', 'UTF-8')
* if standalone is None:
* is_standalone = -1 # <<<<<<<<<<<<<<
*/
__pyx_v_is_standalone = -1;
- /* "lxml/etree.pyx":2058
+ /* "lxml/etree.pyx":2059
* write_declaration = encoding not in (
* 'US-ASCII', 'ASCII', 'UTF8', 'UTF-8')
* if standalone is None: # <<<<<<<<<<<<<<
goto __pyx_L33;
}
- /* "lxml/etree.pyx":2060
+ /* "lxml/etree.pyx":2061
* if standalone is None:
* is_standalone = -1
* elif standalone: # <<<<<<<<<<<<<<
* write_declaration = 1
* is_standalone = 1
*/
- __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v_standalone); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2060, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v_standalone); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2061, __pyx_L1_error)
if (__pyx_t_5) {
- /* "lxml/etree.pyx":2061
+ /* "lxml/etree.pyx":2062
* is_standalone = -1
* elif standalone:
* write_declaration = 1 # <<<<<<<<<<<<<<
*/
__pyx_v_write_declaration = 1;
- /* "lxml/etree.pyx":2062
+ /* "lxml/etree.pyx":2063
* elif standalone:
* write_declaration = 1
* is_standalone = 1 # <<<<<<<<<<<<<<
*/
__pyx_v_is_standalone = 1;
- /* "lxml/etree.pyx":2060
+ /* "lxml/etree.pyx":2061
* if standalone is None:
* is_standalone = -1
* elif standalone: # <<<<<<<<<<<<<<
goto __pyx_L33;
}
- /* "lxml/etree.pyx":2064
+ /* "lxml/etree.pyx":2065
* is_standalone = 1
* else:
* write_declaration = 1 # <<<<<<<<<<<<<<
/*else*/ {
__pyx_v_write_declaration = 1;
- /* "lxml/etree.pyx":2065
+ /* "lxml/etree.pyx":2066
* else:
* write_declaration = 1
* is_standalone = 0 # <<<<<<<<<<<<<<
}
__pyx_L33:;
- /* "lxml/etree.pyx":2067
+ /* "lxml/etree.pyx":2068
* is_standalone = 0
*
* if docstring is not None and doctype is None: # <<<<<<<<<<<<<<
__pyx_L35_bool_binop_done:;
if (__pyx_t_5) {
- /* "lxml/etree.pyx":2068
+ /* "lxml/etree.pyx":2069
*
* if docstring is not None and doctype is None:
* import warnings # <<<<<<<<<<<<<<
* warnings.warn(
* "The 'docstring' option is deprecated. Use 'doctype' instead.",
*/
- __pyx_t_7 = __Pyx_Import(__pyx_n_s_warnings, 0, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2068, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_Import(__pyx_n_s_warnings, 0, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2069, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__pyx_v_warnings = __pyx_t_7;
__pyx_t_7 = 0;
- /* "lxml/etree.pyx":2069
+ /* "lxml/etree.pyx":2070
* if docstring is not None and doctype is None:
* import warnings
* warnings.warn( # <<<<<<<<<<<<<<
* "The 'docstring' option is deprecated. Use 'doctype' instead.",
* DeprecationWarning)
*/
- __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_warnings, __pyx_n_s_warn); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2069, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_warnings, __pyx_n_s_warn); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2070, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
- /* "lxml/etree.pyx":2071
+ /* "lxml/etree.pyx":2072
* warnings.warn(
* "The 'docstring' option is deprecated. Use 'doctype' instead.",
* DeprecationWarning) # <<<<<<<<<<<<<<
* doctype = docstring
*
*/
- __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__37, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2069, __pyx_L1_error)
+ __pyx_t_6 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__37, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2070, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
- /* "lxml/etree.pyx":2072
+ /* "lxml/etree.pyx":2073
* "The 'docstring' option is deprecated. Use 'doctype' instead.",
* DeprecationWarning)
* doctype = docstring # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_v_docstring);
__Pyx_DECREF_SET(__pyx_v_doctype, __pyx_v_docstring);
- /* "lxml/etree.pyx":2067
+ /* "lxml/etree.pyx":2068
* is_standalone = 0
*
* if docstring is not None and doctype is None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2074
+ /* "lxml/etree.pyx":2075
* doctype = docstring
*
* _tofilelike(file, self._context_node, encoding, doctype, method, # <<<<<<<<<<<<<<
__pyx_t_6 = ((PyObject *)__pyx_v_self->_context_node);
__Pyx_INCREF(__pyx_t_6);
- /* "lxml/etree.pyx":2076
+ /* "lxml/etree.pyx":2077
* _tofilelike(file, self._context_node, encoding, doctype, method,
* write_declaration, 1, pretty_print, with_tail,
* is_standalone, compression) # <<<<<<<<<<<<<<
*
* def getpath(self, _Element element not None):
*/
- __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_compression); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2076, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_compression); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2077, __pyx_L1_error)
- /* "lxml/etree.pyx":2074
+ /* "lxml/etree.pyx":2075
* doctype = docstring
*
* _tofilelike(file, self._context_node, encoding, doctype, method, # <<<<<<<<<<<<<<
* write_declaration, 1, pretty_print, with_tail,
* is_standalone, compression)
*/
- __pyx_t_7 = __pyx_f_4lxml_5etree__tofilelike(__pyx_v_file, ((struct LxmlElement *)__pyx_t_6), __pyx_v_encoding, __pyx_v_doctype, __pyx_v_method, __pyx_v_write_declaration, 1, __pyx_v_pretty_print, __pyx_v_with_tail, __pyx_v_is_standalone, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2074, __pyx_L1_error)
+ __pyx_t_7 = __pyx_f_4lxml_5etree__tofilelike(__pyx_v_file, ((struct LxmlElement *)__pyx_t_6), __pyx_v_encoding, __pyx_v_doctype, __pyx_v_method, __pyx_v_write_declaration, 1, __pyx_v_pretty_print, __pyx_v_with_tail, __pyx_v_is_standalone, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2075, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- /* "lxml/etree.pyx":1968
+ /* "lxml/etree.pyx":1969
* return None
*
* def write(self, file, *, encoding=None, method="xml", # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2078
+/* "lxml/etree.pyx":2079
* is_standalone, compression)
*
* def getpath(self, _Element element not None): # <<<<<<<<<<<<<<
PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("getpath (wrapper)", 0);
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), __pyx_ptype_4lxml_5etree__Element, 0, "element", 0))) __PYX_ERR(0, 2078, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), __pyx_ptype_4lxml_5etree__Element, 0, "element", 0))) __PYX_ERR(0, 2079, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_12_ElementTree_12getpath(((struct LxmlElementTree *)__pyx_v_self), ((struct LxmlElement *)__pyx_v_element));
/* function exit code */
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("getpath", 0);
- /* "lxml/etree.pyx":2093
+ /* "lxml/etree.pyx":2094
* cdef _Element root
* cdef xmlDoc* c_doc
* _assertValidNode(element) # <<<<<<<<<<<<<<
* if self._context_node is not None:
* root = self._context_node
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2093, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2094, __pyx_L1_error)
- /* "lxml/etree.pyx":2094
+ /* "lxml/etree.pyx":2095
* cdef xmlDoc* c_doc
* _assertValidNode(element)
* if self._context_node is not None: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_2 != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":2095
+ /* "lxml/etree.pyx":2096
* _assertValidNode(element)
* if self._context_node is not None:
* root = self._context_node # <<<<<<<<<<<<<<
__pyx_v_root = ((struct LxmlElement *)__pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":2096
+ /* "lxml/etree.pyx":2097
* if self._context_node is not None:
* root = self._context_node
* doc = root._doc # <<<<<<<<<<<<<<
__pyx_v_doc = ((struct LxmlDocument *)__pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":2094
+ /* "lxml/etree.pyx":2095
* cdef xmlDoc* c_doc
* _assertValidNode(element)
* if self._context_node is not None: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":2097
+ /* "lxml/etree.pyx":2098
* root = self._context_node
* doc = root._doc
* elif self._doc is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_3 != 0);
if (likely(__pyx_t_2)) {
- /* "lxml/etree.pyx":2098
+ /* "lxml/etree.pyx":2099
* doc = root._doc
* elif self._doc is not None:
* doc = self._doc # <<<<<<<<<<<<<<
__pyx_v_doc = ((struct LxmlDocument *)__pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":2099
+ /* "lxml/etree.pyx":2100
* elif self._doc is not None:
* doc = self._doc
* root = doc.getroot() # <<<<<<<<<<<<<<
* else:
* raise ValueError, u"Element is not in this tree."
*/
- __pyx_t_4 = __pyx_f_4lxml_5etree_9_Document_getroot(__pyx_v_doc); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2099, __pyx_L1_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree_9_Document_getroot(__pyx_v_doc); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2100, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
- if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_4lxml_5etree__Element))))) __PYX_ERR(0, 2099, __pyx_L1_error)
+ if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_4lxml_5etree__Element))))) __PYX_ERR(0, 2100, __pyx_L1_error)
__pyx_v_root = ((struct LxmlElement *)__pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":2097
+ /* "lxml/etree.pyx":2098
* root = self._context_node
* doc = root._doc
* elif self._doc is not None: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":2101
+ /* "lxml/etree.pyx":2102
* root = doc.getroot()
* else:
* raise ValueError, u"Element is not in this tree." # <<<<<<<<<<<<<<
*/
/*else*/ {
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_Element_is_not_in_this_tree, 0, 0);
- __PYX_ERR(0, 2101, __pyx_L1_error)
+ __PYX_ERR(0, 2102, __pyx_L1_error)
}
__pyx_L3:;
- /* "lxml/etree.pyx":2102
+ /* "lxml/etree.pyx":2103
* else:
* raise ValueError, u"Element is not in this tree."
* _assertValidDoc(doc) # <<<<<<<<<<<<<<
* _assertValidNode(root)
* if element._doc is not doc:
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidDoc(__pyx_v_doc); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2102, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidDoc(__pyx_v_doc); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2103, __pyx_L1_error)
- /* "lxml/etree.pyx":2103
+ /* "lxml/etree.pyx":2104
* raise ValueError, u"Element is not in this tree."
* _assertValidDoc(doc)
* _assertValidNode(root) # <<<<<<<<<<<<<<
* if element._doc is not doc:
* raise ValueError, u"Element is not in this tree."
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_root); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2103, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_root); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2104, __pyx_L1_error)
- /* "lxml/etree.pyx":2104
+ /* "lxml/etree.pyx":2105
* _assertValidDoc(doc)
* _assertValidNode(root)
* if element._doc is not doc: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_2 != 0);
if (unlikely(__pyx_t_3)) {
- /* "lxml/etree.pyx":2105
+ /* "lxml/etree.pyx":2106
* _assertValidNode(root)
* if element._doc is not doc:
* raise ValueError, u"Element is not in this tree." # <<<<<<<<<<<<<<
* c_doc = _fakeRootDoc(doc._c_doc, root._c_node)
*/
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_Element_is_not_in_this_tree, 0, 0);
- __PYX_ERR(0, 2105, __pyx_L1_error)
+ __PYX_ERR(0, 2106, __pyx_L1_error)
- /* "lxml/etree.pyx":2104
+ /* "lxml/etree.pyx":2105
* _assertValidDoc(doc)
* _assertValidNode(root)
* if element._doc is not doc: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2107
+ /* "lxml/etree.pyx":2108
* raise ValueError, u"Element is not in this tree."
*
* c_doc = _fakeRootDoc(doc._c_doc, root._c_node) # <<<<<<<<<<<<<<
* c_path = tree.xmlGetNodePath(element._c_node)
* _destroyFakeDoc(doc._c_doc, c_doc)
*/
- __pyx_t_5 = __pyx_f_4lxml_5etree__fakeRootDoc(__pyx_v_doc->_c_doc, __pyx_v_root->_c_node); if (unlikely(__pyx_t_5 == ((xmlDoc *)NULL))) __PYX_ERR(0, 2107, __pyx_L1_error)
+ __pyx_t_5 = __pyx_f_4lxml_5etree__fakeRootDoc(__pyx_v_doc->_c_doc, __pyx_v_root->_c_node); if (unlikely(__pyx_t_5 == ((xmlDoc *)NULL))) __PYX_ERR(0, 2108, __pyx_L1_error)
__pyx_v_c_doc = __pyx_t_5;
- /* "lxml/etree.pyx":2108
+ /* "lxml/etree.pyx":2109
*
* c_doc = _fakeRootDoc(doc._c_doc, root._c_node)
* c_path = tree.xmlGetNodePath(element._c_node) # <<<<<<<<<<<<<<
*/
__pyx_v_c_path = xmlGetNodePath(__pyx_v_element->_c_node);
- /* "lxml/etree.pyx":2109
+ /* "lxml/etree.pyx":2110
* c_doc = _fakeRootDoc(doc._c_doc, root._c_node)
* c_path = tree.xmlGetNodePath(element._c_node)
* _destroyFakeDoc(doc._c_doc, c_doc) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree__destroyFakeDoc(__pyx_v_doc->_c_doc, __pyx_v_c_doc);
- /* "lxml/etree.pyx":2110
+ /* "lxml/etree.pyx":2111
* c_path = tree.xmlGetNodePath(element._c_node)
* _destroyFakeDoc(doc._c_doc, c_doc)
* if c_path is NULL: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_path == NULL) != 0);
if (unlikely(__pyx_t_3)) {
- /* "lxml/etree.pyx":2111
+ /* "lxml/etree.pyx":2112
* _destroyFakeDoc(doc._c_doc, c_doc)
* if c_path is NULL:
* raise MemoryError() # <<<<<<<<<<<<<<
* path = funicode(c_path)
* tree.xmlFree(c_path)
*/
- PyErr_NoMemory(); __PYX_ERR(0, 2111, __pyx_L1_error)
+ PyErr_NoMemory(); __PYX_ERR(0, 2112, __pyx_L1_error)
- /* "lxml/etree.pyx":2110
+ /* "lxml/etree.pyx":2111
* c_path = tree.xmlGetNodePath(element._c_node)
* _destroyFakeDoc(doc._c_doc, c_doc)
* if c_path is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2112
+ /* "lxml/etree.pyx":2113
* if c_path is NULL:
* raise MemoryError()
* path = funicode(c_path) # <<<<<<<<<<<<<<
* tree.xmlFree(c_path)
* return path
*/
- __pyx_t_4 = __pyx_f_4lxml_5etree_funicode(__pyx_v_c_path); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2112, __pyx_L1_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree_funicode(__pyx_v_c_path); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2113, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_v_path = __pyx_t_4;
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":2113
+ /* "lxml/etree.pyx":2114
* raise MemoryError()
* path = funicode(c_path)
* tree.xmlFree(c_path) # <<<<<<<<<<<<<<
*/
xmlFree(__pyx_v_c_path);
- /* "lxml/etree.pyx":2114
+ /* "lxml/etree.pyx":2115
* path = funicode(c_path)
* tree.xmlFree(c_path)
* return path # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_path;
goto __pyx_L0;
- /* "lxml/etree.pyx":2078
+ /* "lxml/etree.pyx":2079
* is_standalone, compression)
*
* def getpath(self, _Element element not None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2116
+/* "lxml/etree.pyx":2117
* return path
*
* def getelementpath(self, _Element element not None): # <<<<<<<<<<<<<<
PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("getelementpath (wrapper)", 0);
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), __pyx_ptype_4lxml_5etree__Element, 0, "element", 0))) __PYX_ERR(0, 2116, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), __pyx_ptype_4lxml_5etree__Element, 0, "element", 0))) __PYX_ERR(0, 2117, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_12_ElementTree_14getelementpath(((struct LxmlElementTree *)__pyx_v_self), ((struct LxmlElement *)__pyx_v_element));
/* function exit code */
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("getelementpath", 0);
- /* "lxml/etree.pyx":2130
+ /* "lxml/etree.pyx":2131
* cdef _Element root
* cdef Py_ssize_t count
* _assertValidNode(element) # <<<<<<<<<<<<<<
* if element._c_node.type != tree.XML_ELEMENT_NODE:
* raise ValueError, u"input is not an Element"
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2130, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2131, __pyx_L1_error)
- /* "lxml/etree.pyx":2131
+ /* "lxml/etree.pyx":2132
* cdef Py_ssize_t count
* _assertValidNode(element)
* if element._c_node.type != tree.XML_ELEMENT_NODE: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_element->_c_node->type != XML_ELEMENT_NODE) != 0);
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":2132
+ /* "lxml/etree.pyx":2133
* _assertValidNode(element)
* if element._c_node.type != tree.XML_ELEMENT_NODE:
* raise ValueError, u"input is not an Element" # <<<<<<<<<<<<<<
* root = self._context_node
*/
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_input_is_not_an_Element, 0, 0);
- __PYX_ERR(0, 2132, __pyx_L1_error)
+ __PYX_ERR(0, 2133, __pyx_L1_error)
- /* "lxml/etree.pyx":2131
+ /* "lxml/etree.pyx":2132
* cdef Py_ssize_t count
* _assertValidNode(element)
* if element._c_node.type != tree.XML_ELEMENT_NODE: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2133
+ /* "lxml/etree.pyx":2134
* if element._c_node.type != tree.XML_ELEMENT_NODE:
* raise ValueError, u"input is not an Element"
* if self._context_node is not None: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_2 != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":2134
+ /* "lxml/etree.pyx":2135
* raise ValueError, u"input is not an Element"
* if self._context_node is not None:
* root = self._context_node # <<<<<<<<<<<<<<
__pyx_v_root = ((struct LxmlElement *)__pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":2133
+ /* "lxml/etree.pyx":2134
* if element._c_node.type != tree.XML_ELEMENT_NODE:
* raise ValueError, u"input is not an Element"
* if self._context_node is not None: # <<<<<<<<<<<<<<
goto __pyx_L4;
}
- /* "lxml/etree.pyx":2135
+ /* "lxml/etree.pyx":2136
* if self._context_node is not None:
* root = self._context_node
* elif self._doc is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_3 != 0);
if (likely(__pyx_t_2)) {
- /* "lxml/etree.pyx":2136
+ /* "lxml/etree.pyx":2137
* root = self._context_node
* elif self._doc is not None:
* root = self._doc.getroot() # <<<<<<<<<<<<<<
* else:
* raise ValueError, u"Element is not in this tree"
*/
- __pyx_t_4 = __pyx_f_4lxml_5etree_9_Document_getroot(__pyx_v_self->_doc); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2136, __pyx_L1_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree_9_Document_getroot(__pyx_v_self->_doc); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2137, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
- if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_4lxml_5etree__Element))))) __PYX_ERR(0, 2136, __pyx_L1_error)
+ if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_4lxml_5etree__Element))))) __PYX_ERR(0, 2137, __pyx_L1_error)
__pyx_v_root = ((struct LxmlElement *)__pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":2135
+ /* "lxml/etree.pyx":2136
* if self._context_node is not None:
* root = self._context_node
* elif self._doc is not None: # <<<<<<<<<<<<<<
goto __pyx_L4;
}
- /* "lxml/etree.pyx":2138
+ /* "lxml/etree.pyx":2139
* root = self._doc.getroot()
* else:
* raise ValueError, u"Element is not in this tree" # <<<<<<<<<<<<<<
*/
/*else*/ {
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_Element_is_not_in_this_tree_2, 0, 0);
- __PYX_ERR(0, 2138, __pyx_L1_error)
+ __PYX_ERR(0, 2139, __pyx_L1_error)
}
__pyx_L4:;
- /* "lxml/etree.pyx":2139
+ /* "lxml/etree.pyx":2140
* else:
* raise ValueError, u"Element is not in this tree"
* _assertValidNode(root) # <<<<<<<<<<<<<<
* if element._doc is not root._doc:
* raise ValueError, u"Element is not in this tree"
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_root); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2139, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_root); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2140, __pyx_L1_error)
- /* "lxml/etree.pyx":2140
+ /* "lxml/etree.pyx":2141
* raise ValueError, u"Element is not in this tree"
* _assertValidNode(root)
* if element._doc is not root._doc: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_2 != 0);
if (unlikely(__pyx_t_3)) {
- /* "lxml/etree.pyx":2141
+ /* "lxml/etree.pyx":2142
* _assertValidNode(root)
* if element._doc is not root._doc:
* raise ValueError, u"Element is not in this tree" # <<<<<<<<<<<<<<
* path = []
*/
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_Element_is_not_in_this_tree_2, 0, 0);
- __PYX_ERR(0, 2141, __pyx_L1_error)
+ __PYX_ERR(0, 2142, __pyx_L1_error)
- /* "lxml/etree.pyx":2140
+ /* "lxml/etree.pyx":2141
* raise ValueError, u"Element is not in this tree"
* _assertValidNode(root)
* if element._doc is not root._doc: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2143
+ /* "lxml/etree.pyx":2144
* raise ValueError, u"Element is not in this tree"
*
* path = [] # <<<<<<<<<<<<<<
* c_element = element._c_node
* while c_element is not root._c_node:
*/
- __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2143, __pyx_L1_error)
+ __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2144, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_v_path = ((PyObject*)__pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":2144
+ /* "lxml/etree.pyx":2145
*
* path = []
* c_element = element._c_node # <<<<<<<<<<<<<<
__pyx_t_5 = __pyx_v_element->_c_node;
__pyx_v_c_element = __pyx_t_5;
- /* "lxml/etree.pyx":2145
+ /* "lxml/etree.pyx":2146
* path = []
* c_element = element._c_node
* while c_element is not root._c_node: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_element != __pyx_v_root->_c_node) != 0);
if (!__pyx_t_3) break;
- /* "lxml/etree.pyx":2146
+ /* "lxml/etree.pyx":2147
* c_element = element._c_node
* while c_element is not root._c_node:
* c_name = c_element.name # <<<<<<<<<<<<<<
__pyx_t_6 = __pyx_v_c_element->name;
__pyx_v_c_name = __pyx_t_6;
- /* "lxml/etree.pyx":2147
+ /* "lxml/etree.pyx":2148
* while c_element is not root._c_node:
* c_name = c_element.name
* c_href = _getNs(c_element) # <<<<<<<<<<<<<<
*/
__pyx_v_c_href = _getNs(__pyx_v_c_element);
- /* "lxml/etree.pyx":2148
+ /* "lxml/etree.pyx":2149
* c_name = c_element.name
* c_href = _getNs(c_element)
* tag = _namespacedNameFromNsName(c_href, c_name) # <<<<<<<<<<<<<<
* if c_href is NULL:
* c_href = <const_xmlChar*>b'' # no namespace (NULL is wildcard)
*/
- __pyx_t_4 = __pyx_f_4lxml_5etree__namespacedNameFromNsName(__pyx_v_c_href, __pyx_v_c_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2148, __pyx_L1_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree__namespacedNameFromNsName(__pyx_v_c_href, __pyx_v_c_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2149, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_XDECREF_SET(__pyx_v_tag, __pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":2149
+ /* "lxml/etree.pyx":2150
* c_href = _getNs(c_element)
* tag = _namespacedNameFromNsName(c_href, c_name)
* if c_href is NULL: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_href == NULL) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":2150
+ /* "lxml/etree.pyx":2151
* tag = _namespacedNameFromNsName(c_href, c_name)
* if c_href is NULL:
* c_href = <const_xmlChar*>b'' # no namespace (NULL is wildcard) # <<<<<<<<<<<<<<
*/
__pyx_v_c_href = ((const xmlChar *)((const xmlChar *)((char const *)"")));
- /* "lxml/etree.pyx":2149
+ /* "lxml/etree.pyx":2150
* c_href = _getNs(c_element)
* tag = _namespacedNameFromNsName(c_href, c_name)
* if c_href is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2152
+ /* "lxml/etree.pyx":2153
* c_href = <const_xmlChar*>b'' # no namespace (NULL is wildcard)
* # use tag[N] if there are preceding siblings with the same tag
* count = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_count = 0;
- /* "lxml/etree.pyx":2153
+ /* "lxml/etree.pyx":2154
* # use tag[N] if there are preceding siblings with the same tag
* count = 0
* c_node = c_element.prev # <<<<<<<<<<<<<<
__pyx_t_5 = __pyx_v_c_element->prev;
__pyx_v_c_node = __pyx_t_5;
- /* "lxml/etree.pyx":2154
+ /* "lxml/etree.pyx":2155
* count = 0
* c_node = c_element.prev
* while c_node is not NULL: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_node != NULL) != 0);
if (!__pyx_t_3) break;
- /* "lxml/etree.pyx":2155
+ /* "lxml/etree.pyx":2156
* c_node = c_element.prev
* while c_node is not NULL:
* if c_node.type == tree.XML_ELEMENT_NODE: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_node->type == XML_ELEMENT_NODE) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":2156
+ /* "lxml/etree.pyx":2157
* while c_node is not NULL:
* if c_node.type == tree.XML_ELEMENT_NODE:
* if _tagMatches(c_node, c_href, c_name): # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_f_4lxml_5etree__tagMatches(__pyx_v_c_node, __pyx_v_c_href, __pyx_v_c_name) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":2157
+ /* "lxml/etree.pyx":2158
* if c_node.type == tree.XML_ELEMENT_NODE:
* if _tagMatches(c_node, c_href, c_name):
* count += 1 # <<<<<<<<<<<<<<
*/
__pyx_v_count = (__pyx_v_count + 1);
- /* "lxml/etree.pyx":2156
+ /* "lxml/etree.pyx":2157
* while c_node is not NULL:
* if c_node.type == tree.XML_ELEMENT_NODE:
* if _tagMatches(c_node, c_href, c_name): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2155
+ /* "lxml/etree.pyx":2156
* c_node = c_element.prev
* while c_node is not NULL:
* if c_node.type == tree.XML_ELEMENT_NODE: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2158
+ /* "lxml/etree.pyx":2159
* if _tagMatches(c_node, c_href, c_name):
* count += 1
* c_node = c_node.prev # <<<<<<<<<<<<<<
__pyx_v_c_node = __pyx_t_5;
}
- /* "lxml/etree.pyx":2159
+ /* "lxml/etree.pyx":2160
* count += 1
* c_node = c_node.prev
* if count: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_v_count != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":2160
+ /* "lxml/etree.pyx":2161
* c_node = c_node.prev
* if count:
* tag = f'{tag}[{count+1}]' # <<<<<<<<<<<<<<
* else:
* # use tag[1] if there are following siblings with the same tag
*/
- __pyx_t_4 = PyTuple_New(4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2160, __pyx_L1_error)
+ __pyx_t_4 = PyTuple_New(4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2161, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_7 = 0;
__pyx_t_8 = 127;
- __pyx_t_9 = __Pyx_PyObject_FormatSimple(__pyx_v_tag, __pyx_empty_unicode); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2160, __pyx_L1_error)
+ __pyx_t_9 = __Pyx_PyObject_FormatSimple(__pyx_v_tag, __pyx_empty_unicode); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2161, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_9);
__pyx_t_8 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9) > __pyx_t_8) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_9) : __pyx_t_8;
__pyx_t_7 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_9);
__pyx_t_7 += 1;
__Pyx_GIVEREF(__pyx_kp_u__38);
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_kp_u__38);
- __pyx_t_9 = __Pyx_PyUnicode_From_Py_ssize_t((__pyx_v_count + 1), 0, ' ', 'd'); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2160, __pyx_L1_error)
+ __pyx_t_9 = __Pyx_PyUnicode_From_Py_ssize_t((__pyx_v_count + 1), 0, ' ', 'd'); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2161, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_9);
__pyx_t_7 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_9);
__Pyx_GIVEREF(__pyx_t_9);
__pyx_t_7 += 1;
__Pyx_GIVEREF(__pyx_kp_u__39);
PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_kp_u__39);
- __pyx_t_9 = __Pyx_PyUnicode_Join(__pyx_t_4, 4, __pyx_t_7, __pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2160, __pyx_L1_error)
+ __pyx_t_9 = __Pyx_PyUnicode_Join(__pyx_t_4, 4, __pyx_t_7, __pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2161, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_9);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF_SET(__pyx_v_tag, __pyx_t_9);
__pyx_t_9 = 0;
- /* "lxml/etree.pyx":2159
+ /* "lxml/etree.pyx":2160
* count += 1
* c_node = c_node.prev
* if count: # <<<<<<<<<<<<<<
goto __pyx_L13;
}
- /* "lxml/etree.pyx":2163
+ /* "lxml/etree.pyx":2164
* else:
* # use tag[1] if there are following siblings with the same tag
* c_node = c_element.next # <<<<<<<<<<<<<<
__pyx_t_5 = __pyx_v_c_element->next;
__pyx_v_c_node = __pyx_t_5;
- /* "lxml/etree.pyx":2164
+ /* "lxml/etree.pyx":2165
* # use tag[1] if there are following siblings with the same tag
* c_node = c_element.next
* while c_node is not NULL: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_node != NULL) != 0);
if (!__pyx_t_3) break;
- /* "lxml/etree.pyx":2165
+ /* "lxml/etree.pyx":2166
* c_node = c_element.next
* while c_node is not NULL:
* if c_node.type == tree.XML_ELEMENT_NODE: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_node->type == XML_ELEMENT_NODE) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":2166
+ /* "lxml/etree.pyx":2167
* while c_node is not NULL:
* if c_node.type == tree.XML_ELEMENT_NODE:
* if _tagMatches(c_node, c_href, c_name): # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_f_4lxml_5etree__tagMatches(__pyx_v_c_node, __pyx_v_c_href, __pyx_v_c_name) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":2167
+ /* "lxml/etree.pyx":2168
* if c_node.type == tree.XML_ELEMENT_NODE:
* if _tagMatches(c_node, c_href, c_name):
* tag += '[1]' # <<<<<<<<<<<<<<
* break
* c_node = c_node.next
*/
- __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_tag, __pyx_kp_s_1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2167, __pyx_L1_error)
+ __pyx_t_9 = PyNumber_InPlaceAdd(__pyx_v_tag, __pyx_kp_s_1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2168, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_9);
__Pyx_DECREF_SET(__pyx_v_tag, __pyx_t_9);
__pyx_t_9 = 0;
- /* "lxml/etree.pyx":2168
+ /* "lxml/etree.pyx":2169
* if _tagMatches(c_node, c_href, c_name):
* tag += '[1]'
* break # <<<<<<<<<<<<<<
*/
goto __pyx_L15_break;
- /* "lxml/etree.pyx":2166
+ /* "lxml/etree.pyx":2167
* while c_node is not NULL:
* if c_node.type == tree.XML_ELEMENT_NODE:
* if _tagMatches(c_node, c_href, c_name): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2165
+ /* "lxml/etree.pyx":2166
* c_node = c_element.next
* while c_node is not NULL:
* if c_node.type == tree.XML_ELEMENT_NODE: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2169
+ /* "lxml/etree.pyx":2170
* tag += '[1]'
* break
* c_node = c_node.next # <<<<<<<<<<<<<<
}
__pyx_L13:;
- /* "lxml/etree.pyx":2171
+ /* "lxml/etree.pyx":2172
* c_node = c_node.next
*
* path.append(tag) # <<<<<<<<<<<<<<
* c_element = c_element.parent
* if c_element is NULL or c_element.type != tree.XML_ELEMENT_NODE:
*/
- __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_path, __pyx_v_tag); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0, 2171, __pyx_L1_error)
+ __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_path, __pyx_v_tag); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0, 2172, __pyx_L1_error)
- /* "lxml/etree.pyx":2172
+ /* "lxml/etree.pyx":2173
*
* path.append(tag)
* c_element = c_element.parent # <<<<<<<<<<<<<<
__pyx_t_5 = __pyx_v_c_element->parent;
__pyx_v_c_element = __pyx_t_5;
- /* "lxml/etree.pyx":2173
+ /* "lxml/etree.pyx":2174
* path.append(tag)
* c_element = c_element.parent
* if c_element is NULL or c_element.type != tree.XML_ELEMENT_NODE: # <<<<<<<<<<<<<<
__pyx_L19_bool_binop_done:;
if (unlikely(__pyx_t_3)) {
- /* "lxml/etree.pyx":2174
+ /* "lxml/etree.pyx":2175
* c_element = c_element.parent
* if c_element is NULL or c_element.type != tree.XML_ELEMENT_NODE:
* raise ValueError, u"Element is not in this tree." # <<<<<<<<<<<<<<
* return '.'
*/
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_Element_is_not_in_this_tree, 0, 0);
- __PYX_ERR(0, 2174, __pyx_L1_error)
+ __PYX_ERR(0, 2175, __pyx_L1_error)
- /* "lxml/etree.pyx":2173
+ /* "lxml/etree.pyx":2174
* path.append(tag)
* c_element = c_element.parent
* if c_element is NULL or c_element.type != tree.XML_ELEMENT_NODE: # <<<<<<<<<<<<<<
}
}
- /* "lxml/etree.pyx":2175
+ /* "lxml/etree.pyx":2176
* if c_element is NULL or c_element.type != tree.XML_ELEMENT_NODE:
* raise ValueError, u"Element is not in this tree."
* if not path: # <<<<<<<<<<<<<<
__pyx_t_2 = ((!__pyx_t_3) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":2176
+ /* "lxml/etree.pyx":2177
* raise ValueError, u"Element is not in this tree."
* if not path:
* return '.' # <<<<<<<<<<<<<<
__pyx_r = __pyx_kp_s__4;
goto __pyx_L0;
- /* "lxml/etree.pyx":2175
+ /* "lxml/etree.pyx":2176
* if c_element is NULL or c_element.type != tree.XML_ELEMENT_NODE:
* raise ValueError, u"Element is not in this tree."
* if not path: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2177
+ /* "lxml/etree.pyx":2178
* if not path:
* return '.'
* path.reverse() # <<<<<<<<<<<<<<
* return '/'.join(path)
*
*/
- __pyx_t_10 = PyList_Reverse(__pyx_v_path); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0, 2177, __pyx_L1_error)
+ __pyx_t_10 = PyList_Reverse(__pyx_v_path); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(0, 2178, __pyx_L1_error)
- /* "lxml/etree.pyx":2178
+ /* "lxml/etree.pyx":2179
* return '.'
* path.reverse()
* return '/'.join(path) # <<<<<<<<<<<<<<
* def getiterator(self, tag=None, *tags):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_9 = __Pyx_PyString_Join(__pyx_kp_s__40, __pyx_v_path); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2178, __pyx_L1_error)
+ __pyx_t_9 = __Pyx_PyString_Join(__pyx_kp_s__40, __pyx_v_path); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2179, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_9);
__pyx_r = __pyx_t_9;
__pyx_t_9 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2116
+ /* "lxml/etree.pyx":2117
* return path
*
* def getelementpath(self, _Element element not None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2180
+/* "lxml/etree.pyx":2181
* return '/'.join(path)
*
* def getiterator(self, tag=None, *tags): # <<<<<<<<<<<<<<
}
if (unlikely(kw_args > 0)) {
const Py_ssize_t used_pos_args = (pos_args < 1) ? pos_args : 1;
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, used_pos_args, "getiterator") < 0)) __PYX_ERR(0, 2180, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, used_pos_args, "getiterator") < 0)) __PYX_ERR(0, 2181, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
__Pyx_RefNannySetupContext("getiterator", 0);
__Pyx_INCREF(__pyx_v_tags);
- /* "lxml/etree.pyx":2197
+ /* "lxml/etree.pyx":2198
* with older versions of lxml or ElementTree.
* """
* root = self.getroot() # <<<<<<<<<<<<<<
* if root is None:
* return ITER_EMPTY
*/
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getroot); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2197, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getroot); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2198, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
}
__pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
- if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2197, __pyx_L1_error)
+ if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2198, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_v_root = __pyx_t_1;
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":2198
+ /* "lxml/etree.pyx":2199
* """
* root = self.getroot()
* if root is None: # <<<<<<<<<<<<<<
__pyx_t_5 = (__pyx_t_4 != 0);
if (__pyx_t_5) {
- /* "lxml/etree.pyx":2199
+ /* "lxml/etree.pyx":2200
* root = self.getroot()
* if root is None:
* return ITER_EMPTY # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_4lxml_5etree_ITER_EMPTY;
goto __pyx_L0;
- /* "lxml/etree.pyx":2198
+ /* "lxml/etree.pyx":2199
* """
* root = self.getroot()
* if root is None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2200
+ /* "lxml/etree.pyx":2201
* if root is None:
* return ITER_EMPTY
* if tag is not None: # <<<<<<<<<<<<<<
__pyx_t_4 = (__pyx_t_5 != 0);
if (__pyx_t_4) {
- /* "lxml/etree.pyx":2201
+ /* "lxml/etree.pyx":2202
* return ITER_EMPTY
* if tag is not None:
* tags += (tag,) # <<<<<<<<<<<<<<
* return root.getiterator(*tags)
*
*/
- __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2201, __pyx_L1_error)
+ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2202, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(__pyx_v_tag);
__Pyx_GIVEREF(__pyx_v_tag);
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_tag);
- __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_tags, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2201, __pyx_L1_error)
+ __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_tags, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2202, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF_SET(__pyx_v_tags, ((PyObject*)__pyx_t_2));
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":2200
+ /* "lxml/etree.pyx":2201
* if root is None:
* return ITER_EMPTY
* if tag is not None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2202
+ /* "lxml/etree.pyx":2203
* if tag is not None:
* tags += (tag,)
* return root.getiterator(*tags) # <<<<<<<<<<<<<<
* def iter(self, tag=None, *tags):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_root, __pyx_n_s_getiterator); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2202, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_root, __pyx_n_s_getiterator); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2203, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_v_tags, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2202, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_v_tags, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2203, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2180
+ /* "lxml/etree.pyx":2181
* return '/'.join(path)
*
* def getiterator(self, tag=None, *tags): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2204
+/* "lxml/etree.pyx":2205
* return root.getiterator(*tags)
*
* def iter(self, tag=None, *tags): # <<<<<<<<<<<<<<
}
if (unlikely(kw_args > 0)) {
const Py_ssize_t used_pos_args = (pos_args < 1) ? pos_args : 1;
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, used_pos_args, "iter") < 0)) __PYX_ERR(0, 2204, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, used_pos_args, "iter") < 0)) __PYX_ERR(0, 2205, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
__Pyx_RefNannySetupContext("iter", 0);
__Pyx_INCREF(__pyx_v_tags);
- /* "lxml/etree.pyx":2215
+ /* "lxml/etree.pyx":2216
* see `_Element.iter`.
* """
* root = self.getroot() # <<<<<<<<<<<<<<
* if root is None:
* return ITER_EMPTY
*/
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getroot); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2215, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getroot); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2216, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
}
__pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
- if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2215, __pyx_L1_error)
+ if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2216, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_v_root = __pyx_t_1;
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":2216
+ /* "lxml/etree.pyx":2217
* """
* root = self.getroot()
* if root is None: # <<<<<<<<<<<<<<
__pyx_t_5 = (__pyx_t_4 != 0);
if (__pyx_t_5) {
- /* "lxml/etree.pyx":2217
+ /* "lxml/etree.pyx":2218
* root = self.getroot()
* if root is None:
* return ITER_EMPTY # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_4lxml_5etree_ITER_EMPTY;
goto __pyx_L0;
- /* "lxml/etree.pyx":2216
+ /* "lxml/etree.pyx":2217
* """
* root = self.getroot()
* if root is None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2218
+ /* "lxml/etree.pyx":2219
* if root is None:
* return ITER_EMPTY
* if tag is not None: # <<<<<<<<<<<<<<
__pyx_t_4 = (__pyx_t_5 != 0);
if (__pyx_t_4) {
- /* "lxml/etree.pyx":2219
+ /* "lxml/etree.pyx":2220
* return ITER_EMPTY
* if tag is not None:
* tags += (tag,) # <<<<<<<<<<<<<<
* return root.iter(*tags)
*
*/
- __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2219, __pyx_L1_error)
+ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2220, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(__pyx_v_tag);
__Pyx_GIVEREF(__pyx_v_tag);
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_tag);
- __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_tags, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2219, __pyx_L1_error)
+ __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_tags, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2220, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF_SET(__pyx_v_tags, ((PyObject*)__pyx_t_2));
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":2218
+ /* "lxml/etree.pyx":2219
* if root is None:
* return ITER_EMPTY
* if tag is not None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2220
+ /* "lxml/etree.pyx":2221
* if tag is not None:
* tags += (tag,)
* return root.iter(*tags) # <<<<<<<<<<<<<<
* def find(self, path, namespaces=None):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_root, __pyx_n_s_iter); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2220, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_root, __pyx_n_s_iter); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2221, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_v_tags, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2220, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_v_tags, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2221, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2204
+ /* "lxml/etree.pyx":2205
* return root.getiterator(*tags)
*
* def iter(self, tag=None, *tags): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2222
+/* "lxml/etree.pyx":2223
* return root.iter(*tags)
*
* def find(self, path, namespaces=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "find") < 0)) __PYX_ERR(0, 2222, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "find") < 0)) __PYX_ERR(0, 2223, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("find", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2222, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("find", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2223, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._ElementTree.find", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
__Pyx_RefNannySetupContext("find", 0);
__Pyx_INCREF(__pyx_v_path);
- /* "lxml/etree.pyx":2232
+ /* "lxml/etree.pyx":2233
* prefixes in the path expression.
* """
* self._assertHasRoot() # <<<<<<<<<<<<<<
* root = self.getroot()
* if _isString(path):
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2232, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2233, __pyx_L1_error)
- /* "lxml/etree.pyx":2233
+ /* "lxml/etree.pyx":2234
* """
* self._assertHasRoot()
* root = self.getroot() # <<<<<<<<<<<<<<
* if _isString(path):
* if path[:1] == "/":
*/
- __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getroot); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2233, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getroot); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2234, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
}
__pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
- if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2233, __pyx_L1_error)
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2234, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_v_root = __pyx_t_2;
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":2234
+ /* "lxml/etree.pyx":2235
* self._assertHasRoot()
* root = self.getroot()
* if _isString(path): # <<<<<<<<<<<<<<
__pyx_t_5 = (_isString(__pyx_v_path) != 0);
if (__pyx_t_5) {
- /* "lxml/etree.pyx":2235
+ /* "lxml/etree.pyx":2236
* root = self.getroot()
* if _isString(path):
* if path[:1] == "/": # <<<<<<<<<<<<<<
* path = "." + path
* return root.find(path, namespaces)
*/
- __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_path, 0, 1, NULL, NULL, &__pyx_slice__41, 0, 1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2235, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_path, 0, 1, NULL, NULL, &__pyx_slice__41, 0, 1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2236, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_5 = (__Pyx_PyString_Equals(__pyx_t_2, __pyx_kp_s__40, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2235, __pyx_L1_error)
+ __pyx_t_5 = (__Pyx_PyString_Equals(__pyx_t_2, __pyx_kp_s__40, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2236, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
if (__pyx_t_5) {
- /* "lxml/etree.pyx":2236
+ /* "lxml/etree.pyx":2237
* if _isString(path):
* if path[:1] == "/":
* path = "." + path # <<<<<<<<<<<<<<
* return root.find(path, namespaces)
*
*/
- __pyx_t_2 = PyNumber_Add(__pyx_kp_s__4, __pyx_v_path); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2236, __pyx_L1_error)
+ __pyx_t_2 = PyNumber_Add(__pyx_kp_s__4, __pyx_v_path); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2237, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF_SET(__pyx_v_path, __pyx_t_2);
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":2235
+ /* "lxml/etree.pyx":2236
* root = self.getroot()
* if _isString(path):
* if path[:1] == "/": # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2234
+ /* "lxml/etree.pyx":2235
* self._assertHasRoot()
* root = self.getroot()
* if _isString(path): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2237
+ /* "lxml/etree.pyx":2238
* if path[:1] == "/":
* path = "." + path
* return root.find(path, namespaces) # <<<<<<<<<<<<<<
* def findtext(self, path, default=None, namespaces=None):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_root, __pyx_n_s_find); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2237, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_root, __pyx_n_s_find); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2238, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = NULL;
__pyx_t_1 = 0;
#if CYTHON_FAST_PYCALL
if (PyFunction_Check(__pyx_t_3)) {
PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_path, __pyx_v_namespaces};
- __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_1, 2+__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2237, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_1, 2+__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2238, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_GOTREF(__pyx_t_2);
} else
#if CYTHON_FAST_PYCCALL
if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_path, __pyx_v_namespaces};
- __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_1, 2+__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2237, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_1, 2+__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2238, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_GOTREF(__pyx_t_2);
} else
#endif
{
- __pyx_t_6 = PyTuple_New(2+__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2237, __pyx_L1_error)
+ __pyx_t_6 = PyTuple_New(2+__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2238, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
if (__pyx_t_4) {
__Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL;
__Pyx_INCREF(__pyx_v_namespaces);
__Pyx_GIVEREF(__pyx_v_namespaces);
PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_1, __pyx_v_namespaces);
- __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2237, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2238, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
}
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2222
+ /* "lxml/etree.pyx":2223
* return root.iter(*tags)
*
* def find(self, path, namespaces=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2239
+/* "lxml/etree.pyx":2240
* return root.find(path, namespaces)
*
* def findtext(self, path, default=None, namespaces=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "findtext") < 0)) __PYX_ERR(0, 2239, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "findtext") < 0)) __PYX_ERR(0, 2240, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("findtext", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2239, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("findtext", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2240, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._ElementTree.findtext", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
__Pyx_RefNannySetupContext("findtext", 0);
__Pyx_INCREF(__pyx_v_path);
- /* "lxml/etree.pyx":2249
+ /* "lxml/etree.pyx":2250
* prefixes in the path expression.
* """
* self._assertHasRoot() # <<<<<<<<<<<<<<
* root = self.getroot()
* if _isString(path):
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2249, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2250, __pyx_L1_error)
- /* "lxml/etree.pyx":2250
+ /* "lxml/etree.pyx":2251
* """
* self._assertHasRoot()
* root = self.getroot() # <<<<<<<<<<<<<<
* if _isString(path):
* if path[:1] == "/":
*/
- __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getroot); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2250, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getroot); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2251, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
}
__pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
- if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2250, __pyx_L1_error)
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2251, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_v_root = __pyx_t_2;
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":2251
+ /* "lxml/etree.pyx":2252
* self._assertHasRoot()
* root = self.getroot()
* if _isString(path): # <<<<<<<<<<<<<<
__pyx_t_5 = (_isString(__pyx_v_path) != 0);
if (__pyx_t_5) {
- /* "lxml/etree.pyx":2252
+ /* "lxml/etree.pyx":2253
* root = self.getroot()
* if _isString(path):
* if path[:1] == "/": # <<<<<<<<<<<<<<
* path = "." + path
* return root.findtext(path, default, namespaces)
*/
- __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_path, 0, 1, NULL, NULL, &__pyx_slice__41, 0, 1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2252, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_path, 0, 1, NULL, NULL, &__pyx_slice__41, 0, 1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2253, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_5 = (__Pyx_PyString_Equals(__pyx_t_2, __pyx_kp_s__40, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2252, __pyx_L1_error)
+ __pyx_t_5 = (__Pyx_PyString_Equals(__pyx_t_2, __pyx_kp_s__40, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2253, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
if (__pyx_t_5) {
- /* "lxml/etree.pyx":2253
+ /* "lxml/etree.pyx":2254
* if _isString(path):
* if path[:1] == "/":
* path = "." + path # <<<<<<<<<<<<<<
* return root.findtext(path, default, namespaces)
*
*/
- __pyx_t_2 = PyNumber_Add(__pyx_kp_s__4, __pyx_v_path); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2253, __pyx_L1_error)
+ __pyx_t_2 = PyNumber_Add(__pyx_kp_s__4, __pyx_v_path); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2254, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF_SET(__pyx_v_path, __pyx_t_2);
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":2252
+ /* "lxml/etree.pyx":2253
* root = self.getroot()
* if _isString(path):
* if path[:1] == "/": # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2251
+ /* "lxml/etree.pyx":2252
* self._assertHasRoot()
* root = self.getroot()
* if _isString(path): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2254
+ /* "lxml/etree.pyx":2255
* if path[:1] == "/":
* path = "." + path
* return root.findtext(path, default, namespaces) # <<<<<<<<<<<<<<
* def findall(self, path, namespaces=None):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_root, __pyx_n_s_findtext); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2254, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_root, __pyx_n_s_findtext); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2255, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = NULL;
__pyx_t_1 = 0;
#if CYTHON_FAST_PYCALL
if (PyFunction_Check(__pyx_t_3)) {
PyObject *__pyx_temp[4] = {__pyx_t_4, __pyx_v_path, __pyx_v_default, __pyx_v_namespaces};
- __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_1, 3+__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2254, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_1, 3+__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2255, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_GOTREF(__pyx_t_2);
} else
#if CYTHON_FAST_PYCCALL
if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
PyObject *__pyx_temp[4] = {__pyx_t_4, __pyx_v_path, __pyx_v_default, __pyx_v_namespaces};
- __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_1, 3+__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2254, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_1, 3+__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2255, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_GOTREF(__pyx_t_2);
} else
#endif
{
- __pyx_t_6 = PyTuple_New(3+__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2254, __pyx_L1_error)
+ __pyx_t_6 = PyTuple_New(3+__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2255, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
if (__pyx_t_4) {
__Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL;
__Pyx_INCREF(__pyx_v_namespaces);
__Pyx_GIVEREF(__pyx_v_namespaces);
PyTuple_SET_ITEM(__pyx_t_6, 2+__pyx_t_1, __pyx_v_namespaces);
- __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2254, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2255, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
}
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2239
+ /* "lxml/etree.pyx":2240
* return root.find(path, namespaces)
*
* def findtext(self, path, default=None, namespaces=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2256
+/* "lxml/etree.pyx":2257
* return root.findtext(path, default, namespaces)
*
* def findall(self, path, namespaces=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "findall") < 0)) __PYX_ERR(0, 2256, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "findall") < 0)) __PYX_ERR(0, 2257, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("findall", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2256, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("findall", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2257, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._ElementTree.findall", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
__Pyx_RefNannySetupContext("findall", 0);
__Pyx_INCREF(__pyx_v_path);
- /* "lxml/etree.pyx":2266
+ /* "lxml/etree.pyx":2267
* prefixes in the path expression.
* """
* self._assertHasRoot() # <<<<<<<<<<<<<<
* root = self.getroot()
* if _isString(path):
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2266, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2267, __pyx_L1_error)
- /* "lxml/etree.pyx":2267
+ /* "lxml/etree.pyx":2268
* """
* self._assertHasRoot()
* root = self.getroot() # <<<<<<<<<<<<<<
* if _isString(path):
* if path[:1] == "/":
*/
- __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getroot); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2267, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getroot); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2268, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
}
__pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
- if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2267, __pyx_L1_error)
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2268, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_v_root = __pyx_t_2;
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":2268
+ /* "lxml/etree.pyx":2269
* self._assertHasRoot()
* root = self.getroot()
* if _isString(path): # <<<<<<<<<<<<<<
__pyx_t_5 = (_isString(__pyx_v_path) != 0);
if (__pyx_t_5) {
- /* "lxml/etree.pyx":2269
+ /* "lxml/etree.pyx":2270
* root = self.getroot()
* if _isString(path):
* if path[:1] == "/": # <<<<<<<<<<<<<<
* path = "." + path
* return root.findall(path, namespaces)
*/
- __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_path, 0, 1, NULL, NULL, &__pyx_slice__41, 0, 1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2269, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_path, 0, 1, NULL, NULL, &__pyx_slice__41, 0, 1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2270, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_5 = (__Pyx_PyString_Equals(__pyx_t_2, __pyx_kp_s__40, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2269, __pyx_L1_error)
+ __pyx_t_5 = (__Pyx_PyString_Equals(__pyx_t_2, __pyx_kp_s__40, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2270, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
if (__pyx_t_5) {
- /* "lxml/etree.pyx":2270
+ /* "lxml/etree.pyx":2271
* if _isString(path):
* if path[:1] == "/":
* path = "." + path # <<<<<<<<<<<<<<
* return root.findall(path, namespaces)
*
*/
- __pyx_t_2 = PyNumber_Add(__pyx_kp_s__4, __pyx_v_path); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2270, __pyx_L1_error)
+ __pyx_t_2 = PyNumber_Add(__pyx_kp_s__4, __pyx_v_path); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2271, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF_SET(__pyx_v_path, __pyx_t_2);
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":2269
+ /* "lxml/etree.pyx":2270
* root = self.getroot()
* if _isString(path):
* if path[:1] == "/": # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2268
+ /* "lxml/etree.pyx":2269
* self._assertHasRoot()
* root = self.getroot()
* if _isString(path): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2271
+ /* "lxml/etree.pyx":2272
* if path[:1] == "/":
* path = "." + path
* return root.findall(path, namespaces) # <<<<<<<<<<<<<<
* def iterfind(self, path, namespaces=None):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_root, __pyx_n_s_findall); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2271, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_root, __pyx_n_s_findall); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2272, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = NULL;
__pyx_t_1 = 0;
#if CYTHON_FAST_PYCALL
if (PyFunction_Check(__pyx_t_3)) {
PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_path, __pyx_v_namespaces};
- __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_1, 2+__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2271, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_1, 2+__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2272, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_GOTREF(__pyx_t_2);
} else
#if CYTHON_FAST_PYCCALL
if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_path, __pyx_v_namespaces};
- __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_1, 2+__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2271, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_1, 2+__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2272, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_GOTREF(__pyx_t_2);
} else
#endif
{
- __pyx_t_6 = PyTuple_New(2+__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2271, __pyx_L1_error)
+ __pyx_t_6 = PyTuple_New(2+__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2272, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
if (__pyx_t_4) {
__Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL;
__Pyx_INCREF(__pyx_v_namespaces);
__Pyx_GIVEREF(__pyx_v_namespaces);
PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_1, __pyx_v_namespaces);
- __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2271, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2272, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
}
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2256
+ /* "lxml/etree.pyx":2257
* return root.findtext(path, default, namespaces)
*
* def findall(self, path, namespaces=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2273
+/* "lxml/etree.pyx":2274
* return root.findall(path, namespaces)
*
* def iterfind(self, path, namespaces=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "iterfind") < 0)) __PYX_ERR(0, 2273, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "iterfind") < 0)) __PYX_ERR(0, 2274, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("iterfind", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2273, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("iterfind", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2274, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._ElementTree.iterfind", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
__Pyx_RefNannySetupContext("iterfind", 0);
__Pyx_INCREF(__pyx_v_path);
- /* "lxml/etree.pyx":2283
+ /* "lxml/etree.pyx":2284
* prefixes in the path expression.
* """
* self._assertHasRoot() # <<<<<<<<<<<<<<
* root = self.getroot()
* if _isString(path):
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2283, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2284, __pyx_L1_error)
- /* "lxml/etree.pyx":2284
+ /* "lxml/etree.pyx":2285
* """
* self._assertHasRoot()
* root = self.getroot() # <<<<<<<<<<<<<<
* if _isString(path):
* if path[:1] == "/":
*/
- __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getroot); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2284, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_getroot); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2285, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
}
__pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
- if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2284, __pyx_L1_error)
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2285, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_v_root = __pyx_t_2;
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":2285
+ /* "lxml/etree.pyx":2286
* self._assertHasRoot()
* root = self.getroot()
* if _isString(path): # <<<<<<<<<<<<<<
__pyx_t_5 = (_isString(__pyx_v_path) != 0);
if (__pyx_t_5) {
- /* "lxml/etree.pyx":2286
+ /* "lxml/etree.pyx":2287
* root = self.getroot()
* if _isString(path):
* if path[:1] == "/": # <<<<<<<<<<<<<<
* path = "." + path
* return root.iterfind(path, namespaces)
*/
- __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_path, 0, 1, NULL, NULL, &__pyx_slice__41, 0, 1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2286, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_path, 0, 1, NULL, NULL, &__pyx_slice__41, 0, 1, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2287, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_5 = (__Pyx_PyString_Equals(__pyx_t_2, __pyx_kp_s__40, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2286, __pyx_L1_error)
+ __pyx_t_5 = (__Pyx_PyString_Equals(__pyx_t_2, __pyx_kp_s__40, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2287, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
if (__pyx_t_5) {
- /* "lxml/etree.pyx":2287
+ /* "lxml/etree.pyx":2288
* if _isString(path):
* if path[:1] == "/":
* path = "." + path # <<<<<<<<<<<<<<
* return root.iterfind(path, namespaces)
*
*/
- __pyx_t_2 = PyNumber_Add(__pyx_kp_s__4, __pyx_v_path); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2287, __pyx_L1_error)
+ __pyx_t_2 = PyNumber_Add(__pyx_kp_s__4, __pyx_v_path); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2288, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF_SET(__pyx_v_path, __pyx_t_2);
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":2286
+ /* "lxml/etree.pyx":2287
* root = self.getroot()
* if _isString(path):
* if path[:1] == "/": # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2285
+ /* "lxml/etree.pyx":2286
* self._assertHasRoot()
* root = self.getroot()
* if _isString(path): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2288
+ /* "lxml/etree.pyx":2289
* if path[:1] == "/":
* path = "." + path
* return root.iterfind(path, namespaces) # <<<<<<<<<<<<<<
* def xpath(self, _path, *, namespaces=None, extensions=None,
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_root, __pyx_n_s_iterfind); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2288, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_root, __pyx_n_s_iterfind); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2289, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = NULL;
__pyx_t_1 = 0;
#if CYTHON_FAST_PYCALL
if (PyFunction_Check(__pyx_t_3)) {
PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_path, __pyx_v_namespaces};
- __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_1, 2+__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2288, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_1, 2+__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2289, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_GOTREF(__pyx_t_2);
} else
#if CYTHON_FAST_PYCCALL
if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
PyObject *__pyx_temp[3] = {__pyx_t_4, __pyx_v_path, __pyx_v_namespaces};
- __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_1, 2+__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2288, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_1, 2+__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2289, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_GOTREF(__pyx_t_2);
} else
#endif
{
- __pyx_t_6 = PyTuple_New(2+__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2288, __pyx_L1_error)
+ __pyx_t_6 = PyTuple_New(2+__pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2289, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
if (__pyx_t_4) {
__Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL;
__Pyx_INCREF(__pyx_v_namespaces);
__Pyx_GIVEREF(__pyx_v_namespaces);
PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_1, __pyx_v_namespaces);
- __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2288, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2289, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
}
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2273
+ /* "lxml/etree.pyx":2274
* return root.findall(path, namespaces)
*
* def iterfind(self, path, namespaces=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2290
+/* "lxml/etree.pyx":2291
* return root.iterfind(path, namespaces)
*
* def xpath(self, _path, *, namespaces=None, extensions=None, # <<<<<<<<<<<<<<
values[1] = ((PyObject *)Py_None);
values[2] = ((PyObject *)Py_None);
- /* "lxml/etree.pyx":2291
+ /* "lxml/etree.pyx":2292
*
* def xpath(self, _path, *, namespaces=None, extensions=None,
* smart_strings=True, **_variables): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v__variables, values, pos_args, "xpath") < 0)) __PYX_ERR(0, 2290, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v__variables, values, pos_args, "xpath") < 0)) __PYX_ERR(0, 2291, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("xpath", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2290, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("xpath", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2291, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_DECREF(__pyx_v__variables); __pyx_v__variables = 0;
__Pyx_AddTraceback("lxml.etree._ElementTree.xpath", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_L4_argument_unpacking_done:;
__pyx_r = __pyx_pf_4lxml_5etree_12_ElementTree_28xpath(((struct LxmlElementTree *)__pyx_v_self), __pyx_v__path, __pyx_v_namespaces, __pyx_v_extensions, __pyx_v_smart_strings, __pyx_v__variables);
- /* "lxml/etree.pyx":2290
+ /* "lxml/etree.pyx":2291
* return root.iterfind(path, namespaces)
*
* def xpath(self, _path, *, namespaces=None, extensions=None, # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("xpath", 0);
- /* "lxml/etree.pyx":2309
+ /* "lxml/etree.pyx":2310
* XPathEvaluator directly.
* """
* self._assertHasRoot() # <<<<<<<<<<<<<<
* evaluator = XPathDocumentEvaluator(self, namespaces=namespaces,
* extensions=extensions,
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2309, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2310, __pyx_L1_error)
- /* "lxml/etree.pyx":2310
+ /* "lxml/etree.pyx":2311
* """
* self._assertHasRoot()
* evaluator = XPathDocumentEvaluator(self, namespaces=namespaces, # <<<<<<<<<<<<<<
* extensions=extensions,
* smart_strings=smart_strings)
*/
- __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2310, __pyx_L1_error)
+ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2311, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_INCREF(((PyObject *)__pyx_v_self));
__Pyx_GIVEREF(((PyObject *)__pyx_v_self));
PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_self));
- __pyx_t_3 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2310, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2311, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_namespaces, __pyx_v_namespaces) < 0) __PYX_ERR(0, 2310, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_namespaces, __pyx_v_namespaces) < 0) __PYX_ERR(0, 2311, __pyx_L1_error)
- /* "lxml/etree.pyx":2311
+ /* "lxml/etree.pyx":2312
* self._assertHasRoot()
* evaluator = XPathDocumentEvaluator(self, namespaces=namespaces,
* extensions=extensions, # <<<<<<<<<<<<<<
* smart_strings=smart_strings)
* return evaluator(_path, **_variables)
*/
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_extensions, __pyx_v_extensions) < 0) __PYX_ERR(0, 2310, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_extensions, __pyx_v_extensions) < 0) __PYX_ERR(0, 2311, __pyx_L1_error)
- /* "lxml/etree.pyx":2312
+ /* "lxml/etree.pyx":2313
* evaluator = XPathDocumentEvaluator(self, namespaces=namespaces,
* extensions=extensions,
* smart_strings=smart_strings) # <<<<<<<<<<<<<<
* return evaluator(_path, **_variables)
*
*/
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_smart_strings, __pyx_v_smart_strings) < 0) __PYX_ERR(0, 2310, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_smart_strings, __pyx_v_smart_strings) < 0) __PYX_ERR(0, 2311, __pyx_L1_error)
- /* "lxml/etree.pyx":2310
+ /* "lxml/etree.pyx":2311
* """
* self._assertHasRoot()
* evaluator = XPathDocumentEvaluator(self, namespaces=namespaces, # <<<<<<<<<<<<<<
* extensions=extensions,
* smart_strings=smart_strings)
*/
- __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_XPathDocumentEvaluator), __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2310, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_XPathDocumentEvaluator), __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2311, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_v_evaluator = ((struct __pyx_obj_4lxml_5etree_XPathDocumentEvaluator *)__pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":2313
+ /* "lxml/etree.pyx":2314
* extensions=extensions,
* smart_strings=smart_strings)
* return evaluator(_path, **_variables) # <<<<<<<<<<<<<<
* def xslt(self, _xslt, extensions=None, access_control=None, **_kw):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2313, __pyx_L1_error)
+ __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2314, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_INCREF(__pyx_v__path);
__Pyx_GIVEREF(__pyx_v__path);
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v__path);
- __pyx_t_3 = PyDict_Copy(__pyx_v__variables); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2313, __pyx_L1_error)
+ __pyx_t_3 = PyDict_Copy(__pyx_v__variables); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2314, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_v_evaluator), __pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2313, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_v_evaluator), __pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2314, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2290
+ /* "lxml/etree.pyx":2291
* return root.iterfind(path, namespaces)
*
* def xpath(self, _path, *, namespaces=None, extensions=None, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2315
+/* "lxml/etree.pyx":2316
* return evaluator(_path, **_variables)
*
* def xslt(self, _xslt, extensions=None, access_control=None, **_kw): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v__kw, values, pos_args, "xslt") < 0)) __PYX_ERR(0, 2315, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v__kw, values, pos_args, "xslt") < 0)) __PYX_ERR(0, 2316, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("xslt", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2315, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("xslt", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2316, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_DECREF(__pyx_v__kw); __pyx_v__kw = 0;
__Pyx_AddTraceback("lxml.etree._ElementTree.xslt", __pyx_clineno, __pyx_lineno, __pyx_filename);
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("xslt", 0);
- /* "lxml/etree.pyx":2329
+ /* "lxml/etree.pyx":2330
* class directly.
* """
* self._assertHasRoot() # <<<<<<<<<<<<<<
* style = XSLT(_xslt, extensions=extensions,
* access_control=access_control)
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2329, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2330, __pyx_L1_error)
- /* "lxml/etree.pyx":2330
+ /* "lxml/etree.pyx":2331
* """
* self._assertHasRoot()
* style = XSLT(_xslt, extensions=extensions, # <<<<<<<<<<<<<<
* access_control=access_control)
* return style(self, **_kw)
*/
- __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2330, __pyx_L1_error)
+ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2331, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_INCREF(__pyx_v__xslt);
__Pyx_GIVEREF(__pyx_v__xslt);
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v__xslt);
- __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2330, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2331, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_extensions, __pyx_v_extensions) < 0) __PYX_ERR(0, 2330, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_extensions, __pyx_v_extensions) < 0) __PYX_ERR(0, 2331, __pyx_L1_error)
- /* "lxml/etree.pyx":2331
+ /* "lxml/etree.pyx":2332
* self._assertHasRoot()
* style = XSLT(_xslt, extensions=extensions,
* access_control=access_control) # <<<<<<<<<<<<<<
* return style(self, **_kw)
*
*/
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_access_control, __pyx_v_access_control) < 0) __PYX_ERR(0, 2330, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_access_control, __pyx_v_access_control) < 0) __PYX_ERR(0, 2331, __pyx_L1_error)
- /* "lxml/etree.pyx":2330
+ /* "lxml/etree.pyx":2331
* """
* self._assertHasRoot()
* style = XSLT(_xslt, extensions=extensions, # <<<<<<<<<<<<<<
* access_control=access_control)
* return style(self, **_kw)
*/
- __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_XSLT), __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2330, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_XSLT), __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2331, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_v_style = ((struct __pyx_obj_4lxml_5etree_XSLT *)__pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":2332
+ /* "lxml/etree.pyx":2333
* style = XSLT(_xslt, extensions=extensions,
* access_control=access_control)
* return style(self, **_kw) # <<<<<<<<<<<<<<
* def relaxng(self, relaxng):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2332, __pyx_L1_error)
+ __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2333, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_INCREF(((PyObject *)__pyx_v_self));
__Pyx_GIVEREF(((PyObject *)__pyx_v_self));
PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_v_self));
- __pyx_t_3 = PyDict_Copy(__pyx_v__kw); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2332, __pyx_L1_error)
+ __pyx_t_3 = PyDict_Copy(__pyx_v__kw); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2333, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_v_style), __pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2332, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_v_style), __pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2333, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2315
+ /* "lxml/etree.pyx":2316
* return evaluator(_path, **_variables)
*
* def xslt(self, _xslt, extensions=None, access_control=None, **_kw): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2334
+/* "lxml/etree.pyx":2335
* return style(self, **_kw)
*
* def relaxng(self, relaxng): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("relaxng", 0);
- /* "lxml/etree.pyx":2348
+ /* "lxml/etree.pyx":2349
* class directly.
* """
* self._assertHasRoot() # <<<<<<<<<<<<<<
* schema = RelaxNG(relaxng)
* return schema.validate(self)
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2348, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2349, __pyx_L1_error)
- /* "lxml/etree.pyx":2349
+ /* "lxml/etree.pyx":2350
* """
* self._assertHasRoot()
* schema = RelaxNG(relaxng) # <<<<<<<<<<<<<<
* return schema.validate(self)
*
*/
- __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4lxml_5etree_RelaxNG), __pyx_v_relaxng); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2349, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4lxml_5etree_RelaxNG), __pyx_v_relaxng); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2350, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_v_schema = ((struct __pyx_obj_4lxml_5etree_RelaxNG *)__pyx_t_2);
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":2350
+ /* "lxml/etree.pyx":2351
* self._assertHasRoot()
* schema = RelaxNG(relaxng)
* return schema.validate(self) # <<<<<<<<<<<<<<
* def xmlschema(self, xmlschema):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_schema), __pyx_n_s_validate); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2350, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_schema), __pyx_n_s_validate); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2351, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
}
__pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, ((PyObject *)__pyx_v_self)) : __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_self));
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
- if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2350, __pyx_L1_error)
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2351, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2334
+ /* "lxml/etree.pyx":2335
* return style(self, **_kw)
*
* def relaxng(self, relaxng): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2352
+/* "lxml/etree.pyx":2353
* return schema.validate(self)
*
* def xmlschema(self, xmlschema): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("xmlschema", 0);
- /* "lxml/etree.pyx":2366
+ /* "lxml/etree.pyx":2367
* class directly.
* """
* self._assertHasRoot() # <<<<<<<<<<<<<<
* schema = XMLSchema(xmlschema)
* return schema.validate(self)
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2366, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2367, __pyx_L1_error)
- /* "lxml/etree.pyx":2367
+ /* "lxml/etree.pyx":2368
* """
* self._assertHasRoot()
* schema = XMLSchema(xmlschema) # <<<<<<<<<<<<<<
* return schema.validate(self)
*
*/
- __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4lxml_5etree_XMLSchema), __pyx_v_xmlschema); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2367, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4lxml_5etree_XMLSchema), __pyx_v_xmlschema); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2368, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_v_schema = ((struct __pyx_obj_4lxml_5etree_XMLSchema *)__pyx_t_2);
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":2368
+ /* "lxml/etree.pyx":2369
* self._assertHasRoot()
* schema = XMLSchema(xmlschema)
* return schema.validate(self) # <<<<<<<<<<<<<<
* def xinclude(self):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_schema), __pyx_n_s_validate); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2368, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_schema), __pyx_n_s_validate); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2369, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
}
__pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, ((PyObject *)__pyx_v_self)) : __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_self));
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
- if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2368, __pyx_L1_error)
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2369, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2352
+ /* "lxml/etree.pyx":2353
* return schema.validate(self)
*
* def xmlschema(self, xmlschema): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2370
+/* "lxml/etree.pyx":2371
* return schema.validate(self)
*
* def xinclude(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("xinclude", 0);
- /* "lxml/etree.pyx":2382
+ /* "lxml/etree.pyx":2383
* due to restrictions of libxml2 <= 2.6.29.
* """
* self._assertHasRoot() # <<<<<<<<<<<<<<
* XInclude()(self._context_node)
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2382, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2383, __pyx_L1_error)
- /* "lxml/etree.pyx":2383
+ /* "lxml/etree.pyx":2384
* """
* self._assertHasRoot()
* XInclude()(self._context_node) # <<<<<<<<<<<<<<
*
* def write_c14n(self, file, *, bint exclusive=False, bint with_comments=True,
*/
- __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree_XInclude)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2383, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree_XInclude)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2384, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = NULL;
if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
}
__pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, ((PyObject *)__pyx_v_self->_context_node)) : __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_self->_context_node));
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
- if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2383, __pyx_L1_error)
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2384, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":2370
+ /* "lxml/etree.pyx":2371
* return schema.validate(self)
*
* def xinclude(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2385
+/* "lxml/etree.pyx":2386
* XInclude()(self._context_node)
*
* def write_c14n(self, file, *, bint exclusive=False, bint with_comments=True, # <<<<<<<<<<<<<<
PyObject* values[5] = {0,0,0,0,0};
values[3] = ((PyObject *)__pyx_int_0);
- /* "lxml/etree.pyx":2386
+ /* "lxml/etree.pyx":2387
*
* def write_c14n(self, file, *, bint exclusive=False, bint with_comments=True,
* compression=0, inclusive_ns_prefixes=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "write_c14n") < 0)) __PYX_ERR(0, 2385, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "write_c14n") < 0)) __PYX_ERR(0, 2386, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
goto __pyx_L5_argtuple_error;
}
__pyx_v_file = values[0];
if (values[1]) {
- __pyx_v_exclusive = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_exclusive == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2385, __pyx_L3_error)
+ __pyx_v_exclusive = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_exclusive == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2386, __pyx_L3_error)
} else {
- /* "lxml/etree.pyx":2385
+ /* "lxml/etree.pyx":2386
* XInclude()(self._context_node)
*
* def write_c14n(self, file, *, bint exclusive=False, bint with_comments=True, # <<<<<<<<<<<<<<
__pyx_v_exclusive = ((int)0);
}
if (values[2]) {
- __pyx_v_with_comments = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_with_comments == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2385, __pyx_L3_error)
+ __pyx_v_with_comments = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_with_comments == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2386, __pyx_L3_error)
} else {
__pyx_v_with_comments = ((int)1);
}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("write_c14n", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2385, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("write_c14n", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2386, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._ElementTree.write_c14n", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
__Pyx_RefNannySetupContext("write_c14n", 0);
__Pyx_INCREF(__pyx_v_compression);
- /* "lxml/etree.pyx":2407
+ /* "lxml/etree.pyx":2408
* future release. Use ``.write(f, method="c14n")`` instead.
* """
* self._assertHasRoot() # <<<<<<<<<<<<<<
* _assertValidNode(self._context_node)
* if compression is None or compression < 0:
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2407, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot(__pyx_v_self); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2408, __pyx_L1_error)
- /* "lxml/etree.pyx":2408
+ /* "lxml/etree.pyx":2409
* """
* self._assertHasRoot()
* _assertValidNode(self._context_node) # <<<<<<<<<<<<<<
*/
__pyx_t_2 = ((PyObject *)__pyx_v_self->_context_node);
__Pyx_INCREF(__pyx_t_2);
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_2)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2408, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_2)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2409, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":2409
+ /* "lxml/etree.pyx":2410
* self._assertHasRoot()
* _assertValidNode(self._context_node)
* if compression is None or compression < 0: # <<<<<<<<<<<<<<
__pyx_t_3 = __pyx_t_5;
goto __pyx_L4_bool_binop_done;
}
- __pyx_t_2 = PyObject_RichCompare(__pyx_v_compression, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2409, __pyx_L1_error)
- __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2409, __pyx_L1_error)
+ __pyx_t_2 = PyObject_RichCompare(__pyx_v_compression, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2410, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 2410, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_3 = __pyx_t_5;
__pyx_L4_bool_binop_done:;
if (__pyx_t_3) {
- /* "lxml/etree.pyx":2410
+ /* "lxml/etree.pyx":2411
* _assertValidNode(self._context_node)
* if compression is None or compression < 0:
* compression = 0 # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_int_0);
__Pyx_DECREF_SET(__pyx_v_compression, __pyx_int_0);
- /* "lxml/etree.pyx":2409
+ /* "lxml/etree.pyx":2410
* self._assertHasRoot()
* _assertValidNode(self._context_node)
* if compression is None or compression < 0: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2412
+ /* "lxml/etree.pyx":2413
* compression = 0
*
* _tofilelikeC14N(file, self._context_node, exclusive, with_comments, # <<<<<<<<<<<<<<
__pyx_t_2 = ((PyObject *)__pyx_v_self->_context_node);
__Pyx_INCREF(__pyx_t_2);
- /* "lxml/etree.pyx":2413
+ /* "lxml/etree.pyx":2414
*
* _tofilelikeC14N(file, self._context_node, exclusive, with_comments,
* compression, inclusive_ns_prefixes) # <<<<<<<<<<<<<<
*
* cdef _ElementTree _elementTreeFactory(_Document doc, _Element context_node):
*/
- __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_compression); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2413, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_compression); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2414, __pyx_L1_error)
- /* "lxml/etree.pyx":2412
+ /* "lxml/etree.pyx":2413
* compression = 0
*
* _tofilelikeC14N(file, self._context_node, exclusive, with_comments, # <<<<<<<<<<<<<<
* compression, inclusive_ns_prefixes)
*
*/
- __pyx_t_6 = __pyx_f_4lxml_5etree__tofilelikeC14N(__pyx_v_file, ((struct LxmlElement *)__pyx_t_2), __pyx_v_exclusive, __pyx_v_with_comments, __pyx_t_1, __pyx_v_inclusive_ns_prefixes); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2412, __pyx_L1_error)
+ __pyx_t_6 = __pyx_f_4lxml_5etree__tofilelikeC14N(__pyx_v_file, ((struct LxmlElement *)__pyx_t_2), __pyx_v_exclusive, __pyx_v_with_comments, __pyx_t_1, __pyx_v_inclusive_ns_prefixes); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2413, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
- /* "lxml/etree.pyx":2385
+ /* "lxml/etree.pyx":2386
* XInclude()(self._context_node)
*
* def write_c14n(self, file, *, bint exclusive=False, bint with_comments=True, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2415
+/* "lxml/etree.pyx":2416
* compression, inclusive_ns_prefixes)
*
* cdef _ElementTree _elementTreeFactory(_Document doc, _Element context_node): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_elementTreeFactory", 0);
- /* "lxml/etree.pyx":2416
+ /* "lxml/etree.pyx":2417
*
* cdef _ElementTree _elementTreeFactory(_Document doc, _Element context_node):
* return _newElementTree(doc, context_node, _ElementTree) # <<<<<<<<<<<<<<
* cdef _ElementTree _newElementTree(_Document doc, _Element context_node,
*/
__Pyx_XDECREF(((PyObject *)__pyx_r));
- __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__newElementTree(__pyx_v_doc, __pyx_v_context_node, ((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2416, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__newElementTree(__pyx_v_doc, __pyx_v_context_node, ((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2417, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = ((struct LxmlElementTree *)__pyx_t_1);
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2415
+ /* "lxml/etree.pyx":2416
* compression, inclusive_ns_prefixes)
*
* cdef _ElementTree _elementTreeFactory(_Document doc, _Element context_node): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2418
+/* "lxml/etree.pyx":2419
* return _newElementTree(doc, context_node, _ElementTree)
*
* cdef _ElementTree _newElementTree(_Document doc, _Element context_node, # <<<<<<<<<<<<<<
__Pyx_RefNannySetupContext("_newElementTree", 0);
__Pyx_INCREF((PyObject *)__pyx_v_context_node);
- /* "lxml/etree.pyx":2421
+ /* "lxml/etree.pyx":2422
* object baseclass):
* cdef _ElementTree result
* result = baseclass() # <<<<<<<<<<<<<<
}
__pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
- if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2421, __pyx_L1_error)
+ if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2422, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_4lxml_5etree__ElementTree))))) __PYX_ERR(0, 2421, __pyx_L1_error)
+ if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_4lxml_5etree__ElementTree))))) __PYX_ERR(0, 2422, __pyx_L1_error)
__pyx_v_result = ((struct LxmlElementTree *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":2422
+ /* "lxml/etree.pyx":2423
* cdef _ElementTree result
* result = baseclass()
* if context_node is None and doc is not None: # <<<<<<<<<<<<<<
__pyx_L4_bool_binop_done:;
if (__pyx_t_4) {
- /* "lxml/etree.pyx":2423
+ /* "lxml/etree.pyx":2424
* result = baseclass()
* if context_node is None and doc is not None:
* context_node = doc.getroot() # <<<<<<<<<<<<<<
* if context_node is None:
* _assertValidDoc(doc)
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_9_Document_getroot(__pyx_v_doc); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2423, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_9_Document_getroot(__pyx_v_doc); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2424, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_4lxml_5etree__Element))))) __PYX_ERR(0, 2423, __pyx_L1_error)
+ if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_4lxml_5etree__Element))))) __PYX_ERR(0, 2424, __pyx_L1_error)
__Pyx_DECREF_SET(__pyx_v_context_node, ((struct LxmlElement *)__pyx_t_1));
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":2422
+ /* "lxml/etree.pyx":2423
* cdef _ElementTree result
* result = baseclass()
* if context_node is None and doc is not None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2424
+ /* "lxml/etree.pyx":2425
* if context_node is None and doc is not None:
* context_node = doc.getroot()
* if context_node is None: # <<<<<<<<<<<<<<
__pyx_t_5 = (__pyx_t_4 != 0);
if (__pyx_t_5) {
- /* "lxml/etree.pyx":2425
+ /* "lxml/etree.pyx":2426
* context_node = doc.getroot()
* if context_node is None:
* _assertValidDoc(doc) # <<<<<<<<<<<<<<
* result._doc = doc
* else:
*/
- __pyx_t_7 = __pyx_f_4lxml_5etree__assertValidDoc(__pyx_v_doc); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 2425, __pyx_L1_error)
+ __pyx_t_7 = __pyx_f_4lxml_5etree__assertValidDoc(__pyx_v_doc); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 2426, __pyx_L1_error)
- /* "lxml/etree.pyx":2426
+ /* "lxml/etree.pyx":2427
* if context_node is None:
* _assertValidDoc(doc)
* result._doc = doc # <<<<<<<<<<<<<<
__Pyx_DECREF(((PyObject *)__pyx_v_result->_doc));
__pyx_v_result->_doc = __pyx_v_doc;
- /* "lxml/etree.pyx":2424
+ /* "lxml/etree.pyx":2425
* if context_node is None and doc is not None:
* context_node = doc.getroot()
* if context_node is None: # <<<<<<<<<<<<<<
goto __pyx_L6;
}
- /* "lxml/etree.pyx":2428
+ /* "lxml/etree.pyx":2429
* result._doc = doc
* else:
* _assertValidNode(context_node) # <<<<<<<<<<<<<<
* return result
*/
/*else*/ {
- __pyx_t_7 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_context_node); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 2428, __pyx_L1_error)
+ __pyx_t_7 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_context_node); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(0, 2429, __pyx_L1_error)
}
__pyx_L6:;
- /* "lxml/etree.pyx":2429
+ /* "lxml/etree.pyx":2430
* else:
* _assertValidNode(context_node)
* result._context_node = context_node # <<<<<<<<<<<<<<
__Pyx_DECREF(((PyObject *)__pyx_v_result->_context_node));
__pyx_v_result->_context_node = __pyx_v_context_node;
- /* "lxml/etree.pyx":2430
+ /* "lxml/etree.pyx":2431
* _assertValidNode(context_node)
* result._context_node = context_node
* return result # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_result;
goto __pyx_L0;
- /* "lxml/etree.pyx":2418
+ /* "lxml/etree.pyx":2419
* return _newElementTree(doc, context_node, _ElementTree)
*
* cdef _ElementTree _newElementTree(_Document doc, _Element context_node, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2439
+/* "lxml/etree.pyx":2440
* """
* cdef _Element _element
* def __cinit__(self, _Element element not None): # <<<<<<<<<<<<<<
else goto __pyx_L5_argtuple_error;
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 2439, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 2440, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2439, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2440, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._Attrib.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return -1;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), __pyx_ptype_4lxml_5etree__Element, 0, "element", 0))) __PYX_ERR(0, 2439, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), __pyx_ptype_4lxml_5etree__Element, 0, "element", 0))) __PYX_ERR(0, 2440, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_7_Attrib___cinit__(((struct __pyx_obj_4lxml_5etree__Attrib *)__pyx_v_self), __pyx_v_element);
/* function exit code */
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__cinit__", 0);
- /* "lxml/etree.pyx":2440
+ /* "lxml/etree.pyx":2441
* cdef _Element _element
* def __cinit__(self, _Element element not None):
* _assertValidNode(element) # <<<<<<<<<<<<<<
* self._element = element
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2440, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2441, __pyx_L1_error)
- /* "lxml/etree.pyx":2441
+ /* "lxml/etree.pyx":2442
* def __cinit__(self, _Element element not None):
* _assertValidNode(element)
* self._element = element # <<<<<<<<<<<<<<
__Pyx_DECREF(((PyObject *)__pyx_v_self->_element));
__pyx_v_self->_element = __pyx_v_element;
- /* "lxml/etree.pyx":2439
+ /* "lxml/etree.pyx":2440
* """
* cdef _Element _element
* def __cinit__(self, _Element element not None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2444
+/* "lxml/etree.pyx":2445
*
* # MANIPULATORS
* def __setitem__(self, key, value): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__setitem__", 0);
- /* "lxml/etree.pyx":2445
+ /* "lxml/etree.pyx":2446
* # MANIPULATORS
* def __setitem__(self, key, value):
* _assertValidNode(self._element) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2445, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2446, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2446
+ /* "lxml/etree.pyx":2447
* def __setitem__(self, key, value):
* _assertValidNode(self._element)
* _setAttributeValue(self._element, key, value) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__setAttributeValue(((struct LxmlElement *)__pyx_t_1), __pyx_v_key, __pyx_v_value); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2446, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__setAttributeValue(((struct LxmlElement *)__pyx_t_1), __pyx_v_key, __pyx_v_value); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2447, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2444
+ /* "lxml/etree.pyx":2445
*
* # MANIPULATORS
* def __setitem__(self, key, value): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2448
+/* "lxml/etree.pyx":2449
* _setAttributeValue(self._element, key, value)
*
* def __delitem__(self, key): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__delitem__", 0);
- /* "lxml/etree.pyx":2449
+ /* "lxml/etree.pyx":2450
*
* def __delitem__(self, key):
* _assertValidNode(self._element) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2449, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2450, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2450
+ /* "lxml/etree.pyx":2451
* def __delitem__(self, key):
* _assertValidNode(self._element)
* _delAttribute(self._element, key) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__delAttribute(((struct LxmlElement *)__pyx_t_1), __pyx_v_key); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2450, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__delAttribute(((struct LxmlElement *)__pyx_t_1), __pyx_v_key); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2451, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2448
+ /* "lxml/etree.pyx":2449
* _setAttributeValue(self._element, key, value)
*
* def __delitem__(self, key): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2452
+/* "lxml/etree.pyx":2453
* _delAttribute(self._element, key)
*
* def update(self, sequence_or_dict): # <<<<<<<<<<<<<<
__Pyx_RefNannySetupContext("update", 0);
__Pyx_INCREF(__pyx_v_sequence_or_dict);
- /* "lxml/etree.pyx":2453
+ /* "lxml/etree.pyx":2454
*
* def update(self, sequence_or_dict):
* _assertValidNode(self._element) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2453, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2454, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2454
+ /* "lxml/etree.pyx":2455
* def update(self, sequence_or_dict):
* _assertValidNode(self._element)
* if isinstance(sequence_or_dict, (dict, _Attrib)): # <<<<<<<<<<<<<<
__pyx_t_4 = (__pyx_t_3 != 0);
if (__pyx_t_4) {
- /* "lxml/etree.pyx":2455
+ /* "lxml/etree.pyx":2456
* _assertValidNode(self._element)
* if isinstance(sequence_or_dict, (dict, _Attrib)):
* sequence_or_dict = sequence_or_dict.items() # <<<<<<<<<<<<<<
* for key, value in sequence_or_dict:
* _setAttributeValue(self._element, key, value)
*/
- __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_sequence_or_dict, __pyx_n_s_items); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2455, __pyx_L1_error)
+ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_sequence_or_dict, __pyx_n_s_items); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2456, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__pyx_t_7 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
}
__pyx_t_1 = (__pyx_t_7) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7) : __Pyx_PyObject_CallNoArg(__pyx_t_6);
__Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
- if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2455, __pyx_L1_error)
+ if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2456, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__Pyx_DECREF_SET(__pyx_v_sequence_or_dict, __pyx_t_1);
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":2454
+ /* "lxml/etree.pyx":2455
* def update(self, sequence_or_dict):
* _assertValidNode(self._element)
* if isinstance(sequence_or_dict, (dict, _Attrib)): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2456
+ /* "lxml/etree.pyx":2457
* if isinstance(sequence_or_dict, (dict, _Attrib)):
* sequence_or_dict = sequence_or_dict.items()
* for key, value in sequence_or_dict: # <<<<<<<<<<<<<<
__pyx_t_1 = __pyx_v_sequence_or_dict; __Pyx_INCREF(__pyx_t_1); __pyx_t_8 = 0;
__pyx_t_9 = NULL;
} else {
- __pyx_t_8 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_sequence_or_dict); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2456, __pyx_L1_error)
+ __pyx_t_8 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_sequence_or_dict); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2457, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_9 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2456, __pyx_L1_error)
+ __pyx_t_9 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 2457, __pyx_L1_error)
}
for (;;) {
if (likely(!__pyx_t_9)) {
if (likely(PyList_CheckExact(__pyx_t_1))) {
if (__pyx_t_8 >= PyList_GET_SIZE(__pyx_t_1)) break;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
- __pyx_t_6 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_8); __Pyx_INCREF(__pyx_t_6); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(0, 2456, __pyx_L1_error)
+ __pyx_t_6 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_8); __Pyx_INCREF(__pyx_t_6); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(0, 2457, __pyx_L1_error)
#else
- __pyx_t_6 = PySequence_ITEM(__pyx_t_1, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2456, __pyx_L1_error)
+ __pyx_t_6 = PySequence_ITEM(__pyx_t_1, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2457, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
#endif
} else {
if (__pyx_t_8 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
- __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_8); __Pyx_INCREF(__pyx_t_6); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(0, 2456, __pyx_L1_error)
+ __pyx_t_6 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_8); __Pyx_INCREF(__pyx_t_6); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(0, 2457, __pyx_L1_error)
#else
- __pyx_t_6 = PySequence_ITEM(__pyx_t_1, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2456, __pyx_L1_error)
+ __pyx_t_6 = PySequence_ITEM(__pyx_t_1, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2457, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
#endif
}
PyObject* exc_type = PyErr_Occurred();
if (exc_type) {
if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
- else __PYX_ERR(0, 2456, __pyx_L1_error)
+ else __PYX_ERR(0, 2457, __pyx_L1_error)
}
break;
}
if (unlikely(size != 2)) {
if (size > 2) __Pyx_RaiseTooManyValuesError(2);
else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
- __PYX_ERR(0, 2456, __pyx_L1_error)
+ __PYX_ERR(0, 2457, __pyx_L1_error)
}
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
if (likely(PyTuple_CheckExact(sequence))) {
__Pyx_INCREF(__pyx_t_7);
__Pyx_INCREF(__pyx_t_10);
#else
- __pyx_t_7 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2456, __pyx_L1_error)
+ __pyx_t_7 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2457, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
- __pyx_t_10 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2456, __pyx_L1_error)
+ __pyx_t_10 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 2457, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_10);
#endif
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
} else {
Py_ssize_t index = -1;
- __pyx_t_11 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 2456, __pyx_L1_error)
+ __pyx_t_11 = PyObject_GetIter(__pyx_t_6); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 2457, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_11);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__pyx_t_12 = Py_TYPE(__pyx_t_11)->tp_iternext;
__Pyx_GOTREF(__pyx_t_7);
index = 1; __pyx_t_10 = __pyx_t_12(__pyx_t_11); if (unlikely(!__pyx_t_10)) goto __pyx_L8_unpacking_failed;
__Pyx_GOTREF(__pyx_t_10);
- if (__Pyx_IternextUnpackEndCheck(__pyx_t_12(__pyx_t_11), 2) < 0) __PYX_ERR(0, 2456, __pyx_L1_error)
+ if (__Pyx_IternextUnpackEndCheck(__pyx_t_12(__pyx_t_11), 2) < 0) __PYX_ERR(0, 2457, __pyx_L1_error)
__pyx_t_12 = NULL;
__Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
goto __pyx_L9_unpacking_done;
__Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
__pyx_t_12 = NULL;
if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
- __PYX_ERR(0, 2456, __pyx_L1_error)
+ __PYX_ERR(0, 2457, __pyx_L1_error)
__pyx_L9_unpacking_done:;
}
__Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_7);
__Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_10);
__pyx_t_10 = 0;
- /* "lxml/etree.pyx":2457
+ /* "lxml/etree.pyx":2458
* sequence_or_dict = sequence_or_dict.items()
* for key, value in sequence_or_dict:
* _setAttributeValue(self._element, key, value) # <<<<<<<<<<<<<<
*/
__pyx_t_6 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_6);
- __pyx_t_2 = __pyx_f_4lxml_5etree__setAttributeValue(((struct LxmlElement *)__pyx_t_6), __pyx_v_key, __pyx_v_value); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2457, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__setAttributeValue(((struct LxmlElement *)__pyx_t_6), __pyx_v_key, __pyx_v_value); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2458, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
- /* "lxml/etree.pyx":2456
+ /* "lxml/etree.pyx":2457
* if isinstance(sequence_or_dict, (dict, _Attrib)):
* sequence_or_dict = sequence_or_dict.items()
* for key, value in sequence_or_dict: # <<<<<<<<<<<<<<
}
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2452
+ /* "lxml/etree.pyx":2453
* _delAttribute(self._element, key)
*
* def update(self, sequence_or_dict): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2459
+/* "lxml/etree.pyx":2460
* _setAttributeValue(self._element, key, value)
*
* def pop(self, key, *default): # <<<<<<<<<<<<<<
}
if (unlikely(kw_args > 0)) {
const Py_ssize_t used_pos_args = (pos_args < 1) ? pos_args : 1;
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, used_pos_args, "pop") < 0)) __PYX_ERR(0, 2459, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, used_pos_args, "pop") < 0)) __PYX_ERR(0, 2460, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) < 1) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("pop", 0, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2459, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("pop", 0, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2460, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_DECREF(__pyx_v_default); __pyx_v_default = 0;
__Pyx_AddTraceback("lxml.etree._Attrib.pop", __pyx_clineno, __pyx_lineno, __pyx_filename);
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("pop", 0);
- /* "lxml/etree.pyx":2460
+ /* "lxml/etree.pyx":2461
*
* def pop(self, key, *default):
* if len(default) > 1: # <<<<<<<<<<<<<<
* raise TypeError, f"pop expected at most 2 arguments, got {len(default)+1}"
* _assertValidNode(self._element)
*/
- __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v_default); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 2460, __pyx_L1_error)
+ __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v_default); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 2461, __pyx_L1_error)
__pyx_t_2 = ((__pyx_t_1 > 1) != 0);
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":2461
+ /* "lxml/etree.pyx":2462
* def pop(self, key, *default):
* if len(default) > 1:
* raise TypeError, f"pop expected at most 2 arguments, got {len(default)+1}" # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* result = _getAttributeValue(self._element, key, None)
*/
- __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v_default); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 2461, __pyx_L1_error)
- __pyx_t_3 = __Pyx_PyUnicode_From_Py_ssize_t((__pyx_t_1 + 1), 0, ' ', 'd'); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2461, __pyx_L1_error)
+ __pyx_t_1 = PyTuple_GET_SIZE(__pyx_v_default); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 2462, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyUnicode_From_Py_ssize_t((__pyx_t_1 + 1), 0, ' ', 'd'); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2462, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_pop_expected_at_most_2_arguments, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2461, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_pop_expected_at_most_2_arguments, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2462, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_Raise(__pyx_builtin_TypeError, __pyx_t_4, 0, 0);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- __PYX_ERR(0, 2461, __pyx_L1_error)
+ __PYX_ERR(0, 2462, __pyx_L1_error)
- /* "lxml/etree.pyx":2460
+ /* "lxml/etree.pyx":2461
*
* def pop(self, key, *default):
* if len(default) > 1: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2462
+ /* "lxml/etree.pyx":2463
* if len(default) > 1:
* raise TypeError, f"pop expected at most 2 arguments, got {len(default)+1}"
* _assertValidNode(self._element) # <<<<<<<<<<<<<<
*/
__pyx_t_4 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_4);
- __pyx_t_5 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_4)); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 2462, __pyx_L1_error)
+ __pyx_t_5 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_4)); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 2463, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "lxml/etree.pyx":2463
+ /* "lxml/etree.pyx":2464
* raise TypeError, f"pop expected at most 2 arguments, got {len(default)+1}"
* _assertValidNode(self._element)
* result = _getAttributeValue(self._element, key, None) # <<<<<<<<<<<<<<
*/
__pyx_t_4 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_4);
- __pyx_t_3 = __pyx_f_4lxml_5etree__getAttributeValue(((struct LxmlElement *)__pyx_t_4), __pyx_v_key, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2463, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree__getAttributeValue(((struct LxmlElement *)__pyx_t_4), __pyx_v_key, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2464, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_v_result = __pyx_t_3;
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":2464
+ /* "lxml/etree.pyx":2465
* _assertValidNode(self._element)
* result = _getAttributeValue(self._element, key, None)
* if result is None: # <<<<<<<<<<<<<<
__pyx_t_6 = (__pyx_t_2 != 0);
if (__pyx_t_6) {
- /* "lxml/etree.pyx":2465
+ /* "lxml/etree.pyx":2466
* result = _getAttributeValue(self._element, key, None)
* if result is None:
* if not default: # <<<<<<<<<<<<<<
__pyx_t_2 = ((!__pyx_t_6) != 0);
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":2466
+ /* "lxml/etree.pyx":2467
* if result is None:
* if not default:
* raise KeyError, key # <<<<<<<<<<<<<<
* else:
*/
__Pyx_Raise(__pyx_builtin_KeyError, __pyx_v_key, 0, 0);
- __PYX_ERR(0, 2466, __pyx_L1_error)
+ __PYX_ERR(0, 2467, __pyx_L1_error)
- /* "lxml/etree.pyx":2465
+ /* "lxml/etree.pyx":2466
* result = _getAttributeValue(self._element, key, None)
* if result is None:
* if not default: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2467
+ /* "lxml/etree.pyx":2468
* if not default:
* raise KeyError, key
* result = default[0] # <<<<<<<<<<<<<<
* else:
* _delAttribute(self._element, key)
*/
- __pyx_t_3 = __Pyx_GetItemInt_Tuple(__pyx_v_default, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2467, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_GetItemInt_Tuple(__pyx_v_default, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2468, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF_SET(__pyx_v_result, __pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":2464
+ /* "lxml/etree.pyx":2465
* _assertValidNode(self._element)
* result = _getAttributeValue(self._element, key, None)
* if result is None: # <<<<<<<<<<<<<<
goto __pyx_L4;
}
- /* "lxml/etree.pyx":2469
+ /* "lxml/etree.pyx":2470
* result = default[0]
* else:
* _delAttribute(self._element, key) # <<<<<<<<<<<<<<
/*else*/ {
__pyx_t_3 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_3);
- __pyx_t_5 = __pyx_f_4lxml_5etree__delAttribute(((struct LxmlElement *)__pyx_t_3), __pyx_v_key); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 2469, __pyx_L1_error)
+ __pyx_t_5 = __pyx_f_4lxml_5etree__delAttribute(((struct LxmlElement *)__pyx_t_3), __pyx_v_key); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 2470, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
}
__pyx_L4:;
- /* "lxml/etree.pyx":2470
+ /* "lxml/etree.pyx":2471
* else:
* _delAttribute(self._element, key)
* return result # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_result;
goto __pyx_L0;
- /* "lxml/etree.pyx":2459
+ /* "lxml/etree.pyx":2460
* _setAttributeValue(self._element, key, value)
*
* def pop(self, key, *default): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2472
+/* "lxml/etree.pyx":2473
* return result
*
* def clear(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("clear", 0);
- /* "lxml/etree.pyx":2473
+ /* "lxml/etree.pyx":2474
*
* def clear(self):
* _assertValidNode(self._element) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2473, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2474, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2474
+ /* "lxml/etree.pyx":2475
* def clear(self):
* _assertValidNode(self._element)
* c_attrs = self._element._c_node.properties # <<<<<<<<<<<<<<
__pyx_t_3 = __pyx_v_self->_element->_c_node->properties;
__pyx_v_c_attrs = __pyx_t_3;
- /* "lxml/etree.pyx":2475
+ /* "lxml/etree.pyx":2476
* _assertValidNode(self._element)
* c_attrs = self._element._c_node.properties
* if c_attrs: # <<<<<<<<<<<<<<
__pyx_t_4 = (__pyx_v_c_attrs != 0);
if (__pyx_t_4) {
- /* "lxml/etree.pyx":2476
+ /* "lxml/etree.pyx":2477
* c_attrs = self._element._c_node.properties
* if c_attrs:
* self._element._c_node.properties = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_self->_element->_c_node->properties = NULL;
- /* "lxml/etree.pyx":2477
+ /* "lxml/etree.pyx":2478
* if c_attrs:
* self._element._c_node.properties = NULL
* tree.xmlFreePropList(c_attrs) # <<<<<<<<<<<<<<
*/
xmlFreePropList(__pyx_v_c_attrs);
- /* "lxml/etree.pyx":2475
+ /* "lxml/etree.pyx":2476
* _assertValidNode(self._element)
* c_attrs = self._element._c_node.properties
* if c_attrs: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2472
+ /* "lxml/etree.pyx":2473
* return result
*
* def clear(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2480
+/* "lxml/etree.pyx":2481
*
* # ACCESSORS
* def __repr__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__repr__", 0);
- /* "lxml/etree.pyx":2481
+ /* "lxml/etree.pyx":2482
* # ACCESSORS
* def __repr__(self):
* _assertValidNode(self._element) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2481, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2482, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2482
+ /* "lxml/etree.pyx":2483
* def __repr__(self):
* _assertValidNode(self._element)
* return repr(dict( _collectAttributes(self._element._c_node, 3) )) # <<<<<<<<<<<<<<
* def __copy__(self):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_element->_c_node, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2482, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_element->_c_node, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2483, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyDict_Type)), __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2482, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyDict_Type)), __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2483, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __pyx_t_1 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2482, __pyx_L1_error)
+ __pyx_t_1 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2483, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2480
+ /* "lxml/etree.pyx":2481
*
* # ACCESSORS
* def __repr__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2484
+/* "lxml/etree.pyx":2485
* return repr(dict( _collectAttributes(self._element._c_node, 3) ))
*
* def __copy__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__copy__", 0);
- /* "lxml/etree.pyx":2485
+ /* "lxml/etree.pyx":2486
*
* def __copy__(self):
* _assertValidNode(self._element) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2485, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2486, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2486
+ /* "lxml/etree.pyx":2487
* def __copy__(self):
* _assertValidNode(self._element)
* return dict(_collectAttributes(self._element._c_node, 3)) # <<<<<<<<<<<<<<
* def __deepcopy__(self, memo):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_element->_c_node, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2486, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_element->_c_node, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2487, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyDict_Type)), __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2486, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyDict_Type)), __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2487, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2484
+ /* "lxml/etree.pyx":2485
* return repr(dict( _collectAttributes(self._element._c_node, 3) ))
*
* def __copy__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2488
+/* "lxml/etree.pyx":2489
* return dict(_collectAttributes(self._element._c_node, 3))
*
* def __deepcopy__(self, memo): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__deepcopy__", 0);
- /* "lxml/etree.pyx":2489
+ /* "lxml/etree.pyx":2490
*
* def __deepcopy__(self, memo):
* _assertValidNode(self._element) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2489, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2490, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2490
+ /* "lxml/etree.pyx":2491
* def __deepcopy__(self, memo):
* _assertValidNode(self._element)
* return dict(_collectAttributes(self._element._c_node, 3)) # <<<<<<<<<<<<<<
* def __getitem__(self, key):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_element->_c_node, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2490, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_element->_c_node, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2491, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyDict_Type)), __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2490, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyDict_Type)), __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2491, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2488
+ /* "lxml/etree.pyx":2489
* return dict(_collectAttributes(self._element._c_node, 3))
*
* def __deepcopy__(self, memo): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2492
+/* "lxml/etree.pyx":2493
* return dict(_collectAttributes(self._element._c_node, 3))
*
* def __getitem__(self, key): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__getitem__", 0);
- /* "lxml/etree.pyx":2493
+ /* "lxml/etree.pyx":2494
*
* def __getitem__(self, key):
* _assertValidNode(self._element) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2493, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2494, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2494
+ /* "lxml/etree.pyx":2495
* def __getitem__(self, key):
* _assertValidNode(self._element)
* result = _getAttributeValue(self._element, key, None) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_3 = __pyx_f_4lxml_5etree__getAttributeValue(((struct LxmlElement *)__pyx_t_1), __pyx_v_key, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2494, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree__getAttributeValue(((struct LxmlElement *)__pyx_t_1), __pyx_v_key, Py_None); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2495, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_v_result = __pyx_t_3;
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":2495
+ /* "lxml/etree.pyx":2496
* _assertValidNode(self._element)
* result = _getAttributeValue(self._element, key, None)
* if result is None: # <<<<<<<<<<<<<<
__pyx_t_5 = (__pyx_t_4 != 0);
if (unlikely(__pyx_t_5)) {
- /* "lxml/etree.pyx":2496
+ /* "lxml/etree.pyx":2497
* result = _getAttributeValue(self._element, key, None)
* if result is None:
* raise KeyError, key # <<<<<<<<<<<<<<
*
*/
__Pyx_Raise(__pyx_builtin_KeyError, __pyx_v_key, 0, 0);
- __PYX_ERR(0, 2496, __pyx_L1_error)
+ __PYX_ERR(0, 2497, __pyx_L1_error)
- /* "lxml/etree.pyx":2495
+ /* "lxml/etree.pyx":2496
* _assertValidNode(self._element)
* result = _getAttributeValue(self._element, key, None)
* if result is None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2497
+ /* "lxml/etree.pyx":2498
* if result is None:
* raise KeyError, key
* return result # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_result;
goto __pyx_L0;
- /* "lxml/etree.pyx":2492
+ /* "lxml/etree.pyx":2493
* return dict(_collectAttributes(self._element._c_node, 3))
*
* def __getitem__(self, key): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2499
+/* "lxml/etree.pyx":2500
* return result
*
* def __bool__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__bool__", 0);
- /* "lxml/etree.pyx":2500
+ /* "lxml/etree.pyx":2501
*
* def __bool__(self):
* _assertValidNode(self._element) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2500, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2501, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2501
+ /* "lxml/etree.pyx":2502
* def __bool__(self):
* _assertValidNode(self._element)
* cdef xmlAttr* c_attr = self._element._c_node.properties # <<<<<<<<<<<<<<
__pyx_t_3 = __pyx_v_self->_element->_c_node->properties;
__pyx_v_c_attr = __pyx_t_3;
- /* "lxml/etree.pyx":2502
+ /* "lxml/etree.pyx":2503
* _assertValidNode(self._element)
* cdef xmlAttr* c_attr = self._element._c_node.properties
* while c_attr is not NULL: # <<<<<<<<<<<<<<
__pyx_t_4 = ((__pyx_v_c_attr != NULL) != 0);
if (!__pyx_t_4) break;
- /* "lxml/etree.pyx":2503
+ /* "lxml/etree.pyx":2504
* cdef xmlAttr* c_attr = self._element._c_node.properties
* while c_attr is not NULL:
* if c_attr.type == tree.XML_ATTRIBUTE_NODE: # <<<<<<<<<<<<<<
__pyx_t_4 = ((__pyx_v_c_attr->type == XML_ATTRIBUTE_NODE) != 0);
if (__pyx_t_4) {
- /* "lxml/etree.pyx":2504
+ /* "lxml/etree.pyx":2505
* while c_attr is not NULL:
* if c_attr.type == tree.XML_ATTRIBUTE_NODE:
* return 1 # <<<<<<<<<<<<<<
__pyx_r = 1;
goto __pyx_L0;
- /* "lxml/etree.pyx":2503
+ /* "lxml/etree.pyx":2504
* cdef xmlAttr* c_attr = self._element._c_node.properties
* while c_attr is not NULL:
* if c_attr.type == tree.XML_ATTRIBUTE_NODE: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2505
+ /* "lxml/etree.pyx":2506
* if c_attr.type == tree.XML_ATTRIBUTE_NODE:
* return 1
* c_attr = c_attr.next # <<<<<<<<<<<<<<
__pyx_v_c_attr = __pyx_t_3;
}
- /* "lxml/etree.pyx":2506
+ /* "lxml/etree.pyx":2507
* return 1
* c_attr = c_attr.next
* return 0 # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2499
+ /* "lxml/etree.pyx":2500
* return result
*
* def __bool__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2508
+/* "lxml/etree.pyx":2509
* return 0
*
* def __len__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__len__", 0);
- /* "lxml/etree.pyx":2509
+ /* "lxml/etree.pyx":2510
*
* def __len__(self):
* _assertValidNode(self._element) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2509, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2510, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2510
+ /* "lxml/etree.pyx":2511
* def __len__(self):
* _assertValidNode(self._element)
* cdef xmlAttr* c_attr = self._element._c_node.properties # <<<<<<<<<<<<<<
__pyx_t_3 = __pyx_v_self->_element->_c_node->properties;
__pyx_v_c_attr = __pyx_t_3;
- /* "lxml/etree.pyx":2511
+ /* "lxml/etree.pyx":2512
* _assertValidNode(self._element)
* cdef xmlAttr* c_attr = self._element._c_node.properties
* cdef Py_ssize_t c = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_c = 0;
- /* "lxml/etree.pyx":2512
+ /* "lxml/etree.pyx":2513
* cdef xmlAttr* c_attr = self._element._c_node.properties
* cdef Py_ssize_t c = 0
* while c_attr is not NULL: # <<<<<<<<<<<<<<
__pyx_t_4 = ((__pyx_v_c_attr != NULL) != 0);
if (!__pyx_t_4) break;
- /* "lxml/etree.pyx":2513
+ /* "lxml/etree.pyx":2514
* cdef Py_ssize_t c = 0
* while c_attr is not NULL:
* if c_attr.type == tree.XML_ATTRIBUTE_NODE: # <<<<<<<<<<<<<<
__pyx_t_4 = ((__pyx_v_c_attr->type == XML_ATTRIBUTE_NODE) != 0);
if (__pyx_t_4) {
- /* "lxml/etree.pyx":2514
+ /* "lxml/etree.pyx":2515
* while c_attr is not NULL:
* if c_attr.type == tree.XML_ATTRIBUTE_NODE:
* c += 1 # <<<<<<<<<<<<<<
*/
__pyx_v_c = (__pyx_v_c + 1);
- /* "lxml/etree.pyx":2513
+ /* "lxml/etree.pyx":2514
* cdef Py_ssize_t c = 0
* while c_attr is not NULL:
* if c_attr.type == tree.XML_ATTRIBUTE_NODE: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2515
+ /* "lxml/etree.pyx":2516
* if c_attr.type == tree.XML_ATTRIBUTE_NODE:
* c += 1
* c_attr = c_attr.next # <<<<<<<<<<<<<<
__pyx_v_c_attr = __pyx_t_3;
}
- /* "lxml/etree.pyx":2516
+ /* "lxml/etree.pyx":2517
* c += 1
* c_attr = c_attr.next
* return c # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_c;
goto __pyx_L0;
- /* "lxml/etree.pyx":2508
+ /* "lxml/etree.pyx":2509
* return 0
*
* def __len__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2518
+/* "lxml/etree.pyx":2519
* return c
*
* def get(self, key, default=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "get") < 0)) __PYX_ERR(0, 2518, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "get") < 0)) __PYX_ERR(0, 2519, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("get", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2518, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("get", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2519, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._Attrib.get", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("get", 0);
- /* "lxml/etree.pyx":2519
+ /* "lxml/etree.pyx":2520
*
* def get(self, key, default=None):
* _assertValidNode(self._element) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2519, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2520, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2520
+ /* "lxml/etree.pyx":2521
* def get(self, key, default=None):
* _assertValidNode(self._element)
* return _getAttributeValue(self._element, key, default) # <<<<<<<<<<<<<<
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_3 = __pyx_f_4lxml_5etree__getAttributeValue(((struct LxmlElement *)__pyx_t_1), __pyx_v_key, __pyx_v_default); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2520, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree__getAttributeValue(((struct LxmlElement *)__pyx_t_1), __pyx_v_key, __pyx_v_default); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2521, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2518
+ /* "lxml/etree.pyx":2519
* return c
*
* def get(self, key, default=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2522
+/* "lxml/etree.pyx":2523
* return _getAttributeValue(self._element, key, default)
*
* def keys(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("keys", 0);
- /* "lxml/etree.pyx":2523
+ /* "lxml/etree.pyx":2524
*
* def keys(self):
* _assertValidNode(self._element) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2523, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2524, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2524
+ /* "lxml/etree.pyx":2525
* def keys(self):
* _assertValidNode(self._element)
* return _collectAttributes(self._element._c_node, 1) # <<<<<<<<<<<<<<
* def __iter__(self):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_element->_c_node, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2524, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_element->_c_node, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2525, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2522
+ /* "lxml/etree.pyx":2523
* return _getAttributeValue(self._element, key, default)
*
* def keys(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2526
+/* "lxml/etree.pyx":2527
* return _collectAttributes(self._element._c_node, 1)
*
* def __iter__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__iter__", 0);
- /* "lxml/etree.pyx":2527
+ /* "lxml/etree.pyx":2528
*
* def __iter__(self):
* _assertValidNode(self._element) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2527, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2528, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2528
+ /* "lxml/etree.pyx":2529
* def __iter__(self):
* _assertValidNode(self._element)
* return iter(_collectAttributes(self._element._c_node, 1)) # <<<<<<<<<<<<<<
* def iterkeys(self):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_element->_c_node, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2528, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_element->_c_node, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2529, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_3 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2528, __pyx_L1_error)
+ __pyx_t_3 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2529, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2526
+ /* "lxml/etree.pyx":2527
* return _collectAttributes(self._element._c_node, 1)
*
* def __iter__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2530
+/* "lxml/etree.pyx":2531
* return iter(_collectAttributes(self._element._c_node, 1))
*
* def iterkeys(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("iterkeys", 0);
- /* "lxml/etree.pyx":2531
+ /* "lxml/etree.pyx":2532
*
* def iterkeys(self):
* _assertValidNode(self._element) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2531, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2532, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2532
+ /* "lxml/etree.pyx":2533
* def iterkeys(self):
* _assertValidNode(self._element)
* return iter(_collectAttributes(self._element._c_node, 1)) # <<<<<<<<<<<<<<
* def values(self):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_element->_c_node, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2532, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_element->_c_node, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2533, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_3 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2532, __pyx_L1_error)
+ __pyx_t_3 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2533, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2530
+ /* "lxml/etree.pyx":2531
* return iter(_collectAttributes(self._element._c_node, 1))
*
* def iterkeys(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2534
+/* "lxml/etree.pyx":2535
* return iter(_collectAttributes(self._element._c_node, 1))
*
* def values(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("values", 0);
- /* "lxml/etree.pyx":2535
+ /* "lxml/etree.pyx":2536
*
* def values(self):
* _assertValidNode(self._element) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2535, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2536, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2536
+ /* "lxml/etree.pyx":2537
* def values(self):
* _assertValidNode(self._element)
* return _collectAttributes(self._element._c_node, 2) # <<<<<<<<<<<<<<
* def itervalues(self):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_element->_c_node, 2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2536, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_element->_c_node, 2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2537, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2534
+ /* "lxml/etree.pyx":2535
* return iter(_collectAttributes(self._element._c_node, 1))
*
* def values(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2538
+/* "lxml/etree.pyx":2539
* return _collectAttributes(self._element._c_node, 2)
*
* def itervalues(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("itervalues", 0);
- /* "lxml/etree.pyx":2539
+ /* "lxml/etree.pyx":2540
*
* def itervalues(self):
* _assertValidNode(self._element) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2539, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2540, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2540
+ /* "lxml/etree.pyx":2541
* def itervalues(self):
* _assertValidNode(self._element)
* return iter(_collectAttributes(self._element._c_node, 2)) # <<<<<<<<<<<<<<
* def items(self):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_element->_c_node, 2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2540, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_element->_c_node, 2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2541, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_3 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2540, __pyx_L1_error)
+ __pyx_t_3 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2541, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2538
+ /* "lxml/etree.pyx":2539
* return _collectAttributes(self._element._c_node, 2)
*
* def itervalues(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2542
+/* "lxml/etree.pyx":2543
* return iter(_collectAttributes(self._element._c_node, 2))
*
* def items(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("items", 0);
- /* "lxml/etree.pyx":2543
+ /* "lxml/etree.pyx":2544
*
* def items(self):
* _assertValidNode(self._element) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2543, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2544, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2544
+ /* "lxml/etree.pyx":2545
* def items(self):
* _assertValidNode(self._element)
* return _collectAttributes(self._element._c_node, 3) # <<<<<<<<<<<<<<
* def iteritems(self):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_element->_c_node, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2544, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_element->_c_node, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2545, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2542
+ /* "lxml/etree.pyx":2543
* return iter(_collectAttributes(self._element._c_node, 2))
*
* def items(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2546
+/* "lxml/etree.pyx":2547
* return _collectAttributes(self._element._c_node, 3)
*
* def iteritems(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("iteritems", 0);
- /* "lxml/etree.pyx":2547
+ /* "lxml/etree.pyx":2548
*
* def iteritems(self):
* _assertValidNode(self._element) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2547, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2548, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2548
+ /* "lxml/etree.pyx":2549
* def iteritems(self):
* _assertValidNode(self._element)
* return iter(_collectAttributes(self._element._c_node, 3)) # <<<<<<<<<<<<<<
* def has_key(self, key):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_element->_c_node, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2548, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__collectAttributes(__pyx_v_self->_element->_c_node, 3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2549, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_3 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2548, __pyx_L1_error)
+ __pyx_t_3 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2549, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2546
+ /* "lxml/etree.pyx":2547
* return _collectAttributes(self._element._c_node, 3)
*
* def iteritems(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2550
+/* "lxml/etree.pyx":2551
* return iter(_collectAttributes(self._element._c_node, 3))
*
* def has_key(self, key): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("has_key", 0);
- /* "lxml/etree.pyx":2551
+ /* "lxml/etree.pyx":2552
*
* def has_key(self, key):
* _assertValidNode(self._element) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2551, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2552, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2552
+ /* "lxml/etree.pyx":2553
* def has_key(self, key):
* _assertValidNode(self._element)
* return key in self # <<<<<<<<<<<<<<
* def __contains__(self, key):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_v_key, ((PyObject *)__pyx_v_self), Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 2552, __pyx_L1_error)
- __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2552, __pyx_L1_error)
+ __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_v_key, ((PyObject *)__pyx_v_self), Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 2553, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2553, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2550
+ /* "lxml/etree.pyx":2551
* return iter(_collectAttributes(self._element._c_node, 3))
*
* def has_key(self, key): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2554
+/* "lxml/etree.pyx":2555
* return key in self
*
* def __contains__(self, key): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__contains__", 0);
- /* "lxml/etree.pyx":2555
+ /* "lxml/etree.pyx":2556
*
* def __contains__(self, key):
* _assertValidNode(self._element) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_self->_element);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2555, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_t_1)); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2556, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2557
+ /* "lxml/etree.pyx":2558
* _assertValidNode(self._element)
* cdef xmlNode* c_node
* ns, tag = _getNsTag(key) # <<<<<<<<<<<<<<
* c_node = self._element._c_node
* c_href = <const_xmlChar*>NULL if ns is None else _xcstr(ns)
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__getNsTag(__pyx_v_key); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2557, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__getNsTag(__pyx_v_key); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2558, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
if (likely(__pyx_t_1 != Py_None)) {
PyObject* sequence = __pyx_t_1;
if (unlikely(size != 2)) {
if (size > 2) __Pyx_RaiseTooManyValuesError(2);
else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
- __PYX_ERR(0, 2557, __pyx_L1_error)
+ __PYX_ERR(0, 2558, __pyx_L1_error)
}
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
__pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
__Pyx_INCREF(__pyx_t_3);
__Pyx_INCREF(__pyx_t_4);
#else
- __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2557, __pyx_L1_error)
+ __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2558, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2557, __pyx_L1_error)
+ __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2558, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
#endif
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
} else {
- __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(0, 2557, __pyx_L1_error)
+ __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(0, 2558, __pyx_L1_error)
}
__pyx_v_ns = __pyx_t_3;
__pyx_t_3 = 0;
__pyx_v_tag = __pyx_t_4;
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":2558
+ /* "lxml/etree.pyx":2559
* cdef xmlNode* c_node
* ns, tag = _getNsTag(key)
* c_node = self._element._c_node # <<<<<<<<<<<<<<
__pyx_t_5 = __pyx_v_self->_element->_c_node;
__pyx_v_c_node = __pyx_t_5;
- /* "lxml/etree.pyx":2559
+ /* "lxml/etree.pyx":2560
* ns, tag = _getNsTag(key)
* c_node = self._element._c_node
* c_href = <const_xmlChar*>NULL if ns is None else _xcstr(ns) # <<<<<<<<<<<<<<
}
__pyx_v_c_href = __pyx_t_6;
- /* "lxml/etree.pyx":2560
+ /* "lxml/etree.pyx":2561
* c_node = self._element._c_node
* c_href = <const_xmlChar*>NULL if ns is None else _xcstr(ns)
* return 1 if tree.xmlHasNsProp(c_node, _xcstr(tag), c_href) else 0 # <<<<<<<<<<<<<<
__pyx_r = __pyx_t_2;
goto __pyx_L0;
- /* "lxml/etree.pyx":2554
+ /* "lxml/etree.pyx":2555
* return key in self
*
* def __contains__(self, key): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2562
+/* "lxml/etree.pyx":2563
* return 1 if tree.xmlHasNsProp(c_node, _xcstr(tag), c_href) else 0
*
* def __richcmp__(self, other, int op): # <<<<<<<<<<<<<<
__Pyx_RefNannySetupContext("__richcmp__", 0);
__Pyx_INCREF(__pyx_v_other);
- /* "lxml/etree.pyx":2563
+ /* "lxml/etree.pyx":2564
*
* def __richcmp__(self, other, int op):
* try: # <<<<<<<<<<<<<<
__Pyx_XGOTREF(__pyx_t_3);
/*try:*/ {
- /* "lxml/etree.pyx":2564
+ /* "lxml/etree.pyx":2565
* def __richcmp__(self, other, int op):
* try:
* one = dict(self.items()) # <<<<<<<<<<<<<<
* if not isinstance(other, dict):
* other = dict(other)
*/
- __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_items); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2564, __pyx_L3_error)
+ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_items); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2565, __pyx_L3_error)
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_6 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
}
__pyx_t_4 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
__Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
- if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2564, __pyx_L3_error)
+ if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2565, __pyx_L3_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyDict_Type)), __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2564, __pyx_L3_error)
+ __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyDict_Type)), __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2565, __pyx_L3_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_v_one = ((PyObject*)__pyx_t_5);
__pyx_t_5 = 0;
- /* "lxml/etree.pyx":2565
+ /* "lxml/etree.pyx":2566
* try:
* one = dict(self.items())
* if not isinstance(other, dict): # <<<<<<<<<<<<<<
__pyx_t_8 = ((!(__pyx_t_7 != 0)) != 0);
if (__pyx_t_8) {
- /* "lxml/etree.pyx":2566
+ /* "lxml/etree.pyx":2567
* one = dict(self.items())
* if not isinstance(other, dict):
* other = dict(other) # <<<<<<<<<<<<<<
* except (TypeError, ValueError):
* return NotImplemented
*/
- __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyDict_Type)), __pyx_v_other); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2566, __pyx_L3_error)
+ __pyx_t_5 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyDict_Type)), __pyx_v_other); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2567, __pyx_L3_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF_SET(__pyx_v_other, __pyx_t_5);
__pyx_t_5 = 0;
- /* "lxml/etree.pyx":2565
+ /* "lxml/etree.pyx":2566
* try:
* one = dict(self.items())
* if not isinstance(other, dict): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2563
+ /* "lxml/etree.pyx":2564
*
* def __richcmp__(self, other, int op):
* try: # <<<<<<<<<<<<<<
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
- /* "lxml/etree.pyx":2567
+ /* "lxml/etree.pyx":2568
* if not isinstance(other, dict):
* other = dict(other)
* except (TypeError, ValueError): # <<<<<<<<<<<<<<
__pyx_t_9 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_TypeError) || __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ValueError);
if (__pyx_t_9) {
__Pyx_AddTraceback("lxml.etree._Attrib.__richcmp__", __pyx_clineno, __pyx_lineno, __pyx_filename);
- if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_4, &__pyx_t_6) < 0) __PYX_ERR(0, 2567, __pyx_L5_except_error)
+ if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_4, &__pyx_t_6) < 0) __PYX_ERR(0, 2568, __pyx_L5_except_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_GOTREF(__pyx_t_4);
__Pyx_GOTREF(__pyx_t_6);
- /* "lxml/etree.pyx":2568
+ /* "lxml/etree.pyx":2569
* other = dict(other)
* except (TypeError, ValueError):
* return NotImplemented # <<<<<<<<<<<<<<
goto __pyx_L5_except_error;
__pyx_L5_except_error:;
- /* "lxml/etree.pyx":2563
+ /* "lxml/etree.pyx":2564
*
* def __richcmp__(self, other, int op):
* try: # <<<<<<<<<<<<<<
__pyx_L8_try_end:;
}
- /* "lxml/etree.pyx":2569
+ /* "lxml/etree.pyx":2570
* except (TypeError, ValueError):
* return NotImplemented
* return python.PyObject_RichCompare(one, other, op) # <<<<<<<<<<<<<<
*
- *
+ * MutableMapping.register(_Attrib)
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_6 = PyObject_RichCompare(__pyx_v_one, __pyx_v_other, __pyx_v_op); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2569, __pyx_L1_error)
+ __pyx_t_6 = PyObject_RichCompare(__pyx_v_one, __pyx_v_other, __pyx_v_op); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2570, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__pyx_r = __pyx_t_6;
__pyx_t_6 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2562
+ /* "lxml/etree.pyx":2563
* return 1 if tree.xmlHasNsProp(c_node, _xcstr(tag), c_href) else 0
*
* def __richcmp__(self, other, int op): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2581
+/* "lxml/etree.pyx":2584
* cdef xmlAttr* _c_attr
* cdef int _keysvalues # 1 - keys, 2 - values, 3 - items (key, value)
* def __iter__(self): # <<<<<<<<<<<<<<
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__iter__", 0);
- /* "lxml/etree.pyx":2582
+ /* "lxml/etree.pyx":2585
* cdef int _keysvalues # 1 - keys, 2 - values, 3 - items (key, value)
* def __iter__(self):
* return self # <<<<<<<<<<<<<<
__pyx_r = ((PyObject *)__pyx_v_self);
goto __pyx_L0;
- /* "lxml/etree.pyx":2581
+ /* "lxml/etree.pyx":2584
* cdef xmlAttr* _c_attr
* cdef int _keysvalues # 1 - keys, 2 - values, 3 - items (key, value)
* def __iter__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2584
+/* "lxml/etree.pyx":2587
* return self
*
* def __next__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__next__", 0);
- /* "lxml/etree.pyx":2586
+ /* "lxml/etree.pyx":2589
* def __next__(self):
* cdef xmlAttr* c_attr
* if self._node is None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":2587
+ /* "lxml/etree.pyx":2590
* cdef xmlAttr* c_attr
* if self._node is None:
* raise StopIteration # <<<<<<<<<<<<<<
* while c_attr is not NULL and c_attr.type != tree.XML_ATTRIBUTE_NODE:
*/
__Pyx_Raise(__pyx_builtin_StopIteration, 0, 0, 0);
- __PYX_ERR(0, 2587, __pyx_L1_error)
+ __PYX_ERR(0, 2590, __pyx_L1_error)
- /* "lxml/etree.pyx":2586
+ /* "lxml/etree.pyx":2589
* def __next__(self):
* cdef xmlAttr* c_attr
* if self._node is None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2588
+ /* "lxml/etree.pyx":2591
* if self._node is None:
* raise StopIteration
* c_attr = self._c_attr # <<<<<<<<<<<<<<
__pyx_t_3 = __pyx_v_self->_c_attr;
__pyx_v_c_attr = __pyx_t_3;
- /* "lxml/etree.pyx":2589
+ /* "lxml/etree.pyx":2592
* raise StopIteration
* c_attr = self._c_attr
* while c_attr is not NULL and c_attr.type != tree.XML_ATTRIBUTE_NODE: # <<<<<<<<<<<<<<
__pyx_L6_bool_binop_done:;
if (!__pyx_t_2) break;
- /* "lxml/etree.pyx":2590
+ /* "lxml/etree.pyx":2593
* c_attr = self._c_attr
* while c_attr is not NULL and c_attr.type != tree.XML_ATTRIBUTE_NODE:
* c_attr = c_attr.next # <<<<<<<<<<<<<<
__pyx_v_c_attr = __pyx_t_3;
}
- /* "lxml/etree.pyx":2591
+ /* "lxml/etree.pyx":2594
* while c_attr is not NULL and c_attr.type != tree.XML_ATTRIBUTE_NODE:
* c_attr = c_attr.next
* if c_attr is NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_attr == NULL) != 0);
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":2592
+ /* "lxml/etree.pyx":2595
* c_attr = c_attr.next
* if c_attr is NULL:
* self._node = None # <<<<<<<<<<<<<<
__Pyx_DECREF(((PyObject *)__pyx_v_self->_node));
__pyx_v_self->_node = ((struct LxmlElement *)Py_None);
- /* "lxml/etree.pyx":2593
+ /* "lxml/etree.pyx":2596
* if c_attr is NULL:
* self._node = None
* raise StopIteration # <<<<<<<<<<<<<<
* self._c_attr = c_attr.next
*/
__Pyx_Raise(__pyx_builtin_StopIteration, 0, 0, 0);
- __PYX_ERR(0, 2593, __pyx_L1_error)
+ __PYX_ERR(0, 2596, __pyx_L1_error)
- /* "lxml/etree.pyx":2591
+ /* "lxml/etree.pyx":2594
* while c_attr is not NULL and c_attr.type != tree.XML_ATTRIBUTE_NODE:
* c_attr = c_attr.next
* if c_attr is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2595
+ /* "lxml/etree.pyx":2598
* raise StopIteration
*
* self._c_attr = c_attr.next # <<<<<<<<<<<<<<
__pyx_t_3 = __pyx_v_c_attr->next;
__pyx_v_self->_c_attr = __pyx_t_3;
- /* "lxml/etree.pyx":2596
+ /* "lxml/etree.pyx":2599
*
* self._c_attr = c_attr.next
* if self._keysvalues == 1: # <<<<<<<<<<<<<<
switch (__pyx_v_self->_keysvalues) {
case 1:
- /* "lxml/etree.pyx":2597
+ /* "lxml/etree.pyx":2600
* self._c_attr = c_attr.next
* if self._keysvalues == 1:
* return _namespacedName(<xmlNode*>c_attr) # <<<<<<<<<<<<<<
* return _attributeValue(self._node._c_node, c_attr)
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = __pyx_f_4lxml_5etree__namespacedName(((xmlNode *)__pyx_v_c_attr)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2597, __pyx_L1_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree__namespacedName(((xmlNode *)__pyx_v_c_attr)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2600, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_r = __pyx_t_4;
__pyx_t_4 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2596
+ /* "lxml/etree.pyx":2599
*
* self._c_attr = c_attr.next
* if self._keysvalues == 1: # <<<<<<<<<<<<<<
break;
case 2:
- /* "lxml/etree.pyx":2599
+ /* "lxml/etree.pyx":2602
* return _namespacedName(<xmlNode*>c_attr)
* elif self._keysvalues == 2:
* return _attributeValue(self._node._c_node, c_attr) # <<<<<<<<<<<<<<
* return (_namespacedName(<xmlNode*>c_attr),
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = __pyx_f_4lxml_5etree__attributeValue(__pyx_v_self->_node->_c_node, __pyx_v_c_attr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2599, __pyx_L1_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree__attributeValue(__pyx_v_self->_node->_c_node, __pyx_v_c_attr); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2602, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_r = __pyx_t_4;
__pyx_t_4 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2598
+ /* "lxml/etree.pyx":2601
* if self._keysvalues == 1:
* return _namespacedName(<xmlNode*>c_attr)
* elif self._keysvalues == 2: # <<<<<<<<<<<<<<
break;
default:
- /* "lxml/etree.pyx":2601
+ /* "lxml/etree.pyx":2604
* return _attributeValue(self._node._c_node, c_attr)
* else:
* return (_namespacedName(<xmlNode*>c_attr), # <<<<<<<<<<<<<<
*
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = __pyx_f_4lxml_5etree__namespacedName(((xmlNode *)__pyx_v_c_attr)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2601, __pyx_L1_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree__namespacedName(((xmlNode *)__pyx_v_c_attr)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2604, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
- /* "lxml/etree.pyx":2602
+ /* "lxml/etree.pyx":2605
* else:
* return (_namespacedName(<xmlNode*>c_attr),
* _attributeValue(self._node._c_node, c_attr)) # <<<<<<<<<<<<<<
*
* cdef object _attributeIteratorFactory(_Element element, int keysvalues):
*/
- __pyx_t_5 = __pyx_f_4lxml_5etree__attributeValue(__pyx_v_self->_node->_c_node, __pyx_v_c_attr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2602, __pyx_L1_error)
+ __pyx_t_5 = __pyx_f_4lxml_5etree__attributeValue(__pyx_v_self->_node->_c_node, __pyx_v_c_attr); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2605, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
- /* "lxml/etree.pyx":2601
+ /* "lxml/etree.pyx":2604
* return _attributeValue(self._node._c_node, c_attr)
* else:
* return (_namespacedName(<xmlNode*>c_attr), # <<<<<<<<<<<<<<
* _attributeValue(self._node._c_node, c_attr))
*
*/
- __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2601, __pyx_L1_error)
+ __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2604, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_GIVEREF(__pyx_t_4);
PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4);
break;
}
- /* "lxml/etree.pyx":2584
+ /* "lxml/etree.pyx":2587
* return self
*
* def __next__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2604
+/* "lxml/etree.pyx":2607
* _attributeValue(self._node._c_node, c_attr))
*
* cdef object _attributeIteratorFactory(_Element element, int keysvalues): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_attributeIteratorFactory", 0);
- /* "lxml/etree.pyx":2606
+ /* "lxml/etree.pyx":2609
* cdef object _attributeIteratorFactory(_Element element, int keysvalues):
* cdef _AttribIterator attribs
* if element._c_node.properties is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_element->_c_node->properties == NULL) != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":2607
+ /* "lxml/etree.pyx":2610
* cdef _AttribIterator attribs
* if element._c_node.properties is NULL:
* return ITER_EMPTY # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_4lxml_5etree_ITER_EMPTY;
goto __pyx_L0;
- /* "lxml/etree.pyx":2606
+ /* "lxml/etree.pyx":2609
* cdef object _attributeIteratorFactory(_Element element, int keysvalues):
* cdef _AttribIterator attribs
* if element._c_node.properties is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2608
+ /* "lxml/etree.pyx":2611
* if element._c_node.properties is NULL:
* return ITER_EMPTY
* attribs = _AttribIterator() # <<<<<<<<<<<<<<
* attribs._node = element
* attribs._c_attr = element._c_node.properties
*/
- __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree__AttribIterator)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2608, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree__AttribIterator)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2611, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_v_attribs = ((struct __pyx_obj_4lxml_5etree__AttribIterator *)__pyx_t_2);
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":2609
+ /* "lxml/etree.pyx":2612
* return ITER_EMPTY
* attribs = _AttribIterator()
* attribs._node = element # <<<<<<<<<<<<<<
__Pyx_DECREF(((PyObject *)__pyx_v_attribs->_node));
__pyx_v_attribs->_node = __pyx_v_element;
- /* "lxml/etree.pyx":2610
+ /* "lxml/etree.pyx":2613
* attribs = _AttribIterator()
* attribs._node = element
* attribs._c_attr = element._c_node.properties # <<<<<<<<<<<<<<
__pyx_t_3 = __pyx_v_element->_c_node->properties;
__pyx_v_attribs->_c_attr = __pyx_t_3;
- /* "lxml/etree.pyx":2611
+ /* "lxml/etree.pyx":2614
* attribs._node = element
* attribs._c_attr = element._c_node.properties
* attribs._keysvalues = keysvalues # <<<<<<<<<<<<<<
*/
__pyx_v_attribs->_keysvalues = __pyx_v_keysvalues;
- /* "lxml/etree.pyx":2612
+ /* "lxml/etree.pyx":2615
* attribs._c_attr = element._c_node.properties
* attribs._keysvalues = keysvalues
* return attribs # <<<<<<<<<<<<<<
__pyx_r = ((PyObject *)__pyx_v_attribs);
goto __pyx_L0;
- /* "lxml/etree.pyx":2604
+ /* "lxml/etree.pyx":2607
* _attributeValue(self._node._c_node, c_attr))
*
* cdef object _attributeIteratorFactory(_Element element, int keysvalues): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2624
+/* "lxml/etree.pyx":2627
* cdef char* _href
* cdef char* _name
* cdef _initTagMatch(self, tag): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_initTagMatch", 0);
- /* "lxml/etree.pyx":2625
+ /* "lxml/etree.pyx":2628
* cdef char* _name
* cdef _initTagMatch(self, tag):
* self._href = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_self->_href = NULL;
- /* "lxml/etree.pyx":2626
+ /* "lxml/etree.pyx":2629
* cdef _initTagMatch(self, tag):
* self._href = NULL
* self._name = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_self->_name = NULL;
- /* "lxml/etree.pyx":2627
+ /* "lxml/etree.pyx":2630
* self._href = NULL
* self._name = NULL
* if tag is None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":2628
+ /* "lxml/etree.pyx":2631
* self._name = NULL
* if tag is None:
* self._node_type = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_self->_node_type = 0;
- /* "lxml/etree.pyx":2627
+ /* "lxml/etree.pyx":2630
* self._href = NULL
* self._name = NULL
* if tag is None: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":2629
+ /* "lxml/etree.pyx":2632
* if tag is None:
* self._node_type = 0
* elif tag is Comment: # <<<<<<<<<<<<<<
* self._node_type = tree.XML_COMMENT_NODE
* elif tag is ProcessingInstruction:
*/
- __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_Comment); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2629, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_Comment); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2632, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_2 = (__pyx_v_tag == __pyx_t_3);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_1 = (__pyx_t_2 != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":2630
+ /* "lxml/etree.pyx":2633
* self._node_type = 0
* elif tag is Comment:
* self._node_type = tree.XML_COMMENT_NODE # <<<<<<<<<<<<<<
*/
__pyx_v_self->_node_type = XML_COMMENT_NODE;
- /* "lxml/etree.pyx":2629
+ /* "lxml/etree.pyx":2632
* if tag is None:
* self._node_type = 0
* elif tag is Comment: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":2631
+ /* "lxml/etree.pyx":2634
* elif tag is Comment:
* self._node_type = tree.XML_COMMENT_NODE
* elif tag is ProcessingInstruction: # <<<<<<<<<<<<<<
* self._node_type = tree.XML_PI_NODE
* elif tag is Entity:
*/
- __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_ProcessingInstruction); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2631, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_ProcessingInstruction); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2634, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_1 = (__pyx_v_tag == __pyx_t_3);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":2632
+ /* "lxml/etree.pyx":2635
* self._node_type = tree.XML_COMMENT_NODE
* elif tag is ProcessingInstruction:
* self._node_type = tree.XML_PI_NODE # <<<<<<<<<<<<<<
*/
__pyx_v_self->_node_type = XML_PI_NODE;
- /* "lxml/etree.pyx":2631
+ /* "lxml/etree.pyx":2634
* elif tag is Comment:
* self._node_type = tree.XML_COMMENT_NODE
* elif tag is ProcessingInstruction: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":2633
+ /* "lxml/etree.pyx":2636
* elif tag is ProcessingInstruction:
* self._node_type = tree.XML_PI_NODE
* elif tag is Entity: # <<<<<<<<<<<<<<
* self._node_type = tree.XML_ENTITY_REF_NODE
* elif tag is Element:
*/
- __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_Entity); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2633, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_Entity); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2636, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_2 = (__pyx_v_tag == __pyx_t_3);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_1 = (__pyx_t_2 != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":2634
+ /* "lxml/etree.pyx":2637
* self._node_type = tree.XML_PI_NODE
* elif tag is Entity:
* self._node_type = tree.XML_ENTITY_REF_NODE # <<<<<<<<<<<<<<
*/
__pyx_v_self->_node_type = XML_ENTITY_REF_NODE;
- /* "lxml/etree.pyx":2633
+ /* "lxml/etree.pyx":2636
* elif tag is ProcessingInstruction:
* self._node_type = tree.XML_PI_NODE
* elif tag is Entity: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":2635
+ /* "lxml/etree.pyx":2638
* elif tag is Entity:
* self._node_type = tree.XML_ENTITY_REF_NODE
* elif tag is Element: # <<<<<<<<<<<<<<
* self._node_type = tree.XML_ELEMENT_NODE
* else:
*/
- __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_Element); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2635, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_Element); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2638, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_1 = (__pyx_v_tag == __pyx_t_3);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":2636
+ /* "lxml/etree.pyx":2639
* self._node_type = tree.XML_ENTITY_REF_NODE
* elif tag is Element:
* self._node_type = tree.XML_ELEMENT_NODE # <<<<<<<<<<<<<<
*/
__pyx_v_self->_node_type = XML_ELEMENT_NODE;
- /* "lxml/etree.pyx":2635
+ /* "lxml/etree.pyx":2638
* elif tag is Entity:
* self._node_type = tree.XML_ENTITY_REF_NODE
* elif tag is Element: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":2638
+ /* "lxml/etree.pyx":2641
* self._node_type = tree.XML_ELEMENT_NODE
* else:
* self._node_type = tree.XML_ELEMENT_NODE # <<<<<<<<<<<<<<
/*else*/ {
__pyx_v_self->_node_type = XML_ELEMENT_NODE;
- /* "lxml/etree.pyx":2639
+ /* "lxml/etree.pyx":2642
* else:
* self._node_type = tree.XML_ELEMENT_NODE
* self._pystrings = _getNsTag(tag) # <<<<<<<<<<<<<<
* if self._pystrings[0] is not None:
* self._href = _cstr(self._pystrings[0])
*/
- __pyx_t_3 = __pyx_f_4lxml_5etree__getNsTag(__pyx_v_tag); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2639, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree__getNsTag(__pyx_v_tag); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2642, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_GIVEREF(__pyx_t_3);
__Pyx_GOTREF(__pyx_v_self->_pystrings);
__pyx_v_self->_pystrings = __pyx_t_3;
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":2640
+ /* "lxml/etree.pyx":2643
* self._node_type = tree.XML_ELEMENT_NODE
* self._pystrings = _getNsTag(tag)
* if self._pystrings[0] is not None: # <<<<<<<<<<<<<<
* self._href = _cstr(self._pystrings[0])
* self._name = _cstr(self._pystrings[1])
*/
- __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_self->_pystrings, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2640, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_self->_pystrings, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2643, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_2 = (__pyx_t_3 != Py_None);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_1 = (__pyx_t_2 != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":2641
+ /* "lxml/etree.pyx":2644
* self._pystrings = _getNsTag(tag)
* if self._pystrings[0] is not None:
* self._href = _cstr(self._pystrings[0]) # <<<<<<<<<<<<<<
* self._name = _cstr(self._pystrings[1])
* if self._name[0] == c'*' and self._name[1] == c'\0':
*/
- __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_self->_pystrings, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2641, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_self->_pystrings, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2644, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_v_self->_href = PyBytes_AS_STRING(__pyx_t_3);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- /* "lxml/etree.pyx":2640
+ /* "lxml/etree.pyx":2643
* self._node_type = tree.XML_ELEMENT_NODE
* self._pystrings = _getNsTag(tag)
* if self._pystrings[0] is not None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2642
+ /* "lxml/etree.pyx":2645
* if self._pystrings[0] is not None:
* self._href = _cstr(self._pystrings[0])
* self._name = _cstr(self._pystrings[1]) # <<<<<<<<<<<<<<
* if self._name[0] == c'*' and self._name[1] == c'\0':
* self._name = NULL
*/
- __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_self->_pystrings, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2642, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_self->_pystrings, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2645, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_v_self->_name = PyBytes_AS_STRING(__pyx_t_3);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- /* "lxml/etree.pyx":2643
+ /* "lxml/etree.pyx":2646
* self._href = _cstr(self._pystrings[0])
* self._name = _cstr(self._pystrings[1])
* if self._name[0] == c'*' and self._name[1] == c'\0': # <<<<<<<<<<<<<<
__pyx_L6_bool_binop_done:;
if (__pyx_t_1) {
- /* "lxml/etree.pyx":2644
+ /* "lxml/etree.pyx":2647
* self._name = _cstr(self._pystrings[1])
* if self._name[0] == c'*' and self._name[1] == c'\0':
* self._name = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_self->_name = NULL;
- /* "lxml/etree.pyx":2643
+ /* "lxml/etree.pyx":2646
* self._href = _cstr(self._pystrings[0])
* self._name = _cstr(self._pystrings[1])
* if self._name[0] == c'*' and self._name[1] == c'\0': # <<<<<<<<<<<<<<
}
__pyx_L3:;
- /* "lxml/etree.pyx":2624
+ /* "lxml/etree.pyx":2627
* cdef char* _href
* cdef char* _name
* cdef _initTagMatch(self, tag): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2654
+/* "lxml/etree.pyx":2657
* cdef _Element _node
* cdef _node_to_node_function _next_element
* def __iter__(self): # <<<<<<<<<<<<<<
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__iter__", 0);
- /* "lxml/etree.pyx":2655
+ /* "lxml/etree.pyx":2658
* cdef _node_to_node_function _next_element
* def __iter__(self):
* return self # <<<<<<<<<<<<<<
__pyx_r = ((PyObject *)__pyx_v_self);
goto __pyx_L0;
- /* "lxml/etree.pyx":2654
+ /* "lxml/etree.pyx":2657
* cdef _Element _node
* cdef _node_to_node_function _next_element
* def __iter__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2657
+/* "lxml/etree.pyx":2660
* return self
*
* cdef void _storeNext(self, _Element node): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_storeNext", 0);
- /* "lxml/etree.pyx":2659
+ /* "lxml/etree.pyx":2662
* cdef void _storeNext(self, _Element node):
* cdef xmlNode* c_node
* c_node = self._next_element(node._c_node) # <<<<<<<<<<<<<<
*/
__pyx_v_c_node = __pyx_v_self->_next_element(__pyx_v_node->_c_node);
- /* "lxml/etree.pyx":2660
+ /* "lxml/etree.pyx":2663
* cdef xmlNode* c_node
* c_node = self._next_element(node._c_node)
* while c_node is not NULL and \ # <<<<<<<<<<<<<<
goto __pyx_L5_bool_binop_done;
}
- /* "lxml/etree.pyx":2661
+ /* "lxml/etree.pyx":2664
* c_node = self._next_element(node._c_node)
* while c_node is not NULL and \
* self._node_type != 0 and \ # <<<<<<<<<<<<<<
goto __pyx_L5_bool_binop_done;
}
- /* "lxml/etree.pyx":2662
+ /* "lxml/etree.pyx":2665
* while c_node is not NULL and \
* self._node_type != 0 and \
* (<tree.xmlElementType>self._node_type != c_node.type or # <<<<<<<<<<<<<<
goto __pyx_L5_bool_binop_done;
}
- /* "lxml/etree.pyx":2663
+ /* "lxml/etree.pyx":2666
* self._node_type != 0 and \
* (<tree.xmlElementType>self._node_type != c_node.type or
* not _tagMatches(c_node, <const_xmlChar*>self._href, <const_xmlChar*>self._name)): # <<<<<<<<<<<<<<
__pyx_L5_bool_binop_done:;
if (!__pyx_t_1) break;
- /* "lxml/etree.pyx":2664
+ /* "lxml/etree.pyx":2667
* (<tree.xmlElementType>self._node_type != c_node.type or
* not _tagMatches(c_node, <const_xmlChar*>self._href, <const_xmlChar*>self._name)):
* c_node = self._next_element(c_node) # <<<<<<<<<<<<<<
__pyx_v_c_node = __pyx_v_self->_next_element(__pyx_v_c_node);
}
- /* "lxml/etree.pyx":2665
+ /* "lxml/etree.pyx":2668
* not _tagMatches(c_node, <const_xmlChar*>self._href, <const_xmlChar*>self._name)):
* c_node = self._next_element(c_node)
* if c_node is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_node == NULL) != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":2666
+ /* "lxml/etree.pyx":2669
* c_node = self._next_element(c_node)
* if c_node is NULL:
* self._node = None # <<<<<<<<<<<<<<
__Pyx_DECREF(((PyObject *)__pyx_v_self->_node));
__pyx_v_self->_node = ((struct LxmlElement *)Py_None);
- /* "lxml/etree.pyx":2665
+ /* "lxml/etree.pyx":2668
* not _tagMatches(c_node, <const_xmlChar*>self._href, <const_xmlChar*>self._name)):
* c_node = self._next_element(c_node)
* if c_node is NULL: # <<<<<<<<<<<<<<
goto __pyx_L9;
}
- /* "lxml/etree.pyx":2669
+ /* "lxml/etree.pyx":2672
* else:
* # Python ref:
* self._node = _elementFactory(node._doc, c_node) # <<<<<<<<<<<<<<
/*else*/ {
__pyx_t_3 = ((PyObject *)__pyx_v_node->_doc);
__Pyx_INCREF(__pyx_t_3);
- __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(((struct LxmlDocument *)__pyx_t_3), __pyx_v_c_node)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2669, __pyx_L1_error)
+ __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(((struct LxmlDocument *)__pyx_t_3), __pyx_v_c_node)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2672, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_GIVEREF(__pyx_t_4);
}
__pyx_L9:;
- /* "lxml/etree.pyx":2657
+ /* "lxml/etree.pyx":2660
* return self
*
* cdef void _storeNext(self, _Element node): # <<<<<<<<<<<<<<
__Pyx_RefNannyFinishContext();
}
-/* "lxml/etree.pyx":2671
+/* "lxml/etree.pyx":2674
* self._node = _elementFactory(node._doc, c_node)
*
* def __next__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__next__", 0);
- /* "lxml/etree.pyx":2674
+ /* "lxml/etree.pyx":2677
* cdef xmlNode* c_node
* cdef _Element current_node
* if self._node is None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":2675
+ /* "lxml/etree.pyx":2678
* cdef _Element current_node
* if self._node is None:
* raise StopIteration # <<<<<<<<<<<<<<
* current_node = self._node
*/
__Pyx_Raise(__pyx_builtin_StopIteration, 0, 0, 0);
- __PYX_ERR(0, 2675, __pyx_L1_error)
+ __PYX_ERR(0, 2678, __pyx_L1_error)
- /* "lxml/etree.pyx":2674
+ /* "lxml/etree.pyx":2677
* cdef xmlNode* c_node
* cdef _Element current_node
* if self._node is None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2677
+ /* "lxml/etree.pyx":2680
* raise StopIteration
* # Python ref:
* current_node = self._node # <<<<<<<<<<<<<<
__pyx_v_current_node = ((struct LxmlElement *)__pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":2678
+ /* "lxml/etree.pyx":2681
* # Python ref:
* current_node = self._node
* self._storeNext(current_node) # <<<<<<<<<<<<<<
*/
((struct __pyx_vtabstruct_4lxml_5etree__ElementIterator *)__pyx_v_self->__pyx_base.__pyx_vtab)->_storeNext(__pyx_v_self, __pyx_v_current_node);
- /* "lxml/etree.pyx":2679
+ /* "lxml/etree.pyx":2682
* current_node = self._node
* self._storeNext(current_node)
* return current_node # <<<<<<<<<<<<<<
__pyx_r = ((PyObject *)__pyx_v_current_node);
goto __pyx_L0;
- /* "lxml/etree.pyx":2671
+ /* "lxml/etree.pyx":2674
* self._node = _elementFactory(node._doc, c_node)
*
* def __next__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2694
+/* "lxml/etree.pyx":2697
* cdef int _node_types
*
* def __cinit__(self, tags): # <<<<<<<<<<<<<<
else goto __pyx_L5_argtuple_error;
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 2694, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 2697, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2694, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2697, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._MultiTagMatcher.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__cinit__", 0);
- /* "lxml/etree.pyx":2695
+ /* "lxml/etree.pyx":2698
*
* def __cinit__(self, tags):
* self._py_tags = [] # <<<<<<<<<<<<<<
* self.initTagMatch(tags)
*
*/
- __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2695, __pyx_L1_error)
+ __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2698, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_GIVEREF(__pyx_t_1);
__Pyx_GOTREF(__pyx_v_self->_py_tags);
__pyx_v_self->_py_tags = ((PyObject*)__pyx_t_1);
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":2696
+ /* "lxml/etree.pyx":2699
* def __cinit__(self, tags):
* self._py_tags = []
* self.initTagMatch(tags) # <<<<<<<<<<<<<<
*
* def __dealloc__(self):
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_16_MultiTagMatcher_initTagMatch(__pyx_v_self, __pyx_v_tags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2696, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_16_MultiTagMatcher_initTagMatch(__pyx_v_self, __pyx_v_tags); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2699, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2694
+ /* "lxml/etree.pyx":2697
* cdef int _node_types
*
* def __cinit__(self, tags): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2698
+/* "lxml/etree.pyx":2701
* self.initTagMatch(tags)
*
* def __dealloc__(self): # <<<<<<<<<<<<<<
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__dealloc__", 0);
- /* "lxml/etree.pyx":2699
+ /* "lxml/etree.pyx":2702
*
* def __dealloc__(self):
* self._clear() # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree_16_MultiTagMatcher__clear(__pyx_v_self);
- /* "lxml/etree.pyx":2698
+ /* "lxml/etree.pyx":2701
* self.initTagMatch(tags)
*
* def __dealloc__(self): # <<<<<<<<<<<<<<
__Pyx_RefNannyFinishContext();
}
-/* "lxml/etree.pyx":2701
+/* "lxml/etree.pyx":2704
* self._clear()
*
* cdef bint rejectsAll(self): # <<<<<<<<<<<<<<
int __pyx_t_2;
__Pyx_RefNannySetupContext("rejectsAll", 0);
- /* "lxml/etree.pyx":2702
+ /* "lxml/etree.pyx":2705
*
* cdef bint rejectsAll(self):
* return not self._tag_count and not self._node_types # <<<<<<<<<<<<<<
__pyx_r = __pyx_t_1;
goto __pyx_L0;
- /* "lxml/etree.pyx":2701
+ /* "lxml/etree.pyx":2704
* self._clear()
*
* cdef bint rejectsAll(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2704
+/* "lxml/etree.pyx":2707
* return not self._tag_count and not self._node_types
*
* cdef bint rejectsAllAttributes(self): # <<<<<<<<<<<<<<
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("rejectsAllAttributes", 0);
- /* "lxml/etree.pyx":2705
+ /* "lxml/etree.pyx":2708
*
* cdef bint rejectsAllAttributes(self):
* return not self._tag_count # <<<<<<<<<<<<<<
__pyx_r = (!(__pyx_v_self->_tag_count != 0));
goto __pyx_L0;
- /* "lxml/etree.pyx":2704
+ /* "lxml/etree.pyx":2707
* return not self._tag_count and not self._node_types
*
* cdef bint rejectsAllAttributes(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2707
+/* "lxml/etree.pyx":2710
* return not self._tag_count
*
* cdef bint matchesType(self, int node_type): # <<<<<<<<<<<<<<
int __pyx_t_2;
__Pyx_RefNannySetupContext("matchesType", 0);
- /* "lxml/etree.pyx":2708
+ /* "lxml/etree.pyx":2711
*
* cdef bint matchesType(self, int node_type):
* if node_type == tree.XML_ELEMENT_NODE and self._tag_count: # <<<<<<<<<<<<<<
__pyx_L4_bool_binop_done:;
if (__pyx_t_1) {
- /* "lxml/etree.pyx":2709
+ /* "lxml/etree.pyx":2712
* cdef bint matchesType(self, int node_type):
* if node_type == tree.XML_ELEMENT_NODE and self._tag_count:
* return True # <<<<<<<<<<<<<<
__pyx_r = 1;
goto __pyx_L0;
- /* "lxml/etree.pyx":2708
+ /* "lxml/etree.pyx":2711
*
* cdef bint matchesType(self, int node_type):
* if node_type == tree.XML_ELEMENT_NODE and self._tag_count: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2710
+ /* "lxml/etree.pyx":2713
* if node_type == tree.XML_ELEMENT_NODE and self._tag_count:
* return True
* return self._node_types & (1 << node_type) # <<<<<<<<<<<<<<
__pyx_r = (__pyx_v_self->_node_types & (1 << __pyx_v_node_type));
goto __pyx_L0;
- /* "lxml/etree.pyx":2707
+ /* "lxml/etree.pyx":2710
* return not self._tag_count
*
* cdef bint matchesType(self, int node_type): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2712
+/* "lxml/etree.pyx":2715
* return self._node_types & (1 << node_type)
*
* cdef void _clear(self): # <<<<<<<<<<<<<<
size_t __pyx_t_4;
__Pyx_RefNannySetupContext("_clear", 0);
- /* "lxml/etree.pyx":2714
+ /* "lxml/etree.pyx":2717
* cdef void _clear(self):
* cdef size_t i, count
* count = self._tag_count # <<<<<<<<<<<<<<
__pyx_t_1 = __pyx_v_self->_tag_count;
__pyx_v_count = __pyx_t_1;
- /* "lxml/etree.pyx":2715
+ /* "lxml/etree.pyx":2718
* cdef size_t i, count
* count = self._tag_count
* self._tag_count = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_self->_tag_count = 0;
- /* "lxml/etree.pyx":2716
+ /* "lxml/etree.pyx":2719
* count = self._tag_count
* self._tag_count = 0
* if self._cached_tags: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_v_self->_cached_tags != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":2717
+ /* "lxml/etree.pyx":2720
* self._tag_count = 0
* if self._cached_tags:
* for i in xrange(count): # <<<<<<<<<<<<<<
for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
__pyx_v_i = __pyx_t_4;
- /* "lxml/etree.pyx":2718
+ /* "lxml/etree.pyx":2721
* if self._cached_tags:
* for i in xrange(count):
* cpython.ref.Py_XDECREF(self._cached_tags[i].href) # <<<<<<<<<<<<<<
Py_XDECREF((__pyx_v_self->_cached_tags[__pyx_v_i]).href);
}
- /* "lxml/etree.pyx":2719
+ /* "lxml/etree.pyx":2722
* for i in xrange(count):
* cpython.ref.Py_XDECREF(self._cached_tags[i].href)
* python.lxml_free(self._cached_tags) # <<<<<<<<<<<<<<
*/
lxml_free(__pyx_v_self->_cached_tags);
- /* "lxml/etree.pyx":2720
+ /* "lxml/etree.pyx":2723
* cpython.ref.Py_XDECREF(self._cached_tags[i].href)
* python.lxml_free(self._cached_tags)
* self._cached_tags = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_self->_cached_tags = NULL;
- /* "lxml/etree.pyx":2716
+ /* "lxml/etree.pyx":2719
* count = self._tag_count
* self._tag_count = 0
* if self._cached_tags: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2712
+ /* "lxml/etree.pyx":2715
* return self._node_types & (1 << node_type)
*
* cdef void _clear(self): # <<<<<<<<<<<<<<
__Pyx_RefNannyFinishContext();
}
-/* "lxml/etree.pyx":2722
+/* "lxml/etree.pyx":2725
* self._cached_tags = NULL
*
* cdef initTagMatch(self, tags): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("initTagMatch", 0);
- /* "lxml/etree.pyx":2723
+ /* "lxml/etree.pyx":2726
*
* cdef initTagMatch(self, tags):
* self._cached_doc = None # <<<<<<<<<<<<<<
__Pyx_DECREF(((PyObject *)__pyx_v_self->_cached_doc));
__pyx_v_self->_cached_doc = ((struct LxmlDocument *)Py_None);
- /* "lxml/etree.pyx":2724
+ /* "lxml/etree.pyx":2727
* cdef initTagMatch(self, tags):
* self._cached_doc = None
* del self._py_tags[:] # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_v_self->_py_tags == Py_None)) {
PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
- __PYX_ERR(0, 2724, __pyx_L1_error)
+ __PYX_ERR(0, 2727, __pyx_L1_error)
}
- if (__Pyx_PyObject_DelSlice(__pyx_v_self->_py_tags, 0, 0, NULL, NULL, NULL, 0, 0, 1) < 0) __PYX_ERR(0, 2724, __pyx_L1_error)
+ if (__Pyx_PyObject_DelSlice(__pyx_v_self->_py_tags, 0, 0, NULL, NULL, NULL, 0, 0, 1) < 0) __PYX_ERR(0, 2727, __pyx_L1_error)
- /* "lxml/etree.pyx":2725
+ /* "lxml/etree.pyx":2728
* self._cached_doc = None
* del self._py_tags[:]
* self._clear() # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree_16_MultiTagMatcher__clear(__pyx_v_self);
- /* "lxml/etree.pyx":2726
+ /* "lxml/etree.pyx":2729
* del self._py_tags[:]
* self._clear()
* if tags is None or tags == (): # <<<<<<<<<<<<<<
__pyx_t_1 = __pyx_t_3;
goto __pyx_L4_bool_binop_done;
}
- __pyx_t_4 = PyObject_RichCompare(__pyx_v_tags, __pyx_empty_tuple, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2726, __pyx_L1_error)
- __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 2726, __pyx_L1_error)
+ __pyx_t_4 = PyObject_RichCompare(__pyx_v_tags, __pyx_empty_tuple, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2729, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 2729, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_1 = __pyx_t_3;
__pyx_L4_bool_binop_done:;
if (__pyx_t_1) {
- /* "lxml/etree.pyx":2728
+ /* "lxml/etree.pyx":2731
* if tags is None or tags == ():
* # no selection in tags argument => match anything
* self._node_types = ( # <<<<<<<<<<<<<<
*/
__pyx_v_self->_node_types = ((((1 << XML_COMMENT_NODE) | (1 << XML_PI_NODE)) | (1 << XML_ENTITY_REF_NODE)) | (1 << XML_ELEMENT_NODE));
- /* "lxml/etree.pyx":2726
+ /* "lxml/etree.pyx":2729
* del self._py_tags[:]
* self._clear()
* if tags is None or tags == (): # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":2734
+ /* "lxml/etree.pyx":2737
* 1 << tree.XML_ELEMENT_NODE)
* else:
* self._node_types = 0 # <<<<<<<<<<<<<<
/*else*/ {
__pyx_v_self->_node_types = 0;
- /* "lxml/etree.pyx":2735
+ /* "lxml/etree.pyx":2738
* else:
* self._node_types = 0
* self._storeTags(tags, set()) # <<<<<<<<<<<<<<
*
* cdef _storeTags(self, tag, set seen):
*/
- __pyx_t_4 = PySet_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2735, __pyx_L1_error)
+ __pyx_t_4 = PySet_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2738, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
- __pyx_t_5 = __pyx_f_4lxml_5etree_16_MultiTagMatcher__storeTags(__pyx_v_self, __pyx_v_tags, ((PyObject*)__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2735, __pyx_L1_error)
+ __pyx_t_5 = __pyx_f_4lxml_5etree_16_MultiTagMatcher__storeTags(__pyx_v_self, __pyx_v_tags, ((PyObject*)__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2738, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
}
__pyx_L3:;
- /* "lxml/etree.pyx":2722
+ /* "lxml/etree.pyx":2725
* self._cached_tags = NULL
*
* cdef initTagMatch(self, tags): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2737
+/* "lxml/etree.pyx":2740
* self._storeTags(tags, set())
*
* cdef _storeTags(self, tag, set seen): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_storeTags", 0);
- /* "lxml/etree.pyx":2738
+ /* "lxml/etree.pyx":2741
*
* cdef _storeTags(self, tag, set seen):
* if tag is Comment: # <<<<<<<<<<<<<<
* self._node_types |= 1 << tree.XML_COMMENT_NODE
* elif tag is ProcessingInstruction:
*/
- __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_Comment); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2738, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_Comment); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2741, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_2 = (__pyx_v_tag == __pyx_t_1);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_3 = (__pyx_t_2 != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":2739
+ /* "lxml/etree.pyx":2742
* cdef _storeTags(self, tag, set seen):
* if tag is Comment:
* self._node_types |= 1 << tree.XML_COMMENT_NODE # <<<<<<<<<<<<<<
*/
__pyx_v_self->_node_types = (__pyx_v_self->_node_types | (1 << XML_COMMENT_NODE));
- /* "lxml/etree.pyx":2738
+ /* "lxml/etree.pyx":2741
*
* cdef _storeTags(self, tag, set seen):
* if tag is Comment: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":2740
+ /* "lxml/etree.pyx":2743
* if tag is Comment:
* self._node_types |= 1 << tree.XML_COMMENT_NODE
* elif tag is ProcessingInstruction: # <<<<<<<<<<<<<<
* self._node_types |= 1 << tree.XML_PI_NODE
* elif tag is Entity:
*/
- __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_ProcessingInstruction); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2740, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_ProcessingInstruction); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2743, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_3 = (__pyx_v_tag == __pyx_t_1);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_2 = (__pyx_t_3 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":2741
+ /* "lxml/etree.pyx":2744
* self._node_types |= 1 << tree.XML_COMMENT_NODE
* elif tag is ProcessingInstruction:
* self._node_types |= 1 << tree.XML_PI_NODE # <<<<<<<<<<<<<<
*/
__pyx_v_self->_node_types = (__pyx_v_self->_node_types | (1 << XML_PI_NODE));
- /* "lxml/etree.pyx":2740
+ /* "lxml/etree.pyx":2743
* if tag is Comment:
* self._node_types |= 1 << tree.XML_COMMENT_NODE
* elif tag is ProcessingInstruction: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":2742
+ /* "lxml/etree.pyx":2745
* elif tag is ProcessingInstruction:
* self._node_types |= 1 << tree.XML_PI_NODE
* elif tag is Entity: # <<<<<<<<<<<<<<
* self._node_types |= 1 << tree.XML_ENTITY_REF_NODE
* elif tag is Element:
*/
- __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_Entity); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2742, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_Entity); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2745, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_2 = (__pyx_v_tag == __pyx_t_1);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_3 = (__pyx_t_2 != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":2743
+ /* "lxml/etree.pyx":2746
* self._node_types |= 1 << tree.XML_PI_NODE
* elif tag is Entity:
* self._node_types |= 1 << tree.XML_ENTITY_REF_NODE # <<<<<<<<<<<<<<
*/
__pyx_v_self->_node_types = (__pyx_v_self->_node_types | (1 << XML_ENTITY_REF_NODE));
- /* "lxml/etree.pyx":2742
+ /* "lxml/etree.pyx":2745
* elif tag is ProcessingInstruction:
* self._node_types |= 1 << tree.XML_PI_NODE
* elif tag is Entity: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":2744
+ /* "lxml/etree.pyx":2747
* elif tag is Entity:
* self._node_types |= 1 << tree.XML_ENTITY_REF_NODE
* elif tag is Element: # <<<<<<<<<<<<<<
* self._node_types |= 1 << tree.XML_ELEMENT_NODE
* elif python._isString(tag):
*/
- __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_Element); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2744, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_Element); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2747, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_3 = (__pyx_v_tag == __pyx_t_1);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_2 = (__pyx_t_3 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":2745
+ /* "lxml/etree.pyx":2748
* self._node_types |= 1 << tree.XML_ENTITY_REF_NODE
* elif tag is Element:
* self._node_types |= 1 << tree.XML_ELEMENT_NODE # <<<<<<<<<<<<<<
*/
__pyx_v_self->_node_types = (__pyx_v_self->_node_types | (1 << XML_ELEMENT_NODE));
- /* "lxml/etree.pyx":2744
+ /* "lxml/etree.pyx":2747
* elif tag is Entity:
* self._node_types |= 1 << tree.XML_ENTITY_REF_NODE
* elif tag is Element: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":2746
+ /* "lxml/etree.pyx":2749
* elif tag is Element:
* self._node_types |= 1 << tree.XML_ELEMENT_NODE
* elif python._isString(tag): # <<<<<<<<<<<<<<
__pyx_t_2 = (_isString(__pyx_v_tag) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":2747
+ /* "lxml/etree.pyx":2750
* self._node_types |= 1 << tree.XML_ELEMENT_NODE
* elif python._isString(tag):
* if tag in seen: # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_v_seen == Py_None)) {
PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
- __PYX_ERR(0, 2747, __pyx_L1_error)
+ __PYX_ERR(0, 2750, __pyx_L1_error)
}
- __pyx_t_2 = (__Pyx_PySet_ContainsTF(__pyx_v_tag, __pyx_v_seen, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 2747, __pyx_L1_error)
+ __pyx_t_2 = (__Pyx_PySet_ContainsTF(__pyx_v_tag, __pyx_v_seen, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 2750, __pyx_L1_error)
__pyx_t_3 = (__pyx_t_2 != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":2748
+ /* "lxml/etree.pyx":2751
* elif python._isString(tag):
* if tag in seen:
* return # <<<<<<<<<<<<<<
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
- /* "lxml/etree.pyx":2747
+ /* "lxml/etree.pyx":2750
* self._node_types |= 1 << tree.XML_ELEMENT_NODE
* elif python._isString(tag):
* if tag in seen: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2749
+ /* "lxml/etree.pyx":2752
* if tag in seen:
* return
* seen.add(tag) # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_v_seen == Py_None)) {
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "add");
- __PYX_ERR(0, 2749, __pyx_L1_error)
+ __PYX_ERR(0, 2752, __pyx_L1_error)
}
- __pyx_t_4 = PySet_Add(__pyx_v_seen, __pyx_v_tag); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 2749, __pyx_L1_error)
+ __pyx_t_4 = PySet_Add(__pyx_v_seen, __pyx_v_tag); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 2752, __pyx_L1_error)
- /* "lxml/etree.pyx":2750
+ /* "lxml/etree.pyx":2753
* return
* seen.add(tag)
* if tag in ('*', '{*}*'): # <<<<<<<<<<<<<<
*/
__Pyx_INCREF(__pyx_v_tag);
__pyx_t_1 = __pyx_v_tag;
- __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_t_1, __pyx_kp_s__42, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 2750, __pyx_L1_error)
+ __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_t_1, __pyx_kp_s__42, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 2753, __pyx_L1_error)
if (!__pyx_t_2) {
} else {
__pyx_t_3 = __pyx_t_2;
goto __pyx_L6_bool_binop_done;
}
- __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_t_1, __pyx_kp_s__43, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 2750, __pyx_L1_error)
+ __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_t_1, __pyx_kp_s__43, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 2753, __pyx_L1_error)
__pyx_t_3 = __pyx_t_2;
__pyx_L6_bool_binop_done:;
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_2 = (__pyx_t_3 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":2751
+ /* "lxml/etree.pyx":2754
* seen.add(tag)
* if tag in ('*', '{*}*'):
* self._node_types |= 1 << tree.XML_ELEMENT_NODE # <<<<<<<<<<<<<<
*/
__pyx_v_self->_node_types = (__pyx_v_self->_node_types | (1 << XML_ELEMENT_NODE));
- /* "lxml/etree.pyx":2750
+ /* "lxml/etree.pyx":2753
* return
* seen.add(tag)
* if tag in ('*', '{*}*'): # <<<<<<<<<<<<<<
goto __pyx_L5;
}
- /* "lxml/etree.pyx":2753
+ /* "lxml/etree.pyx":2756
* self._node_types |= 1 << tree.XML_ELEMENT_NODE
* else:
* href, name = _getNsTag(tag) # <<<<<<<<<<<<<<
* name = None
*/
/*else*/ {
- __pyx_t_1 = __pyx_f_4lxml_5etree__getNsTag(__pyx_v_tag); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2753, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__getNsTag(__pyx_v_tag); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2756, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
if (likely(__pyx_t_1 != Py_None)) {
PyObject* sequence = __pyx_t_1;
if (unlikely(size != 2)) {
if (size > 2) __Pyx_RaiseTooManyValuesError(2);
else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
- __PYX_ERR(0, 2753, __pyx_L1_error)
+ __PYX_ERR(0, 2756, __pyx_L1_error)
}
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
__pyx_t_5 = PyTuple_GET_ITEM(sequence, 0);
__Pyx_INCREF(__pyx_t_5);
__Pyx_INCREF(__pyx_t_6);
#else
- __pyx_t_5 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2753, __pyx_L1_error)
+ __pyx_t_5 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2756, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
- __pyx_t_6 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2753, __pyx_L1_error)
+ __pyx_t_6 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2756, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
#endif
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
} else {
- __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(0, 2753, __pyx_L1_error)
+ __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(0, 2756, __pyx_L1_error)
}
__pyx_v_href = __pyx_t_5;
__pyx_t_5 = 0;
__pyx_v_name = __pyx_t_6;
__pyx_t_6 = 0;
- /* "lxml/etree.pyx":2754
+ /* "lxml/etree.pyx":2757
* else:
* href, name = _getNsTag(tag)
* if name == b'*': # <<<<<<<<<<<<<<
* name = None
* if href is None:
*/
- __pyx_t_2 = (__Pyx_PyBytes_Equals(__pyx_v_name, __pyx_kp_b__42, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 2754, __pyx_L1_error)
+ __pyx_t_2 = (__Pyx_PyBytes_Equals(__pyx_v_name, __pyx_kp_b__42, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 2757, __pyx_L1_error)
if (__pyx_t_2) {
- /* "lxml/etree.pyx":2755
+ /* "lxml/etree.pyx":2758
* href, name = _getNsTag(tag)
* if name == b'*':
* name = None # <<<<<<<<<<<<<<
__Pyx_INCREF(Py_None);
__Pyx_DECREF_SET(__pyx_v_name, Py_None);
- /* "lxml/etree.pyx":2754
+ /* "lxml/etree.pyx":2757
* else:
* href, name = _getNsTag(tag)
* if name == b'*': # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2756
+ /* "lxml/etree.pyx":2759
* if name == b'*':
* name = None
* if href is None: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_2 != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":2757
+ /* "lxml/etree.pyx":2760
* name = None
* if href is None:
* href = b'' # no namespace # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_kp_b__12);
__Pyx_DECREF_SET(__pyx_v_href, __pyx_kp_b__12);
- /* "lxml/etree.pyx":2756
+ /* "lxml/etree.pyx":2759
* if name == b'*':
* name = None
* if href is None: # <<<<<<<<<<<<<<
goto __pyx_L9;
}
- /* "lxml/etree.pyx":2758
+ /* "lxml/etree.pyx":2761
* if href is None:
* href = b'' # no namespace
* elif href == b'*': # <<<<<<<<<<<<<<
* href = None # wildcard: any namespace, including none
* self._py_tags.append((href, name))
*/
- __pyx_t_3 = (__Pyx_PyBytes_Equals(__pyx_v_href, __pyx_kp_b__42, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 2758, __pyx_L1_error)
+ __pyx_t_3 = (__Pyx_PyBytes_Equals(__pyx_v_href, __pyx_kp_b__42, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 2761, __pyx_L1_error)
if (__pyx_t_3) {
- /* "lxml/etree.pyx":2759
+ /* "lxml/etree.pyx":2762
* href = b'' # no namespace
* elif href == b'*':
* href = None # wildcard: any namespace, including none # <<<<<<<<<<<<<<
__Pyx_INCREF(Py_None);
__Pyx_DECREF_SET(__pyx_v_href, Py_None);
- /* "lxml/etree.pyx":2758
+ /* "lxml/etree.pyx":2761
* if href is None:
* href = b'' # no namespace
* elif href == b'*': # <<<<<<<<<<<<<<
}
__pyx_L9:;
- /* "lxml/etree.pyx":2760
+ /* "lxml/etree.pyx":2763
* elif href == b'*':
* href = None # wildcard: any namespace, including none
* self._py_tags.append((href, name)) # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_v_self->_py_tags == Py_None)) {
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "append");
- __PYX_ERR(0, 2760, __pyx_L1_error)
+ __PYX_ERR(0, 2763, __pyx_L1_error)
}
- __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2760, __pyx_L1_error)
+ __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2763, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(__pyx_v_href);
__Pyx_GIVEREF(__pyx_v_href);
__Pyx_INCREF(__pyx_v_name);
__Pyx_GIVEREF(__pyx_v_name);
PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_name);
- __pyx_t_4 = __Pyx_PyList_Append(__pyx_v_self->_py_tags, __pyx_t_1); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 2760, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyList_Append(__pyx_v_self->_py_tags, __pyx_t_1); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 2763, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
}
__pyx_L5:;
- /* "lxml/etree.pyx":2746
+ /* "lxml/etree.pyx":2749
* elif tag is Element:
* self._node_types |= 1 << tree.XML_ELEMENT_NODE
* elif python._isString(tag): # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":2761
+ /* "lxml/etree.pyx":2764
* href = None # wildcard: any namespace, including none
* self._py_tags.append((href, name))
* elif isinstance(tag, QName): # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_3 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":2762
+ /* "lxml/etree.pyx":2765
* self._py_tags.append((href, name))
* elif isinstance(tag, QName):
* self._storeTags(tag.text, seen) # <<<<<<<<<<<<<<
* else:
* # support a sequence of tags
*/
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_tag, __pyx_n_s_text); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2762, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_tag, __pyx_n_s_text); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2765, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_6 = __pyx_f_4lxml_5etree_16_MultiTagMatcher__storeTags(__pyx_v_self, __pyx_t_1, __pyx_v_seen); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2762, __pyx_L1_error)
+ __pyx_t_6 = __pyx_f_4lxml_5etree_16_MultiTagMatcher__storeTags(__pyx_v_self, __pyx_t_1, __pyx_v_seen); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2765, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
- /* "lxml/etree.pyx":2761
+ /* "lxml/etree.pyx":2764
* href = None # wildcard: any namespace, including none
* self._py_tags.append((href, name))
* elif isinstance(tag, QName): # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":2765
+ /* "lxml/etree.pyx":2768
* else:
* # support a sequence of tags
* for item in tag: # <<<<<<<<<<<<<<
__pyx_t_6 = __pyx_v_tag; __Pyx_INCREF(__pyx_t_6); __pyx_t_7 = 0;
__pyx_t_8 = NULL;
} else {
- __pyx_t_7 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_v_tag); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2765, __pyx_L1_error)
+ __pyx_t_7 = -1; __pyx_t_6 = PyObject_GetIter(__pyx_v_tag); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2768, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
- __pyx_t_8 = Py_TYPE(__pyx_t_6)->tp_iternext; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2765, __pyx_L1_error)
+ __pyx_t_8 = Py_TYPE(__pyx_t_6)->tp_iternext; if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 2768, __pyx_L1_error)
}
for (;;) {
if (likely(!__pyx_t_8)) {
if (likely(PyList_CheckExact(__pyx_t_6))) {
if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_6)) break;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
- __pyx_t_1 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_7); __Pyx_INCREF(__pyx_t_1); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 2765, __pyx_L1_error)
+ __pyx_t_1 = PyList_GET_ITEM(__pyx_t_6, __pyx_t_7); __Pyx_INCREF(__pyx_t_1); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 2768, __pyx_L1_error)
#else
- __pyx_t_1 = PySequence_ITEM(__pyx_t_6, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2765, __pyx_L1_error)
+ __pyx_t_1 = PySequence_ITEM(__pyx_t_6, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2768, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
#endif
} else {
if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_6)) break;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
- __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_7); __Pyx_INCREF(__pyx_t_1); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 2765, __pyx_L1_error)
+ __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_6, __pyx_t_7); __Pyx_INCREF(__pyx_t_1); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(0, 2768, __pyx_L1_error)
#else
- __pyx_t_1 = PySequence_ITEM(__pyx_t_6, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2765, __pyx_L1_error)
+ __pyx_t_1 = PySequence_ITEM(__pyx_t_6, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2768, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
#endif
}
PyObject* exc_type = PyErr_Occurred();
if (exc_type) {
if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
- else __PYX_ERR(0, 2765, __pyx_L1_error)
+ else __PYX_ERR(0, 2768, __pyx_L1_error)
}
break;
}
__Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_1);
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":2766
+ /* "lxml/etree.pyx":2769
* # support a sequence of tags
* for item in tag:
* self._storeTags(item, seen) # <<<<<<<<<<<<<<
*
* cdef inline int cacheTags(self, _Document doc, bint force_into_dict=False) except -1:
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_16_MultiTagMatcher__storeTags(__pyx_v_self, __pyx_v_item, __pyx_v_seen); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2766, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_16_MultiTagMatcher__storeTags(__pyx_v_self, __pyx_v_item, __pyx_v_seen); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2769, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2765
+ /* "lxml/etree.pyx":2768
* else:
* # support a sequence of tags
* for item in tag: # <<<<<<<<<<<<<<
}
__pyx_L3:;
- /* "lxml/etree.pyx":2737
+ /* "lxml/etree.pyx":2740
* self._storeTags(tags, set())
*
* cdef _storeTags(self, tag, set seen): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2768
+/* "lxml/etree.pyx":2771
* self._storeTags(item, seen)
*
* cdef inline int cacheTags(self, _Document doc, bint force_into_dict=False) except -1: # <<<<<<<<<<<<<<
}
}
- /* "lxml/etree.pyx":2772
+ /* "lxml/etree.pyx":2775
* Look up the tag names in the doc dict to enable string pointer comparisons.
* """
* cdef size_t dict_size = tree.xmlDictSize(doc._c_doc.dict) # <<<<<<<<<<<<<<
*/
__pyx_v_dict_size = xmlDictSize(__pyx_v_doc->_c_doc->dict);
- /* "lxml/etree.pyx":2773
+ /* "lxml/etree.pyx":2776
* """
* cdef size_t dict_size = tree.xmlDictSize(doc._c_doc.dict)
* if doc is self._cached_doc and dict_size == self._cached_size: # <<<<<<<<<<<<<<
__pyx_L4_bool_binop_done:;
if (__pyx_t_1) {
- /* "lxml/etree.pyx":2775
+ /* "lxml/etree.pyx":2778
* if doc is self._cached_doc and dict_size == self._cached_size:
* # doc and dict didn't change => names already cached
* return 0 # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2773
+ /* "lxml/etree.pyx":2776
* """
* cdef size_t dict_size = tree.xmlDictSize(doc._c_doc.dict)
* if doc is self._cached_doc and dict_size == self._cached_size: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2776
+ /* "lxml/etree.pyx":2779
* # doc and dict didn't change => names already cached
* return 0
* self._tag_count = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_self->_tag_count = 0;
- /* "lxml/etree.pyx":2777
+ /* "lxml/etree.pyx":2780
* return 0
* self._tag_count = 0
* if not self._py_tags: # <<<<<<<<<<<<<<
__pyx_t_3 = ((!__pyx_t_1) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":2778
+ /* "lxml/etree.pyx":2781
* self._tag_count = 0
* if not self._py_tags:
* self._cached_doc = doc # <<<<<<<<<<<<<<
__Pyx_DECREF(((PyObject *)__pyx_v_self->_cached_doc));
__pyx_v_self->_cached_doc = __pyx_v_doc;
- /* "lxml/etree.pyx":2779
+ /* "lxml/etree.pyx":2782
* if not self._py_tags:
* self._cached_doc = doc
* self._cached_size = dict_size # <<<<<<<<<<<<<<
*/
__pyx_v_self->_cached_size = __pyx_v_dict_size;
- /* "lxml/etree.pyx":2780
+ /* "lxml/etree.pyx":2783
* self._cached_doc = doc
* self._cached_size = dict_size
* return 0 # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2777
+ /* "lxml/etree.pyx":2780
* return 0
* self._tag_count = 0
* if not self._py_tags: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2781
+ /* "lxml/etree.pyx":2784
* self._cached_size = dict_size
* return 0
* if not self._cached_tags: # <<<<<<<<<<<<<<
__pyx_t_3 = ((!(__pyx_v_self->_cached_tags != 0)) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":2782
+ /* "lxml/etree.pyx":2785
* return 0
* if not self._cached_tags:
* self._cached_tags = <qname*>python.lxml_malloc(len(self._py_tags), sizeof(qname)) # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_t_4);
if (unlikely(__pyx_t_4 == Py_None)) {
PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
- __PYX_ERR(0, 2782, __pyx_L1_error)
+ __PYX_ERR(0, 2785, __pyx_L1_error)
}
- __pyx_t_5 = PyList_GET_SIZE(__pyx_t_4); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 2782, __pyx_L1_error)
+ __pyx_t_5 = PyList_GET_SIZE(__pyx_t_4); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(0, 2785, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_v_self->_cached_tags = ((struct __pyx_t_4lxml_5etree_qname *)lxml_malloc(__pyx_t_5, (sizeof(struct __pyx_t_4lxml_5etree_qname))));
- /* "lxml/etree.pyx":2783
+ /* "lxml/etree.pyx":2786
* if not self._cached_tags:
* self._cached_tags = <qname*>python.lxml_malloc(len(self._py_tags), sizeof(qname))
* if not self._cached_tags: # <<<<<<<<<<<<<<
__pyx_t_3 = ((!(__pyx_v_self->_cached_tags != 0)) != 0);
if (unlikely(__pyx_t_3)) {
- /* "lxml/etree.pyx":2784
+ /* "lxml/etree.pyx":2787
* self._cached_tags = <qname*>python.lxml_malloc(len(self._py_tags), sizeof(qname))
* if not self._cached_tags:
* self._cached_doc = None # <<<<<<<<<<<<<<
__Pyx_DECREF(((PyObject *)__pyx_v_self->_cached_doc));
__pyx_v_self->_cached_doc = ((struct LxmlDocument *)Py_None);
- /* "lxml/etree.pyx":2785
+ /* "lxml/etree.pyx":2788
* if not self._cached_tags:
* self._cached_doc = None
* raise MemoryError() # <<<<<<<<<<<<<<
* self._tag_count = <size_t>_mapTagsToQnameMatchArray(
* doc._c_doc, self._py_tags, self._cached_tags, force_into_dict)
*/
- PyErr_NoMemory(); __PYX_ERR(0, 2785, __pyx_L1_error)
+ PyErr_NoMemory(); __PYX_ERR(0, 2788, __pyx_L1_error)
- /* "lxml/etree.pyx":2783
+ /* "lxml/etree.pyx":2786
* if not self._cached_tags:
* self._cached_tags = <qname*>python.lxml_malloc(len(self._py_tags), sizeof(qname))
* if not self._cached_tags: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2781
+ /* "lxml/etree.pyx":2784
* self._cached_size = dict_size
* return 0
* if not self._cached_tags: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2787
+ /* "lxml/etree.pyx":2790
* raise MemoryError()
* self._tag_count = <size_t>_mapTagsToQnameMatchArray(
* doc._c_doc, self._py_tags, self._cached_tags, force_into_dict) # <<<<<<<<<<<<<<
__pyx_t_4 = __pyx_v_self->_py_tags;
__Pyx_INCREF(__pyx_t_4);
- /* "lxml/etree.pyx":2786
+ /* "lxml/etree.pyx":2789
* self._cached_doc = None
* raise MemoryError()
* self._tag_count = <size_t>_mapTagsToQnameMatchArray( # <<<<<<<<<<<<<<
* doc._c_doc, self._py_tags, self._cached_tags, force_into_dict)
* self._cached_doc = doc
*/
- __pyx_t_5 = __pyx_f_4lxml_5etree__mapTagsToQnameMatchArray(__pyx_v_doc->_c_doc, ((PyObject*)__pyx_t_4), __pyx_v_self->_cached_tags, __pyx_v_force_into_dict); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 2786, __pyx_L1_error)
+ __pyx_t_5 = __pyx_f_4lxml_5etree__mapTagsToQnameMatchArray(__pyx_v_doc->_c_doc, ((PyObject*)__pyx_t_4), __pyx_v_self->_cached_tags, __pyx_v_force_into_dict); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1L))) __PYX_ERR(0, 2789, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_v_self->_tag_count = ((size_t)__pyx_t_5);
- /* "lxml/etree.pyx":2788
+ /* "lxml/etree.pyx":2791
* self._tag_count = <size_t>_mapTagsToQnameMatchArray(
* doc._c_doc, self._py_tags, self._cached_tags, force_into_dict)
* self._cached_doc = doc # <<<<<<<<<<<<<<
__Pyx_DECREF(((PyObject *)__pyx_v_self->_cached_doc));
__pyx_v_self->_cached_doc = __pyx_v_doc;
- /* "lxml/etree.pyx":2789
+ /* "lxml/etree.pyx":2792
* doc._c_doc, self._py_tags, self._cached_tags, force_into_dict)
* self._cached_doc = doc
* self._cached_size = dict_size # <<<<<<<<<<<<<<
*/
__pyx_v_self->_cached_size = __pyx_v_dict_size;
- /* "lxml/etree.pyx":2790
+ /* "lxml/etree.pyx":2793
* self._cached_doc = doc
* self._cached_size = dict_size
* return 0 # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2768
+ /* "lxml/etree.pyx":2771
* self._storeTags(item, seen)
*
* cdef inline int cacheTags(self, _Document doc, bint force_into_dict=False) except -1: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2792
+/* "lxml/etree.pyx":2795
* return 0
*
* cdef inline bint matches(self, xmlNode* c_node): # <<<<<<<<<<<<<<
struct __pyx_t_4lxml_5etree_qname *__pyx_t_4;
__Pyx_RefNannySetupContext("matches", 0);
- /* "lxml/etree.pyx":2794
+ /* "lxml/etree.pyx":2797
* cdef inline bint matches(self, xmlNode* c_node):
* cdef qname* c_qname
* if self._node_types & (1 << c_node.type): # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_self->_node_types & (1 << __pyx_v_c_node->type)) != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":2795
+ /* "lxml/etree.pyx":2798
* cdef qname* c_qname
* if self._node_types & (1 << c_node.type):
* return True # <<<<<<<<<<<<<<
__pyx_r = 1;
goto __pyx_L0;
- /* "lxml/etree.pyx":2794
+ /* "lxml/etree.pyx":2797
* cdef inline bint matches(self, xmlNode* c_node):
* cdef qname* c_qname
* if self._node_types & (1 << c_node.type): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2796
+ /* "lxml/etree.pyx":2799
* if self._node_types & (1 << c_node.type):
* return True
* elif c_node.type == tree.XML_ELEMENT_NODE: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_node->type == XML_ELEMENT_NODE) != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":2797
+ /* "lxml/etree.pyx":2800
* return True
* elif c_node.type == tree.XML_ELEMENT_NODE:
* for c_qname in self._cached_tags[:self._tag_count]: # <<<<<<<<<<<<<<
__pyx_t_2 = __pyx_t_4;
__pyx_v_c_qname = __pyx_t_2;
- /* "lxml/etree.pyx":2798
+ /* "lxml/etree.pyx":2801
* elif c_node.type == tree.XML_ELEMENT_NODE:
* for c_qname in self._cached_tags[:self._tag_count]:
* if _tagMatchesExactly(c_node, c_qname): # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_f_4lxml_5etree__tagMatchesExactly(__pyx_v_c_node, __pyx_v_c_qname) != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":2799
+ /* "lxml/etree.pyx":2802
* for c_qname in self._cached_tags[:self._tag_count]:
* if _tagMatchesExactly(c_node, c_qname):
* return True # <<<<<<<<<<<<<<
__pyx_r = 1;
goto __pyx_L0;
- /* "lxml/etree.pyx":2798
+ /* "lxml/etree.pyx":2801
* elif c_node.type == tree.XML_ELEMENT_NODE:
* for c_qname in self._cached_tags[:self._tag_count]:
* if _tagMatchesExactly(c_node, c_qname): # <<<<<<<<<<<<<<
}
}
- /* "lxml/etree.pyx":2796
+ /* "lxml/etree.pyx":2799
* if self._node_types & (1 << c_node.type):
* return True
* elif c_node.type == tree.XML_ELEMENT_NODE: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2800
+ /* "lxml/etree.pyx":2803
* if _tagMatchesExactly(c_node, c_qname):
* return True
* return False # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2792
+ /* "lxml/etree.pyx":2795
* return 0
*
* cdef inline bint matches(self, xmlNode* c_node): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2802
+/* "lxml/etree.pyx":2805
* return False
*
* cdef inline bint matchesNsTag(self, const_xmlChar* c_href, # <<<<<<<<<<<<<<
struct __pyx_t_4lxml_5etree_qname *__pyx_t_4;
__Pyx_RefNannySetupContext("matchesNsTag", 0);
- /* "lxml/etree.pyx":2805
+ /* "lxml/etree.pyx":2808
* const_xmlChar* c_name):
* cdef qname* c_qname
* if self._node_types & (1 << tree.XML_ELEMENT_NODE): # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_self->_node_types & (1 << XML_ELEMENT_NODE)) != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":2806
+ /* "lxml/etree.pyx":2809
* cdef qname* c_qname
* if self._node_types & (1 << tree.XML_ELEMENT_NODE):
* return True # <<<<<<<<<<<<<<
__pyx_r = 1;
goto __pyx_L0;
- /* "lxml/etree.pyx":2805
+ /* "lxml/etree.pyx":2808
* const_xmlChar* c_name):
* cdef qname* c_qname
* if self._node_types & (1 << tree.XML_ELEMENT_NODE): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2807
+ /* "lxml/etree.pyx":2810
* if self._node_types & (1 << tree.XML_ELEMENT_NODE):
* return True
* for c_qname in self._cached_tags[:self._tag_count]: # <<<<<<<<<<<<<<
__pyx_t_2 = __pyx_t_4;
__pyx_v_c_qname = __pyx_t_2;
- /* "lxml/etree.pyx":2808
+ /* "lxml/etree.pyx":2811
* return True
* for c_qname in self._cached_tags[:self._tag_count]:
* if _nsTagMatchesExactly(c_href, c_name, c_qname): # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_f_4lxml_5etree__nsTagMatchesExactly(__pyx_v_c_href, __pyx_v_c_name, __pyx_v_c_qname) != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":2809
+ /* "lxml/etree.pyx":2812
* for c_qname in self._cached_tags[:self._tag_count]:
* if _nsTagMatchesExactly(c_href, c_name, c_qname):
* return True # <<<<<<<<<<<<<<
__pyx_r = 1;
goto __pyx_L0;
- /* "lxml/etree.pyx":2808
+ /* "lxml/etree.pyx":2811
* return True
* for c_qname in self._cached_tags[:self._tag_count]:
* if _nsTagMatchesExactly(c_href, c_name, c_qname): # <<<<<<<<<<<<<<
}
}
- /* "lxml/etree.pyx":2810
+ /* "lxml/etree.pyx":2813
* if _nsTagMatchesExactly(c_href, c_name, c_qname):
* return True
* return False # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2802
+ /* "lxml/etree.pyx":2805
* return False
*
* cdef inline bint matchesNsTag(self, const_xmlChar* c_href, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2812
+/* "lxml/etree.pyx":2815
* return False
*
* cdef inline bint matchesAttribute(self, xmlAttr* c_attr): # <<<<<<<<<<<<<<
int __pyx_t_4;
__Pyx_RefNannySetupContext("matchesAttribute", 0);
- /* "lxml/etree.pyx":2817
+ /* "lxml/etree.pyx":2820
* """
* cdef qname* c_qname
* for c_qname in self._cached_tags[:self._tag_count]: # <<<<<<<<<<<<<<
__pyx_t_1 = __pyx_t_3;
__pyx_v_c_qname = __pyx_t_1;
- /* "lxml/etree.pyx":2818
+ /* "lxml/etree.pyx":2821
* cdef qname* c_qname
* for c_qname in self._cached_tags[:self._tag_count]:
* if _tagMatchesExactly(<xmlNode*>c_attr, c_qname): # <<<<<<<<<<<<<<
__pyx_t_4 = (__pyx_f_4lxml_5etree__tagMatchesExactly(((xmlNode *)__pyx_v_c_attr), __pyx_v_c_qname) != 0);
if (__pyx_t_4) {
- /* "lxml/etree.pyx":2819
+ /* "lxml/etree.pyx":2822
* for c_qname in self._cached_tags[:self._tag_count]:
* if _tagMatchesExactly(<xmlNode*>c_attr, c_qname):
* return True # <<<<<<<<<<<<<<
__pyx_r = 1;
goto __pyx_L0;
- /* "lxml/etree.pyx":2818
+ /* "lxml/etree.pyx":2821
* cdef qname* c_qname
* for c_qname in self._cached_tags[:self._tag_count]:
* if _tagMatchesExactly(<xmlNode*>c_attr, c_qname): # <<<<<<<<<<<<<<
}
}
- /* "lxml/etree.pyx":2820
+ /* "lxml/etree.pyx":2823
* if _tagMatchesExactly(<xmlNode*>c_attr, c_qname):
* return True
* return False # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2812
+ /* "lxml/etree.pyx":2815
* return False
*
* cdef inline bint matchesAttribute(self, xmlAttr* c_attr): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2828
+/* "lxml/etree.pyx":2831
*
* @cython.final
* cdef _initTagMatcher(self, tags): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_initTagMatcher", 0);
- /* "lxml/etree.pyx":2829
+ /* "lxml/etree.pyx":2832
* @cython.final
* cdef _initTagMatcher(self, tags):
* self._matcher = _MultiTagMatcher.__new__(_MultiTagMatcher, tags) # <<<<<<<<<<<<<<
*
* def __iter__(self):
*/
- __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2829, __pyx_L1_error)
+ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2832, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(__pyx_v_tags);
__Pyx_GIVEREF(__pyx_v_tags);
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_tags);
- __pyx_t_2 = ((PyObject *)__pyx_tp_new_4lxml_5etree__MultiTagMatcher(((PyTypeObject *)__pyx_ptype_4lxml_5etree__MultiTagMatcher), __pyx_t_1, NULL)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2829, __pyx_L1_error)
+ __pyx_t_2 = ((PyObject *)__pyx_tp_new_4lxml_5etree__MultiTagMatcher(((PyTypeObject *)__pyx_ptype_4lxml_5etree__MultiTagMatcher), __pyx_t_1, NULL)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2832, __pyx_L1_error)
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_GIVEREF(((PyObject *)__pyx_t_2));
__pyx_v_self->_matcher = ((struct __pyx_obj_4lxml_5etree__MultiTagMatcher *)__pyx_t_2);
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":2828
+ /* "lxml/etree.pyx":2831
*
* @cython.final
* cdef _initTagMatcher(self, tags): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2831
+/* "lxml/etree.pyx":2834
* self._matcher = _MultiTagMatcher.__new__(_MultiTagMatcher, tags)
*
* def __iter__(self): # <<<<<<<<<<<<<<
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__iter__", 0);
- /* "lxml/etree.pyx":2832
+ /* "lxml/etree.pyx":2835
*
* def __iter__(self):
* return self # <<<<<<<<<<<<<<
__pyx_r = ((PyObject *)__pyx_v_self);
goto __pyx_L0;
- /* "lxml/etree.pyx":2831
+ /* "lxml/etree.pyx":2834
* self._matcher = _MultiTagMatcher.__new__(_MultiTagMatcher, tags)
*
* def __iter__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2835
+/* "lxml/etree.pyx":2838
*
* @cython.final
* cdef int _storeNext(self, _Element node) except -1: # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_storeNext", 0);
- /* "lxml/etree.pyx":2836
+ /* "lxml/etree.pyx":2839
* @cython.final
* cdef int _storeNext(self, _Element node) except -1:
* self._matcher.cacheTags(node._doc) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_node->_doc);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_2 = __pyx_f_4lxml_5etree_16_MultiTagMatcher_cacheTags(__pyx_v_self->_matcher, ((struct LxmlDocument *)__pyx_t_1), NULL); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2836, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree_16_MultiTagMatcher_cacheTags(__pyx_v_self->_matcher, ((struct LxmlDocument *)__pyx_t_1), NULL); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 2839, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2837
+ /* "lxml/etree.pyx":2840
* cdef int _storeNext(self, _Element node) except -1:
* self._matcher.cacheTags(node._doc)
* c_node = self._next_element(node._c_node) # <<<<<<<<<<<<<<
*/
__pyx_v_c_node = __pyx_v_self->_next_element(__pyx_v_node->_c_node);
- /* "lxml/etree.pyx":2838
+ /* "lxml/etree.pyx":2841
* self._matcher.cacheTags(node._doc)
* c_node = self._next_element(node._c_node)
* while c_node is not NULL and not self._matcher.matches(c_node): # <<<<<<<<<<<<<<
__pyx_L5_bool_binop_done:;
if (!__pyx_t_3) break;
- /* "lxml/etree.pyx":2839
+ /* "lxml/etree.pyx":2842
* c_node = self._next_element(node._c_node)
* while c_node is not NULL and not self._matcher.matches(c_node):
* c_node = self._next_element(c_node) # <<<<<<<<<<<<<<
__pyx_v_c_node = __pyx_v_self->_next_element(__pyx_v_c_node);
}
- /* "lxml/etree.pyx":2841
+ /* "lxml/etree.pyx":2844
* c_node = self._next_element(c_node)
* # store Python ref to next node to make sure it's kept alive
* self._node = _elementFactory(node._doc, c_node) if c_node is not NULL else None # <<<<<<<<<<<<<<
if (((__pyx_v_c_node != NULL) != 0)) {
__pyx_t_5 = ((PyObject *)__pyx_v_node->_doc);
__Pyx_INCREF(__pyx_t_5);
- __pyx_t_6 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(((struct LxmlDocument *)__pyx_t_5), __pyx_v_c_node)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2841, __pyx_L1_error)
+ __pyx_t_6 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(((struct LxmlDocument *)__pyx_t_5), __pyx_v_c_node)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2844, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_t_1 = __pyx_t_6;
__pyx_v_self->_node = ((struct LxmlElement *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":2842
+ /* "lxml/etree.pyx":2845
* # store Python ref to next node to make sure it's kept alive
* self._node = _elementFactory(node._doc, c_node) if c_node is not NULL else None
* return 0 # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":2835
+ /* "lxml/etree.pyx":2838
*
* @cython.final
* cdef int _storeNext(self, _Element node) except -1: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2844
+/* "lxml/etree.pyx":2847
* return 0
*
* def __next__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__next__", 0);
- /* "lxml/etree.pyx":2845
+ /* "lxml/etree.pyx":2848
*
* def __next__(self):
* cdef _Element current_node = self._node # <<<<<<<<<<<<<<
__pyx_v_current_node = ((struct LxmlElement *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":2846
+ /* "lxml/etree.pyx":2849
* def __next__(self):
* cdef _Element current_node = self._node
* if current_node is None: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_2 != 0);
if (unlikely(__pyx_t_3)) {
- /* "lxml/etree.pyx":2847
+ /* "lxml/etree.pyx":2850
* cdef _Element current_node = self._node
* if current_node is None:
* raise StopIteration # <<<<<<<<<<<<<<
* return current_node
*/
__Pyx_Raise(__pyx_builtin_StopIteration, 0, 0, 0);
- __PYX_ERR(0, 2847, __pyx_L1_error)
+ __PYX_ERR(0, 2850, __pyx_L1_error)
- /* "lxml/etree.pyx":2846
+ /* "lxml/etree.pyx":2849
* def __next__(self):
* cdef _Element current_node = self._node
* if current_node is None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2848
+ /* "lxml/etree.pyx":2851
* if current_node is None:
* raise StopIteration
* self._storeNext(current_node) # <<<<<<<<<<<<<<
* return current_node
*
*/
- __pyx_t_4 = __pyx_f_4lxml_5etree_21_ElementMatchIterator__storeNext(__pyx_v_self, __pyx_v_current_node); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 2848, __pyx_L1_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree_21_ElementMatchIterator__storeNext(__pyx_v_self, __pyx_v_current_node); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 2851, __pyx_L1_error)
- /* "lxml/etree.pyx":2849
+ /* "lxml/etree.pyx":2852
* raise StopIteration
* self._storeNext(current_node)
* return current_node # <<<<<<<<<<<<<<
__pyx_r = ((PyObject *)__pyx_v_current_node);
goto __pyx_L0;
- /* "lxml/etree.pyx":2844
+ /* "lxml/etree.pyx":2847
* return 0
*
* def __next__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2855
+/* "lxml/etree.pyx":2858
* Iterates over the children of an element.
* """
* def __cinit__(self, _Element node not None, tag=None, *, bint reversed=False): # <<<<<<<<<<<<<<
if (value) { values[index] = value; kw_args--; }
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 2855, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 2858, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
__pyx_v_node = ((struct LxmlElement *)values[0]);
__pyx_v_tag = values[1];
if (values[2]) {
- __pyx_v_reversed = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_reversed == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2855, __pyx_L3_error)
+ __pyx_v_reversed = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_reversed == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2858, __pyx_L3_error)
} else {
__pyx_v_reversed = ((int)0);
}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2855, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2858, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.ElementChildIterator.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return -1;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_node), __pyx_ptype_4lxml_5etree__Element, 0, "node", 0))) __PYX_ERR(0, 2855, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_node), __pyx_ptype_4lxml_5etree__Element, 0, "node", 0))) __PYX_ERR(0, 2858, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_20ElementChildIterator___cinit__(((struct __pyx_obj_4lxml_5etree_ElementChildIterator *)__pyx_v_self), __pyx_v_node, __pyx_v_tag, __pyx_v_reversed);
/* function exit code */
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__cinit__", 0);
- /* "lxml/etree.pyx":2857
+ /* "lxml/etree.pyx":2860
* def __cinit__(self, _Element node not None, tag=None, *, bint reversed=False):
* cdef xmlNode* c_node
* _assertValidNode(node) # <<<<<<<<<<<<<<
* self._initTagMatcher(tag)
* if reversed:
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2857, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2860, __pyx_L1_error)
- /* "lxml/etree.pyx":2858
+ /* "lxml/etree.pyx":2861
* cdef xmlNode* c_node
* _assertValidNode(node)
* self._initTagMatcher(tag) # <<<<<<<<<<<<<<
* if reversed:
* c_node = _findChildBackwards(node._c_node, 0)
*/
- __pyx_t_2 = __pyx_f_4lxml_5etree_21_ElementMatchIterator__initTagMatcher(((struct __pyx_obj_4lxml_5etree__ElementMatchIterator *)__pyx_v_self), __pyx_v_tag); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2858, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree_21_ElementMatchIterator__initTagMatcher(((struct __pyx_obj_4lxml_5etree__ElementMatchIterator *)__pyx_v_self), __pyx_v_tag); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2861, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":2859
+ /* "lxml/etree.pyx":2862
* _assertValidNode(node)
* self._initTagMatcher(tag)
* if reversed: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_v_reversed != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":2860
+ /* "lxml/etree.pyx":2863
* self._initTagMatcher(tag)
* if reversed:
* c_node = _findChildBackwards(node._c_node, 0) # <<<<<<<<<<<<<<
*/
__pyx_v_c_node = __pyx_f_4lxml_5etree__findChildBackwards(__pyx_v_node->_c_node, 0);
- /* "lxml/etree.pyx":2861
+ /* "lxml/etree.pyx":2864
* if reversed:
* c_node = _findChildBackwards(node._c_node, 0)
* self._next_element = _previousElement # <<<<<<<<<<<<<<
*/
__pyx_v_self->__pyx_base._next_element = __pyx_f_4lxml_5etree__previousElement;
- /* "lxml/etree.pyx":2859
+ /* "lxml/etree.pyx":2862
* _assertValidNode(node)
* self._initTagMatcher(tag)
* if reversed: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":2863
+ /* "lxml/etree.pyx":2866
* self._next_element = _previousElement
* else:
* c_node = _findChildForwards(node._c_node, 0) # <<<<<<<<<<<<<<
/*else*/ {
__pyx_v_c_node = __pyx_f_4lxml_5etree__findChildForwards(__pyx_v_node->_c_node, 0);
- /* "lxml/etree.pyx":2864
+ /* "lxml/etree.pyx":2867
* else:
* c_node = _findChildForwards(node._c_node, 0)
* self._next_element = _nextElement # <<<<<<<<<<<<<<
}
__pyx_L3:;
- /* "lxml/etree.pyx":2865
+ /* "lxml/etree.pyx":2868
* c_node = _findChildForwards(node._c_node, 0)
* self._next_element = _nextElement
* self._matcher.cacheTags(node._doc) # <<<<<<<<<<<<<<
*/
__pyx_t_2 = ((PyObject *)__pyx_v_node->_doc);
__Pyx_INCREF(__pyx_t_2);
- __pyx_t_1 = __pyx_f_4lxml_5etree_16_MultiTagMatcher_cacheTags(__pyx_v_self->__pyx_base._matcher, ((struct LxmlDocument *)__pyx_t_2), NULL); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2865, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_16_MultiTagMatcher_cacheTags(__pyx_v_self->__pyx_base._matcher, ((struct LxmlDocument *)__pyx_t_2), NULL); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2868, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":2866
+ /* "lxml/etree.pyx":2869
* self._next_element = _nextElement
* self._matcher.cacheTags(node._doc)
* while c_node is not NULL and not self._matcher.matches(c_node): # <<<<<<<<<<<<<<
__pyx_L6_bool_binop_done:;
if (!__pyx_t_3) break;
- /* "lxml/etree.pyx":2867
+ /* "lxml/etree.pyx":2870
* self._matcher.cacheTags(node._doc)
* while c_node is not NULL and not self._matcher.matches(c_node):
* c_node = self._next_element(c_node) # <<<<<<<<<<<<<<
__pyx_v_c_node = __pyx_v_self->__pyx_base._next_element(__pyx_v_c_node);
}
- /* "lxml/etree.pyx":2869
+ /* "lxml/etree.pyx":2872
* c_node = self._next_element(c_node)
* # store Python ref to next node to make sure it's kept alive
* self._node = _elementFactory(node._doc, c_node) if c_node is not NULL else None # <<<<<<<<<<<<<<
if (((__pyx_v_c_node != NULL) != 0)) {
__pyx_t_5 = ((PyObject *)__pyx_v_node->_doc);
__Pyx_INCREF(__pyx_t_5);
- __pyx_t_6 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(((struct LxmlDocument *)__pyx_t_5), __pyx_v_c_node)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2869, __pyx_L1_error)
+ __pyx_t_6 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(((struct LxmlDocument *)__pyx_t_5), __pyx_v_c_node)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2872, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_t_2 = __pyx_t_6;
__pyx_v_self->__pyx_base._node = ((struct LxmlElement *)__pyx_t_2);
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":2855
+ /* "lxml/etree.pyx":2858
* Iterates over the children of an element.
* """
* def __cinit__(self, _Element node not None, tag=None, *, bint reversed=False): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2877
+/* "lxml/etree.pyx":2880
* You can pass the boolean keyword ``preceding`` to specify the direction.
* """
* def __cinit__(self, _Element node not None, tag=None, *, bint preceding=False): # <<<<<<<<<<<<<<
if (value) { values[index] = value; kw_args--; }
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 2877, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 2880, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
__pyx_v_node = ((struct LxmlElement *)values[0]);
__pyx_v_tag = values[1];
if (values[2]) {
- __pyx_v_preceding = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_preceding == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2877, __pyx_L3_error)
+ __pyx_v_preceding = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_preceding == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2880, __pyx_L3_error)
} else {
__pyx_v_preceding = ((int)0);
}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2877, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2880, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.SiblingsIterator.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return -1;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_node), __pyx_ptype_4lxml_5etree__Element, 0, "node", 0))) __PYX_ERR(0, 2877, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_node), __pyx_ptype_4lxml_5etree__Element, 0, "node", 0))) __PYX_ERR(0, 2880, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_16SiblingsIterator___cinit__(((struct __pyx_obj_4lxml_5etree_SiblingsIterator *)__pyx_v_self), __pyx_v_node, __pyx_v_tag, __pyx_v_preceding);
/* function exit code */
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__cinit__", 0);
- /* "lxml/etree.pyx":2878
+ /* "lxml/etree.pyx":2881
* """
* def __cinit__(self, _Element node not None, tag=None, *, bint preceding=False):
* _assertValidNode(node) # <<<<<<<<<<<<<<
* self._initTagMatcher(tag)
* if preceding:
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2878, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2881, __pyx_L1_error)
- /* "lxml/etree.pyx":2879
+ /* "lxml/etree.pyx":2882
* def __cinit__(self, _Element node not None, tag=None, *, bint preceding=False):
* _assertValidNode(node)
* self._initTagMatcher(tag) # <<<<<<<<<<<<<<
* if preceding:
* self._next_element = _previousElement
*/
- __pyx_t_2 = __pyx_f_4lxml_5etree_21_ElementMatchIterator__initTagMatcher(((struct __pyx_obj_4lxml_5etree__ElementMatchIterator *)__pyx_v_self), __pyx_v_tag); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2879, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree_21_ElementMatchIterator__initTagMatcher(((struct __pyx_obj_4lxml_5etree__ElementMatchIterator *)__pyx_v_self), __pyx_v_tag); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2882, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":2880
+ /* "lxml/etree.pyx":2883
* _assertValidNode(node)
* self._initTagMatcher(tag)
* if preceding: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_v_preceding != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":2881
+ /* "lxml/etree.pyx":2884
* self._initTagMatcher(tag)
* if preceding:
* self._next_element = _previousElement # <<<<<<<<<<<<<<
*/
__pyx_v_self->__pyx_base._next_element = __pyx_f_4lxml_5etree__previousElement;
- /* "lxml/etree.pyx":2880
+ /* "lxml/etree.pyx":2883
* _assertValidNode(node)
* self._initTagMatcher(tag)
* if preceding: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":2883
+ /* "lxml/etree.pyx":2886
* self._next_element = _previousElement
* else:
* self._next_element = _nextElement # <<<<<<<<<<<<<<
}
__pyx_L3:;
- /* "lxml/etree.pyx":2884
+ /* "lxml/etree.pyx":2887
* else:
* self._next_element = _nextElement
* self._storeNext(node) # <<<<<<<<<<<<<<
*
* cdef class AncestorsIterator(_ElementMatchIterator):
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_21_ElementMatchIterator__storeNext(((struct __pyx_obj_4lxml_5etree__ElementMatchIterator *)__pyx_v_self), __pyx_v_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2884, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_21_ElementMatchIterator__storeNext(((struct __pyx_obj_4lxml_5etree__ElementMatchIterator *)__pyx_v_self), __pyx_v_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2887, __pyx_L1_error)
- /* "lxml/etree.pyx":2877
+ /* "lxml/etree.pyx":2880
* You can pass the boolean keyword ``preceding`` to specify the direction.
* """
* def __cinit__(self, _Element node not None, tag=None, *, bint preceding=False): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2890
+/* "lxml/etree.pyx":2893
* Iterates over the ancestors of an element (from parent to parent).
* """
* def __cinit__(self, _Element node not None, tag=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 2890, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 2893, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2890, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2893, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.AncestorsIterator.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return -1;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_node), __pyx_ptype_4lxml_5etree__Element, 0, "node", 0))) __PYX_ERR(0, 2890, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_node), __pyx_ptype_4lxml_5etree__Element, 0, "node", 0))) __PYX_ERR(0, 2893, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_17AncestorsIterator___cinit__(((struct __pyx_obj_4lxml_5etree_AncestorsIterator *)__pyx_v_self), __pyx_v_node, __pyx_v_tag);
/* function exit code */
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__cinit__", 0);
- /* "lxml/etree.pyx":2891
+ /* "lxml/etree.pyx":2894
* """
* def __cinit__(self, _Element node not None, tag=None):
* _assertValidNode(node) # <<<<<<<<<<<<<<
* self._initTagMatcher(tag)
* self._next_element = _parentElement
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2891, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2894, __pyx_L1_error)
- /* "lxml/etree.pyx":2892
+ /* "lxml/etree.pyx":2895
* def __cinit__(self, _Element node not None, tag=None):
* _assertValidNode(node)
* self._initTagMatcher(tag) # <<<<<<<<<<<<<<
* self._next_element = _parentElement
* self._storeNext(node)
*/
- __pyx_t_2 = __pyx_f_4lxml_5etree_21_ElementMatchIterator__initTagMatcher(((struct __pyx_obj_4lxml_5etree__ElementMatchIterator *)__pyx_v_self), __pyx_v_tag); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2892, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree_21_ElementMatchIterator__initTagMatcher(((struct __pyx_obj_4lxml_5etree__ElementMatchIterator *)__pyx_v_self), __pyx_v_tag); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2895, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":2893
+ /* "lxml/etree.pyx":2896
* _assertValidNode(node)
* self._initTagMatcher(tag)
* self._next_element = _parentElement # <<<<<<<<<<<<<<
*/
__pyx_v_self->__pyx_base._next_element = __pyx_f_4lxml_5etree__parentElement;
- /* "lxml/etree.pyx":2894
+ /* "lxml/etree.pyx":2897
* self._initTagMatcher(tag)
* self._next_element = _parentElement
* self._storeNext(node) # <<<<<<<<<<<<<<
*
* cdef class ElementDepthFirstIterator:
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_21_ElementMatchIterator__storeNext(((struct __pyx_obj_4lxml_5etree__ElementMatchIterator *)__pyx_v_self), __pyx_v_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2894, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_21_ElementMatchIterator__storeNext(((struct __pyx_obj_4lxml_5etree__ElementMatchIterator *)__pyx_v_self), __pyx_v_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2897, __pyx_L1_error)
- /* "lxml/etree.pyx":2890
+ /* "lxml/etree.pyx":2893
* Iterates over the ancestors of an element (from parent to parent).
* """
* def __cinit__(self, _Element node not None, tag=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2921
+/* "lxml/etree.pyx":2924
* cdef _Element _top_node
* cdef _MultiTagMatcher _matcher
* def __cinit__(self, _Element node not None, tag=None, *, bint inclusive=True): # <<<<<<<<<<<<<<
if (value) { values[index] = value; kw_args--; }
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 2921, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 2924, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
__pyx_v_node = ((struct LxmlElement *)values[0]);
__pyx_v_tag = values[1];
if (values[2]) {
- __pyx_v_inclusive = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_inclusive == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2921, __pyx_L3_error)
+ __pyx_v_inclusive = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_inclusive == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2924, __pyx_L3_error)
} else {
__pyx_v_inclusive = ((int)1);
}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2921, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2924, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.ElementDepthFirstIterator.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return -1;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_node), __pyx_ptype_4lxml_5etree__Element, 0, "node", 0))) __PYX_ERR(0, 2921, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_node), __pyx_ptype_4lxml_5etree__Element, 0, "node", 0))) __PYX_ERR(0, 2924, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_25ElementDepthFirstIterator___cinit__(((struct __pyx_obj_4lxml_5etree_ElementDepthFirstIterator *)__pyx_v_self), __pyx_v_node, __pyx_v_tag, __pyx_v_inclusive);
/* function exit code */
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__cinit__", 0);
- /* "lxml/etree.pyx":2922
+ /* "lxml/etree.pyx":2925
* cdef _MultiTagMatcher _matcher
* def __cinit__(self, _Element node not None, tag=None, *, bint inclusive=True):
* _assertValidNode(node) # <<<<<<<<<<<<<<
* self._top_node = node
* self._next_node = node
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2922, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_node); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2925, __pyx_L1_error)
- /* "lxml/etree.pyx":2923
+ /* "lxml/etree.pyx":2926
* def __cinit__(self, _Element node not None, tag=None, *, bint inclusive=True):
* _assertValidNode(node)
* self._top_node = node # <<<<<<<<<<<<<<
__Pyx_DECREF(((PyObject *)__pyx_v_self->_top_node));
__pyx_v_self->_top_node = __pyx_v_node;
- /* "lxml/etree.pyx":2924
+ /* "lxml/etree.pyx":2927
* _assertValidNode(node)
* self._top_node = node
* self._next_node = node # <<<<<<<<<<<<<<
__Pyx_DECREF(((PyObject *)__pyx_v_self->_next_node));
__pyx_v_self->_next_node = __pyx_v_node;
- /* "lxml/etree.pyx":2925
+ /* "lxml/etree.pyx":2928
* self._top_node = node
* self._next_node = node
* self._matcher = _MultiTagMatcher.__new__(_MultiTagMatcher, tag) # <<<<<<<<<<<<<<
* self._matcher.cacheTags(node._doc)
* if not inclusive or not self._matcher.matches(node._c_node):
*/
- __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2925, __pyx_L1_error)
+ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2928, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_INCREF(__pyx_v_tag);
__Pyx_GIVEREF(__pyx_v_tag);
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_tag);
- __pyx_t_3 = ((PyObject *)__pyx_tp_new_4lxml_5etree__MultiTagMatcher(((PyTypeObject *)__pyx_ptype_4lxml_5etree__MultiTagMatcher), __pyx_t_2, NULL)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2925, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_tp_new_4lxml_5etree__MultiTagMatcher(((PyTypeObject *)__pyx_ptype_4lxml_5etree__MultiTagMatcher), __pyx_t_2, NULL)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2928, __pyx_L1_error)
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_GIVEREF(((PyObject *)__pyx_t_3));
__pyx_v_self->_matcher = ((struct __pyx_obj_4lxml_5etree__MultiTagMatcher *)__pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":2926
+ /* "lxml/etree.pyx":2929
* self._next_node = node
* self._matcher = _MultiTagMatcher.__new__(_MultiTagMatcher, tag)
* self._matcher.cacheTags(node._doc) # <<<<<<<<<<<<<<
*/
__pyx_t_3 = ((PyObject *)__pyx_v_node->_doc);
__Pyx_INCREF(__pyx_t_3);
- __pyx_t_1 = __pyx_f_4lxml_5etree_16_MultiTagMatcher_cacheTags(__pyx_v_self->_matcher, ((struct LxmlDocument *)__pyx_t_3), NULL); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2926, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_16_MultiTagMatcher_cacheTags(__pyx_v_self->_matcher, ((struct LxmlDocument *)__pyx_t_3), NULL); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2929, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- /* "lxml/etree.pyx":2927
+ /* "lxml/etree.pyx":2930
* self._matcher = _MultiTagMatcher.__new__(_MultiTagMatcher, tag)
* self._matcher.cacheTags(node._doc)
* if not inclusive or not self._matcher.matches(node._c_node): # <<<<<<<<<<<<<<
__pyx_L4_bool_binop_done:;
if (__pyx_t_4) {
- /* "lxml/etree.pyx":2929
+ /* "lxml/etree.pyx":2932
* if not inclusive or not self._matcher.matches(node._c_node):
* # find start node (this cannot raise StopIteration, self._next_node != None)
* next(self) # <<<<<<<<<<<<<<
*
* def __iter__(self):
*/
- __pyx_t_3 = __Pyx_PyIter_Next(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2929, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyIter_Next(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2932, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- /* "lxml/etree.pyx":2927
+ /* "lxml/etree.pyx":2930
* self._matcher = _MultiTagMatcher.__new__(_MultiTagMatcher, tag)
* self._matcher.cacheTags(node._doc)
* if not inclusive or not self._matcher.matches(node._c_node): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2921
+ /* "lxml/etree.pyx":2924
* cdef _Element _top_node
* cdef _MultiTagMatcher _matcher
* def __cinit__(self, _Element node not None, tag=None, *, bint inclusive=True): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2931
+/* "lxml/etree.pyx":2934
* next(self)
*
* def __iter__(self): # <<<<<<<<<<<<<<
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__iter__", 0);
- /* "lxml/etree.pyx":2932
+ /* "lxml/etree.pyx":2935
*
* def __iter__(self):
* return self # <<<<<<<<<<<<<<
__pyx_r = ((PyObject *)__pyx_v_self);
goto __pyx_L0;
- /* "lxml/etree.pyx":2931
+ /* "lxml/etree.pyx":2934
* next(self)
*
* def __iter__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2934
+/* "lxml/etree.pyx":2937
* return self
*
* def __next__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__next__", 0);
- /* "lxml/etree.pyx":2936
+ /* "lxml/etree.pyx":2939
* def __next__(self):
* cdef xmlNode* c_node
* cdef _Element current_node = self._next_node # <<<<<<<<<<<<<<
__pyx_v_current_node = ((struct LxmlElement *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":2937
+ /* "lxml/etree.pyx":2940
* cdef xmlNode* c_node
* cdef _Element current_node = self._next_node
* if current_node is None: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_2 != 0);
if (unlikely(__pyx_t_3)) {
- /* "lxml/etree.pyx":2938
+ /* "lxml/etree.pyx":2941
* cdef _Element current_node = self._next_node
* if current_node is None:
* raise StopIteration # <<<<<<<<<<<<<<
* self._matcher.cacheTags(current_node._doc)
*/
__Pyx_Raise(__pyx_builtin_StopIteration, 0, 0, 0);
- __PYX_ERR(0, 2938, __pyx_L1_error)
+ __PYX_ERR(0, 2941, __pyx_L1_error)
- /* "lxml/etree.pyx":2937
+ /* "lxml/etree.pyx":2940
* cdef xmlNode* c_node
* cdef _Element current_node = self._next_node
* if current_node is None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2939
+ /* "lxml/etree.pyx":2942
* if current_node is None:
* raise StopIteration
* c_node = current_node._c_node # <<<<<<<<<<<<<<
__pyx_t_4 = __pyx_v_current_node->_c_node;
__pyx_v_c_node = __pyx_t_4;
- /* "lxml/etree.pyx":2940
+ /* "lxml/etree.pyx":2943
* raise StopIteration
* c_node = current_node._c_node
* self._matcher.cacheTags(current_node._doc) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = ((PyObject *)__pyx_v_current_node->_doc);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_5 = __pyx_f_4lxml_5etree_16_MultiTagMatcher_cacheTags(__pyx_v_self->_matcher, ((struct LxmlDocument *)__pyx_t_1), NULL); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 2940, __pyx_L1_error)
+ __pyx_t_5 = __pyx_f_4lxml_5etree_16_MultiTagMatcher_cacheTags(__pyx_v_self->_matcher, ((struct LxmlDocument *)__pyx_t_1), NULL); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 2943, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":2941
+ /* "lxml/etree.pyx":2944
* c_node = current_node._c_node
* self._matcher.cacheTags(current_node._doc)
* if not self._matcher._tag_count: # <<<<<<<<<<<<<<
__pyx_t_3 = ((!(__pyx_v_self->_matcher->_tag_count != 0)) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":2944
+ /* "lxml/etree.pyx":2947
* # no tag name was found in the dict => not in document either
* # try to match by node type
* c_node = self._nextNodeAnyTag(c_node) # <<<<<<<<<<<<<<
*/
__pyx_v_c_node = __pyx_f_4lxml_5etree_25ElementDepthFirstIterator__nextNodeAnyTag(__pyx_v_self, __pyx_v_c_node);
- /* "lxml/etree.pyx":2941
+ /* "lxml/etree.pyx":2944
* c_node = current_node._c_node
* self._matcher.cacheTags(current_node._doc)
* if not self._matcher._tag_count: # <<<<<<<<<<<<<<
goto __pyx_L4;
}
- /* "lxml/etree.pyx":2946
+ /* "lxml/etree.pyx":2949
* c_node = self._nextNodeAnyTag(c_node)
* else:
* c_node = self._nextNodeMatchTag(c_node) # <<<<<<<<<<<<<<
}
__pyx_L4:;
- /* "lxml/etree.pyx":2947
+ /* "lxml/etree.pyx":2950
* else:
* c_node = self._nextNodeMatchTag(c_node)
* if c_node is NULL: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_node == NULL) != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":2948
+ /* "lxml/etree.pyx":2951
* c_node = self._nextNodeMatchTag(c_node)
* if c_node is NULL:
* self._next_node = None # <<<<<<<<<<<<<<
__Pyx_DECREF(((PyObject *)__pyx_v_self->_next_node));
__pyx_v_self->_next_node = ((struct LxmlElement *)Py_None);
- /* "lxml/etree.pyx":2947
+ /* "lxml/etree.pyx":2950
* else:
* c_node = self._nextNodeMatchTag(c_node)
* if c_node is NULL: # <<<<<<<<<<<<<<
goto __pyx_L5;
}
- /* "lxml/etree.pyx":2950
+ /* "lxml/etree.pyx":2953
* self._next_node = None
* else:
* self._next_node = _elementFactory(current_node._doc, c_node) # <<<<<<<<<<<<<<
/*else*/ {
__pyx_t_1 = ((PyObject *)__pyx_v_current_node->_doc);
__Pyx_INCREF(__pyx_t_1);
- __pyx_t_6 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(((struct LxmlDocument *)__pyx_t_1), __pyx_v_c_node)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2950, __pyx_L1_error)
+ __pyx_t_6 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(((struct LxmlDocument *)__pyx_t_1), __pyx_v_c_node)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 2953, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_GIVEREF(__pyx_t_6);
}
__pyx_L5:;
- /* "lxml/etree.pyx":2951
+ /* "lxml/etree.pyx":2954
* else:
* self._next_node = _elementFactory(current_node._doc, c_node)
* return current_node # <<<<<<<<<<<<<<
__pyx_r = ((PyObject *)__pyx_v_current_node);
goto __pyx_L0;
- /* "lxml/etree.pyx":2934
+ /* "lxml/etree.pyx":2937
* return self
*
* def __next__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2954
+/* "lxml/etree.pyx":2957
*
* @cython.final
* cdef xmlNode* _nextNodeAnyTag(self, xmlNode* c_node): # <<<<<<<<<<<<<<
int __pyx_t_2;
__Pyx_RefNannySetupContext("_nextNodeAnyTag", 0);
- /* "lxml/etree.pyx":2955
+ /* "lxml/etree.pyx":2958
* @cython.final
* cdef xmlNode* _nextNodeAnyTag(self, xmlNode* c_node):
* cdef int node_types = self._matcher._node_types # <<<<<<<<<<<<<<
__pyx_t_1 = __pyx_v_self->_matcher->_node_types;
__pyx_v_node_types = __pyx_t_1;
- /* "lxml/etree.pyx":2956
+ /* "lxml/etree.pyx":2959
* cdef xmlNode* _nextNodeAnyTag(self, xmlNode* c_node):
* cdef int node_types = self._matcher._node_types
* if not node_types: # <<<<<<<<<<<<<<
__pyx_t_2 = ((!(__pyx_v_node_types != 0)) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":2957
+ /* "lxml/etree.pyx":2960
* cdef int node_types = self._matcher._node_types
* if not node_types:
* return NULL # <<<<<<<<<<<<<<
__pyx_r = NULL;
goto __pyx_L0;
- /* "lxml/etree.pyx":2956
+ /* "lxml/etree.pyx":2959
* cdef xmlNode* _nextNodeAnyTag(self, xmlNode* c_node):
* cdef int node_types = self._matcher._node_types
* if not node_types: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2958
+ /* "lxml/etree.pyx":2961
* if not node_types:
* return NULL
* tree.BEGIN_FOR_EACH_ELEMENT_FROM(self._top_node._c_node, c_node, 0) # <<<<<<<<<<<<<<
*/
BEGIN_FOR_EACH_ELEMENT_FROM(__pyx_v_self->_top_node->_c_node, __pyx_v_c_node, 0);
- /* "lxml/etree.pyx":2959
+ /* "lxml/etree.pyx":2962
* return NULL
* tree.BEGIN_FOR_EACH_ELEMENT_FROM(self._top_node._c_node, c_node, 0)
* if node_types & (1 << c_node.type): # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_node_types & (1 << __pyx_v_c_node->type)) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":2960
+ /* "lxml/etree.pyx":2963
* tree.BEGIN_FOR_EACH_ELEMENT_FROM(self._top_node._c_node, c_node, 0)
* if node_types & (1 << c_node.type):
* return c_node # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_c_node;
goto __pyx_L0;
- /* "lxml/etree.pyx":2959
+ /* "lxml/etree.pyx":2962
* return NULL
* tree.BEGIN_FOR_EACH_ELEMENT_FROM(self._top_node._c_node, c_node, 0)
* if node_types & (1 << c_node.type): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2961
+ /* "lxml/etree.pyx":2964
* if node_types & (1 << c_node.type):
* return c_node
* tree.END_FOR_EACH_ELEMENT_FROM(c_node) # <<<<<<<<<<<<<<
*/
END_FOR_EACH_ELEMENT_FROM(__pyx_v_c_node);
- /* "lxml/etree.pyx":2962
+ /* "lxml/etree.pyx":2965
* return c_node
* tree.END_FOR_EACH_ELEMENT_FROM(c_node)
* return NULL # <<<<<<<<<<<<<<
__pyx_r = NULL;
goto __pyx_L0;
- /* "lxml/etree.pyx":2954
+ /* "lxml/etree.pyx":2957
*
* @cython.final
* cdef xmlNode* _nextNodeAnyTag(self, xmlNode* c_node): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2965
+/* "lxml/etree.pyx":2968
*
* @cython.final
* cdef xmlNode* _nextNodeMatchTag(self, xmlNode* c_node): # <<<<<<<<<<<<<<
int __pyx_t_1;
__Pyx_RefNannySetupContext("_nextNodeMatchTag", 0);
- /* "lxml/etree.pyx":2966
+ /* "lxml/etree.pyx":2969
* @cython.final
* cdef xmlNode* _nextNodeMatchTag(self, xmlNode* c_node):
* tree.BEGIN_FOR_EACH_ELEMENT_FROM(self._top_node._c_node, c_node, 0) # <<<<<<<<<<<<<<
*/
BEGIN_FOR_EACH_ELEMENT_FROM(__pyx_v_self->_top_node->_c_node, __pyx_v_c_node, 0);
- /* "lxml/etree.pyx":2967
+ /* "lxml/etree.pyx":2970
* cdef xmlNode* _nextNodeMatchTag(self, xmlNode* c_node):
* tree.BEGIN_FOR_EACH_ELEMENT_FROM(self._top_node._c_node, c_node, 0)
* if self._matcher.matches(c_node): # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_f_4lxml_5etree_16_MultiTagMatcher_matches(__pyx_v_self->_matcher, __pyx_v_c_node) != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":2968
+ /* "lxml/etree.pyx":2971
* tree.BEGIN_FOR_EACH_ELEMENT_FROM(self._top_node._c_node, c_node, 0)
* if self._matcher.matches(c_node):
* return c_node # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_c_node;
goto __pyx_L0;
- /* "lxml/etree.pyx":2967
+ /* "lxml/etree.pyx":2970
* cdef xmlNode* _nextNodeMatchTag(self, xmlNode* c_node):
* tree.BEGIN_FOR_EACH_ELEMENT_FROM(self._top_node._c_node, c_node, 0)
* if self._matcher.matches(c_node): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":2969
+ /* "lxml/etree.pyx":2972
* if self._matcher.matches(c_node):
* return c_node
* tree.END_FOR_EACH_ELEMENT_FROM(c_node) # <<<<<<<<<<<<<<
*/
END_FOR_EACH_ELEMENT_FROM(__pyx_v_c_node);
- /* "lxml/etree.pyx":2970
+ /* "lxml/etree.pyx":2973
* return c_node
* tree.END_FOR_EACH_ELEMENT_FROM(c_node)
* return NULL # <<<<<<<<<<<<<<
__pyx_r = NULL;
goto __pyx_L0;
- /* "lxml/etree.pyx":2965
+ /* "lxml/etree.pyx":2968
*
* @cython.final
* cdef xmlNode* _nextNodeMatchTag(self, xmlNode* c_node): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2984
+/* "lxml/etree.pyx":2987
* cdef object _events
* cdef _Element _start_element
* def __cinit__(self, _Element element not None, tag=None, *, bint with_tail=True): # <<<<<<<<<<<<<<
if (value) { values[index] = value; kw_args--; }
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 2984, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 2987, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
__pyx_v_element = ((struct LxmlElement *)values[0]);
__pyx_v_tag = values[1];
if (values[2]) {
- __pyx_v_with_tail = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_with_tail == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2984, __pyx_L3_error)
+ __pyx_v_with_tail = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_with_tail == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 2987, __pyx_L3_error)
} else {
__pyx_v_with_tail = ((int)1);
}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2984, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__cinit__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2987, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.ElementTextIterator.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return -1;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), __pyx_ptype_4lxml_5etree__Element, 0, "element", 0))) __PYX_ERR(0, 2984, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), __pyx_ptype_4lxml_5etree__Element, 0, "element", 0))) __PYX_ERR(0, 2987, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_19ElementTextIterator___cinit__(((struct __pyx_obj_4lxml_5etree_ElementTextIterator *)__pyx_v_self), __pyx_v_element, __pyx_v_tag, __pyx_v_with_tail);
/* function exit code */
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__cinit__", 0);
- /* "lxml/etree.pyx":2985
+ /* "lxml/etree.pyx":2988
* cdef _Element _start_element
* def __cinit__(self, _Element element not None, tag=None, *, bint with_tail=True):
* _assertValidNode(element) # <<<<<<<<<<<<<<
* if with_tail:
* events = (u"start", u"comment", u"pi", u"end")
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2985, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(__pyx_v_element); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(0, 2988, __pyx_L1_error)
- /* "lxml/etree.pyx":2986
+ /* "lxml/etree.pyx":2989
* def __cinit__(self, _Element element not None, tag=None, *, bint with_tail=True):
* _assertValidNode(element)
* if with_tail: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_v_with_tail != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":2987
+ /* "lxml/etree.pyx":2990
* _assertValidNode(element)
* if with_tail:
* events = (u"start", u"comment", u"pi", u"end") # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_tuple__44);
__pyx_v_events = __pyx_tuple__44;
- /* "lxml/etree.pyx":2986
+ /* "lxml/etree.pyx":2989
* def __cinit__(self, _Element element not None, tag=None, *, bint with_tail=True):
* _assertValidNode(element)
* if with_tail: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":2989
+ /* "lxml/etree.pyx":2992
* events = (u"start", u"comment", u"pi", u"end")
* else:
* events = (u"start", u"comment", u"pi") # <<<<<<<<<<<<<<
}
__pyx_L3:;
- /* "lxml/etree.pyx":2990
+ /* "lxml/etree.pyx":2993
* else:
* events = (u"start", u"comment", u"pi")
* self._start_element = element # <<<<<<<<<<<<<<
__Pyx_DECREF(((PyObject *)__pyx_v_self->_start_element));
__pyx_v_self->_start_element = __pyx_v_element;
- /* "lxml/etree.pyx":2991
+ /* "lxml/etree.pyx":2994
* events = (u"start", u"comment", u"pi")
* self._start_element = element
* self._events = iterwalk(element, events=events, tag=tag) # <<<<<<<<<<<<<<
*
* def __iter__(self):
*/
- __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2991, __pyx_L1_error)
+ __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2994, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_INCREF(((PyObject *)__pyx_v_element));
__Pyx_GIVEREF(((PyObject *)__pyx_v_element));
PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_v_element));
- __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2991, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2994, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
- if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_events, __pyx_v_events) < 0) __PYX_ERR(0, 2991, __pyx_L1_error)
- if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_tag, __pyx_v_tag) < 0) __PYX_ERR(0, 2991, __pyx_L1_error)
- __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_iterwalk), __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2991, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_events, __pyx_v_events) < 0) __PYX_ERR(0, 2994, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_tag, __pyx_v_tag) < 0) __PYX_ERR(0, 2994, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_iterwalk), __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2994, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_v_self->_events = __pyx_t_5;
__pyx_t_5 = 0;
- /* "lxml/etree.pyx":2984
+ /* "lxml/etree.pyx":2987
* cdef object _events
* cdef _Element _start_element
* def __cinit__(self, _Element element not None, tag=None, *, bint with_tail=True): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2993
+/* "lxml/etree.pyx":2996
* self._events = iterwalk(element, events=events, tag=tag)
*
* def __iter__(self): # <<<<<<<<<<<<<<
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__iter__", 0);
- /* "lxml/etree.pyx":2994
+ /* "lxml/etree.pyx":2997
*
* def __iter__(self):
* return self # <<<<<<<<<<<<<<
__pyx_r = ((PyObject *)__pyx_v_self);
goto __pyx_L0;
- /* "lxml/etree.pyx":2993
+ /* "lxml/etree.pyx":2996
* self._events = iterwalk(element, events=events, tag=tag)
*
* def __iter__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":2996
+/* "lxml/etree.pyx":2999
* return self
*
* def __next__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__next__", 0);
- /* "lxml/etree.pyx":2998
+ /* "lxml/etree.pyx":3001
* def __next__(self):
* cdef _Element element
* result = None # <<<<<<<<<<<<<<
__Pyx_INCREF(Py_None);
__pyx_v_result = Py_None;
- /* "lxml/etree.pyx":2999
+ /* "lxml/etree.pyx":3002
* cdef _Element element
* result = None
* while result is None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (!__pyx_t_2) break;
- /* "lxml/etree.pyx":3000
+ /* "lxml/etree.pyx":3003
* result = None
* while result is None:
* event, element = next(self._events) # raises StopIteration # <<<<<<<<<<<<<<
*/
__pyx_t_3 = __pyx_v_self->_events;
__Pyx_INCREF(__pyx_t_3);
- __pyx_t_4 = __Pyx_PyIter_Next(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3000, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyIter_Next(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3003, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) {
if (unlikely(size != 2)) {
if (size > 2) __Pyx_RaiseTooManyValuesError(2);
else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
- __PYX_ERR(0, 3000, __pyx_L1_error)
+ __PYX_ERR(0, 3003, __pyx_L1_error)
}
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
if (likely(PyTuple_CheckExact(sequence))) {
__Pyx_INCREF(__pyx_t_3);
__Pyx_INCREF(__pyx_t_5);
#else
- __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3000, __pyx_L1_error)
+ __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3003, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_5 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3000, __pyx_L1_error)
+ __pyx_t_5 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3003, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
#endif
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
} else {
Py_ssize_t index = -1;
- __pyx_t_6 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3000, __pyx_L1_error)
+ __pyx_t_6 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3003, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext;
__Pyx_GOTREF(__pyx_t_3);
index = 1; __pyx_t_5 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_5)) goto __pyx_L5_unpacking_failed;
__Pyx_GOTREF(__pyx_t_5);
- if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_6), 2) < 0) __PYX_ERR(0, 3000, __pyx_L1_error)
+ if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_6), 2) < 0) __PYX_ERR(0, 3003, __pyx_L1_error)
__pyx_t_7 = NULL;
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
goto __pyx_L6_unpacking_done;
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__pyx_t_7 = NULL;
if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
- __PYX_ERR(0, 3000, __pyx_L1_error)
+ __PYX_ERR(0, 3003, __pyx_L1_error)
__pyx_L6_unpacking_done:;
}
- if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_4lxml_5etree__Element))))) __PYX_ERR(0, 3000, __pyx_L1_error)
+ if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_4lxml_5etree__Element))))) __PYX_ERR(0, 3003, __pyx_L1_error)
__Pyx_XDECREF_SET(__pyx_v_event, __pyx_t_3);
__pyx_t_3 = 0;
__Pyx_XDECREF_SET(__pyx_v_element, ((struct LxmlElement *)__pyx_t_5));
__pyx_t_5 = 0;
- /* "lxml/etree.pyx":3001
+ /* "lxml/etree.pyx":3004
* while result is None:
* event, element = next(self._events) # raises StopIteration
* if event == u"start": # <<<<<<<<<<<<<<
* result = element.text
* elif element is not self._start_element:
*/
- __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_event, __pyx_n_u_start, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 3001, __pyx_L1_error)
+ __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_v_event, __pyx_n_u_start, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 3004, __pyx_L1_error)
if (__pyx_t_2) {
- /* "lxml/etree.pyx":3002
+ /* "lxml/etree.pyx":3005
* event, element = next(self._events) # raises StopIteration
* if event == u"start":
* result = element.text # <<<<<<<<<<<<<<
* elif element is not self._start_element:
* result = element.tail
*/
- __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_element), __pyx_n_s_text); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3002, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_element), __pyx_n_s_text); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3005, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF_SET(__pyx_v_result, __pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":3001
+ /* "lxml/etree.pyx":3004
* while result is None:
* event, element = next(self._events) # raises StopIteration
* if event == u"start": # <<<<<<<<<<<<<<
goto __pyx_L7;
}
- /* "lxml/etree.pyx":3003
+ /* "lxml/etree.pyx":3006
* if event == u"start":
* result = element.text
* elif element is not self._start_element: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_t_2 != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":3004
+ /* "lxml/etree.pyx":3007
* result = element.text
* elif element is not self._start_element:
* result = element.tail # <<<<<<<<<<<<<<
* return result
*
*/
- __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_element), __pyx_n_s_tail); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3004, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_element), __pyx_n_s_tail); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3007, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF_SET(__pyx_v_result, __pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":3003
+ /* "lxml/etree.pyx":3006
* if event == u"start":
* result = element.text
* elif element is not self._start_element: # <<<<<<<<<<<<<<
__pyx_L7:;
}
- /* "lxml/etree.pyx":3005
+ /* "lxml/etree.pyx":3008
* elif element is not self._start_element:
* result = element.tail
* return result # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_result;
goto __pyx_L0;
- /* "lxml/etree.pyx":2996
+ /* "lxml/etree.pyx":2999
* return self
*
* def __next__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3007
+/* "lxml/etree.pyx":3010
* return result
*
* cdef xmlNode* _createElement(xmlDoc* c_doc, object name_utf) except NULL: # <<<<<<<<<<<<<<
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("_createElement", 0);
- /* "lxml/etree.pyx":3009
+ /* "lxml/etree.pyx":3012
* cdef xmlNode* _createElement(xmlDoc* c_doc, object name_utf) except NULL:
* cdef xmlNode* c_node
* c_node = tree.xmlNewDocNode(c_doc, NULL, _xcstr(name_utf), NULL) # <<<<<<<<<<<<<<
*/
__pyx_v_c_node = xmlNewDocNode(__pyx_v_c_doc, NULL, (const xmlChar*)PyBytes_AS_STRING(__pyx_v_name_utf), NULL);
- /* "lxml/etree.pyx":3010
+ /* "lxml/etree.pyx":3013
* cdef xmlNode* c_node
* c_node = tree.xmlNewDocNode(c_doc, NULL, _xcstr(name_utf), NULL)
* return c_node # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_c_node;
goto __pyx_L0;
- /* "lxml/etree.pyx":3007
+ /* "lxml/etree.pyx":3010
* return result
*
* cdef xmlNode* _createElement(xmlDoc* c_doc, object name_utf) except NULL: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3012
+/* "lxml/etree.pyx":3015
* return c_node
*
* cdef xmlNode* _createComment(xmlDoc* c_doc, const_xmlChar* text): # <<<<<<<<<<<<<<
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("_createComment", 0);
- /* "lxml/etree.pyx":3014
+ /* "lxml/etree.pyx":3017
* cdef xmlNode* _createComment(xmlDoc* c_doc, const_xmlChar* text):
* cdef xmlNode* c_node
* c_node = tree.xmlNewDocComment(c_doc, text) # <<<<<<<<<<<<<<
*/
__pyx_v_c_node = xmlNewDocComment(__pyx_v_c_doc, __pyx_v_text);
- /* "lxml/etree.pyx":3015
+ /* "lxml/etree.pyx":3018
* cdef xmlNode* c_node
* c_node = tree.xmlNewDocComment(c_doc, text)
* return c_node # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_c_node;
goto __pyx_L0;
- /* "lxml/etree.pyx":3012
+ /* "lxml/etree.pyx":3015
* return c_node
*
* cdef xmlNode* _createComment(xmlDoc* c_doc, const_xmlChar* text): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3017
+/* "lxml/etree.pyx":3020
* return c_node
*
* cdef xmlNode* _createPI(xmlDoc* c_doc, const_xmlChar* target, const_xmlChar* text): # <<<<<<<<<<<<<<
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("_createPI", 0);
- /* "lxml/etree.pyx":3019
+ /* "lxml/etree.pyx":3022
* cdef xmlNode* _createPI(xmlDoc* c_doc, const_xmlChar* target, const_xmlChar* text):
* cdef xmlNode* c_node
* c_node = tree.xmlNewDocPI(c_doc, target, text) # <<<<<<<<<<<<<<
*/
__pyx_v_c_node = xmlNewDocPI(__pyx_v_c_doc, __pyx_v_target, __pyx_v_text);
- /* "lxml/etree.pyx":3020
+ /* "lxml/etree.pyx":3023
* cdef xmlNode* c_node
* c_node = tree.xmlNewDocPI(c_doc, target, text)
* return c_node # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_c_node;
goto __pyx_L0;
- /* "lxml/etree.pyx":3017
+ /* "lxml/etree.pyx":3020
* return c_node
*
* cdef xmlNode* _createPI(xmlDoc* c_doc, const_xmlChar* target, const_xmlChar* text): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3022
+/* "lxml/etree.pyx":3025
* return c_node
*
* cdef xmlNode* _createEntity(xmlDoc* c_doc, const_xmlChar* name): # <<<<<<<<<<<<<<
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("_createEntity", 0);
- /* "lxml/etree.pyx":3024
+ /* "lxml/etree.pyx":3027
* cdef xmlNode* _createEntity(xmlDoc* c_doc, const_xmlChar* name):
* cdef xmlNode* c_node
* c_node = tree.xmlNewReference(c_doc, name) # <<<<<<<<<<<<<<
*/
__pyx_v_c_node = xmlNewReference(__pyx_v_c_doc, __pyx_v_name);
- /* "lxml/etree.pyx":3025
+ /* "lxml/etree.pyx":3028
* cdef xmlNode* c_node
* c_node = tree.xmlNewReference(c_doc, name)
* return c_node # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_c_node;
goto __pyx_L0;
- /* "lxml/etree.pyx":3022
+ /* "lxml/etree.pyx":3025
* return c_node
*
* cdef xmlNode* _createEntity(xmlDoc* c_doc, const_xmlChar* name): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3029
+/* "lxml/etree.pyx":3032
* # module-level API for ElementTree
*
* def Element(_tag, attrib=None, nsmap=None, **_extra): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v__extra, values, pos_args, "Element") < 0)) __PYX_ERR(0, 3029, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v__extra, values, pos_args, "Element") < 0)) __PYX_ERR(0, 3032, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("Element", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3029, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("Element", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3032, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_DECREF(__pyx_v__extra); __pyx_v__extra = 0;
__Pyx_AddTraceback("lxml.etree.Element", __pyx_clineno, __pyx_lineno, __pyx_filename);
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("Element", 0);
- /* "lxml/etree.pyx":3039
+ /* "lxml/etree.pyx":3042
* create an Element within a specific document or parser context.
* """
* return _makeElement(_tag, NULL, None, None, None, None, # <<<<<<<<<<<<<<
*/
__Pyx_XDECREF(__pyx_r);
- /* "lxml/etree.pyx":3040
+ /* "lxml/etree.pyx":3043
* """
* return _makeElement(_tag, NULL, None, None, None, None,
* attrib, nsmap, _extra) # <<<<<<<<<<<<<<
*
*
*/
- __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__makeElement(__pyx_v__tag, NULL, ((struct LxmlDocument *)Py_None), ((struct __pyx_obj_4lxml_5etree__BaseParser *)Py_None), Py_None, Py_None, __pyx_v_attrib, __pyx_v_nsmap, __pyx_v__extra)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3039, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__makeElement(__pyx_v__tag, NULL, ((struct LxmlDocument *)Py_None), ((struct __pyx_obj_4lxml_5etree__BaseParser *)Py_None), Py_None, Py_None, __pyx_v_attrib, __pyx_v_nsmap, __pyx_v__extra)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3042, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":3029
+ /* "lxml/etree.pyx":3032
* # module-level API for ElementTree
*
* def Element(_tag, attrib=None, nsmap=None, **_extra): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3043
+/* "lxml/etree.pyx":3046
*
*
* def Comment(text=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "Comment") < 0)) __PYX_ERR(0, 3043, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "Comment") < 0)) __PYX_ERR(0, 3046, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("Comment", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3043, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("Comment", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3046, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.Comment", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
__Pyx_RefNannySetupContext("Comment", 0);
__Pyx_INCREF(__pyx_v_text);
- /* "lxml/etree.pyx":3053
+ /* "lxml/etree.pyx":3056
* cdef xmlDoc* c_doc
*
* if text is None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":3054
+ /* "lxml/etree.pyx":3057
*
* if text is None:
* text = b'' # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_kp_b__12);
__Pyx_DECREF_SET(__pyx_v_text, __pyx_kp_b__12);
- /* "lxml/etree.pyx":3053
+ /* "lxml/etree.pyx":3056
* cdef xmlDoc* c_doc
*
* if text is None: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":3056
+ /* "lxml/etree.pyx":3059
* text = b''
* else:
* text = _utf8(text) # <<<<<<<<<<<<<<
* raise ValueError("Comment may not contain '--' or end with '-'")
*/
/*else*/ {
- __pyx_t_3 = __pyx_f_4lxml_5etree__utf8(__pyx_v_text); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3056, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree__utf8(__pyx_v_text); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3059, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF_SET(__pyx_v_text, __pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":3057
+ /* "lxml/etree.pyx":3060
* else:
* text = _utf8(text)
* if b'--' in text or text.endswith(b'-'): # <<<<<<<<<<<<<<
* raise ValueError("Comment may not contain '--' or end with '-'")
*
*/
- __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_kp_b__46, __pyx_v_text, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 3057, __pyx_L1_error)
+ __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_kp_b__46, __pyx_v_text, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 3060, __pyx_L1_error)
__pyx_t_4 = (__pyx_t_1 != 0);
if (!__pyx_t_4) {
} else {
__pyx_t_2 = __pyx_t_4;
goto __pyx_L5_bool_binop_done;
}
- __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_text, __pyx_n_s_endswith); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3057, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_text, __pyx_n_s_endswith); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3060, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_6 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
}
__pyx_t_3 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_kp_b__3) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_kp_b__3);
__Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
- if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3057, __pyx_L1_error)
+ if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3060, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 3057, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 3060, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_2 = __pyx_t_4;
__pyx_L5_bool_binop_done:;
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":3058
+ /* "lxml/etree.pyx":3061
* text = _utf8(text)
* if b'--' in text or text.endswith(b'-'):
* raise ValueError("Comment may not contain '--' or end with '-'") # <<<<<<<<<<<<<<
*
* c_doc = _newXMLDoc()
*/
- __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__47, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3058, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__47, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3061, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_Raise(__pyx_t_3, 0, 0, 0);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- __PYX_ERR(0, 3058, __pyx_L1_error)
+ __PYX_ERR(0, 3061, __pyx_L1_error)
- /* "lxml/etree.pyx":3057
+ /* "lxml/etree.pyx":3060
* else:
* text = _utf8(text)
* if b'--' in text or text.endswith(b'-'): # <<<<<<<<<<<<<<
}
__pyx_L3:;
- /* "lxml/etree.pyx":3060
+ /* "lxml/etree.pyx":3063
* raise ValueError("Comment may not contain '--' or end with '-'")
*
* c_doc = _newXMLDoc() # <<<<<<<<<<<<<<
* doc = _documentFactory(c_doc, None)
* c_node = _createComment(c_doc, _xcstr(text))
*/
- __pyx_t_7 = __pyx_f_4lxml_5etree__newXMLDoc(); if (unlikely(__pyx_t_7 == ((xmlDoc *)NULL))) __PYX_ERR(0, 3060, __pyx_L1_error)
+ __pyx_t_7 = __pyx_f_4lxml_5etree__newXMLDoc(); if (unlikely(__pyx_t_7 == ((xmlDoc *)NULL))) __PYX_ERR(0, 3063, __pyx_L1_error)
__pyx_v_c_doc = __pyx_t_7;
- /* "lxml/etree.pyx":3061
+ /* "lxml/etree.pyx":3064
*
* c_doc = _newXMLDoc()
* doc = _documentFactory(c_doc, None) # <<<<<<<<<<<<<<
* c_node = _createComment(c_doc, _xcstr(text))
* tree.xmlAddChild(<xmlNode*>c_doc, c_node)
*/
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__documentFactory(__pyx_v_c_doc, ((struct __pyx_obj_4lxml_5etree__BaseParser *)Py_None))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3061, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__documentFactory(__pyx_v_c_doc, ((struct __pyx_obj_4lxml_5etree__BaseParser *)Py_None))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3064, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_v_doc = ((struct LxmlDocument *)__pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":3062
+ /* "lxml/etree.pyx":3065
* c_doc = _newXMLDoc()
* doc = _documentFactory(c_doc, None)
* c_node = _createComment(c_doc, _xcstr(text)) # <<<<<<<<<<<<<<
*/
__pyx_v_c_node = __pyx_f_4lxml_5etree__createComment(__pyx_v_c_doc, (const xmlChar*)PyBytes_AS_STRING(__pyx_v_text));
- /* "lxml/etree.pyx":3063
+ /* "lxml/etree.pyx":3066
* doc = _documentFactory(c_doc, None)
* c_node = _createComment(c_doc, _xcstr(text))
* tree.xmlAddChild(<xmlNode*>c_doc, c_node) # <<<<<<<<<<<<<<
*/
(void)(xmlAddChild(((xmlNode *)__pyx_v_c_doc), __pyx_v_c_node));
- /* "lxml/etree.pyx":3064
+ /* "lxml/etree.pyx":3067
* c_node = _createComment(c_doc, _xcstr(text))
* tree.xmlAddChild(<xmlNode*>c_doc, c_node)
* return _elementFactory(doc, c_node) # <<<<<<<<<<<<<<
*
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(__pyx_v_doc, __pyx_v_c_node)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3064, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(__pyx_v_doc, __pyx_v_c_node)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3067, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":3043
+ /* "lxml/etree.pyx":3046
*
*
* def Comment(text=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3067
+/* "lxml/etree.pyx":3070
*
*
* def ProcessingInstruction(target, text=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "ProcessingInstruction") < 0)) __PYX_ERR(0, 3067, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "ProcessingInstruction") < 0)) __PYX_ERR(0, 3070, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("ProcessingInstruction", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3067, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("ProcessingInstruction", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3070, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.ProcessingInstruction", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
__Pyx_INCREF(__pyx_v_target);
__Pyx_INCREF(__pyx_v_text);
- /* "lxml/etree.pyx":3077
+ /* "lxml/etree.pyx":3080
* cdef xmlDoc* c_doc
*
* target = _utf8(target) # <<<<<<<<<<<<<<
* _tagValidOrRaise(target)
* if target.lower() == b'xml':
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__utf8(__pyx_v_target); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3077, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__utf8(__pyx_v_target); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3080, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF_SET(__pyx_v_target, __pyx_t_1);
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":3078
+ /* "lxml/etree.pyx":3081
*
* target = _utf8(target)
* _tagValidOrRaise(target) # <<<<<<<<<<<<<<
* if target.lower() == b'xml':
* raise ValueError, f"Invalid PI name '{target}'"
*/
- __pyx_t_2 = __pyx_f_4lxml_5etree__tagValidOrRaise(__pyx_v_target); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3078, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__tagValidOrRaise(__pyx_v_target); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(0, 3081, __pyx_L1_error)
- /* "lxml/etree.pyx":3079
+ /* "lxml/etree.pyx":3082
* target = _utf8(target)
* _tagValidOrRaise(target)
* if target.lower() == b'xml': # <<<<<<<<<<<<<<
* raise ValueError, f"Invalid PI name '{target}'"
*
*/
- __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_target, __pyx_n_s_lower); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3079, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_target, __pyx_n_s_lower); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3082, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
}
__pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
- if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3079, __pyx_L1_error)
+ if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3082, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- __pyx_t_5 = (__Pyx_PyBytes_Equals(__pyx_t_1, __pyx_n_b_xml, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 3079, __pyx_L1_error)
+ __pyx_t_5 = (__Pyx_PyBytes_Equals(__pyx_t_1, __pyx_n_b_xml, Py_EQ)); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 3082, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
if (unlikely(__pyx_t_5)) {
- /* "lxml/etree.pyx":3080
+ /* "lxml/etree.pyx":3083
* _tagValidOrRaise(target)
* if target.lower() == b'xml':
* raise ValueError, f"Invalid PI name '{target}'" # <<<<<<<<<<<<<<
*
* if text is None:
*/
- __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3080, __pyx_L1_error)
+ __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3083, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_6 = 0;
__pyx_t_7 = 127;
__pyx_t_6 += 17;
__Pyx_GIVEREF(__pyx_kp_u_Invalid_PI_name);
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_Invalid_PI_name);
- __pyx_t_3 = __Pyx_PyObject_FormatSimple(__pyx_v_target, __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3080, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_FormatSimple(__pyx_v_target, __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3083, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_7 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_3) > __pyx_t_7) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_3) : __pyx_t_7;
__pyx_t_6 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_3);
__pyx_t_6 += 1;
__Pyx_GIVEREF(__pyx_kp_u__22);
PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u__22);
- __pyx_t_3 = __Pyx_PyUnicode_Join(__pyx_t_1, 3, __pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3080, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyUnicode_Join(__pyx_t_1, 3, __pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3083, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_t_3, 0, 0);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- __PYX_ERR(0, 3080, __pyx_L1_error)
+ __PYX_ERR(0, 3083, __pyx_L1_error)
- /* "lxml/etree.pyx":3079
+ /* "lxml/etree.pyx":3082
* target = _utf8(target)
* _tagValidOrRaise(target)
* if target.lower() == b'xml': # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3082
+ /* "lxml/etree.pyx":3085
* raise ValueError, f"Invalid PI name '{target}'"
*
* if text is None: # <<<<<<<<<<<<<<
__pyx_t_8 = (__pyx_t_5 != 0);
if (__pyx_t_8) {
- /* "lxml/etree.pyx":3083
+ /* "lxml/etree.pyx":3086
*
* if text is None:
* text = b'' # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_kp_b__12);
__Pyx_DECREF_SET(__pyx_v_text, __pyx_kp_b__12);
- /* "lxml/etree.pyx":3082
+ /* "lxml/etree.pyx":3085
* raise ValueError, f"Invalid PI name '{target}'"
*
* if text is None: # <<<<<<<<<<<<<<
goto __pyx_L4;
}
- /* "lxml/etree.pyx":3085
+ /* "lxml/etree.pyx":3088
* text = b''
* else:
* text = _utf8(text) # <<<<<<<<<<<<<<
* raise ValueError, "PI text must not contain '?>'"
*/
/*else*/ {
- __pyx_t_3 = __pyx_f_4lxml_5etree__utf8(__pyx_v_text); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3085, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree__utf8(__pyx_v_text); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3088, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF_SET(__pyx_v_text, __pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":3086
+ /* "lxml/etree.pyx":3089
* else:
* text = _utf8(text)
* if b'?>' in text: # <<<<<<<<<<<<<<
* raise ValueError, "PI text must not contain '?>'"
*
*/
- __pyx_t_8 = (__Pyx_PySequence_ContainsTF(__pyx_kp_b__48, __pyx_v_text, Py_EQ)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 3086, __pyx_L1_error)
+ __pyx_t_8 = (__Pyx_PySequence_ContainsTF(__pyx_kp_b__48, __pyx_v_text, Py_EQ)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 3089, __pyx_L1_error)
__pyx_t_5 = (__pyx_t_8 != 0);
if (unlikely(__pyx_t_5)) {
- /* "lxml/etree.pyx":3087
+ /* "lxml/etree.pyx":3090
* text = _utf8(text)
* if b'?>' in text:
* raise ValueError, "PI text must not contain '?>'" # <<<<<<<<<<<<<<
* c_doc = _newXMLDoc()
*/
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_s_PI_text_must_not_contain, 0, 0);
- __PYX_ERR(0, 3087, __pyx_L1_error)
+ __PYX_ERR(0, 3090, __pyx_L1_error)
- /* "lxml/etree.pyx":3086
+ /* "lxml/etree.pyx":3089
* else:
* text = _utf8(text)
* if b'?>' in text: # <<<<<<<<<<<<<<
}
__pyx_L4:;
- /* "lxml/etree.pyx":3089
+ /* "lxml/etree.pyx":3092
* raise ValueError, "PI text must not contain '?>'"
*
* c_doc = _newXMLDoc() # <<<<<<<<<<<<<<
* doc = _documentFactory(c_doc, None)
* c_node = _createPI(c_doc, _xcstr(target), _xcstr(text))
*/
- __pyx_t_9 = __pyx_f_4lxml_5etree__newXMLDoc(); if (unlikely(__pyx_t_9 == ((xmlDoc *)NULL))) __PYX_ERR(0, 3089, __pyx_L1_error)
+ __pyx_t_9 = __pyx_f_4lxml_5etree__newXMLDoc(); if (unlikely(__pyx_t_9 == ((xmlDoc *)NULL))) __PYX_ERR(0, 3092, __pyx_L1_error)
__pyx_v_c_doc = __pyx_t_9;
- /* "lxml/etree.pyx":3090
+ /* "lxml/etree.pyx":3093
*
* c_doc = _newXMLDoc()
* doc = _documentFactory(c_doc, None) # <<<<<<<<<<<<<<
* c_node = _createPI(c_doc, _xcstr(target), _xcstr(text))
* tree.xmlAddChild(<xmlNode*>c_doc, c_node)
*/
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__documentFactory(__pyx_v_c_doc, ((struct __pyx_obj_4lxml_5etree__BaseParser *)Py_None))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3090, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__documentFactory(__pyx_v_c_doc, ((struct __pyx_obj_4lxml_5etree__BaseParser *)Py_None))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3093, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_v_doc = ((struct LxmlDocument *)__pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":3091
+ /* "lxml/etree.pyx":3094
* c_doc = _newXMLDoc()
* doc = _documentFactory(c_doc, None)
* c_node = _createPI(c_doc, _xcstr(target), _xcstr(text)) # <<<<<<<<<<<<<<
*/
__pyx_v_c_node = __pyx_f_4lxml_5etree__createPI(__pyx_v_c_doc, (const xmlChar*)PyBytes_AS_STRING(__pyx_v_target), (const xmlChar*)PyBytes_AS_STRING(__pyx_v_text));
- /* "lxml/etree.pyx":3092
+ /* "lxml/etree.pyx":3095
* doc = _documentFactory(c_doc, None)
* c_node = _createPI(c_doc, _xcstr(target), _xcstr(text))
* tree.xmlAddChild(<xmlNode*>c_doc, c_node) # <<<<<<<<<<<<<<
*/
(void)(xmlAddChild(((xmlNode *)__pyx_v_c_doc), __pyx_v_c_node));
- /* "lxml/etree.pyx":3093
+ /* "lxml/etree.pyx":3096
* c_node = _createPI(c_doc, _xcstr(target), _xcstr(text))
* tree.xmlAddChild(<xmlNode*>c_doc, c_node)
* return _elementFactory(doc, c_node) # <<<<<<<<<<<<<<
* PI = ProcessingInstruction
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(__pyx_v_doc, __pyx_v_c_node)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3093, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(__pyx_v_doc, __pyx_v_c_node)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3096, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":3067
+ /* "lxml/etree.pyx":3070
*
*
* def ProcessingInstruction(target, text=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3113
+/* "lxml/etree.pyx":3116
* """
* cdef bytes _utf8_data
* def __cinit__(self, data): # <<<<<<<<<<<<<<
else goto __pyx_L5_argtuple_error;
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 3113, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__cinit__") < 0)) __PYX_ERR(0, 3116, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3113, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3116, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.CDATA.__cinit__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__cinit__", 0);
- /* "lxml/etree.pyx":3114
+ /* "lxml/etree.pyx":3117
* cdef bytes _utf8_data
* def __cinit__(self, data):
* _utf8_data = _utf8(data) # <<<<<<<<<<<<<<
* if b']]>' in _utf8_data:
* raise ValueError, "']]>' not allowed inside CDATA"
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__utf8(__pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3114, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__utf8(__pyx_v_data); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3117, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_v__utf8_data = ((PyObject*)__pyx_t_1);
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":3115
+ /* "lxml/etree.pyx":3118
* def __cinit__(self, data):
* _utf8_data = _utf8(data)
* if b']]>' in _utf8_data: # <<<<<<<<<<<<<<
* raise ValueError, "']]>' not allowed inside CDATA"
* self._utf8_data = _utf8_data
*/
- __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_kp_b__49, __pyx_v__utf8_data, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 3115, __pyx_L1_error)
+ __pyx_t_2 = (__Pyx_PySequence_ContainsTF(__pyx_kp_b__49, __pyx_v__utf8_data, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 3118, __pyx_L1_error)
__pyx_t_3 = (__pyx_t_2 != 0);
if (unlikely(__pyx_t_3)) {
- /* "lxml/etree.pyx":3116
+ /* "lxml/etree.pyx":3119
* _utf8_data = _utf8(data)
* if b']]>' in _utf8_data:
* raise ValueError, "']]>' not allowed inside CDATA" # <<<<<<<<<<<<<<
*
*/
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_s_not_allowed_inside_CDATA, 0, 0);
- __PYX_ERR(0, 3116, __pyx_L1_error)
+ __PYX_ERR(0, 3119, __pyx_L1_error)
- /* "lxml/etree.pyx":3115
+ /* "lxml/etree.pyx":3118
* def __cinit__(self, data):
* _utf8_data = _utf8(data)
* if b']]>' in _utf8_data: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3117
+ /* "lxml/etree.pyx":3120
* if b']]>' in _utf8_data:
* raise ValueError, "']]>' not allowed inside CDATA"
* self._utf8_data = _utf8_data # <<<<<<<<<<<<<<
__Pyx_DECREF(__pyx_v_self->_utf8_data);
__pyx_v_self->_utf8_data = __pyx_v__utf8_data;
- /* "lxml/etree.pyx":3113
+ /* "lxml/etree.pyx":3116
* """
* cdef bytes _utf8_data
* def __cinit__(self, data): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3120
+/* "lxml/etree.pyx":3123
*
*
* def Entity(name): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("Entity", 0);
- /* "lxml/etree.pyx":3132
+ /* "lxml/etree.pyx":3135
* cdef xmlNode* c_node
* cdef xmlDoc* c_doc
* name_utf = _utf8(name) # <<<<<<<<<<<<<<
* c_name = _xcstr(name_utf)
* if c_name[0] == c'#':
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__utf8(__pyx_v_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3132, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__utf8(__pyx_v_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3135, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_v_name_utf = ((PyObject*)__pyx_t_1);
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":3133
+ /* "lxml/etree.pyx":3136
* cdef xmlDoc* c_doc
* name_utf = _utf8(name)
* c_name = _xcstr(name_utf) # <<<<<<<<<<<<<<
*/
__pyx_v_c_name = (const xmlChar*)PyBytes_AS_STRING(__pyx_v_name_utf);
- /* "lxml/etree.pyx":3134
+ /* "lxml/etree.pyx":3137
* name_utf = _utf8(name)
* c_name = _xcstr(name_utf)
* if c_name[0] == c'#': # <<<<<<<<<<<<<<
__pyx_t_2 = (((__pyx_v_c_name[0]) == '#') != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":3135
+ /* "lxml/etree.pyx":3138
* c_name = _xcstr(name_utf)
* if c_name[0] == c'#':
* if not _characterReferenceIsValid(c_name + 1): # <<<<<<<<<<<<<<
__pyx_t_2 = ((!(__pyx_f_4lxml_5etree__characterReferenceIsValid((__pyx_v_c_name + 1)) != 0)) != 0);
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":3136
+ /* "lxml/etree.pyx":3139
* if c_name[0] == c'#':
* if not _characterReferenceIsValid(c_name + 1):
* raise ValueError, f"Invalid character reference: '{name}'" # <<<<<<<<<<<<<<
* elif not _xmlNameIsValid(c_name):
* raise ValueError, f"Invalid entity reference: '{name}'"
*/
- __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3136, __pyx_L1_error)
+ __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3139, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_3 = 0;
__pyx_t_4 = 127;
__pyx_t_3 += 30;
__Pyx_GIVEREF(__pyx_kp_u_Invalid_character_reference);
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_Invalid_character_reference);
- __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_v_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3136, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_v_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3139, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_4 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_4) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_4;
__pyx_t_3 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
__pyx_t_3 += 1;
__Pyx_GIVEREF(__pyx_kp_u__22);
PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u__22);
- __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_1, 3, __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3136, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_1, 3, __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3139, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_t_5, 0, 0);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- __PYX_ERR(0, 3136, __pyx_L1_error)
+ __PYX_ERR(0, 3139, __pyx_L1_error)
- /* "lxml/etree.pyx":3135
+ /* "lxml/etree.pyx":3138
* c_name = _xcstr(name_utf)
* if c_name[0] == c'#':
* if not _characterReferenceIsValid(c_name + 1): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3134
+ /* "lxml/etree.pyx":3137
* name_utf = _utf8(name)
* c_name = _xcstr(name_utf)
* if c_name[0] == c'#': # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":3137
+ /* "lxml/etree.pyx":3140
* if not _characterReferenceIsValid(c_name + 1):
* raise ValueError, f"Invalid character reference: '{name}'"
* elif not _xmlNameIsValid(c_name): # <<<<<<<<<<<<<<
__pyx_t_2 = ((!(__pyx_f_4lxml_5etree__xmlNameIsValid(__pyx_v_c_name) != 0)) != 0);
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":3138
+ /* "lxml/etree.pyx":3141
* raise ValueError, f"Invalid character reference: '{name}'"
* elif not _xmlNameIsValid(c_name):
* raise ValueError, f"Invalid entity reference: '{name}'" # <<<<<<<<<<<<<<
* c_doc = _newXMLDoc()
* doc = _documentFactory(c_doc, None)
*/
- __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3138, __pyx_L1_error)
+ __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3141, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_3 = 0;
__pyx_t_4 = 127;
__pyx_t_3 += 27;
__Pyx_GIVEREF(__pyx_kp_u_Invalid_entity_reference);
PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_kp_u_Invalid_entity_reference);
- __pyx_t_1 = __Pyx_PyObject_FormatSimple(__pyx_v_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3138, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_FormatSimple(__pyx_v_name, __pyx_empty_unicode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3141, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_4 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) > __pyx_t_4) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) : __pyx_t_4;
__pyx_t_3 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_1);
__pyx_t_3 += 1;
__Pyx_GIVEREF(__pyx_kp_u__22);
PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_kp_u__22);
- __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_5, 3, __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3138, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_5, 3, __pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3141, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_t_1, 0, 0);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __PYX_ERR(0, 3138, __pyx_L1_error)
+ __PYX_ERR(0, 3141, __pyx_L1_error)
- /* "lxml/etree.pyx":3137
+ /* "lxml/etree.pyx":3140
* if not _characterReferenceIsValid(c_name + 1):
* raise ValueError, f"Invalid character reference: '{name}'"
* elif not _xmlNameIsValid(c_name): # <<<<<<<<<<<<<<
}
__pyx_L3:;
- /* "lxml/etree.pyx":3139
+ /* "lxml/etree.pyx":3142
* elif not _xmlNameIsValid(c_name):
* raise ValueError, f"Invalid entity reference: '{name}'"
* c_doc = _newXMLDoc() # <<<<<<<<<<<<<<
* doc = _documentFactory(c_doc, None)
* c_node = _createEntity(c_doc, c_name)
*/
- __pyx_t_6 = __pyx_f_4lxml_5etree__newXMLDoc(); if (unlikely(__pyx_t_6 == ((xmlDoc *)NULL))) __PYX_ERR(0, 3139, __pyx_L1_error)
+ __pyx_t_6 = __pyx_f_4lxml_5etree__newXMLDoc(); if (unlikely(__pyx_t_6 == ((xmlDoc *)NULL))) __PYX_ERR(0, 3142, __pyx_L1_error)
__pyx_v_c_doc = __pyx_t_6;
- /* "lxml/etree.pyx":3140
+ /* "lxml/etree.pyx":3143
* raise ValueError, f"Invalid entity reference: '{name}'"
* c_doc = _newXMLDoc()
* doc = _documentFactory(c_doc, None) # <<<<<<<<<<<<<<
* c_node = _createEntity(c_doc, c_name)
* tree.xmlAddChild(<xmlNode*>c_doc, c_node)
*/
- __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__documentFactory(__pyx_v_c_doc, ((struct __pyx_obj_4lxml_5etree__BaseParser *)Py_None))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3140, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__documentFactory(__pyx_v_c_doc, ((struct __pyx_obj_4lxml_5etree__BaseParser *)Py_None))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3143, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_v_doc = ((struct LxmlDocument *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":3141
+ /* "lxml/etree.pyx":3144
* c_doc = _newXMLDoc()
* doc = _documentFactory(c_doc, None)
* c_node = _createEntity(c_doc, c_name) # <<<<<<<<<<<<<<
*/
__pyx_v_c_node = __pyx_f_4lxml_5etree__createEntity(__pyx_v_c_doc, __pyx_v_c_name);
- /* "lxml/etree.pyx":3142
+ /* "lxml/etree.pyx":3145
* doc = _documentFactory(c_doc, None)
* c_node = _createEntity(c_doc, c_name)
* tree.xmlAddChild(<xmlNode*>c_doc, c_node) # <<<<<<<<<<<<<<
*/
(void)(xmlAddChild(((xmlNode *)__pyx_v_c_doc), __pyx_v_c_node));
- /* "lxml/etree.pyx":3143
+ /* "lxml/etree.pyx":3146
* c_node = _createEntity(c_doc, c_name)
* tree.xmlAddChild(<xmlNode*>c_doc, c_node)
* return _elementFactory(doc, c_node) # <<<<<<<<<<<<<<
*
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(__pyx_v_doc, __pyx_v_c_node)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3143, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(__pyx_v_doc, __pyx_v_c_node)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3146, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":3120
+ /* "lxml/etree.pyx":3123
*
*
* def Entity(name): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3146
+/* "lxml/etree.pyx":3149
*
*
* def SubElement(_Element _parent not None, _tag, # <<<<<<<<<<<<<<
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_parent,&__pyx_n_s_tag_2,&__pyx_n_s_attrib,&__pyx_n_s_nsmap,0};
PyObject* values[4] = {0,0,0,0};
- /* "lxml/etree.pyx":3147
+ /* "lxml/etree.pyx":3150
*
* def SubElement(_Element _parent not None, _tag,
* attrib=None, nsmap=None, **_extra): # <<<<<<<<<<<<<<
case 1:
if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_tag_2)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("SubElement", 0, 2, 4, 1); __PYX_ERR(0, 3146, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("SubElement", 0, 2, 4, 1); __PYX_ERR(0, 3149, __pyx_L3_error)
}
CYTHON_FALLTHROUGH;
case 2:
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v__extra, values, pos_args, "SubElement") < 0)) __PYX_ERR(0, 3146, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v__extra, values, pos_args, "SubElement") < 0)) __PYX_ERR(0, 3149, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("SubElement", 0, 2, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3146, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("SubElement", 0, 2, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3149, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_DECREF(__pyx_v__extra); __pyx_v__extra = 0;
__Pyx_AddTraceback("lxml.etree.SubElement", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return NULL;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v__parent), __pyx_ptype_4lxml_5etree__Element, 0, "_parent", 0))) __PYX_ERR(0, 3146, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v__parent), __pyx_ptype_4lxml_5etree__Element, 0, "_parent", 0))) __PYX_ERR(0, 3149, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_14SubElement(__pyx_self, __pyx_v__parent, __pyx_v__tag, __pyx_v_attrib, __pyx_v_nsmap, __pyx_v__extra);
- /* "lxml/etree.pyx":3146
+ /* "lxml/etree.pyx":3149
*
*
* def SubElement(_Element _parent not None, _tag, # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("SubElement", 0);
- /* "lxml/etree.pyx":3153
+ /* "lxml/etree.pyx":3156
* appends it to an existing element.
* """
* return _makeSubElement(_parent, _tag, None, None, attrib, nsmap, _extra) # <<<<<<<<<<<<<<
*
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__makeSubElement(__pyx_v__parent, __pyx_v__tag, Py_None, Py_None, __pyx_v_attrib, __pyx_v_nsmap, __pyx_v__extra)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3153, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__makeSubElement(__pyx_v__parent, __pyx_v__tag, Py_None, Py_None, __pyx_v_attrib, __pyx_v_nsmap, __pyx_v__extra)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3156, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":3146
+ /* "lxml/etree.pyx":3149
*
*
* def SubElement(_Element _parent not None, _tag, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3156
+/* "lxml/etree.pyx":3159
*
*
* def ElementTree(_Element element=None, *, file=None, _BaseParser parser=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "ElementTree") < 0)) __PYX_ERR(0, 3156, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "ElementTree") < 0)) __PYX_ERR(0, 3159, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("ElementTree", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3156, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("ElementTree", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3159, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.ElementTree", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return NULL;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), __pyx_ptype_4lxml_5etree__Element, 1, "element", 0))) __PYX_ERR(0, 3156, __pyx_L1_error)
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_parser), __pyx_ptype_4lxml_5etree__BaseParser, 1, "parser", 0))) __PYX_ERR(0, 3156, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_element), __pyx_ptype_4lxml_5etree__Element, 1, "element", 0))) __PYX_ERR(0, 3159, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_parser), __pyx_ptype_4lxml_5etree__BaseParser, 1, "parser", 0))) __PYX_ERR(0, 3159, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_16ElementTree(__pyx_self, __pyx_v_element, __pyx_v_file, __pyx_v_parser);
/* function exit code */
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("ElementTree", 0);
- /* "lxml/etree.pyx":3168
+ /* "lxml/etree.pyx":3171
* cdef _Document doc
*
* if element is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":3169
+ /* "lxml/etree.pyx":3172
*
* if element is not None:
* doc = element._doc # <<<<<<<<<<<<<<
__pyx_v_doc = ((struct LxmlDocument *)__pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":3168
+ /* "lxml/etree.pyx":3171
* cdef _Document doc
*
* if element is not None: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":3170
+ /* "lxml/etree.pyx":3173
* if element is not None:
* doc = element._doc
* elif file is not None: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_t_2 != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":3171
+ /* "lxml/etree.pyx":3174
* doc = element._doc
* elif file is not None:
* try: # <<<<<<<<<<<<<<
__Pyx_XGOTREF(__pyx_t_6);
/*try:*/ {
- /* "lxml/etree.pyx":3172
+ /* "lxml/etree.pyx":3175
* elif file is not None:
* try:
* doc = _parseDocument(file, parser, None) # <<<<<<<<<<<<<<
* except _TargetParserResult as result_container:
* return result_container.result
*/
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__parseDocument(__pyx_v_file, __pyx_v_parser, Py_None)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3172, __pyx_L4_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__parseDocument(__pyx_v_file, __pyx_v_parser, Py_None)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3175, __pyx_L4_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_v_doc = ((struct LxmlDocument *)__pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":3171
+ /* "lxml/etree.pyx":3174
* doc = element._doc
* elif file is not None:
* try: # <<<<<<<<<<<<<<
__pyx_L4_error:;
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
- /* "lxml/etree.pyx":3173
+ /* "lxml/etree.pyx":3176
* try:
* doc = _parseDocument(file, parser, None)
* except _TargetParserResult as result_container: # <<<<<<<<<<<<<<
* else:
*/
__Pyx_ErrFetch(&__pyx_t_3, &__pyx_t_7, &__pyx_t_8);
- __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_TargetParserResult); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 3173, __pyx_L6_except_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_TargetParserResult); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 3176, __pyx_L6_except_error)
__Pyx_GOTREF(__pyx_t_9);
__pyx_t_10 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_3, __pyx_t_9);
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
__pyx_t_3 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0;
if (__pyx_t_10) {
__Pyx_AddTraceback("lxml.etree.ElementTree", __pyx_clineno, __pyx_lineno, __pyx_filename);
- if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_7, &__pyx_t_3) < 0) __PYX_ERR(0, 3173, __pyx_L6_except_error)
+ if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_7, &__pyx_t_3) < 0) __PYX_ERR(0, 3176, __pyx_L6_except_error)
__Pyx_GOTREF(__pyx_t_8);
__Pyx_GOTREF(__pyx_t_7);
__Pyx_GOTREF(__pyx_t_3);
__Pyx_INCREF(__pyx_t_7);
__pyx_v_result_container = __pyx_t_7;
- /* "lxml/etree.pyx":3174
+ /* "lxml/etree.pyx":3177
* doc = _parseDocument(file, parser, None)
* except _TargetParserResult as result_container:
* return result_container.result # <<<<<<<<<<<<<<
* c_doc = _newXMLDoc()
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_result_container, __pyx_n_s_result); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 3174, __pyx_L6_except_error)
+ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_result_container, __pyx_n_s_result); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 3177, __pyx_L6_except_error)
__Pyx_GOTREF(__pyx_t_9);
__pyx_r = __pyx_t_9;
__pyx_t_9 = 0;
goto __pyx_L6_except_error;
__pyx_L6_except_error:;
- /* "lxml/etree.pyx":3171
+ /* "lxml/etree.pyx":3174
* doc = element._doc
* elif file is not None:
* try: # <<<<<<<<<<<<<<
__pyx_L9_try_end:;
}
- /* "lxml/etree.pyx":3170
+ /* "lxml/etree.pyx":3173
* if element is not None:
* doc = element._doc
* elif file is not None: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "lxml/etree.pyx":3176
+ /* "lxml/etree.pyx":3179
* return result_container.result
* else:
* c_doc = _newXMLDoc() # <<<<<<<<<<<<<<
*
*/
/*else*/ {
- __pyx_t_11 = __pyx_f_4lxml_5etree__newXMLDoc(); if (unlikely(__pyx_t_11 == ((xmlDoc *)NULL))) __PYX_ERR(0, 3176, __pyx_L1_error)
+ __pyx_t_11 = __pyx_f_4lxml_5etree__newXMLDoc(); if (unlikely(__pyx_t_11 == ((xmlDoc *)NULL))) __PYX_ERR(0, 3179, __pyx_L1_error)
__pyx_v_c_doc = __pyx_t_11;
- /* "lxml/etree.pyx":3177
+ /* "lxml/etree.pyx":3180
* else:
* c_doc = _newXMLDoc()
* doc = _documentFactory(c_doc, parser) # <<<<<<<<<<<<<<
*
* return _elementTreeFactory(doc, element)
*/
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__documentFactory(__pyx_v_c_doc, __pyx_v_parser)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3177, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__documentFactory(__pyx_v_c_doc, __pyx_v_parser)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3180, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_v_doc = ((struct LxmlDocument *)__pyx_t_3);
__pyx_t_3 = 0;
}
__pyx_L3:;
- /* "lxml/etree.pyx":3179
+ /* "lxml/etree.pyx":3182
* doc = _documentFactory(c_doc, parser)
*
* return _elementTreeFactory(doc, element) # <<<<<<<<<<<<<<
*
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__elementTreeFactory(__pyx_v_doc, __pyx_v_element)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3179, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__elementTreeFactory(__pyx_v_doc, __pyx_v_element)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3182, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":3156
+ /* "lxml/etree.pyx":3159
*
*
* def ElementTree(_Element element=None, *, file=None, _BaseParser parser=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3182
+/* "lxml/etree.pyx":3185
*
*
* def HTML(text, _BaseParser parser=None, *, base_url=None): # <<<<<<<<<<<<<<
if (value) { values[index] = value; kw_args--; }
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "HTML") < 0)) __PYX_ERR(0, 3182, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "HTML") < 0)) __PYX_ERR(0, 3185, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("HTML", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3182, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("HTML", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3185, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.HTML", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return NULL;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_parser), __pyx_ptype_4lxml_5etree__BaseParser, 1, "parser", 0))) __PYX_ERR(0, 3182, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_parser), __pyx_ptype_4lxml_5etree__BaseParser, 1, "parser", 0))) __PYX_ERR(0, 3185, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_18HTML(__pyx_self, __pyx_v_text, __pyx_v_parser, __pyx_v_base_url);
/* function exit code */
__Pyx_RefNannySetupContext("HTML", 0);
__Pyx_INCREF((PyObject *)__pyx_v_parser);
- /* "lxml/etree.pyx":3197
+ /* "lxml/etree.pyx":3200
* """
* cdef _Document doc
* if parser is None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":3198
+ /* "lxml/etree.pyx":3201
* cdef _Document doc
* if parser is None:
* parser = __GLOBAL_PARSER_CONTEXT.getDefaultParser() # <<<<<<<<<<<<<<
* if not isinstance(parser, HTMLParser):
* parser = __DEFAULT_HTML_PARSER
*/
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree_24_ParserDictionaryContext_getDefaultParser(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3198, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree_24_ParserDictionaryContext_getDefaultParser(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3201, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF_SET(__pyx_v_parser, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_t_3));
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":3199
+ /* "lxml/etree.pyx":3202
* if parser is None:
* parser = __GLOBAL_PARSER_CONTEXT.getDefaultParser()
* if not isinstance(parser, HTMLParser): # <<<<<<<<<<<<<<
__pyx_t_1 = ((!(__pyx_t_2 != 0)) != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":3200
+ /* "lxml/etree.pyx":3203
* parser = __GLOBAL_PARSER_CONTEXT.getDefaultParser()
* if not isinstance(parser, HTMLParser):
* parser = __DEFAULT_HTML_PARSER # <<<<<<<<<<<<<<
__Pyx_INCREF(((PyObject *)__pyx_v_4lxml_5etree___DEFAULT_HTML_PARSER));
__Pyx_DECREF_SET(__pyx_v_parser, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_4lxml_5etree___DEFAULT_HTML_PARSER));
- /* "lxml/etree.pyx":3199
+ /* "lxml/etree.pyx":3202
* if parser is None:
* parser = __GLOBAL_PARSER_CONTEXT.getDefaultParser()
* if not isinstance(parser, HTMLParser): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3197
+ /* "lxml/etree.pyx":3200
* """
* cdef _Document doc
* if parser is None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3201
+ /* "lxml/etree.pyx":3204
* if not isinstance(parser, HTMLParser):
* parser = __DEFAULT_HTML_PARSER
* try: # <<<<<<<<<<<<<<
__Pyx_XGOTREF(__pyx_t_6);
/*try:*/ {
- /* "lxml/etree.pyx":3202
+ /* "lxml/etree.pyx":3205
* parser = __DEFAULT_HTML_PARSER
* try:
* doc = _parseMemoryDocument(text, base_url, parser) # <<<<<<<<<<<<<<
* return doc.getroot()
* except _TargetParserResult as result_container:
*/
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__parseMemoryDocument(__pyx_v_text, __pyx_v_base_url, __pyx_v_parser)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3202, __pyx_L5_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__parseMemoryDocument(__pyx_v_text, __pyx_v_base_url, __pyx_v_parser)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3205, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_v_doc = ((struct LxmlDocument *)__pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":3203
+ /* "lxml/etree.pyx":3206
* try:
* doc = _parseMemoryDocument(text, base_url, parser)
* return doc.getroot() # <<<<<<<<<<<<<<
* return result_container.result
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_3 = __pyx_f_4lxml_5etree_9_Document_getroot(__pyx_v_doc); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3203, __pyx_L5_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree_9_Document_getroot(__pyx_v_doc); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3206, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L9_try_return;
- /* "lxml/etree.pyx":3201
+ /* "lxml/etree.pyx":3204
* if not isinstance(parser, HTMLParser):
* parser = __DEFAULT_HTML_PARSER
* try: # <<<<<<<<<<<<<<
__pyx_L5_error:;
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
- /* "lxml/etree.pyx":3204
+ /* "lxml/etree.pyx":3207
* doc = _parseMemoryDocument(text, base_url, parser)
* return doc.getroot()
* except _TargetParserResult as result_container: # <<<<<<<<<<<<<<
*
*/
__Pyx_ErrFetch(&__pyx_t_3, &__pyx_t_7, &__pyx_t_8);
- __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_TargetParserResult); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 3204, __pyx_L7_except_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_TargetParserResult); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 3207, __pyx_L7_except_error)
__Pyx_GOTREF(__pyx_t_9);
__pyx_t_10 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_3, __pyx_t_9);
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
__pyx_t_3 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0;
if (__pyx_t_10) {
__Pyx_AddTraceback("lxml.etree.HTML", __pyx_clineno, __pyx_lineno, __pyx_filename);
- if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_7, &__pyx_t_3) < 0) __PYX_ERR(0, 3204, __pyx_L7_except_error)
+ if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_7, &__pyx_t_3) < 0) __PYX_ERR(0, 3207, __pyx_L7_except_error)
__Pyx_GOTREF(__pyx_t_8);
__Pyx_GOTREF(__pyx_t_7);
__Pyx_GOTREF(__pyx_t_3);
__Pyx_INCREF(__pyx_t_7);
__pyx_v_result_container = __pyx_t_7;
- /* "lxml/etree.pyx":3205
+ /* "lxml/etree.pyx":3208
* return doc.getroot()
* except _TargetParserResult as result_container:
* return result_container.result # <<<<<<<<<<<<<<
*
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_result_container, __pyx_n_s_result); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 3205, __pyx_L7_except_error)
+ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_result_container, __pyx_n_s_result); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 3208, __pyx_L7_except_error)
__Pyx_GOTREF(__pyx_t_9);
__pyx_r = __pyx_t_9;
__pyx_t_9 = 0;
goto __pyx_L7_except_error;
__pyx_L7_except_error:;
- /* "lxml/etree.pyx":3201
+ /* "lxml/etree.pyx":3204
* if not isinstance(parser, HTMLParser):
* parser = __DEFAULT_HTML_PARSER
* try: # <<<<<<<<<<<<<<
goto __pyx_L0;
}
- /* "lxml/etree.pyx":3182
+ /* "lxml/etree.pyx":3185
*
*
* def HTML(text, _BaseParser parser=None, *, base_url=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3208
+/* "lxml/etree.pyx":3211
*
*
* def XML(text, _BaseParser parser=None, *, base_url=None): # <<<<<<<<<<<<<<
if (value) { values[index] = value; kw_args--; }
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "XML") < 0)) __PYX_ERR(0, 3208, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "XML") < 0)) __PYX_ERR(0, 3211, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("XML", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3208, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("XML", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3211, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.XML", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return NULL;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_parser), __pyx_ptype_4lxml_5etree__BaseParser, 1, "parser", 0))) __PYX_ERR(0, 3208, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_parser), __pyx_ptype_4lxml_5etree__BaseParser, 1, "parser", 0))) __PYX_ERR(0, 3211, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_20XML(__pyx_self, __pyx_v_text, __pyx_v_parser, __pyx_v_base_url);
/* function exit code */
__Pyx_RefNannySetupContext("XML", 0);
__Pyx_INCREF((PyObject *)__pyx_v_parser);
- /* "lxml/etree.pyx":3228
+ /* "lxml/etree.pyx":3231
* """
* cdef _Document doc
* if parser is None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":3229
+ /* "lxml/etree.pyx":3232
* cdef _Document doc
* if parser is None:
* parser = __GLOBAL_PARSER_CONTEXT.getDefaultParser() # <<<<<<<<<<<<<<
* if not isinstance(parser, XMLParser):
* parser = __DEFAULT_XML_PARSER
*/
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree_24_ParserDictionaryContext_getDefaultParser(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3229, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree_24_ParserDictionaryContext_getDefaultParser(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3232, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF_SET(__pyx_v_parser, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_t_3));
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":3230
+ /* "lxml/etree.pyx":3233
* if parser is None:
* parser = __GLOBAL_PARSER_CONTEXT.getDefaultParser()
* if not isinstance(parser, XMLParser): # <<<<<<<<<<<<<<
__pyx_t_1 = ((!(__pyx_t_2 != 0)) != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":3231
+ /* "lxml/etree.pyx":3234
* parser = __GLOBAL_PARSER_CONTEXT.getDefaultParser()
* if not isinstance(parser, XMLParser):
* parser = __DEFAULT_XML_PARSER # <<<<<<<<<<<<<<
__Pyx_INCREF(((PyObject *)__pyx_v_4lxml_5etree___DEFAULT_XML_PARSER));
__Pyx_DECREF_SET(__pyx_v_parser, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_4lxml_5etree___DEFAULT_XML_PARSER));
- /* "lxml/etree.pyx":3230
+ /* "lxml/etree.pyx":3233
* if parser is None:
* parser = __GLOBAL_PARSER_CONTEXT.getDefaultParser()
* if not isinstance(parser, XMLParser): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3228
+ /* "lxml/etree.pyx":3231
* """
* cdef _Document doc
* if parser is None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3232
+ /* "lxml/etree.pyx":3235
* if not isinstance(parser, XMLParser):
* parser = __DEFAULT_XML_PARSER
* try: # <<<<<<<<<<<<<<
__Pyx_XGOTREF(__pyx_t_6);
/*try:*/ {
- /* "lxml/etree.pyx":3233
+ /* "lxml/etree.pyx":3236
* parser = __DEFAULT_XML_PARSER
* try:
* doc = _parseMemoryDocument(text, base_url, parser) # <<<<<<<<<<<<<<
* return doc.getroot()
* except _TargetParserResult as result_container:
*/
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__parseMemoryDocument(__pyx_v_text, __pyx_v_base_url, __pyx_v_parser)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3233, __pyx_L5_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__parseMemoryDocument(__pyx_v_text, __pyx_v_base_url, __pyx_v_parser)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3236, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_v_doc = ((struct LxmlDocument *)__pyx_t_3);
__pyx_t_3 = 0;
- /* "lxml/etree.pyx":3234
+ /* "lxml/etree.pyx":3237
* try:
* doc = _parseMemoryDocument(text, base_url, parser)
* return doc.getroot() # <<<<<<<<<<<<<<
* return result_container.result
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_3 = __pyx_f_4lxml_5etree_9_Document_getroot(__pyx_v_doc); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3234, __pyx_L5_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree_9_Document_getroot(__pyx_v_doc); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3237, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L9_try_return;
- /* "lxml/etree.pyx":3232
+ /* "lxml/etree.pyx":3235
* if not isinstance(parser, XMLParser):
* parser = __DEFAULT_XML_PARSER
* try: # <<<<<<<<<<<<<<
__pyx_L5_error:;
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
- /* "lxml/etree.pyx":3235
+ /* "lxml/etree.pyx":3238
* doc = _parseMemoryDocument(text, base_url, parser)
* return doc.getroot()
* except _TargetParserResult as result_container: # <<<<<<<<<<<<<<
*
*/
__Pyx_ErrFetch(&__pyx_t_3, &__pyx_t_7, &__pyx_t_8);
- __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_TargetParserResult); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 3235, __pyx_L7_except_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_TargetParserResult); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 3238, __pyx_L7_except_error)
__Pyx_GOTREF(__pyx_t_9);
__pyx_t_10 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_3, __pyx_t_9);
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
__pyx_t_3 = 0; __pyx_t_7 = 0; __pyx_t_8 = 0;
if (__pyx_t_10) {
__Pyx_AddTraceback("lxml.etree.XML", __pyx_clineno, __pyx_lineno, __pyx_filename);
- if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_7, &__pyx_t_3) < 0) __PYX_ERR(0, 3235, __pyx_L7_except_error)
+ if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_7, &__pyx_t_3) < 0) __PYX_ERR(0, 3238, __pyx_L7_except_error)
__Pyx_GOTREF(__pyx_t_8);
__Pyx_GOTREF(__pyx_t_7);
__Pyx_GOTREF(__pyx_t_3);
__Pyx_INCREF(__pyx_t_7);
__pyx_v_result_container = __pyx_t_7;
- /* "lxml/etree.pyx":3236
+ /* "lxml/etree.pyx":3239
* return doc.getroot()
* except _TargetParserResult as result_container:
* return result_container.result # <<<<<<<<<<<<<<
*
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_result_container, __pyx_n_s_result); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 3236, __pyx_L7_except_error)
+ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_result_container, __pyx_n_s_result); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 3239, __pyx_L7_except_error)
__Pyx_GOTREF(__pyx_t_9);
__pyx_r = __pyx_t_9;
__pyx_t_9 = 0;
goto __pyx_L7_except_error;
__pyx_L7_except_error:;
- /* "lxml/etree.pyx":3232
+ /* "lxml/etree.pyx":3235
* if not isinstance(parser, XMLParser):
* parser = __DEFAULT_XML_PARSER
* try: # <<<<<<<<<<<<<<
goto __pyx_L0;
}
- /* "lxml/etree.pyx":3208
+ /* "lxml/etree.pyx":3211
*
*
* def XML(text, _BaseParser parser=None, *, base_url=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3239
+/* "lxml/etree.pyx":3242
*
*
* def fromstring(text, _BaseParser parser=None, *, base_url=None): # <<<<<<<<<<<<<<
if (value) { values[index] = value; kw_args--; }
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "fromstring") < 0)) __PYX_ERR(0, 3239, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "fromstring") < 0)) __PYX_ERR(0, 3242, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("fromstring", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3239, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("fromstring", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3242, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.fromstring", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return NULL;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_parser), __pyx_ptype_4lxml_5etree__BaseParser, 1, "parser", 0))) __PYX_ERR(0, 3239, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_parser), __pyx_ptype_4lxml_5etree__BaseParser, 1, "parser", 0))) __PYX_ERR(0, 3242, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_22fromstring(__pyx_self, __pyx_v_text, __pyx_v_parser, __pyx_v_base_url);
/* function exit code */
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("fromstring", 0);
- /* "lxml/etree.pyx":3253
+ /* "lxml/etree.pyx":3256
* """
* cdef _Document doc
* try: # <<<<<<<<<<<<<<
__Pyx_XGOTREF(__pyx_t_3);
/*try:*/ {
- /* "lxml/etree.pyx":3254
+ /* "lxml/etree.pyx":3257
* cdef _Document doc
* try:
* doc = _parseMemoryDocument(text, base_url, parser) # <<<<<<<<<<<<<<
* return doc.getroot()
* except _TargetParserResult as result_container:
*/
- __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree__parseMemoryDocument(__pyx_v_text, __pyx_v_base_url, __pyx_v_parser)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3254, __pyx_L3_error)
+ __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree__parseMemoryDocument(__pyx_v_text, __pyx_v_base_url, __pyx_v_parser)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3257, __pyx_L3_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_v_doc = ((struct LxmlDocument *)__pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":3255
+ /* "lxml/etree.pyx":3258
* try:
* doc = _parseMemoryDocument(text, base_url, parser)
* return doc.getroot() # <<<<<<<<<<<<<<
* return result_container.result
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = __pyx_f_4lxml_5etree_9_Document_getroot(__pyx_v_doc); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3255, __pyx_L3_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree_9_Document_getroot(__pyx_v_doc); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3258, __pyx_L3_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_r = __pyx_t_4;
__pyx_t_4 = 0;
goto __pyx_L7_try_return;
- /* "lxml/etree.pyx":3253
+ /* "lxml/etree.pyx":3256
* """
* cdef _Document doc
* try: # <<<<<<<<<<<<<<
__pyx_L3_error:;
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "lxml/etree.pyx":3256
+ /* "lxml/etree.pyx":3259
* doc = _parseMemoryDocument(text, base_url, parser)
* return doc.getroot()
* except _TargetParserResult as result_container: # <<<<<<<<<<<<<<
*
*/
__Pyx_ErrFetch(&__pyx_t_4, &__pyx_t_5, &__pyx_t_6);
- __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_TargetParserResult); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3256, __pyx_L5_except_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_TargetParserResult); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3259, __pyx_L5_except_error)
__Pyx_GOTREF(__pyx_t_7);
__pyx_t_8 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_4, __pyx_t_7);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__pyx_t_4 = 0; __pyx_t_5 = 0; __pyx_t_6 = 0;
if (__pyx_t_8) {
__Pyx_AddTraceback("lxml.etree.fromstring", __pyx_clineno, __pyx_lineno, __pyx_filename);
- if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_4) < 0) __PYX_ERR(0, 3256, __pyx_L5_except_error)
+ if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_4) < 0) __PYX_ERR(0, 3259, __pyx_L5_except_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_GOTREF(__pyx_t_5);
__Pyx_GOTREF(__pyx_t_4);
__Pyx_INCREF(__pyx_t_5);
__pyx_v_result_container = __pyx_t_5;
- /* "lxml/etree.pyx":3257
+ /* "lxml/etree.pyx":3260
* return doc.getroot()
* except _TargetParserResult as result_container:
* return result_container.result # <<<<<<<<<<<<<<
*
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_result_container, __pyx_n_s_result); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3257, __pyx_L5_except_error)
+ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_result_container, __pyx_n_s_result); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3260, __pyx_L5_except_error)
__Pyx_GOTREF(__pyx_t_7);
__pyx_r = __pyx_t_7;
__pyx_t_7 = 0;
goto __pyx_L5_except_error;
__pyx_L5_except_error:;
- /* "lxml/etree.pyx":3253
+ /* "lxml/etree.pyx":3256
* """
* cdef _Document doc
* try: # <<<<<<<<<<<<<<
goto __pyx_L0;
}
- /* "lxml/etree.pyx":3239
+ /* "lxml/etree.pyx":3242
*
*
* def fromstring(text, _BaseParser parser=None, *, base_url=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3260
+/* "lxml/etree.pyx":3263
*
*
* def fromstringlist(strings, _BaseParser parser=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "fromstringlist") < 0)) __PYX_ERR(0, 3260, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "fromstringlist") < 0)) __PYX_ERR(0, 3263, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("fromstringlist", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3260, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("fromstringlist", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3263, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.fromstringlist", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return NULL;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_parser), __pyx_ptype_4lxml_5etree__BaseParser, 1, "parser", 0))) __PYX_ERR(0, 3260, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_parser), __pyx_ptype_4lxml_5etree__BaseParser, 1, "parser", 0))) __PYX_ERR(0, 3263, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_24fromstringlist(__pyx_self, __pyx_v_strings, __pyx_v_parser);
/* function exit code */
__Pyx_RefNannySetupContext("fromstringlist", 0);
__Pyx_INCREF((PyObject *)__pyx_v_parser);
- /* "lxml/etree.pyx":3270
+ /* "lxml/etree.pyx":3273
* """
* cdef _Document doc
* if isinstance(strings, (bytes, unicode)): # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":3271
+ /* "lxml/etree.pyx":3274
* cdef _Document doc
* if isinstance(strings, (bytes, unicode)):
* raise ValueError("passing a single string into fromstringlist() is not" # <<<<<<<<<<<<<<
* " efficient, use fromstring() instead")
* if parser is None:
*/
- __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__50, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3271, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__50, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3274, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_Raise(__pyx_t_4, 0, 0, 0);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- __PYX_ERR(0, 3271, __pyx_L1_error)
+ __PYX_ERR(0, 3274, __pyx_L1_error)
- /* "lxml/etree.pyx":3270
+ /* "lxml/etree.pyx":3273
* """
* cdef _Document doc
* if isinstance(strings, (bytes, unicode)): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3273
+ /* "lxml/etree.pyx":3276
* raise ValueError("passing a single string into fromstringlist() is not"
* " efficient, use fromstring() instead")
* if parser is None: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_t_2 != 0);
if (__pyx_t_1) {
- /* "lxml/etree.pyx":3274
+ /* "lxml/etree.pyx":3277
* " efficient, use fromstring() instead")
* if parser is None:
* parser = __GLOBAL_PARSER_CONTEXT.getDefaultParser() # <<<<<<<<<<<<<<
* feed = parser.feed
* for data in strings:
*/
- __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree_24_ParserDictionaryContext_getDefaultParser(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3274, __pyx_L1_error)
+ __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree_24_ParserDictionaryContext_getDefaultParser(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3277, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF_SET(__pyx_v_parser, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_t_4));
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":3273
+ /* "lxml/etree.pyx":3276
* raise ValueError("passing a single string into fromstringlist() is not"
* " efficient, use fromstring() instead")
* if parser is None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3275
+ /* "lxml/etree.pyx":3278
* if parser is None:
* parser = __GLOBAL_PARSER_CONTEXT.getDefaultParser()
* feed = parser.feed # <<<<<<<<<<<<<<
* for data in strings:
* feed(data)
*/
- __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_parser), __pyx_n_s_feed); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3275, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_parser), __pyx_n_s_feed); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3278, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_v_feed = __pyx_t_4;
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":3276
+ /* "lxml/etree.pyx":3279
* parser = __GLOBAL_PARSER_CONTEXT.getDefaultParser()
* feed = parser.feed
* for data in strings: # <<<<<<<<<<<<<<
__pyx_t_4 = __pyx_v_strings; __Pyx_INCREF(__pyx_t_4); __pyx_t_5 = 0;
__pyx_t_6 = NULL;
} else {
- __pyx_t_5 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_strings); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3276, __pyx_L1_error)
+ __pyx_t_5 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_v_strings); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3279, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
- __pyx_t_6 = Py_TYPE(__pyx_t_4)->tp_iternext; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3276, __pyx_L1_error)
+ __pyx_t_6 = Py_TYPE(__pyx_t_4)->tp_iternext; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3279, __pyx_L1_error)
}
for (;;) {
if (likely(!__pyx_t_6)) {
if (likely(PyList_CheckExact(__pyx_t_4))) {
if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_4)) break;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
- __pyx_t_7 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_7); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(0, 3276, __pyx_L1_error)
+ __pyx_t_7 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_7); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(0, 3279, __pyx_L1_error)
#else
- __pyx_t_7 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3276, __pyx_L1_error)
+ __pyx_t_7 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3279, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
#endif
} else {
if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_4)) break;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
- __pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_7); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(0, 3276, __pyx_L1_error)
+ __pyx_t_7 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_7); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(0, 3279, __pyx_L1_error)
#else
- __pyx_t_7 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3276, __pyx_L1_error)
+ __pyx_t_7 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3279, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
#endif
}
PyObject* exc_type = PyErr_Occurred();
if (exc_type) {
if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
- else __PYX_ERR(0, 3276, __pyx_L1_error)
+ else __PYX_ERR(0, 3279, __pyx_L1_error)
}
break;
}
__Pyx_XDECREF_SET(__pyx_v_data, __pyx_t_7);
__pyx_t_7 = 0;
- /* "lxml/etree.pyx":3277
+ /* "lxml/etree.pyx":3280
* feed = parser.feed
* for data in strings:
* feed(data) # <<<<<<<<<<<<<<
}
__pyx_t_7 = (__pyx_t_9) ? __Pyx_PyObject_Call2Args(__pyx_t_8, __pyx_t_9, __pyx_v_data) : __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_v_data);
__Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
- if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3277, __pyx_L1_error)
+ if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3280, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- /* "lxml/etree.pyx":3276
+ /* "lxml/etree.pyx":3279
* parser = __GLOBAL_PARSER_CONTEXT.getDefaultParser()
* feed = parser.feed
* for data in strings: # <<<<<<<<<<<<<<
}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "lxml/etree.pyx":3278
+ /* "lxml/etree.pyx":3281
* for data in strings:
* feed(data)
* return parser.close() # <<<<<<<<<<<<<<
*
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_parser), __pyx_n_s_close); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3278, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_parser), __pyx_n_s_close); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3281, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__pyx_t_8 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_7))) {
}
__pyx_t_4 = (__pyx_t_8) ? __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_t_8) : __Pyx_PyObject_CallNoArg(__pyx_t_7);
__Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
- if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3278, __pyx_L1_error)
+ if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3281, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__pyx_r = __pyx_t_4;
__pyx_t_4 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":3260
+ /* "lxml/etree.pyx":3263
*
*
* def fromstringlist(strings, _BaseParser parser=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3281
+/* "lxml/etree.pyx":3284
*
*
* def iselement(element): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("iselement", 0);
- /* "lxml/etree.pyx":3286
+ /* "lxml/etree.pyx":3289
* Checks if an object appears to be a valid element object.
* """
* return isinstance(element, _Element) and (<_Element>element)._c_node is not NULL # <<<<<<<<<<<<<<
__pyx_t_2 = __Pyx_TypeCheck(__pyx_v_element, __pyx_ptype_4lxml_5etree__Element);
if (__pyx_t_2) {
} else {
- __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3286, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3289, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_1 = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L3_bool_binop_done;
}
__pyx_t_2 = (((struct LxmlElement *)__pyx_v_element)->_c_node != NULL);
- __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3286, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3289, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_1 = __pyx_t_3;
__pyx_t_3 = 0;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":3281
+ /* "lxml/etree.pyx":3284
*
*
* def iselement(element): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3289
+/* "lxml/etree.pyx":3292
*
*
* def indent(tree, space=" ", *, Py_ssize_t level=0): # <<<<<<<<<<<<<<
if (value) { values[index] = value; kw_args--; }
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "indent") < 0)) __PYX_ERR(0, 3289, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "indent") < 0)) __PYX_ERR(0, 3292, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
__pyx_v_tree = values[0];
__pyx_v_space = values[1];
if (values[2]) {
- __pyx_v_level = __Pyx_PyIndex_AsSsize_t(values[2]); if (unlikely((__pyx_v_level == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 3289, __pyx_L3_error)
+ __pyx_v_level = __Pyx_PyIndex_AsSsize_t(values[2]); if (unlikely((__pyx_v_level == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 3292, __pyx_L3_error)
} else {
__pyx_v_level = ((Py_ssize_t)((Py_ssize_t)0));
}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("indent", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3289, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("indent", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3292, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.indent", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
__Pyx_RefNannySetupContext("indent", 0);
__Pyx_INCREF(__pyx_v_space);
- /* "lxml/etree.pyx":3306
+ /* "lxml/etree.pyx":3309
* nested inside of a document.
* """
* root = _rootNodeOrRaise(tree) # <<<<<<<<<<<<<<
* if level < 0:
* raise ValueError(f"Initial indentation level must be >= 0, got {level}")
*/
- __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__rootNodeOrRaise(__pyx_v_tree)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3306, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__rootNodeOrRaise(__pyx_v_tree)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3309, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_v_root = ((struct LxmlElement *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":3307
+ /* "lxml/etree.pyx":3310
* """
* root = _rootNodeOrRaise(tree)
* if level < 0: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_level < 0) != 0);
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":3308
+ /* "lxml/etree.pyx":3311
* root = _rootNodeOrRaise(tree)
* if level < 0:
* raise ValueError(f"Initial indentation level must be >= 0, got {level}") # <<<<<<<<<<<<<<
* if _hasChild(root._c_node):
* space = _utf8(space)
*/
- __pyx_t_1 = __Pyx_PyUnicode_From_Py_ssize_t(__pyx_v_level, 0, ' ', 'd'); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3308, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyUnicode_From_Py_ssize_t(__pyx_v_level, 0, ' ', 'd'); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3311, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Initial_indentation_level_must_b, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3308, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Initial_indentation_level_must_b, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3311, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3308, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3311, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_Raise(__pyx_t_1, 0, 0, 0);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __PYX_ERR(0, 3308, __pyx_L1_error)
+ __PYX_ERR(0, 3311, __pyx_L1_error)
- /* "lxml/etree.pyx":3307
+ /* "lxml/etree.pyx":3310
* """
* root = _rootNodeOrRaise(tree)
* if level < 0: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3309
+ /* "lxml/etree.pyx":3312
* if level < 0:
* raise ValueError(f"Initial indentation level must be >= 0, got {level}")
* if _hasChild(root._c_node): # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_f_4lxml_5etree__hasChild(__pyx_v_root->_c_node) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":3310
+ /* "lxml/etree.pyx":3313
* raise ValueError(f"Initial indentation level must be >= 0, got {level}")
* if _hasChild(root._c_node):
* space = _utf8(space) # <<<<<<<<<<<<<<
* indent = b"\n" + level * space
* _indent_children(root._c_node, 1, space, [indent, indent + space])
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__utf8(__pyx_v_space); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3310, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__utf8(__pyx_v_space); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3313, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF_SET(__pyx_v_space, __pyx_t_1);
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":3311
+ /* "lxml/etree.pyx":3314
* if _hasChild(root._c_node):
* space = _utf8(space)
* indent = b"\n" + level * space # <<<<<<<<<<<<<<
* _indent_children(root._c_node, 1, space, [indent, indent + space])
*
*/
- __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_level); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3311, __pyx_L1_error)
+ __pyx_t_1 = PyInt_FromSsize_t(__pyx_v_level); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3314, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_3 = PyNumber_Multiply(__pyx_t_1, __pyx_v_space); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3311, __pyx_L1_error)
+ __pyx_t_3 = PyNumber_Multiply(__pyx_t_1, __pyx_v_space); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3314, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __pyx_t_1 = PyNumber_Add(__pyx_kp_b__19, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3311, __pyx_L1_error)
+ __pyx_t_1 = PyNumber_Add(__pyx_kp_b__19, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3314, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_v_indent = __pyx_t_1;
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":3312
+ /* "lxml/etree.pyx":3315
* space = _utf8(space)
* indent = b"\n" + level * space
* _indent_children(root._c_node, 1, space, [indent, indent + space]) # <<<<<<<<<<<<<<
*
*
*/
- if (!(likely(PyBytes_CheckExact(__pyx_v_space))||((__pyx_v_space) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_space)->tp_name), 0))) __PYX_ERR(0, 3312, __pyx_L1_error)
- __pyx_t_1 = PyNumber_Add(__pyx_v_indent, __pyx_v_space); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3312, __pyx_L1_error)
+ if (!(likely(PyBytes_CheckExact(__pyx_v_space))||((__pyx_v_space) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_space)->tp_name), 0))) __PYX_ERR(0, 3315, __pyx_L1_error)
+ __pyx_t_1 = PyNumber_Add(__pyx_v_indent, __pyx_v_space); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3315, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_3 = PyList_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3312, __pyx_L1_error)
+ __pyx_t_3 = PyList_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3315, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_INCREF(__pyx_v_indent);
__Pyx_GIVEREF(__pyx_v_indent);
__Pyx_GIVEREF(__pyx_t_1);
PyList_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
__pyx_t_1 = 0;
- __pyx_t_4 = __pyx_f_4lxml_5etree__indent_children(__pyx_v_root->_c_node, 1, ((PyObject*)__pyx_v_space), ((PyObject*)__pyx_t_3)); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 3312, __pyx_L1_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree__indent_children(__pyx_v_root->_c_node, 1, ((PyObject*)__pyx_v_space), ((PyObject*)__pyx_t_3)); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(0, 3315, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- /* "lxml/etree.pyx":3309
+ /* "lxml/etree.pyx":3312
* if level < 0:
* raise ValueError(f"Initial indentation level must be >= 0, got {level}")
* if _hasChild(root._c_node): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3289
+ /* "lxml/etree.pyx":3292
*
*
* def indent(tree, space=" ", *, Py_ssize_t level=0): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3315
+/* "lxml/etree.pyx":3318
*
*
* cdef int _indent_children(xmlNode* c_node, Py_ssize_t level, bytes one_space, list indentations) except -1: # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_indent_children", 0);
- /* "lxml/etree.pyx":3317
+ /* "lxml/etree.pyx":3320
* cdef int _indent_children(xmlNode* c_node, Py_ssize_t level, bytes one_space, list indentations) except -1:
* # Reuse indentation strings for speed.
* if len(indentations) <= level: # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_v_indentations == Py_None)) {
PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
- __PYX_ERR(0, 3317, __pyx_L1_error)
+ __PYX_ERR(0, 3320, __pyx_L1_error)
}
- __pyx_t_1 = PyList_GET_SIZE(__pyx_v_indentations); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 3317, __pyx_L1_error)
+ __pyx_t_1 = PyList_GET_SIZE(__pyx_v_indentations); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 3320, __pyx_L1_error)
__pyx_t_2 = ((__pyx_t_1 <= __pyx_v_level) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":3318
+ /* "lxml/etree.pyx":3321
* # Reuse indentation strings for speed.
* if len(indentations) <= level:
* indentations.append(indentations[-1] + one_space) # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_v_indentations == Py_None)) {
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "append");
- __PYX_ERR(0, 3318, __pyx_L1_error)
+ __PYX_ERR(0, 3321, __pyx_L1_error)
}
if (unlikely(__pyx_v_indentations == Py_None)) {
PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
- __PYX_ERR(0, 3318, __pyx_L1_error)
+ __PYX_ERR(0, 3321, __pyx_L1_error)
}
- __pyx_t_3 = __Pyx_GetItemInt_List(__pyx_v_indentations, -1L, long, 1, __Pyx_PyInt_From_long, 1, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3318, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_GetItemInt_List(__pyx_v_indentations, -1L, long, 1, __Pyx_PyInt_From_long, 1, 1, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3321, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_4 = PyNumber_Add(__pyx_t_3, __pyx_v_one_space); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3318, __pyx_L1_error)
+ __pyx_t_4 = PyNumber_Add(__pyx_t_3, __pyx_v_one_space); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3321, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_indentations, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 3318, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_indentations, __pyx_t_4); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 3321, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "lxml/etree.pyx":3317
+ /* "lxml/etree.pyx":3320
* cdef int _indent_children(xmlNode* c_node, Py_ssize_t level, bytes one_space, list indentations) except -1:
* # Reuse indentation strings for speed.
* if len(indentations) <= level: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3321
+ /* "lxml/etree.pyx":3324
*
* # Start a new indentation level for the first child.
* child_indentation = indentations[level] # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_v_indentations == Py_None)) {
PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
- __PYX_ERR(0, 3321, __pyx_L1_error)
+ __PYX_ERR(0, 3324, __pyx_L1_error)
}
- __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_indentations, __pyx_v_level, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3321, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_indentations, __pyx_v_level, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3324, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_v_child_indentation = __pyx_t_4;
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":3322
+ /* "lxml/etree.pyx":3325
* # Start a new indentation level for the first child.
* child_indentation = indentations[level]
* if not _hasNonWhitespaceText(c_node): # <<<<<<<<<<<<<<
__pyx_t_2 = ((!(__pyx_f_4lxml_5etree__hasNonWhitespaceText(__pyx_v_c_node, NULL) != 0)) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":3323
+ /* "lxml/etree.pyx":3326
* child_indentation = indentations[level]
* if not _hasNonWhitespaceText(c_node):
* _setNodeText(c_node, child_indentation) # <<<<<<<<<<<<<<
*
* # Recursively indent all children.
*/
- __pyx_t_6 = __pyx_f_4lxml_5etree__setNodeText(__pyx_v_c_node, __pyx_v_child_indentation); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 3323, __pyx_L1_error)
+ __pyx_t_6 = __pyx_f_4lxml_5etree__setNodeText(__pyx_v_c_node, __pyx_v_child_indentation); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 3326, __pyx_L1_error)
- /* "lxml/etree.pyx":3322
+ /* "lxml/etree.pyx":3325
* # Start a new indentation level for the first child.
* child_indentation = indentations[level]
* if not _hasNonWhitespaceText(c_node): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3326
+ /* "lxml/etree.pyx":3329
*
* # Recursively indent all children.
* cdef xmlNode* c_child = _findChildForwards(c_node, 0) # <<<<<<<<<<<<<<
*/
__pyx_v_c_child = __pyx_f_4lxml_5etree__findChildForwards(__pyx_v_c_node, 0);
- /* "lxml/etree.pyx":3327
+ /* "lxml/etree.pyx":3330
* # Recursively indent all children.
* cdef xmlNode* c_child = _findChildForwards(c_node, 0)
* while c_child is not NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_child != NULL) != 0);
if (!__pyx_t_2) break;
- /* "lxml/etree.pyx":3328
+ /* "lxml/etree.pyx":3331
* cdef xmlNode* c_child = _findChildForwards(c_node, 0)
* while c_child is not NULL:
* if _hasChild(c_child): # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_f_4lxml_5etree__hasChild(__pyx_v_c_child) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":3329
+ /* "lxml/etree.pyx":3332
* while c_child is not NULL:
* if _hasChild(c_child):
* _indent_children(c_child, level+1, one_space, indentations) # <<<<<<<<<<<<<<
* c_next_child = _nextElement(c_child)
* if not _hasNonWhitespaceTail(c_child):
*/
- __pyx_t_6 = __pyx_f_4lxml_5etree__indent_children(__pyx_v_c_child, (__pyx_v_level + 1), __pyx_v_one_space, __pyx_v_indentations); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 3329, __pyx_L1_error)
+ __pyx_t_6 = __pyx_f_4lxml_5etree__indent_children(__pyx_v_c_child, (__pyx_v_level + 1), __pyx_v_one_space, __pyx_v_indentations); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 3332, __pyx_L1_error)
- /* "lxml/etree.pyx":3328
+ /* "lxml/etree.pyx":3331
* cdef xmlNode* c_child = _findChildForwards(c_node, 0)
* while c_child is not NULL:
* if _hasChild(c_child): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3330
+ /* "lxml/etree.pyx":3333
* if _hasChild(c_child):
* _indent_children(c_child, level+1, one_space, indentations)
* c_next_child = _nextElement(c_child) # <<<<<<<<<<<<<<
*/
__pyx_v_c_next_child = __pyx_f_4lxml_5etree__nextElement(__pyx_v_c_child);
- /* "lxml/etree.pyx":3331
+ /* "lxml/etree.pyx":3334
* _indent_children(c_child, level+1, one_space, indentations)
* c_next_child = _nextElement(c_child)
* if not _hasNonWhitespaceTail(c_child): # <<<<<<<<<<<<<<
__pyx_t_2 = ((!(__pyx_f_4lxml_5etree__hasNonWhitespaceTail(__pyx_v_c_child) != 0)) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":3332
+ /* "lxml/etree.pyx":3335
* c_next_child = _nextElement(c_child)
* if not _hasNonWhitespaceTail(c_child):
* if c_next_child is NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_next_child == NULL) != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":3334
+ /* "lxml/etree.pyx":3337
* if c_next_child is NULL:
* # Dedent after the last child.
* child_indentation = indentations[level-1] # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_v_indentations == Py_None)) {
PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
- __PYX_ERR(0, 3334, __pyx_L1_error)
+ __PYX_ERR(0, 3337, __pyx_L1_error)
}
__pyx_t_1 = (__pyx_v_level - 1);
- __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_indentations, __pyx_t_1, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3334, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_GetItemInt_List(__pyx_v_indentations, __pyx_t_1, Py_ssize_t, 1, PyInt_FromSsize_t, 1, 1, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3337, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF_SET(__pyx_v_child_indentation, __pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":3332
+ /* "lxml/etree.pyx":3335
* c_next_child = _nextElement(c_child)
* if not _hasNonWhitespaceTail(c_child):
* if c_next_child is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3335
+ /* "lxml/etree.pyx":3338
* # Dedent after the last child.
* child_indentation = indentations[level-1]
* _setTailText(c_child, child_indentation) # <<<<<<<<<<<<<<
* c_child = c_next_child
* return 0
*/
- __pyx_t_6 = __pyx_f_4lxml_5etree__setTailText(__pyx_v_c_child, __pyx_v_child_indentation); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 3335, __pyx_L1_error)
+ __pyx_t_6 = __pyx_f_4lxml_5etree__setTailText(__pyx_v_c_child, __pyx_v_child_indentation); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(0, 3338, __pyx_L1_error)
- /* "lxml/etree.pyx":3331
+ /* "lxml/etree.pyx":3334
* _indent_children(c_child, level+1, one_space, indentations)
* c_next_child = _nextElement(c_child)
* if not _hasNonWhitespaceTail(c_child): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3336
+ /* "lxml/etree.pyx":3339
* child_indentation = indentations[level-1]
* _setTailText(c_child, child_indentation)
* c_child = c_next_child # <<<<<<<<<<<<<<
__pyx_v_c_child = __pyx_v_c_next_child;
}
- /* "lxml/etree.pyx":3337
+ /* "lxml/etree.pyx":3340
* _setTailText(c_child, child_indentation)
* c_child = c_next_child
* return 0 # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":3315
+ /* "lxml/etree.pyx":3318
*
*
* cdef int _indent_children(xmlNode* c_node, Py_ssize_t level, bytes one_space, list indentations) except -1: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3340
+/* "lxml/etree.pyx":3343
*
*
* def dump(_Element elem not None, *, bint pretty_print=True, with_tail=True): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "dump") < 0)) __PYX_ERR(0, 3340, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "dump") < 0)) __PYX_ERR(0, 3343, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
goto __pyx_L5_argtuple_error;
}
__pyx_v_elem = ((struct LxmlElement *)values[0]);
if (values[1]) {
- __pyx_v_pretty_print = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_pretty_print == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3340, __pyx_L3_error)
+ __pyx_v_pretty_print = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_pretty_print == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3343, __pyx_L3_error)
} else {
__pyx_v_pretty_print = ((int)((int)1));
}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("dump", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3340, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("dump", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3343, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.dump", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return NULL;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elem), __pyx_ptype_4lxml_5etree__Element, 0, "elem", 0))) __PYX_ERR(0, 3340, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_elem), __pyx_ptype_4lxml_5etree__Element, 0, "elem", 0))) __PYX_ERR(0, 3343, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_30dump(__pyx_self, __pyx_v_elem, __pyx_v_pretty_print, __pyx_v_with_tail);
/* function exit code */
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("dump", 0);
- /* "lxml/etree.pyx":3346
+ /* "lxml/etree.pyx":3349
* should be used for debugging only.
* """
* xml = tostring(elem, pretty_print=pretty_print, with_tail=with_tail, # <<<<<<<<<<<<<<
* encoding=None if python.IS_PYTHON2 else 'unicode')
* if not pretty_print:
*/
- __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_tostring); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3346, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_tostring); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3349, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3346, __pyx_L1_error)
+ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3349, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_INCREF(((PyObject *)__pyx_v_elem));
__Pyx_GIVEREF(((PyObject *)__pyx_v_elem));
PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_elem));
- __pyx_t_3 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3346, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyDict_NewPresized(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3349, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_pretty_print); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3346, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyBool_FromLong(__pyx_v_pretty_print); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3349, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_pretty_print, __pyx_t_4) < 0) __PYX_ERR(0, 3346, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_pretty_print, __pyx_t_4) < 0) __PYX_ERR(0, 3349, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_with_tail, __pyx_v_with_tail) < 0) __PYX_ERR(0, 3346, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_with_tail, __pyx_v_with_tail) < 0) __PYX_ERR(0, 3349, __pyx_L1_error)
- /* "lxml/etree.pyx":3347
+ /* "lxml/etree.pyx":3350
* """
* xml = tostring(elem, pretty_print=pretty_print, with_tail=with_tail,
* encoding=None if python.IS_PYTHON2 else 'unicode') # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_n_s_unicode);
__pyx_t_4 = __pyx_n_s_unicode;
}
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_encoding, __pyx_t_4) < 0) __PYX_ERR(0, 3346, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_encoding, __pyx_t_4) < 0) __PYX_ERR(0, 3349, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "lxml/etree.pyx":3346
+ /* "lxml/etree.pyx":3349
* should be used for debugging only.
* """
* xml = tostring(elem, pretty_print=pretty_print, with_tail=with_tail, # <<<<<<<<<<<<<<
* encoding=None if python.IS_PYTHON2 else 'unicode')
* if not pretty_print:
*/
- __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3346, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3349, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_v_xml = __pyx_t_4;
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":3348
+ /* "lxml/etree.pyx":3351
* xml = tostring(elem, pretty_print=pretty_print, with_tail=with_tail,
* encoding=None if python.IS_PYTHON2 else 'unicode')
* if not pretty_print: # <<<<<<<<<<<<<<
__pyx_t_5 = ((!(__pyx_v_pretty_print != 0)) != 0);
if (__pyx_t_5) {
- /* "lxml/etree.pyx":3349
+ /* "lxml/etree.pyx":3352
* encoding=None if python.IS_PYTHON2 else 'unicode')
* if not pretty_print:
* xml += '\n' # <<<<<<<<<<<<<<
* sys.stdout.write(xml)
*
*/
- __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_xml, __pyx_kp_s__19); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3349, __pyx_L1_error)
+ __pyx_t_4 = PyNumber_InPlaceAdd(__pyx_v_xml, __pyx_kp_s__19); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3352, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF_SET(__pyx_v_xml, __pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":3348
+ /* "lxml/etree.pyx":3351
* xml = tostring(elem, pretty_print=pretty_print, with_tail=with_tail,
* encoding=None if python.IS_PYTHON2 else 'unicode')
* if not pretty_print: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3350
+ /* "lxml/etree.pyx":3353
* if not pretty_print:
* xml += '\n'
* sys.stdout.write(xml) # <<<<<<<<<<<<<<
*
*
*/
- __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_sys, __pyx_n_s_stdout); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3350, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_sys, __pyx_n_s_stdout); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3353, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_write); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3350, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_write); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3353, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_3 = NULL;
}
__pyx_t_4 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_v_xml) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_xml);
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
- if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3350, __pyx_L1_error)
+ if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3353, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "lxml/etree.pyx":3340
+ /* "lxml/etree.pyx":3343
*
*
* def dump(_Element elem not None, *, bint pretty_print=True, with_tail=True): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3353
+/* "lxml/etree.pyx":3356
*
*
* def tostring(element_or_tree, *, encoding=None, method="xml", # <<<<<<<<<<<<<<
values[1] = ((PyObject *)((PyObject *)Py_None));
values[2] = ((PyObject *)((PyObject*)__pyx_n_s_xml));
- /* "lxml/etree.pyx":3354
+ /* "lxml/etree.pyx":3357
*
* def tostring(element_or_tree, *, encoding=None, method="xml",
* xml_declaration=None, bint pretty_print=False, bint with_tail=True, # <<<<<<<<<<<<<<
*/
values[3] = ((PyObject *)((PyObject *)Py_None));
- /* "lxml/etree.pyx":3355
+ /* "lxml/etree.pyx":3358
* def tostring(element_or_tree, *, encoding=None, method="xml",
* xml_declaration=None, bint pretty_print=False, bint with_tail=True,
* standalone=None, doctype=None, # <<<<<<<<<<<<<<
values[6] = ((PyObject *)((PyObject *)Py_None));
values[7] = ((PyObject *)((PyObject *)Py_None));
- /* "lxml/etree.pyx":3357
+ /* "lxml/etree.pyx":3360
* standalone=None, doctype=None,
* # method='c14n'
* bint exclusive=False, inclusive_ns_prefixes=None, # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "tostring") < 0)) __PYX_ERR(0, 3353, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "tostring") < 0)) __PYX_ERR(0, 3356, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
goto __pyx_L5_argtuple_error;
__pyx_v_method = values[2];
__pyx_v_xml_declaration = values[3];
if (values[4]) {
- __pyx_v_pretty_print = __Pyx_PyObject_IsTrue(values[4]); if (unlikely((__pyx_v_pretty_print == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3354, __pyx_L3_error)
+ __pyx_v_pretty_print = __Pyx_PyObject_IsTrue(values[4]); if (unlikely((__pyx_v_pretty_print == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3357, __pyx_L3_error)
} else {
- /* "lxml/etree.pyx":3354
+ /* "lxml/etree.pyx":3357
*
* def tostring(element_or_tree, *, encoding=None, method="xml",
* xml_declaration=None, bint pretty_print=False, bint with_tail=True, # <<<<<<<<<<<<<<
__pyx_v_pretty_print = ((int)((int)0));
}
if (values[5]) {
- __pyx_v_with_tail = __Pyx_PyObject_IsTrue(values[5]); if (unlikely((__pyx_v_with_tail == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3354, __pyx_L3_error)
+ __pyx_v_with_tail = __Pyx_PyObject_IsTrue(values[5]); if (unlikely((__pyx_v_with_tail == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3357, __pyx_L3_error)
} else {
__pyx_v_with_tail = ((int)((int)1));
}
__pyx_v_standalone = values[6];
__pyx_v_doctype = values[7];
if (values[8]) {
- __pyx_v_exclusive = __Pyx_PyObject_IsTrue(values[8]); if (unlikely((__pyx_v_exclusive == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3357, __pyx_L3_error)
+ __pyx_v_exclusive = __Pyx_PyObject_IsTrue(values[8]); if (unlikely((__pyx_v_exclusive == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3360, __pyx_L3_error)
} else {
- /* "lxml/etree.pyx":3357
+ /* "lxml/etree.pyx":3360
* standalone=None, doctype=None,
* # method='c14n'
* bint exclusive=False, inclusive_ns_prefixes=None, # <<<<<<<<<<<<<<
}
__pyx_v_inclusive_ns_prefixes = values[9];
if (values[10]) {
- __pyx_v_with_comments = __Pyx_PyObject_IsTrue(values[10]); if (unlikely((__pyx_v_with_comments == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3359, __pyx_L3_error)
+ __pyx_v_with_comments = __Pyx_PyObject_IsTrue(values[10]); if (unlikely((__pyx_v_with_comments == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3362, __pyx_L3_error)
} else {
- /* "lxml/etree.pyx":3359
+ /* "lxml/etree.pyx":3362
* bint exclusive=False, inclusive_ns_prefixes=None,
* # method='c14n2'
* bint with_comments=True, bint strip_text=False, # <<<<<<<<<<<<<<
__pyx_v_with_comments = ((int)((int)1));
}
if (values[11]) {
- __pyx_v_strip_text = __Pyx_PyObject_IsTrue(values[11]); if (unlikely((__pyx_v_strip_text == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3359, __pyx_L3_error)
+ __pyx_v_strip_text = __Pyx_PyObject_IsTrue(values[11]); if (unlikely((__pyx_v_strip_text == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3362, __pyx_L3_error)
} else {
__pyx_v_strip_text = ((int)((int)0));
}
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("tostring", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3353, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("tostring", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3356, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.tostring", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
__pyx_L4_argument_unpacking_done:;
__pyx_r = __pyx_pf_4lxml_5etree_32tostring(__pyx_self, __pyx_v_element_or_tree, __pyx_v_encoding, __pyx_v_method, __pyx_v_xml_declaration, __pyx_v_pretty_print, __pyx_v_with_tail, __pyx_v_standalone, __pyx_v_doctype, __pyx_v_exclusive, __pyx_v_inclusive_ns_prefixes, __pyx_v_with_comments, __pyx_v_strip_text);
- /* "lxml/etree.pyx":3353
+ /* "lxml/etree.pyx":3356
*
*
* def tostring(element_or_tree, *, encoding=None, method="xml", # <<<<<<<<<<<<<<
__Pyx_RefNannySetupContext("tostring", 0);
__Pyx_INCREF(__pyx_v_encoding);
- /* "lxml/etree.pyx":3412
+ /* "lxml/etree.pyx":3415
* cdef int is_standalone
* # C14N serialisation
* if method in ('c14n', 'c14n2'): # <<<<<<<<<<<<<<
*/
__Pyx_INCREF(__pyx_v_method);
__pyx_t_1 = __pyx_v_method;
- __pyx_t_3 = (__Pyx_PyString_Equals(__pyx_t_1, __pyx_n_s_c14n, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 3412, __pyx_L1_error)
+ __pyx_t_3 = (__Pyx_PyString_Equals(__pyx_t_1, __pyx_n_s_c14n, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 3415, __pyx_L1_error)
if (!__pyx_t_3) {
} else {
__pyx_t_2 = __pyx_t_3;
goto __pyx_L4_bool_binop_done;
}
- __pyx_t_3 = (__Pyx_PyString_Equals(__pyx_t_1, __pyx_n_s_c14n2, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 3412, __pyx_L1_error)
+ __pyx_t_3 = (__Pyx_PyString_Equals(__pyx_t_1, __pyx_n_s_c14n2, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 3415, __pyx_L1_error)
__pyx_t_2 = __pyx_t_3;
__pyx_L4_bool_binop_done:;
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_3 = (__pyx_t_2 != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":3413
+ /* "lxml/etree.pyx":3416
* # C14N serialisation
* if method in ('c14n', 'c14n2'):
* if encoding is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_3 != 0);
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":3414
+ /* "lxml/etree.pyx":3417
* if method in ('c14n', 'c14n2'):
* if encoding is not None:
* raise ValueError("Cannot specify encoding with C14N") # <<<<<<<<<<<<<<
* if xml_declaration:
* raise ValueError("Cannot enable XML declaration in C14N")
*/
- __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__33, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3414, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__33, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3417, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_Raise(__pyx_t_1, 0, 0, 0);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __PYX_ERR(0, 3414, __pyx_L1_error)
+ __PYX_ERR(0, 3417, __pyx_L1_error)
- /* "lxml/etree.pyx":3413
+ /* "lxml/etree.pyx":3416
* # C14N serialisation
* if method in ('c14n', 'c14n2'):
* if encoding is not None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3415
+ /* "lxml/etree.pyx":3418
* if encoding is not None:
* raise ValueError("Cannot specify encoding with C14N")
* if xml_declaration: # <<<<<<<<<<<<<<
* raise ValueError("Cannot enable XML declaration in C14N")
* if method == 'c14n':
*/
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_xml_declaration); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 3415, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_xml_declaration); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 3418, __pyx_L1_error)
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":3416
+ /* "lxml/etree.pyx":3419
* raise ValueError("Cannot specify encoding with C14N")
* if xml_declaration:
* raise ValueError("Cannot enable XML declaration in C14N") # <<<<<<<<<<<<<<
* if method == 'c14n':
* return _tostringC14N(element_or_tree, exclusive, with_comments, inclusive_ns_prefixes)
*/
- __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__34, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3416, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__34, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3419, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_Raise(__pyx_t_1, 0, 0, 0);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __PYX_ERR(0, 3416, __pyx_L1_error)
+ __PYX_ERR(0, 3419, __pyx_L1_error)
- /* "lxml/etree.pyx":3415
+ /* "lxml/etree.pyx":3418
* if encoding is not None:
* raise ValueError("Cannot specify encoding with C14N")
* if xml_declaration: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3417
+ /* "lxml/etree.pyx":3420
* if xml_declaration:
* raise ValueError("Cannot enable XML declaration in C14N")
* if method == 'c14n': # <<<<<<<<<<<<<<
* return _tostringC14N(element_or_tree, exclusive, with_comments, inclusive_ns_prefixes)
* else:
*/
- __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_v_method, __pyx_n_s_c14n, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 3417, __pyx_L1_error)
+ __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_v_method, __pyx_n_s_c14n, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 3420, __pyx_L1_error)
if (__pyx_t_2) {
- /* "lxml/etree.pyx":3418
+ /* "lxml/etree.pyx":3421
* raise ValueError("Cannot enable XML declaration in C14N")
* if method == 'c14n':
* return _tostringC14N(element_or_tree, exclusive, with_comments, inclusive_ns_prefixes) # <<<<<<<<<<<<<<
* out = BytesIO()
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __pyx_f_4lxml_5etree__tostringC14N(__pyx_v_element_or_tree, __pyx_v_exclusive, __pyx_v_with_comments, __pyx_v_inclusive_ns_prefixes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3418, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__tostringC14N(__pyx_v_element_or_tree, __pyx_v_exclusive, __pyx_v_with_comments, __pyx_v_inclusive_ns_prefixes); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3421, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":3417
+ /* "lxml/etree.pyx":3420
* if xml_declaration:
* raise ValueError("Cannot enable XML declaration in C14N")
* if method == 'c14n': # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3420
+ /* "lxml/etree.pyx":3423
* return _tostringC14N(element_or_tree, exclusive, with_comments, inclusive_ns_prefixes)
* else:
* out = BytesIO() # <<<<<<<<<<<<<<
}
__pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
- if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3420, __pyx_L1_error)
+ if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3423, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_v_out = __pyx_t_1;
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":3422
+ /* "lxml/etree.pyx":3425
* out = BytesIO()
* target = C14NWriterTarget(
* utf8_writer(out).write, # <<<<<<<<<<<<<<
}
__pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_out) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_out);
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
- if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3422, __pyx_L1_error)
+ if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3425, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_write); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3422, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_write); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3425, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":3421
+ /* "lxml/etree.pyx":3424
* else:
* out = BytesIO()
* target = C14NWriterTarget( # <<<<<<<<<<<<<<
* utf8_writer(out).write,
* with_comments=with_comments, strip_text=strip_text)
*/
- __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3421, __pyx_L1_error)
+ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3424, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_GIVEREF(__pyx_t_4);
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":3423
+ /* "lxml/etree.pyx":3426
* target = C14NWriterTarget(
* utf8_writer(out).write,
* with_comments=with_comments, strip_text=strip_text) # <<<<<<<<<<<<<<
* _tree_to_target(element_or_tree, target)
* return out.getvalue()
*/
- __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3423, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3426, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
- __pyx_t_5 = __Pyx_PyBool_FromLong(__pyx_v_with_comments); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3423, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyBool_FromLong(__pyx_v_with_comments); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3426, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
- if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_with_comments, __pyx_t_5) < 0) __PYX_ERR(0, 3423, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_with_comments, __pyx_t_5) < 0) __PYX_ERR(0, 3426, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- __pyx_t_5 = __Pyx_PyBool_FromLong(__pyx_v_strip_text); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3423, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyBool_FromLong(__pyx_v_strip_text); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3426, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
- if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_strip_text, __pyx_t_5) < 0) __PYX_ERR(0, 3423, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_strip_text, __pyx_t_5) < 0) __PYX_ERR(0, 3426, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- /* "lxml/etree.pyx":3421
+ /* "lxml/etree.pyx":3424
* else:
* out = BytesIO()
* target = C14NWriterTarget( # <<<<<<<<<<<<<<
* utf8_writer(out).write,
* with_comments=with_comments, strip_text=strip_text)
*/
- __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_C14NWriterTarget), __pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3421, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_C14NWriterTarget), __pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3424, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_v_target = ((struct __pyx_obj_4lxml_5etree_C14NWriterTarget *)__pyx_t_5);
__pyx_t_5 = 0;
- /* "lxml/etree.pyx":3424
+ /* "lxml/etree.pyx":3427
* utf8_writer(out).write,
* with_comments=with_comments, strip_text=strip_text)
* _tree_to_target(element_or_tree, target) # <<<<<<<<<<<<<<
* return out.getvalue()
* if not with_comments:
*/
- __pyx_t_5 = __pyx_f_4lxml_5etree__tree_to_target(__pyx_v_element_or_tree, ((PyObject *)__pyx_v_target)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3424, __pyx_L1_error)
+ __pyx_t_5 = __pyx_f_4lxml_5etree__tree_to_target(__pyx_v_element_or_tree, ((PyObject *)__pyx_v_target)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3427, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- /* "lxml/etree.pyx":3425
+ /* "lxml/etree.pyx":3428
* with_comments=with_comments, strip_text=strip_text)
* _tree_to_target(element_or_tree, target)
* return out.getvalue() # <<<<<<<<<<<<<<
* raise ValueError("Can only discard comments in C14N serialisation")
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_out, __pyx_n_s_getvalue); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3425, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_out, __pyx_n_s_getvalue); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3428, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_1 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
}
__pyx_t_5 = (__pyx_t_1) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_1) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
__Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
- if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3425, __pyx_L1_error)
+ if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3428, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_r = __pyx_t_5;
goto __pyx_L0;
}
- /* "lxml/etree.pyx":3412
+ /* "lxml/etree.pyx":3415
* cdef int is_standalone
* # C14N serialisation
* if method in ('c14n', 'c14n2'): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3426
+ /* "lxml/etree.pyx":3429
* _tree_to_target(element_or_tree, target)
* return out.getvalue()
* if not with_comments: # <<<<<<<<<<<<<<
__pyx_t_2 = ((!(__pyx_v_with_comments != 0)) != 0);
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":3427
+ /* "lxml/etree.pyx":3430
* return out.getvalue()
* if not with_comments:
* raise ValueError("Can only discard comments in C14N serialisation") # <<<<<<<<<<<<<<
* if strip_text:
* raise ValueError("Can only strip text in C14N 2.0 serialisation")
*/
- __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__36, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3427, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__36, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3430, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_Raise(__pyx_t_5, 0, 0, 0);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- __PYX_ERR(0, 3427, __pyx_L1_error)
+ __PYX_ERR(0, 3430, __pyx_L1_error)
- /* "lxml/etree.pyx":3426
+ /* "lxml/etree.pyx":3429
* _tree_to_target(element_or_tree, target)
* return out.getvalue()
* if not with_comments: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3428
+ /* "lxml/etree.pyx":3431
* if not with_comments:
* raise ValueError("Can only discard comments in C14N serialisation")
* if strip_text: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_v_strip_text != 0);
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":3429
+ /* "lxml/etree.pyx":3432
* raise ValueError("Can only discard comments in C14N serialisation")
* if strip_text:
* raise ValueError("Can only strip text in C14N 2.0 serialisation") # <<<<<<<<<<<<<<
* if encoding is unicode or (encoding is not None and encoding.lower() == 'unicode'):
* if xml_declaration:
*/
- __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__52, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3429, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__52, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3432, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_Raise(__pyx_t_5, 0, 0, 0);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- __PYX_ERR(0, 3429, __pyx_L1_error)
+ __PYX_ERR(0, 3432, __pyx_L1_error)
- /* "lxml/etree.pyx":3428
+ /* "lxml/etree.pyx":3431
* if not with_comments:
* raise ValueError("Can only discard comments in C14N serialisation")
* if strip_text: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3430
+ /* "lxml/etree.pyx":3433
* if strip_text:
* raise ValueError("Can only strip text in C14N 2.0 serialisation")
* if encoding is unicode or (encoding is not None and encoding.lower() == 'unicode'): # <<<<<<<<<<<<<<
__pyx_t_2 = __pyx_t_3;
goto __pyx_L12_bool_binop_done;
}
- __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_encoding, __pyx_n_s_lower); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3430, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_encoding, __pyx_n_s_lower); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3433, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_1 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
}
__pyx_t_5 = (__pyx_t_1) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_1) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
__Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
- if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3430, __pyx_L1_error)
+ if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3433, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- __pyx_t_3 = (__Pyx_PyString_Equals(__pyx_t_5, __pyx_n_s_unicode, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 3430, __pyx_L1_error)
+ __pyx_t_3 = (__Pyx_PyString_Equals(__pyx_t_5, __pyx_n_s_unicode, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 3433, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_t_2 = __pyx_t_3;
__pyx_L12_bool_binop_done:;
if (__pyx_t_2) {
- /* "lxml/etree.pyx":3431
+ /* "lxml/etree.pyx":3434
* raise ValueError("Can only strip text in C14N 2.0 serialisation")
* if encoding is unicode or (encoding is not None and encoding.lower() == 'unicode'):
* if xml_declaration: # <<<<<<<<<<<<<<
* raise ValueError, \
* u"Serialisation to unicode must not request an XML declaration"
*/
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_xml_declaration); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 3431, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_xml_declaration); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 3434, __pyx_L1_error)
if (unlikely(__pyx_t_2)) {
- /* "lxml/etree.pyx":3432
+ /* "lxml/etree.pyx":3435
* if encoding is unicode or (encoding is not None and encoding.lower() == 'unicode'):
* if xml_declaration:
* raise ValueError, \ # <<<<<<<<<<<<<<
* write_declaration = 0
*/
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_Serialisation_to_unicode_must_no, 0, 0);
- __PYX_ERR(0, 3432, __pyx_L1_error)
+ __PYX_ERR(0, 3435, __pyx_L1_error)
- /* "lxml/etree.pyx":3431
+ /* "lxml/etree.pyx":3434
* raise ValueError("Can only strip text in C14N 2.0 serialisation")
* if encoding is unicode or (encoding is not None and encoding.lower() == 'unicode'):
* if xml_declaration: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3434
+ /* "lxml/etree.pyx":3437
* raise ValueError, \
* u"Serialisation to unicode must not request an XML declaration"
* write_declaration = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_write_declaration = 0;
- /* "lxml/etree.pyx":3435
+ /* "lxml/etree.pyx":3438
* u"Serialisation to unicode must not request an XML declaration"
* write_declaration = 0
* encoding = unicode # <<<<<<<<<<<<<<
__Pyx_INCREF(((PyObject *)(&PyUnicode_Type)));
__Pyx_DECREF_SET(__pyx_v_encoding, ((PyObject *)(&PyUnicode_Type)));
- /* "lxml/etree.pyx":3430
+ /* "lxml/etree.pyx":3433
* if strip_text:
* raise ValueError("Can only strip text in C14N 2.0 serialisation")
* if encoding is unicode or (encoding is not None and encoding.lower() == 'unicode'): # <<<<<<<<<<<<<<
goto __pyx_L11;
}
- /* "lxml/etree.pyx":3436
+ /* "lxml/etree.pyx":3439
* write_declaration = 0
* encoding = unicode
* elif xml_declaration is None: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_2 != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":3438
+ /* "lxml/etree.pyx":3441
* elif xml_declaration is None:
* # by default, write an XML declaration only for non-standard encodings
* write_declaration = encoding is not None and encoding.upper() not in \ # <<<<<<<<<<<<<<
__pyx_t_3 = __pyx_t_6;
goto __pyx_L16_bool_binop_done;
}
- __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_encoding, __pyx_n_s_upper); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3438, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_encoding, __pyx_n_s_upper); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3441, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_1 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_4))) {
}
__pyx_t_5 = (__pyx_t_1) ? __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_1) : __Pyx_PyObject_CallNoArg(__pyx_t_4);
__Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
- if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3438, __pyx_L1_error)
+ if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3441, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_5, __pyx_n_u_ASCII, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 3438, __pyx_L1_error)
+ __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_5, __pyx_n_u_ASCII, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 3441, __pyx_L1_error)
if (__pyx_t_2) {
} else {
__pyx_t_6 = __pyx_t_2;
goto __pyx_L18_bool_binop_done;
}
- __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_5, __pyx_kp_u_UTF_8, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 3438, __pyx_L1_error)
+ __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_5, __pyx_kp_u_UTF_8, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 3441, __pyx_L1_error)
if (__pyx_t_2) {
} else {
__pyx_t_6 = __pyx_t_2;
goto __pyx_L18_bool_binop_done;
}
- __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_5, __pyx_n_u_UTF8, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 3438, __pyx_L1_error)
+ __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_5, __pyx_n_u_UTF8, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 3441, __pyx_L1_error)
if (__pyx_t_2) {
} else {
__pyx_t_6 = __pyx_t_2;
goto __pyx_L18_bool_binop_done;
}
- __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_5, __pyx_kp_u_US_ASCII, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 3438, __pyx_L1_error)
+ __pyx_t_2 = (__Pyx_PyUnicode_Equals(__pyx_t_5, __pyx_kp_u_US_ASCII, Py_NE)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 3441, __pyx_L1_error)
__pyx_t_6 = __pyx_t_2;
__pyx_L18_bool_binop_done:;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_L16_bool_binop_done:;
__pyx_v_write_declaration = __pyx_t_3;
- /* "lxml/etree.pyx":3436
+ /* "lxml/etree.pyx":3439
* write_declaration = 0
* encoding = unicode
* elif xml_declaration is None: # <<<<<<<<<<<<<<
goto __pyx_L11;
}
- /* "lxml/etree.pyx":3441
+ /* "lxml/etree.pyx":3444
* (u'ASCII', u'UTF-8', u'UTF8', u'US-ASCII')
* else:
* write_declaration = xml_declaration # <<<<<<<<<<<<<<
* encoding = u'ASCII'
*/
/*else*/ {
- __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_xml_declaration); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3441, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_xml_declaration); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3444, __pyx_L1_error)
__pyx_v_write_declaration = __pyx_t_3;
}
__pyx_L11:;
- /* "lxml/etree.pyx":3442
+ /* "lxml/etree.pyx":3445
* else:
* write_declaration = xml_declaration
* if encoding is None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_3 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":3443
+ /* "lxml/etree.pyx":3446
* write_declaration = xml_declaration
* if encoding is None:
* encoding = u'ASCII' # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_n_u_ASCII);
__Pyx_DECREF_SET(__pyx_v_encoding, __pyx_n_u_ASCII);
- /* "lxml/etree.pyx":3442
+ /* "lxml/etree.pyx":3445
* else:
* write_declaration = xml_declaration
* if encoding is None: # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3444
+ /* "lxml/etree.pyx":3447
* if encoding is None:
* encoding = u'ASCII'
* if standalone is None: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_2 != 0);
if (__pyx_t_3) {
- /* "lxml/etree.pyx":3445
+ /* "lxml/etree.pyx":3448
* encoding = u'ASCII'
* if standalone is None:
* is_standalone = -1 # <<<<<<<<<<<<<<
*/
__pyx_v_is_standalone = -1;
- /* "lxml/etree.pyx":3444
+ /* "lxml/etree.pyx":3447
* if encoding is None:
* encoding = u'ASCII'
* if standalone is None: # <<<<<<<<<<<<<<
goto __pyx_L23;
}
- /* "lxml/etree.pyx":3446
+ /* "lxml/etree.pyx":3449
* if standalone is None:
* is_standalone = -1
* elif standalone: # <<<<<<<<<<<<<<
* write_declaration = 1
* is_standalone = 1
*/
- __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_standalone); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 3446, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_standalone); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 3449, __pyx_L1_error)
if (__pyx_t_3) {
- /* "lxml/etree.pyx":3447
+ /* "lxml/etree.pyx":3450
* is_standalone = -1
* elif standalone:
* write_declaration = 1 # <<<<<<<<<<<<<<
*/
__pyx_v_write_declaration = 1;
- /* "lxml/etree.pyx":3448
+ /* "lxml/etree.pyx":3451
* elif standalone:
* write_declaration = 1
* is_standalone = 1 # <<<<<<<<<<<<<<
*/
__pyx_v_is_standalone = 1;
- /* "lxml/etree.pyx":3446
+ /* "lxml/etree.pyx":3449
* if standalone is None:
* is_standalone = -1
* elif standalone: # <<<<<<<<<<<<<<
goto __pyx_L23;
}
- /* "lxml/etree.pyx":3450
+ /* "lxml/etree.pyx":3453
* is_standalone = 1
* else:
* write_declaration = 1 # <<<<<<<<<<<<<<
/*else*/ {
__pyx_v_write_declaration = 1;
- /* "lxml/etree.pyx":3451
+ /* "lxml/etree.pyx":3454
* else:
* write_declaration = 1
* is_standalone = 0 # <<<<<<<<<<<<<<
}
__pyx_L23:;
- /* "lxml/etree.pyx":3453
+ /* "lxml/etree.pyx":3456
* is_standalone = 0
*
* if isinstance(element_or_tree, _Element): # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_3 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":3454
+ /* "lxml/etree.pyx":3457
*
* if isinstance(element_or_tree, _Element):
* return _tostring(<_Element>element_or_tree, encoding, doctype, method, # <<<<<<<<<<<<<<
*/
__Pyx_XDECREF(__pyx_r);
- /* "lxml/etree.pyx":3456
+ /* "lxml/etree.pyx":3459
* return _tostring(<_Element>element_or_tree, encoding, doctype, method,
* write_declaration, 0, pretty_print, with_tail,
* is_standalone) # <<<<<<<<<<<<<<
* elif isinstance(element_or_tree, _ElementTree):
* return _tostring((<_ElementTree>element_or_tree)._context_node,
*/
- __pyx_t_5 = __pyx_f_4lxml_5etree__tostring(((struct LxmlElement *)__pyx_v_element_or_tree), __pyx_v_encoding, __pyx_v_doctype, __pyx_v_method, __pyx_v_write_declaration, 0, __pyx_v_pretty_print, __pyx_v_with_tail, __pyx_v_is_standalone); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3454, __pyx_L1_error)
+ __pyx_t_5 = __pyx_f_4lxml_5etree__tostring(((struct LxmlElement *)__pyx_v_element_or_tree), __pyx_v_encoding, __pyx_v_doctype, __pyx_v_method, __pyx_v_write_declaration, 0, __pyx_v_pretty_print, __pyx_v_with_tail, __pyx_v_is_standalone); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3457, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__pyx_r = __pyx_t_5;
__pyx_t_5 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":3453
+ /* "lxml/etree.pyx":3456
* is_standalone = 0
*
* if isinstance(element_or_tree, _Element): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3457
+ /* "lxml/etree.pyx":3460
* write_declaration, 0, pretty_print, with_tail,
* is_standalone)
* elif isinstance(element_or_tree, _ElementTree): # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_2 != 0);
if (likely(__pyx_t_3)) {
- /* "lxml/etree.pyx":3458
+ /* "lxml/etree.pyx":3461
* is_standalone)
* elif isinstance(element_or_tree, _ElementTree):
* return _tostring((<_ElementTree>element_or_tree)._context_node, # <<<<<<<<<<<<<<
__pyx_t_5 = ((PyObject *)((struct LxmlElementTree *)__pyx_v_element_or_tree)->_context_node);
__Pyx_INCREF(__pyx_t_5);
- /* "lxml/etree.pyx":3460
+ /* "lxml/etree.pyx":3463
* return _tostring((<_ElementTree>element_or_tree)._context_node,
* encoding, doctype, method, write_declaration, 1,
* pretty_print, with_tail, is_standalone) # <<<<<<<<<<<<<<
* else:
* raise TypeError, f"Type '{python._fqtypename(element_or_tree).decode('utf8')}' cannot be serialized."
*/
- __pyx_t_4 = __pyx_f_4lxml_5etree__tostring(((struct LxmlElement *)__pyx_t_5), __pyx_v_encoding, __pyx_v_doctype, __pyx_v_method, __pyx_v_write_declaration, 1, __pyx_v_pretty_print, __pyx_v_with_tail, __pyx_v_is_standalone); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3458, __pyx_L1_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree__tostring(((struct LxmlElement *)__pyx_t_5), __pyx_v_encoding, __pyx_v_doctype, __pyx_v_method, __pyx_v_write_declaration, 1, __pyx_v_pretty_print, __pyx_v_with_tail, __pyx_v_is_standalone); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3461, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_r = __pyx_t_4;
__pyx_t_4 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":3457
+ /* "lxml/etree.pyx":3460
* write_declaration, 0, pretty_print, with_tail,
* is_standalone)
* elif isinstance(element_or_tree, _ElementTree): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3462
+ /* "lxml/etree.pyx":3465
* pretty_print, with_tail, is_standalone)
* else:
* raise TypeError, f"Type '{python._fqtypename(element_or_tree).decode('utf8')}' cannot be serialized." # <<<<<<<<<<<<<<
*
*/
/*else*/ {
- __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3462, __pyx_L1_error)
+ __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3465, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_7 = 0;
__pyx_t_8 = 127;
__Pyx_GIVEREF(__pyx_kp_u_Type);
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_Type);
__pyx_t_9 = _fqtypename(__pyx_v_element_or_tree);
- __pyx_t_5 = __Pyx_decode_c_string(__pyx_t_9, 0, strlen(__pyx_t_9), NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3462, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_decode_c_string(__pyx_t_9, 0, strlen(__pyx_t_9), NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3465, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_INCREF(__pyx_t_5);
__pyx_t_8 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_8) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_8;
__pyx_t_7 += 23;
__Pyx_GIVEREF(__pyx_kp_u_cannot_be_serialized);
PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_kp_u_cannot_be_serialized);
- __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_4, 3, __pyx_t_7, __pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3462, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_4, 3, __pyx_t_7, __pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3465, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_Raise(__pyx_builtin_TypeError, __pyx_t_5, 0, 0);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- __PYX_ERR(0, 3462, __pyx_L1_error)
+ __PYX_ERR(0, 3465, __pyx_L1_error)
}
- /* "lxml/etree.pyx":3353
+ /* "lxml/etree.pyx":3356
*
*
* def tostring(element_or_tree, *, encoding=None, method="xml", # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3466
+/* "lxml/etree.pyx":3469
*
*
* def tostringlist(element_or_tree, *args, **kwargs): # <<<<<<<<<<<<<<
}
if (unlikely(kw_args > 0)) {
const Py_ssize_t used_pos_args = (pos_args < 1) ? pos_args : 1;
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kwargs, values, used_pos_args, "tostringlist") < 0)) __PYX_ERR(0, 3466, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kwargs, values, used_pos_args, "tostringlist") < 0)) __PYX_ERR(0, 3469, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) < 1) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("tostringlist", 0, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3466, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("tostringlist", 0, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3469, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_DECREF(__pyx_v_args); __pyx_v_args = 0;
__Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0;
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("tostringlist", 0);
- /* "lxml/etree.pyx":3475
+ /* "lxml/etree.pyx":3478
* single string wrapped in a list.
* """
* return [tostring(element_or_tree, *args, **kwargs)] # <<<<<<<<<<<<<<
*
*/
__Pyx_XDECREF(__pyx_r);
- __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_tostring); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3475, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_tostring); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3478, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3475, __pyx_L1_error)
+ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3478, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_INCREF(__pyx_v_element_or_tree);
__Pyx_GIVEREF(__pyx_v_element_or_tree);
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_element_or_tree);
- __pyx_t_3 = PyNumber_Add(__pyx_t_2, __pyx_v_args); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3475, __pyx_L1_error)
+ __pyx_t_3 = PyNumber_Add(__pyx_t_2, __pyx_v_args); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3478, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __pyx_t_2 = PyDict_Copy(__pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3475, __pyx_L1_error)
+ __pyx_t_2 = PyDict_Copy(__pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3478, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3475, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3478, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3475, __pyx_L1_error)
+ __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3478, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_GIVEREF(__pyx_t_4);
PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_4);
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":3466
+ /* "lxml/etree.pyx":3469
*
*
* def tostringlist(element_or_tree, *args, **kwargs): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3478
+/* "lxml/etree.pyx":3481
*
*
* def tounicode(element_or_tree, *, method=u"xml", bint pretty_print=False, # <<<<<<<<<<<<<<
PyObject* values[5] = {0,0,0,0,0};
values[1] = ((PyObject *)((PyObject*)__pyx_n_u_xml));
- /* "lxml/etree.pyx":3479
+ /* "lxml/etree.pyx":3482
*
* def tounicode(element_or_tree, *, method=u"xml", bint pretty_print=False,
* bint with_tail=True, doctype=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "tounicode") < 0)) __PYX_ERR(0, 3478, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "tounicode") < 0)) __PYX_ERR(0, 3481, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
goto __pyx_L5_argtuple_error;
__pyx_v_element_or_tree = values[0];
__pyx_v_method = values[1];
if (values[2]) {
- __pyx_v_pretty_print = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_pretty_print == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3478, __pyx_L3_error)
+ __pyx_v_pretty_print = __Pyx_PyObject_IsTrue(values[2]); if (unlikely((__pyx_v_pretty_print == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3481, __pyx_L3_error)
} else {
- /* "lxml/etree.pyx":3478
+ /* "lxml/etree.pyx":3481
*
*
* def tounicode(element_or_tree, *, method=u"xml", bint pretty_print=False, # <<<<<<<<<<<<<<
__pyx_v_pretty_print = ((int)((int)0));
}
if (values[3]) {
- __pyx_v_with_tail = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_with_tail == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3479, __pyx_L3_error)
+ __pyx_v_with_tail = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_with_tail == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3482, __pyx_L3_error)
} else {
- /* "lxml/etree.pyx":3479
+ /* "lxml/etree.pyx":3482
*
* def tounicode(element_or_tree, *, method=u"xml", bint pretty_print=False,
* bint with_tail=True, doctype=None): # <<<<<<<<<<<<<<
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("tounicode", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3478, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("tounicode", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3481, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.tounicode", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
__pyx_L4_argument_unpacking_done:;
__pyx_r = __pyx_pf_4lxml_5etree_36tounicode(__pyx_self, __pyx_v_element_or_tree, __pyx_v_method, __pyx_v_pretty_print, __pyx_v_with_tail, __pyx_v_doctype);
- /* "lxml/etree.pyx":3478
+ /* "lxml/etree.pyx":3481
*
*
* def tounicode(element_or_tree, *, method=u"xml", bint pretty_print=False, # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("tounicode", 0);
- /* "lxml/etree.pyx":3501
+ /* "lxml/etree.pyx":3504
* on the tail text of children, which will always be serialised.
* """
* if isinstance(element_or_tree, _Element): # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "lxml/etree.pyx":3502
+ /* "lxml/etree.pyx":3505
* """
* if isinstance(element_or_tree, _Element):
* return _tostring(<_Element>element_or_tree, unicode, doctype, method, # <<<<<<<<<<<<<<
*/
__Pyx_XDECREF(__pyx_r);
- /* "lxml/etree.pyx":3503
+ /* "lxml/etree.pyx":3506
* if isinstance(element_or_tree, _Element):
* return _tostring(<_Element>element_or_tree, unicode, doctype, method,
* 0, 0, pretty_print, with_tail, -1) # <<<<<<<<<<<<<<
* elif isinstance(element_or_tree, _ElementTree):
* return _tostring((<_ElementTree>element_or_tree)._context_node,
*/
- __pyx_t_3 = __pyx_f_4lxml_5etree__tostring(((struct LxmlElement *)__pyx_v_element_or_tree), ((PyObject *)(&PyUnicode_Type)), __pyx_v_doctype, __pyx_v_method, 0, 0, __pyx_v_pretty_print, __pyx_v_with_tail, -1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3502, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree__tostring(((struct LxmlElement *)__pyx_v_element_or_tree), ((PyObject *)(&PyUnicode_Type)), __pyx_v_doctype, __pyx_v_method, 0, 0, __pyx_v_pretty_print, __pyx_v_with_tail, -1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3505, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":3501
+ /* "lxml/etree.pyx":3504
* on the tail text of children, which will always be serialised.
* """
* if isinstance(element_or_tree, _Element): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3504
+ /* "lxml/etree.pyx":3507
* return _tostring(<_Element>element_or_tree, unicode, doctype, method,
* 0, 0, pretty_print, with_tail, -1)
* elif isinstance(element_or_tree, _ElementTree): # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_t_2 != 0);
if (likely(__pyx_t_1)) {
- /* "lxml/etree.pyx":3505
+ /* "lxml/etree.pyx":3508
* 0, 0, pretty_print, with_tail, -1)
* elif isinstance(element_or_tree, _ElementTree):
* return _tostring((<_ElementTree>element_or_tree)._context_node, # <<<<<<<<<<<<<<
__pyx_t_3 = ((PyObject *)((struct LxmlElementTree *)__pyx_v_element_or_tree)->_context_node);
__Pyx_INCREF(__pyx_t_3);
- /* "lxml/etree.pyx":3507
+ /* "lxml/etree.pyx":3510
* return _tostring((<_ElementTree>element_or_tree)._context_node,
* unicode, doctype, method, 0, 1, pretty_print,
* with_tail, -1) # <<<<<<<<<<<<<<
* else:
* raise TypeError, f"Type '{type(element_or_tree)}' cannot be serialized."
*/
- __pyx_t_4 = __pyx_f_4lxml_5etree__tostring(((struct LxmlElement *)__pyx_t_3), ((PyObject *)(&PyUnicode_Type)), __pyx_v_doctype, __pyx_v_method, 0, 1, __pyx_v_pretty_print, __pyx_v_with_tail, -1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3505, __pyx_L1_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree__tostring(((struct LxmlElement *)__pyx_t_3), ((PyObject *)(&PyUnicode_Type)), __pyx_v_doctype, __pyx_v_method, 0, 1, __pyx_v_pretty_print, __pyx_v_with_tail, -1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3508, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_r = __pyx_t_4;
__pyx_t_4 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":3504
+ /* "lxml/etree.pyx":3507
* return _tostring(<_Element>element_or_tree, unicode, doctype, method,
* 0, 0, pretty_print, with_tail, -1)
* elif isinstance(element_or_tree, _ElementTree): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3509
+ /* "lxml/etree.pyx":3512
* with_tail, -1)
* else:
* raise TypeError, f"Type '{type(element_or_tree)}' cannot be serialized." # <<<<<<<<<<<<<<
*
*/
/*else*/ {
- __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3509, __pyx_L1_error)
+ __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3512, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_5 = 0;
__pyx_t_6 = 127;
__pyx_t_5 += 6;
__Pyx_GIVEREF(__pyx_kp_u_Type);
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_Type);
- __pyx_t_3 = __Pyx_PyObject_FormatSimple(((PyObject *)Py_TYPE(__pyx_v_element_or_tree)), __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3509, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_FormatSimple(((PyObject *)Py_TYPE(__pyx_v_element_or_tree)), __pyx_empty_unicode); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3512, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_6 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_3) > __pyx_t_6) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_3) : __pyx_t_6;
__pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_3);
__pyx_t_5 += 23;
__Pyx_GIVEREF(__pyx_kp_u_cannot_be_serialized);
PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_kp_u_cannot_be_serialized);
- __pyx_t_3 = __Pyx_PyUnicode_Join(__pyx_t_4, 3, __pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3509, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyUnicode_Join(__pyx_t_4, 3, __pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3512, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_Raise(__pyx_builtin_TypeError, __pyx_t_3, 0, 0);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- __PYX_ERR(0, 3509, __pyx_L1_error)
+ __PYX_ERR(0, 3512, __pyx_L1_error)
}
- /* "lxml/etree.pyx":3478
+ /* "lxml/etree.pyx":3481
*
*
* def tounicode(element_or_tree, *, method=u"xml", bint pretty_print=False, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3512
+/* "lxml/etree.pyx":3515
*
*
* def parse(source, _BaseParser parser=None, *, base_url=None): # <<<<<<<<<<<<<<
if (value) { values[index] = value; kw_args--; }
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "parse") < 0)) __PYX_ERR(0, 3512, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "parse") < 0)) __PYX_ERR(0, 3515, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("parse", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3512, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("parse", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3515, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return NULL;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_parser), __pyx_ptype_4lxml_5etree__BaseParser, 1, "parser", 0))) __PYX_ERR(0, 3512, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_parser), __pyx_ptype_4lxml_5etree__BaseParser, 1, "parser", 0))) __PYX_ERR(0, 3515, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_38parse(__pyx_self, __pyx_v_source, __pyx_v_parser, __pyx_v_base_url);
/* function exit code */
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("parse", 0);
- /* "lxml/etree.pyx":3537
+ /* "lxml/etree.pyx":3540
* """
* cdef _Document doc
* try: # <<<<<<<<<<<<<<
__Pyx_XGOTREF(__pyx_t_3);
/*try:*/ {
- /* "lxml/etree.pyx":3538
+ /* "lxml/etree.pyx":3541
* cdef _Document doc
* try:
* doc = _parseDocument(source, parser, base_url) # <<<<<<<<<<<<<<
* return _elementTreeFactory(doc, None)
* except _TargetParserResult as result_container:
*/
- __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree__parseDocument(__pyx_v_source, __pyx_v_parser, __pyx_v_base_url)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3538, __pyx_L3_error)
+ __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree__parseDocument(__pyx_v_source, __pyx_v_parser, __pyx_v_base_url)); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3541, __pyx_L3_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_v_doc = ((struct LxmlDocument *)__pyx_t_4);
__pyx_t_4 = 0;
- /* "lxml/etree.pyx":3539
+ /* "lxml/etree.pyx":3542
* try:
* doc = _parseDocument(source, parser, base_url)
* return _elementTreeFactory(doc, None) # <<<<<<<<<<<<<<
* return result_container.result
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree__elementTreeFactory(__pyx_v_doc, ((struct LxmlElement *)Py_None))); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3539, __pyx_L3_error)
+ __pyx_t_4 = ((PyObject *)__pyx_f_4lxml_5etree__elementTreeFactory(__pyx_v_doc, ((struct LxmlElement *)Py_None))); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3542, __pyx_L3_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_r = __pyx_t_4;
__pyx_t_4 = 0;
goto __pyx_L7_try_return;
- /* "lxml/etree.pyx":3537
+ /* "lxml/etree.pyx":3540
* """
* cdef _Document doc
* try: # <<<<<<<<<<<<<<
__pyx_L3_error:;
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "lxml/etree.pyx":3540
+ /* "lxml/etree.pyx":3543
* doc = _parseDocument(source, parser, base_url)
* return _elementTreeFactory(doc, None)
* except _TargetParserResult as result_container: # <<<<<<<<<<<<<<
*
*/
__Pyx_ErrFetch(&__pyx_t_4, &__pyx_t_5, &__pyx_t_6);
- __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_TargetParserResult); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3540, __pyx_L5_except_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_TargetParserResult); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3543, __pyx_L5_except_error)
__Pyx_GOTREF(__pyx_t_7);
__pyx_t_8 = __Pyx_PyErr_GivenExceptionMatches(__pyx_t_4, __pyx_t_7);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__pyx_t_4 = 0; __pyx_t_5 = 0; __pyx_t_6 = 0;
if (__pyx_t_8) {
__Pyx_AddTraceback("lxml.etree.parse", __pyx_clineno, __pyx_lineno, __pyx_filename);
- if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_4) < 0) __PYX_ERR(0, 3540, __pyx_L5_except_error)
+ if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_5, &__pyx_t_4) < 0) __PYX_ERR(0, 3543, __pyx_L5_except_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_GOTREF(__pyx_t_5);
__Pyx_GOTREF(__pyx_t_4);
__Pyx_INCREF(__pyx_t_5);
__pyx_v_result_container = __pyx_t_5;
- /* "lxml/etree.pyx":3541
+ /* "lxml/etree.pyx":3544
* return _elementTreeFactory(doc, None)
* except _TargetParserResult as result_container:
* return result_container.result # <<<<<<<<<<<<<<
*
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_result_container, __pyx_n_s_result); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3541, __pyx_L5_except_error)
+ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_result_container, __pyx_n_s_result); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3544, __pyx_L5_except_error)
__Pyx_GOTREF(__pyx_t_7);
__pyx_r = __pyx_t_7;
__pyx_t_7 = 0;
goto __pyx_L5_except_error;
__pyx_L5_except_error:;
- /* "lxml/etree.pyx":3537
+ /* "lxml/etree.pyx":3540
* """
* cdef _Document doc
* try: # <<<<<<<<<<<<<<
goto __pyx_L0;
}
- /* "lxml/etree.pyx":3512
+ /* "lxml/etree.pyx":3515
*
*
* def parse(source, _BaseParser parser=None, *, base_url=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3544
+/* "lxml/etree.pyx":3547
*
*
* def adopt_external_document(capsule, _BaseParser parser=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "adopt_external_document") < 0)) __PYX_ERR(0, 3544, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "adopt_external_document") < 0)) __PYX_ERR(0, 3547, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("adopt_external_document", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3544, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("adopt_external_document", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3547, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.adopt_external_document", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return NULL;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_parser), __pyx_ptype_4lxml_5etree__BaseParser, 1, "parser", 0))) __PYX_ERR(0, 3544, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_parser), __pyx_ptype_4lxml_5etree__BaseParser, 1, "parser", 0))) __PYX_ERR(0, 3547, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_40adopt_external_document(__pyx_self, __pyx_v_capsule, __pyx_v_parser);
/* function exit code */
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("adopt_external_document", 0);
- /* "lxml/etree.pyx":3576
+ /* "lxml/etree.pyx":3579
* """
* cdef xmlDoc* c_doc
* cdef bint is_owned = False # <<<<<<<<<<<<<<
*/
__pyx_v_is_owned = 0;
- /* "lxml/etree.pyx":3577
+ /* "lxml/etree.pyx":3580
* cdef xmlDoc* c_doc
* cdef bint is_owned = False
* c_doc = <xmlDoc*> python.lxml_unpack_xmldoc_capsule(capsule, &is_owned) # <<<<<<<<<<<<<<
* doc = _adoptForeignDoc(c_doc, parser, is_owned)
* return _elementTreeFactory(doc, None)
*/
- __pyx_t_1 = lxml_unpack_xmldoc_capsule(__pyx_v_capsule, (&__pyx_v_is_owned)); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(0, 3577, __pyx_L1_error)
+ __pyx_t_1 = lxml_unpack_xmldoc_capsule(__pyx_v_capsule, (&__pyx_v_is_owned)); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(0, 3580, __pyx_L1_error)
__pyx_v_c_doc = ((xmlDoc *)__pyx_t_1);
- /* "lxml/etree.pyx":3578
+ /* "lxml/etree.pyx":3581
* cdef bint is_owned = False
* c_doc = <xmlDoc*> python.lxml_unpack_xmldoc_capsule(capsule, &is_owned)
* doc = _adoptForeignDoc(c_doc, parser, is_owned) # <<<<<<<<<<<<<<
__pyx_t_3.__pyx_n = 2;
__pyx_t_3.parser = __pyx_v_parser;
__pyx_t_3.is_owned = __pyx_v_is_owned;
- __pyx_t_2 = ((PyObject *)__pyx_f_4lxml_5etree__adoptForeignDoc(__pyx_v_c_doc, &__pyx_t_3)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3578, __pyx_L1_error)
+ __pyx_t_2 = ((PyObject *)__pyx_f_4lxml_5etree__adoptForeignDoc(__pyx_v_c_doc, &__pyx_t_3)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3581, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_v_doc = ((struct LxmlDocument *)__pyx_t_2);
__pyx_t_2 = 0;
- /* "lxml/etree.pyx":3579
+ /* "lxml/etree.pyx":3582
* c_doc = <xmlDoc*> python.lxml_unpack_xmldoc_capsule(capsule, &is_owned)
* doc = _adoptForeignDoc(c_doc, parser, is_owned)
* return _elementTreeFactory(doc, None) # <<<<<<<<<<<<<<
*
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = ((PyObject *)__pyx_f_4lxml_5etree__elementTreeFactory(__pyx_v_doc, ((struct LxmlElement *)Py_None))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3579, __pyx_L1_error)
+ __pyx_t_2 = ((PyObject *)__pyx_f_4lxml_5etree__elementTreeFactory(__pyx_v_doc, ((struct LxmlElement *)Py_None))); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3582, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":3544
+ /* "lxml/etree.pyx":3547
*
*
* def adopt_external_document(capsule, _BaseParser parser=None): # <<<<<<<<<<<<<<
*
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_self->__pyx_base._c_node != NULL) != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_u_Proxy_invalidated);
__PYX_ERR(7, 387, __pyx_L1_error)
* c_text = _xcstr(value)
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
__pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u__29, __pyx_v_value, Py_NE)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(7, 475, __pyx_L1_error)
__pyx_t_4 = (__pyx_t_3 != 0);
if (__pyx_t_4) {
* if not (isinstance(cls, type) and issubclass(cls, expected)):
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!0)) {
__pyx_t_1 = __Pyx_PyUnicode_From_xmlElementType(__pyx_v_c_node->type, 0, ' ', 'd'); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 199, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
*
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!0)) {
__pyx_t_4 = __Pyx_PyUnicode_From_xmlElementType(__pyx_v_c_node->type, 0, ' ', 'd'); if (unlikely(!__pyx_t_4)) __PYX_ERR(8, 336, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
* if base_url is not None:
* doc_ref._filename = _encodeFilename(base_url)
*/
- if (!(likely(PyBytes_CheckExact(__pyx_v_string))||((__pyx_v_string) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_string)->tp_name), 0))) __PYX_ERR(12, 64, __pyx_L1_error)
+ if (!(likely(PyBytes_CheckExact(__pyx_v_string))||((__pyx_v_string) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_string)->tp_name), 0))) __PYX_ERR(12, 64, __pyx_L1_error)
__pyx_t_3 = __pyx_v_string;
__Pyx_INCREF(__pyx_t_3);
__Pyx_GIVEREF(__pyx_t_3);
* self._c_ctxt.disableSAX = 0 # work around bug in libxml2
* else:
* xmlparser.xmlClearParserCtxt(self._c_ctxt) # <<<<<<<<<<<<<<
- *
- * cdef int prepare(self, bint set_document_loader=True) except -1:
+ * # work around bug in libxml2 [2.9.10 .. 2.9.14]:
+ * # https://gitlab.gnome.org/GNOME/libxml2/-/issues/378
*/
/*else*/ {
xmlClearParserCtxt(__pyx_v_self->_c_ctxt);
+
+ /* "src/lxml/parser.pxi":574
+ * # work around bug in libxml2 [2.9.10 .. 2.9.14]:
+ * # https://gitlab.gnome.org/GNOME/libxml2/-/issues/378
+ * self._c_ctxt.nsNr = 0 # <<<<<<<<<<<<<<
+ *
+ * cdef int prepare(self, bint set_document_loader=True) except -1:
+ */
+ __pyx_v_self->_c_ctxt->nsNr = 0;
}
__pyx_L4:;
__Pyx_RefNannyFinishContext();
}
-/* "src/lxml/parser.pxi":573
- * xmlparser.xmlClearParserCtxt(self._c_ctxt)
+/* "src/lxml/parser.pxi":576
+ * self._c_ctxt.nsNr = 0
*
* cdef int prepare(self, bint set_document_loader=True) except -1: # <<<<<<<<<<<<<<
* cdef int result
}
}
- /* "src/lxml/parser.pxi":575
+ /* "src/lxml/parser.pxi":578
* cdef int prepare(self, bint set_document_loader=True) except -1:
* cdef int result
* if config.ENABLE_THREADING and self._lock is not NULL: # <<<<<<<<<<<<<<
__pyx_L4_bool_binop_done:;
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":576
+ /* "src/lxml/parser.pxi":579
* cdef int result
* if config.ENABLE_THREADING and self._lock is not NULL:
* with nogil: # <<<<<<<<<<<<<<
#endif
/*try:*/ {
- /* "src/lxml/parser.pxi":577
+ /* "src/lxml/parser.pxi":580
* if config.ENABLE_THREADING and self._lock is not NULL:
* with nogil:
* result = python.PyThread_acquire_lock( # <<<<<<<<<<<<<<
__pyx_v_result = PyThread_acquire_lock(__pyx_v_self->_lock, WAIT_LOCK);
}
- /* "src/lxml/parser.pxi":576
+ /* "src/lxml/parser.pxi":579
* cdef int result
* if config.ENABLE_THREADING and self._lock is not NULL:
* with nogil: # <<<<<<<<<<<<<<
}
}
- /* "src/lxml/parser.pxi":579
+ /* "src/lxml/parser.pxi":582
* result = python.PyThread_acquire_lock(
* self._lock, python.WAIT_LOCK)
* if result == 0: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_result == 0) != 0);
if (unlikely(__pyx_t_1)) {
- /* "src/lxml/parser.pxi":580
+ /* "src/lxml/parser.pxi":583
* self._lock, python.WAIT_LOCK)
* if result == 0:
* raise ParserError, u"parser locking failed" # <<<<<<<<<<<<<<
* self._doc = None
*/
__Pyx_Raise(((PyObject *)__pyx_ptype_4lxml_5etree_ParserError), __pyx_kp_u_parser_locking_failed, 0, 0);
- __PYX_ERR(2, 580, __pyx_L1_error)
+ __PYX_ERR(2, 583, __pyx_L1_error)
- /* "src/lxml/parser.pxi":579
+ /* "src/lxml/parser.pxi":582
* result = python.PyThread_acquire_lock(
* self._lock, python.WAIT_LOCK)
* if result == 0: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":575
+ /* "src/lxml/parser.pxi":578
* cdef int prepare(self, bint set_document_loader=True) except -1:
* cdef int result
* if config.ENABLE_THREADING and self._lock is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":581
+ /* "src/lxml/parser.pxi":584
* if result == 0:
* raise ParserError, u"parser locking failed"
* self._error_log.clear() # <<<<<<<<<<<<<<
* self._doc = None
* self._c_ctxt.sax.serror = _receiveParserError
*/
- __pyx_t_3 = ((struct __pyx_vtabstruct_4lxml_5etree__ErrorLog *)__pyx_v_self->_error_log->__pyx_base.__pyx_base.__pyx_vtab)->clear(__pyx_v_self->_error_log, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 581, __pyx_L1_error)
+ __pyx_t_3 = ((struct __pyx_vtabstruct_4lxml_5etree__ErrorLog *)__pyx_v_self->_error_log->__pyx_base.__pyx_base.__pyx_vtab)->clear(__pyx_v_self->_error_log, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 584, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- /* "src/lxml/parser.pxi":582
+ /* "src/lxml/parser.pxi":585
* raise ParserError, u"parser locking failed"
* self._error_log.clear()
* self._doc = None # <<<<<<<<<<<<<<
__Pyx_DECREF(((PyObject *)__pyx_v_self->_doc));
__pyx_v_self->_doc = ((struct LxmlDocument *)Py_None);
- /* "src/lxml/parser.pxi":583
+ /* "src/lxml/parser.pxi":586
* self._error_log.clear()
* self._doc = None
* self._c_ctxt.sax.serror = _receiveParserError # <<<<<<<<<<<<<<
*/
__pyx_v_self->_c_ctxt->sax->serror = __pyx_f_4lxml_5etree__receiveParserError;
- /* "src/lxml/parser.pxi":584
+ /* "src/lxml/parser.pxi":587
* self._doc = None
* self._c_ctxt.sax.serror = _receiveParserError
* self._orig_loader = _register_document_loader() if set_document_loader else NULL # <<<<<<<<<<<<<<
}
__pyx_v_self->_orig_loader = __pyx_t_4;
- /* "src/lxml/parser.pxi":585
+ /* "src/lxml/parser.pxi":588
* self._c_ctxt.sax.serror = _receiveParserError
* self._orig_loader = _register_document_loader() if set_document_loader else NULL
* if self._validator is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":586
+ /* "src/lxml/parser.pxi":589
* self._orig_loader = _register_document_loader() if set_document_loader else NULL
* if self._validator is not None:
* self._validator.connect(self._c_ctxt, self._error_log) # <<<<<<<<<<<<<<
*/
__pyx_t_3 = ((PyObject *)__pyx_v_self->_error_log);
__Pyx_INCREF(__pyx_t_3);
- __pyx_t_5 = __pyx_f_4lxml_5etree_30_ParserSchemaValidationContext_connect(__pyx_v_self->_validator, __pyx_v_self->_c_ctxt, ((struct __pyx_obj_4lxml_5etree__BaseErrorLog *)__pyx_t_3)); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 586, __pyx_L1_error)
+ __pyx_t_5 = __pyx_f_4lxml_5etree_30_ParserSchemaValidationContext_connect(__pyx_v_self->_validator, __pyx_v_self->_c_ctxt, ((struct __pyx_obj_4lxml_5etree__BaseErrorLog *)__pyx_t_3)); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 589, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- /* "src/lxml/parser.pxi":585
+ /* "src/lxml/parser.pxi":588
* self._c_ctxt.sax.serror = _receiveParserError
* self._orig_loader = _register_document_loader() if set_document_loader else NULL
* if self._validator is not None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":587
+ /* "src/lxml/parser.pxi":590
* if self._validator is not None:
* self._validator.connect(self._c_ctxt, self._error_log)
* return 0 # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":573
- * xmlparser.xmlClearParserCtxt(self._c_ctxt)
+ /* "src/lxml/parser.pxi":576
+ * self._c_ctxt.nsNr = 0
*
* cdef int prepare(self, bint set_document_loader=True) except -1: # <<<<<<<<<<<<<<
* cdef int result
return __pyx_r;
}
-/* "src/lxml/parser.pxi":589
+/* "src/lxml/parser.pxi":592
* return 0
*
* cdef int cleanup(self) except -1: # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("cleanup", 0);
- /* "src/lxml/parser.pxi":590
+ /* "src/lxml/parser.pxi":593
*
* cdef int cleanup(self) except -1:
* if self._orig_loader is not NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_self->_orig_loader != NULL) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":591
+ /* "src/lxml/parser.pxi":594
* cdef int cleanup(self) except -1:
* if self._orig_loader is not NULL:
* _reset_document_loader(self._orig_loader) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree__reset_document_loader(__pyx_v_self->_orig_loader);
- /* "src/lxml/parser.pxi":590
+ /* "src/lxml/parser.pxi":593
*
* cdef int cleanup(self) except -1:
* if self._orig_loader is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":592
+ /* "src/lxml/parser.pxi":595
* if self._orig_loader is not NULL:
* _reset_document_loader(self._orig_loader)
* try: # <<<<<<<<<<<<<<
*/
/*try:*/ {
- /* "src/lxml/parser.pxi":593
+ /* "src/lxml/parser.pxi":596
* _reset_document_loader(self._orig_loader)
* try:
* if self._validator is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":594
+ /* "src/lxml/parser.pxi":597
* try:
* if self._validator is not None:
* self._validator.disconnect() # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree_30_ParserSchemaValidationContext_disconnect(__pyx_v_self->_validator);
- /* "src/lxml/parser.pxi":593
+ /* "src/lxml/parser.pxi":596
* _reset_document_loader(self._orig_loader)
* try:
* if self._validator is not None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":595
+ /* "src/lxml/parser.pxi":598
* if self._validator is not None:
* self._validator.disconnect()
* self._resetParserContext() # <<<<<<<<<<<<<<
*/
((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_vtab)->_resetParserContext(__pyx_v_self);
- /* "src/lxml/parser.pxi":596
+ /* "src/lxml/parser.pxi":599
* self._validator.disconnect()
* self._resetParserContext()
* self.clear() # <<<<<<<<<<<<<<
* self._doc = None
* self._c_ctxt.sax.serror = NULL
*/
- __pyx_t_3 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.clear(((struct __pyx_obj_4lxml_5etree__ExceptionContext *)__pyx_v_self)); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(2, 596, __pyx_L5_error)
+ __pyx_t_3 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.clear(((struct __pyx_obj_4lxml_5etree__ExceptionContext *)__pyx_v_self)); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(2, 599, __pyx_L5_error)
- /* "src/lxml/parser.pxi":597
+ /* "src/lxml/parser.pxi":600
* self._resetParserContext()
* self.clear()
* self._doc = None # <<<<<<<<<<<<<<
__Pyx_DECREF(((PyObject *)__pyx_v_self->_doc));
__pyx_v_self->_doc = ((struct LxmlDocument *)Py_None);
- /* "src/lxml/parser.pxi":598
+ /* "src/lxml/parser.pxi":601
* self.clear()
* self._doc = None
* self._c_ctxt.sax.serror = NULL # <<<<<<<<<<<<<<
__pyx_v_self->_c_ctxt->sax->serror = NULL;
}
- /* "src/lxml/parser.pxi":600
+ /* "src/lxml/parser.pxi":603
* self._c_ctxt.sax.serror = NULL
* finally:
* if config.ENABLE_THREADING and self._lock is not NULL: # <<<<<<<<<<<<<<
__pyx_L9_bool_binop_done:;
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":601
+ /* "src/lxml/parser.pxi":604
* finally:
* if config.ENABLE_THREADING and self._lock is not NULL:
* python.PyThread_release_lock(self._lock) # <<<<<<<<<<<<<<
*/
PyThread_release_lock(__pyx_v_self->_lock);
- /* "src/lxml/parser.pxi":600
+ /* "src/lxml/parser.pxi":603
* self._c_ctxt.sax.serror = NULL
* finally:
* if config.ENABLE_THREADING and self._lock is not NULL: # <<<<<<<<<<<<<<
__pyx_L14_bool_binop_done:;
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":601
+ /* "src/lxml/parser.pxi":604
* finally:
* if config.ENABLE_THREADING and self._lock is not NULL:
* python.PyThread_release_lock(self._lock) # <<<<<<<<<<<<<<
*/
PyThread_release_lock(__pyx_v_self->_lock);
- /* "src/lxml/parser.pxi":600
+ /* "src/lxml/parser.pxi":603
* self._c_ctxt.sax.serror = NULL
* finally:
* if config.ENABLE_THREADING and self._lock is not NULL: # <<<<<<<<<<<<<<
__pyx_L6:;
}
- /* "src/lxml/parser.pxi":602
+ /* "src/lxml/parser.pxi":605
* if config.ENABLE_THREADING and self._lock is not NULL:
* python.PyThread_release_lock(self._lock)
* return 0 # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":589
+ /* "src/lxml/parser.pxi":592
* return 0
*
* cdef int cleanup(self) except -1: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":604
+/* "src/lxml/parser.pxi":607
* return 0
*
* cdef object _handleParseResult(self, _BaseParser parser, # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_handleParseResult", 0);
- /* "src/lxml/parser.pxi":606
+ /* "src/lxml/parser.pxi":609
* cdef object _handleParseResult(self, _BaseParser parser,
* xmlDoc* result, filename):
* c_doc = self._handleParseResultDoc(parser, result, filename) # <<<<<<<<<<<<<<
* if self._doc is not None and self._doc._c_doc is c_doc:
* return self._doc
*/
- __pyx_t_1 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_vtab)->_handleParseResultDoc(__pyx_v_self, __pyx_v_parser, __pyx_v_result, __pyx_v_filename); if (unlikely(__pyx_t_1 == ((xmlDoc *)NULL))) __PYX_ERR(2, 606, __pyx_L1_error)
+ __pyx_t_1 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_vtab)->_handleParseResultDoc(__pyx_v_self, __pyx_v_parser, __pyx_v_result, __pyx_v_filename); if (unlikely(__pyx_t_1 == ((xmlDoc *)NULL))) __PYX_ERR(2, 609, __pyx_L1_error)
__pyx_v_c_doc = __pyx_t_1;
- /* "src/lxml/parser.pxi":607
+ /* "src/lxml/parser.pxi":610
* xmlDoc* result, filename):
* c_doc = self._handleParseResultDoc(parser, result, filename)
* if self._doc is not None and self._doc._c_doc is c_doc: # <<<<<<<<<<<<<<
__pyx_L4_bool_binop_done:;
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":608
+ /* "src/lxml/parser.pxi":611
* c_doc = self._handleParseResultDoc(parser, result, filename)
* if self._doc is not None and self._doc._c_doc is c_doc:
* return self._doc # <<<<<<<<<<<<<<
__pyx_r = ((PyObject *)__pyx_v_self->_doc);
goto __pyx_L0;
- /* "src/lxml/parser.pxi":607
+ /* "src/lxml/parser.pxi":610
* xmlDoc* result, filename):
* c_doc = self._handleParseResultDoc(parser, result, filename)
* if self._doc is not None and self._doc._c_doc is c_doc: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":610
+ /* "src/lxml/parser.pxi":613
* return self._doc
* else:
* return _documentFactory(c_doc, parser) # <<<<<<<<<<<<<<
*/
/*else*/ {
__Pyx_XDECREF(__pyx_r);
- __pyx_t_5 = ((PyObject *)__pyx_f_4lxml_5etree__documentFactory(__pyx_v_c_doc, __pyx_v_parser)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 610, __pyx_L1_error)
+ __pyx_t_5 = ((PyObject *)__pyx_f_4lxml_5etree__documentFactory(__pyx_v_c_doc, __pyx_v_parser)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 613, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__pyx_r = __pyx_t_5;
__pyx_t_5 = 0;
goto __pyx_L0;
}
- /* "src/lxml/parser.pxi":604
+ /* "src/lxml/parser.pxi":607
* return 0
*
* cdef object _handleParseResult(self, _BaseParser parser, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":612
+/* "src/lxml/parser.pxi":615
* return _documentFactory(c_doc, parser)
*
* cdef xmlDoc* _handleParseResultDoc(self, _BaseParser parser, # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_handleParseResultDoc", 0);
- /* "src/lxml/parser.pxi":614
+ /* "src/lxml/parser.pxi":617
* cdef xmlDoc* _handleParseResultDoc(self, _BaseParser parser,
* xmlDoc* result, filename) except NULL:
* recover = parser._parse_options & xmlparser.XML_PARSE_RECOVER # <<<<<<<<<<<<<<
*/
__pyx_v_recover = (__pyx_v_parser->_parse_options & XML_PARSE_RECOVER);
- /* "src/lxml/parser.pxi":617
+ /* "src/lxml/parser.pxi":620
* return _handleParseResult(self, self._c_ctxt, result,
* filename, recover,
* free_doc=self._doc is None) # <<<<<<<<<<<<<<
*/
__pyx_t_1 = (((PyObject *)__pyx_v_self->_doc) == Py_None);
- /* "src/lxml/parser.pxi":615
+ /* "src/lxml/parser.pxi":618
* xmlDoc* result, filename) except NULL:
* recover = parser._parse_options & xmlparser.XML_PARSE_RECOVER
* return _handleParseResult(self, self._c_ctxt, result, # <<<<<<<<<<<<<<
* filename, recover,
* free_doc=self._doc is None)
*/
- __pyx_t_2 = __pyx_f_4lxml_5etree__handleParseResult(__pyx_v_self, __pyx_v_self->_c_ctxt, __pyx_v_result, __pyx_v_filename, __pyx_v_recover, __pyx_t_1); if (unlikely(__pyx_t_2 == ((xmlDoc *)NULL))) __PYX_ERR(2, 615, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__handleParseResult(__pyx_v_self, __pyx_v_self->_c_ctxt, __pyx_v_result, __pyx_v_filename, __pyx_v_recover, __pyx_t_1); if (unlikely(__pyx_t_2 == ((xmlDoc *)NULL))) __PYX_ERR(2, 618, __pyx_L1_error)
__pyx_r = __pyx_t_2;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":612
+ /* "src/lxml/parser.pxi":615
* return _documentFactory(c_doc, parser)
*
* cdef xmlDoc* _handleParseResultDoc(self, _BaseParser parser, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":619
+/* "src/lxml/parser.pxi":622
* free_doc=self._doc is None)
*
* cdef _initParserContext(_ParserContext context, # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_initParserContext", 0);
- /* "src/lxml/parser.pxi":622
+ /* "src/lxml/parser.pxi":625
* _ResolverRegistry resolvers,
* xmlparser.xmlParserCtxt* c_ctxt):
* _initResolverContext(context, resolvers) # <<<<<<<<<<<<<<
* if c_ctxt is not NULL:
* context._initParserContext(c_ctxt)
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__initResolverContext(((struct __pyx_obj_4lxml_5etree__ResolverContext *)__pyx_v_context), __pyx_v_resolvers); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 622, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__initResolverContext(((struct __pyx_obj_4lxml_5etree__ResolverContext *)__pyx_v_context), __pyx_v_resolvers); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 625, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "src/lxml/parser.pxi":623
+ /* "src/lxml/parser.pxi":626
* xmlparser.xmlParserCtxt* c_ctxt):
* _initResolverContext(context, resolvers)
* if c_ctxt is not NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_ctxt != NULL) != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":624
+ /* "src/lxml/parser.pxi":627
* _initResolverContext(context, resolvers)
* if c_ctxt is not NULL:
* context._initParserContext(c_ctxt) # <<<<<<<<<<<<<<
*/
((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->_initParserContext(__pyx_v_context, __pyx_v_c_ctxt);
- /* "src/lxml/parser.pxi":623
+ /* "src/lxml/parser.pxi":626
* xmlparser.xmlParserCtxt* c_ctxt):
* _initResolverContext(context, resolvers)
* if c_ctxt is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":619
+ /* "src/lxml/parser.pxi":622
* free_doc=self._doc is None)
*
* cdef _initParserContext(_ParserContext context, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":626
+/* "src/lxml/parser.pxi":629
* context._initParserContext(c_ctxt)
*
* cdef void _forwardParserError(xmlparser.xmlParserCtxt* _parser_context, xmlerror.xmlError* error) with gil: # <<<<<<<<<<<<<<
#endif
__Pyx_RefNannySetupContext("_forwardParserError", 0);
- /* "src/lxml/parser.pxi":627
+ /* "src/lxml/parser.pxi":630
*
* cdef void _forwardParserError(xmlparser.xmlParserCtxt* _parser_context, xmlerror.xmlError* error) with gil:
* (<_ParserContext>_parser_context._private)._error_log._receive(error) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree_13_BaseErrorLog__receive(((struct __pyx_obj_4lxml_5etree__BaseErrorLog *)((struct __pyx_obj_4lxml_5etree__ParserContext *)__pyx_v__parser_context->_private)->_error_log), __pyx_v_error);
- /* "src/lxml/parser.pxi":626
+ /* "src/lxml/parser.pxi":629
* context._initParserContext(c_ctxt)
*
* cdef void _forwardParserError(xmlparser.xmlParserCtxt* _parser_context, xmlerror.xmlError* error) with gil: # <<<<<<<<<<<<<<
#endif
}
-/* "src/lxml/parser.pxi":629
+/* "src/lxml/parser.pxi":632
* (<_ParserContext>_parser_context._private)._error_log._receive(error)
*
* cdef void _receiveParserError(void* c_context, xmlerror.xmlError* error) nogil: # <<<<<<<<<<<<<<
int __pyx_t_1;
int __pyx_t_2;
- /* "src/lxml/parser.pxi":631
+ /* "src/lxml/parser.pxi":634
* cdef void _receiveParserError(void* c_context, xmlerror.xmlError* error) nogil:
* if __DEBUG:
* if c_context is NULL or (<xmlparser.xmlParserCtxt*>c_context)._private is NULL: # <<<<<<<<<<<<<<
__pyx_L4_bool_binop_done:;
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":632
+ /* "src/lxml/parser.pxi":635
* if __DEBUG:
* if c_context is NULL or (<xmlparser.xmlParserCtxt*>c_context)._private is NULL:
* _forwardError(NULL, error) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree__forwardError(NULL, __pyx_v_error);
- /* "src/lxml/parser.pxi":631
+ /* "src/lxml/parser.pxi":634
* cdef void _receiveParserError(void* c_context, xmlerror.xmlError* error) nogil:
* if __DEBUG:
* if c_context is NULL or (<xmlparser.xmlParserCtxt*>c_context)._private is NULL: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "src/lxml/parser.pxi":634
+ /* "src/lxml/parser.pxi":637
* _forwardError(NULL, error)
* else:
* _forwardParserError(<xmlparser.xmlParserCtxt*>c_context, error) # <<<<<<<<<<<<<<
}
__pyx_L3:;
- /* "src/lxml/parser.pxi":629
+ /* "src/lxml/parser.pxi":632
* (<_ParserContext>_parser_context._private)._error_log._receive(error)
*
* cdef void _receiveParserError(void* c_context, xmlerror.xmlError* error) nogil: # <<<<<<<<<<<<<<
/* function exit code */
}
-/* "src/lxml/parser.pxi":636
+/* "src/lxml/parser.pxi":639
* _forwardParserError(<xmlparser.xmlParserCtxt*>c_context, error)
*
* cdef int _raiseParseError(xmlparser.xmlParserCtxt* ctxt, filename, # <<<<<<<<<<<<<<
__Pyx_RefNannySetupContext("_raiseParseError", 0);
__Pyx_INCREF(__pyx_v_filename);
- /* "src/lxml/parser.pxi":638
+ /* "src/lxml/parser.pxi":641
* cdef int _raiseParseError(xmlparser.xmlParserCtxt* ctxt, filename,
* _ErrorLog error_log) except -1:
* if filename is not None and \ # <<<<<<<<<<<<<<
goto __pyx_L4_bool_binop_done;
}
- /* "src/lxml/parser.pxi":639
+ /* "src/lxml/parser.pxi":642
* _ErrorLog error_log) except -1:
* if filename is not None and \
* ctxt.lastError.domain == xmlerror.XML_FROM_IO: # <<<<<<<<<<<<<<
__pyx_t_1 = __pyx_t_3;
__pyx_L4_bool_binop_done:;
- /* "src/lxml/parser.pxi":638
+ /* "src/lxml/parser.pxi":641
* cdef int _raiseParseError(xmlparser.xmlParserCtxt* ctxt, filename,
* _ErrorLog error_log) except -1:
* if filename is not None and \ # <<<<<<<<<<<<<<
*/
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":640
+ /* "src/lxml/parser.pxi":643
* if filename is not None and \
* ctxt.lastError.domain == xmlerror.XML_FROM_IO:
* if isinstance(filename, bytes): # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_1 != 0);
if (__pyx_t_3) {
- /* "src/lxml/parser.pxi":642
+ /* "src/lxml/parser.pxi":645
* if isinstance(filename, bytes):
* filename = _decodeFilenameWithLength(
* <bytes>filename, len(<bytes>filename)) # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_v_filename == Py_None)) {
PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
- __PYX_ERR(2, 642, __pyx_L1_error)
+ __PYX_ERR(2, 645, __pyx_L1_error)
}
- __pyx_t_4 = __Pyx_PyBytes_AsUString(__pyx_v_filename); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(2, 642, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyBytes_AsUString(__pyx_v_filename); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(2, 645, __pyx_L1_error)
if (unlikely(__pyx_v_filename == Py_None)) {
PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
- __PYX_ERR(2, 642, __pyx_L1_error)
+ __PYX_ERR(2, 645, __pyx_L1_error)
}
- __pyx_t_5 = PyBytes_GET_SIZE(((PyObject*)__pyx_v_filename)); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 642, __pyx_L1_error)
+ __pyx_t_5 = PyBytes_GET_SIZE(((PyObject*)__pyx_v_filename)); if (unlikely(__pyx_t_5 == ((Py_ssize_t)-1))) __PYX_ERR(2, 645, __pyx_L1_error)
- /* "src/lxml/parser.pxi":641
+ /* "src/lxml/parser.pxi":644
* ctxt.lastError.domain == xmlerror.XML_FROM_IO:
* if isinstance(filename, bytes):
* filename = _decodeFilenameWithLength( # <<<<<<<<<<<<<<
* <bytes>filename, len(<bytes>filename))
* if ctxt.lastError.message is not NULL:
*/
- __pyx_t_6 = __pyx_f_4lxml_5etree__decodeFilenameWithLength(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 641, __pyx_L1_error)
+ __pyx_t_6 = __pyx_f_4lxml_5etree__decodeFilenameWithLength(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 644, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF_SET(__pyx_v_filename, __pyx_t_6);
__pyx_t_6 = 0;
- /* "src/lxml/parser.pxi":640
+ /* "src/lxml/parser.pxi":643
* if filename is not None and \
* ctxt.lastError.domain == xmlerror.XML_FROM_IO:
* if isinstance(filename, bytes): # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":643
+ /* "src/lxml/parser.pxi":646
* filename = _decodeFilenameWithLength(
* <bytes>filename, len(<bytes>filename))
* if ctxt.lastError.message is not NULL: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_ctxt->lastError.message != NULL) != 0);
if (__pyx_t_3) {
- /* "src/lxml/parser.pxi":644
+ /* "src/lxml/parser.pxi":647
* <bytes>filename, len(<bytes>filename))
* if ctxt.lastError.message is not NULL:
* try: # <<<<<<<<<<<<<<
__Pyx_XGOTREF(__pyx_t_9);
/*try:*/ {
- /* "src/lxml/parser.pxi":645
+ /* "src/lxml/parser.pxi":648
* if ctxt.lastError.message is not NULL:
* try:
* message = ctxt.lastError.message.decode('utf-8') # <<<<<<<<<<<<<<
* # the filename may be in there => play it safe
*/
__pyx_t_10 = __pyx_v_ctxt->lastError.message;
- __pyx_t_6 = __Pyx_decode_c_string(__pyx_t_10, 0, strlen(__pyx_t_10), NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 645, __pyx_L8_error)
+ __pyx_t_6 = __Pyx_decode_c_string(__pyx_t_10, 0, strlen(__pyx_t_10), NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 648, __pyx_L8_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_INCREF(__pyx_t_6);
__pyx_v_message = __pyx_t_6;
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
- /* "src/lxml/parser.pxi":644
+ /* "src/lxml/parser.pxi":647
* <bytes>filename, len(<bytes>filename))
* if ctxt.lastError.message is not NULL:
* try: # <<<<<<<<<<<<<<
__pyx_L8_error:;
__Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
- /* "src/lxml/parser.pxi":646
+ /* "src/lxml/parser.pxi":649
* try:
* message = ctxt.lastError.message.decode('utf-8')
* except UnicodeDecodeError: # <<<<<<<<<<<<<<
__pyx_t_11 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_UnicodeDecodeError);
if (__pyx_t_11) {
__Pyx_AddTraceback("lxml.etree._raiseParseError", __pyx_clineno, __pyx_lineno, __pyx_filename);
- if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_12, &__pyx_t_13) < 0) __PYX_ERR(2, 646, __pyx_L10_except_error)
+ if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_12, &__pyx_t_13) < 0) __PYX_ERR(2, 649, __pyx_L10_except_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_GOTREF(__pyx_t_12);
__Pyx_GOTREF(__pyx_t_13);
- /* "src/lxml/parser.pxi":648
+ /* "src/lxml/parser.pxi":651
* except UnicodeDecodeError:
* # the filename may be in there => play it safe
* message = ctxt.lastError.message.decode('iso8859-1') # <<<<<<<<<<<<<<
* else:
*/
__pyx_t_10 = __pyx_v_ctxt->lastError.message;
- __pyx_t_14 = __Pyx_decode_c_string(__pyx_t_10, 0, strlen(__pyx_t_10), NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 648, __pyx_L10_except_error)
+ __pyx_t_14 = __Pyx_decode_c_string(__pyx_t_10, 0, strlen(__pyx_t_10), NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 651, __pyx_L10_except_error)
__Pyx_GOTREF(__pyx_t_14);
__Pyx_INCREF(__pyx_t_14);
__Pyx_XDECREF_SET(__pyx_v_message, __pyx_t_14);
goto __pyx_L10_except_error;
__pyx_L10_except_error:;
- /* "src/lxml/parser.pxi":644
+ /* "src/lxml/parser.pxi":647
* <bytes>filename, len(<bytes>filename))
* if ctxt.lastError.message is not NULL:
* try: # <<<<<<<<<<<<<<
__pyx_L13_try_end:;
}
- /* "src/lxml/parser.pxi":649
+ /* "src/lxml/parser.pxi":652
* # the filename may be in there => play it safe
* message = ctxt.lastError.message.decode('iso8859-1')
* message = f"Error reading file '{filename}': {message.strip()}" # <<<<<<<<<<<<<<
* else:
* message = f"Error reading '{filename}'"
*/
- __pyx_t_13 = PyTuple_New(4); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 649, __pyx_L1_error)
+ __pyx_t_13 = PyTuple_New(4); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 652, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_13);
__pyx_t_5 = 0;
__pyx_t_15 = 127;
__pyx_t_5 += 20;
__Pyx_GIVEREF(__pyx_kp_u_Error_reading_file);
PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_kp_u_Error_reading_file);
- __pyx_t_12 = __Pyx_PyObject_FormatSimple(__pyx_v_filename, __pyx_empty_unicode); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 649, __pyx_L1_error)
+ __pyx_t_12 = __Pyx_PyObject_FormatSimple(__pyx_v_filename, __pyx_empty_unicode); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 652, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_12);
__pyx_t_15 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_12) > __pyx_t_15) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_12) : __pyx_t_15;
__pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_12);
__pyx_t_5 += 3;
__Pyx_GIVEREF(__pyx_kp_u__56);
PyTuple_SET_ITEM(__pyx_t_13, 2, __pyx_kp_u__56);
- __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_message, __pyx_n_s_strip); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 649, __pyx_L1_error)
+ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_message, __pyx_n_s_strip); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 652, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__pyx_t_14 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_6))) {
}
__pyx_t_12 = (__pyx_t_14) ? __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_14) : __Pyx_PyObject_CallNoArg(__pyx_t_6);
__Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
- if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 649, __pyx_L1_error)
+ if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 652, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_12);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
- __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_t_12, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 649, __pyx_L1_error)
+ __pyx_t_6 = __Pyx_PyObject_FormatSimple(__pyx_t_12, __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 652, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
__pyx_t_15 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) > __pyx_t_15) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_6) : __pyx_t_15;
__Pyx_GIVEREF(__pyx_t_6);
PyTuple_SET_ITEM(__pyx_t_13, 3, __pyx_t_6);
__pyx_t_6 = 0;
- __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_13, 4, __pyx_t_5, __pyx_t_15); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 649, __pyx_L1_error)
+ __pyx_t_6 = __Pyx_PyUnicode_Join(__pyx_t_13, 4, __pyx_t_5, __pyx_t_15); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 652, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
__Pyx_DECREF_SET(__pyx_v_message, __pyx_t_6);
__pyx_t_6 = 0;
- /* "src/lxml/parser.pxi":643
+ /* "src/lxml/parser.pxi":646
* filename = _decodeFilenameWithLength(
* <bytes>filename, len(<bytes>filename))
* if ctxt.lastError.message is not NULL: # <<<<<<<<<<<<<<
goto __pyx_L7;
}
- /* "src/lxml/parser.pxi":651
+ /* "src/lxml/parser.pxi":654
* message = f"Error reading file '{filename}': {message.strip()}"
* else:
* message = f"Error reading '{filename}'" # <<<<<<<<<<<<<<
* elif error_log:
*/
/*else*/ {
- __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 651, __pyx_L1_error)
+ __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 654, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__pyx_t_5 = 0;
__pyx_t_15 = 127;
__pyx_t_5 += 15;
__Pyx_GIVEREF(__pyx_kp_u_Error_reading);
PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_kp_u_Error_reading);
- __pyx_t_13 = __Pyx_PyObject_FormatSimple(__pyx_v_filename, __pyx_empty_unicode); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 651, __pyx_L1_error)
+ __pyx_t_13 = __Pyx_PyObject_FormatSimple(__pyx_v_filename, __pyx_empty_unicode); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 654, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_13);
__pyx_t_15 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_13) > __pyx_t_15) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_13) : __pyx_t_15;
__pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_13);
__pyx_t_5 += 1;
__Pyx_GIVEREF(__pyx_kp_u__22);
PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_kp_u__22);
- __pyx_t_13 = __Pyx_PyUnicode_Join(__pyx_t_6, 3, __pyx_t_5, __pyx_t_15); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 651, __pyx_L1_error)
+ __pyx_t_13 = __Pyx_PyUnicode_Join(__pyx_t_6, 3, __pyx_t_5, __pyx_t_15); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 654, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_13);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__pyx_v_message = __pyx_t_13;
}
__pyx_L7:;
- /* "src/lxml/parser.pxi":652
+ /* "src/lxml/parser.pxi":655
* else:
* message = f"Error reading '{filename}'"
* raise IOError, message # <<<<<<<<<<<<<<
* raise error_log._buildParseException(
*/
__Pyx_Raise(__pyx_builtin_IOError, __pyx_v_message, 0, 0);
- __PYX_ERR(2, 652, __pyx_L1_error)
+ __PYX_ERR(2, 655, __pyx_L1_error)
- /* "src/lxml/parser.pxi":638
+ /* "src/lxml/parser.pxi":641
* cdef int _raiseParseError(xmlparser.xmlParserCtxt* ctxt, filename,
* _ErrorLog error_log) except -1:
* if filename is not None and \ # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":653
+ /* "src/lxml/parser.pxi":656
* message = f"Error reading '{filename}'"
* raise IOError, message
* elif error_log: # <<<<<<<<<<<<<<
* raise error_log._buildParseException(
* XMLSyntaxError, u"Document is not well formed")
*/
- __pyx_t_3 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_error_log)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 653, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_IsTrue(((PyObject *)__pyx_v_error_log)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 656, __pyx_L1_error)
if (unlikely(__pyx_t_3)) {
- /* "src/lxml/parser.pxi":655
+ /* "src/lxml/parser.pxi":658
* elif error_log:
* raise error_log._buildParseException(
* XMLSyntaxError, u"Document is not well formed") # <<<<<<<<<<<<<<
* elif ctxt.lastError.message is not NULL:
* message = ctxt.lastError.message.strip()
*/
- __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_n_s_XMLSyntaxError); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 655, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_13, __pyx_n_s_XMLSyntaxError); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 658, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_13);
- /* "src/lxml/parser.pxi":654
+ /* "src/lxml/parser.pxi":657
* raise IOError, message
* elif error_log:
* raise error_log._buildParseException( # <<<<<<<<<<<<<<
* XMLSyntaxError, u"Document is not well formed")
* elif ctxt.lastError.message is not NULL:
*/
- __pyx_t_6 = __pyx_f_4lxml_5etree_13_BaseErrorLog__buildParseException(((struct __pyx_obj_4lxml_5etree__BaseErrorLog *)__pyx_v_error_log), __pyx_t_13, __pyx_kp_u_Document_is_not_well_formed); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 654, __pyx_L1_error)
+ __pyx_t_6 = __pyx_f_4lxml_5etree_13_BaseErrorLog__buildParseException(((struct __pyx_obj_4lxml_5etree__BaseErrorLog *)__pyx_v_error_log), __pyx_t_13, __pyx_kp_u_Document_is_not_well_formed); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 657, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
__Pyx_Raise(__pyx_t_6, 0, 0, 0);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
- __PYX_ERR(2, 654, __pyx_L1_error)
+ __PYX_ERR(2, 657, __pyx_L1_error)
- /* "src/lxml/parser.pxi":653
+ /* "src/lxml/parser.pxi":656
* message = f"Error reading '{filename}'"
* raise IOError, message
* elif error_log: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":656
+ /* "src/lxml/parser.pxi":659
* raise error_log._buildParseException(
* XMLSyntaxError, u"Document is not well formed")
* elif ctxt.lastError.message is not NULL: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_ctxt->lastError.message != NULL) != 0);
if (likely(__pyx_t_3)) {
- /* "src/lxml/parser.pxi":657
+ /* "src/lxml/parser.pxi":660
* XMLSyntaxError, u"Document is not well formed")
* elif ctxt.lastError.message is not NULL:
* message = ctxt.lastError.message.strip() # <<<<<<<<<<<<<<
* code = ctxt.lastError.code
* line = ctxt.lastError.line
*/
- __pyx_t_13 = __Pyx_PyBytes_FromString(__pyx_v_ctxt->lastError.message); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 657, __pyx_L1_error)
+ __pyx_t_13 = __Pyx_PyBytes_FromString(__pyx_v_ctxt->lastError.message); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 660, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_13);
- __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_13, __pyx_n_s_strip); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 657, __pyx_L1_error)
+ __pyx_t_12 = __Pyx_PyObject_GetAttrStr(__pyx_t_13, __pyx_n_s_strip); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 660, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_12);
__Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
__pyx_t_13 = NULL;
}
__pyx_t_6 = (__pyx_t_13) ? __Pyx_PyObject_CallOneArg(__pyx_t_12, __pyx_t_13) : __Pyx_PyObject_CallNoArg(__pyx_t_12);
__Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0;
- if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 657, __pyx_L1_error)
+ if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 660, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
__pyx_v_message = __pyx_t_6;
__pyx_t_6 = 0;
- /* "src/lxml/parser.pxi":658
+ /* "src/lxml/parser.pxi":661
* elif ctxt.lastError.message is not NULL:
* message = ctxt.lastError.message.strip()
* code = ctxt.lastError.code # <<<<<<<<<<<<<<
__pyx_t_11 = __pyx_v_ctxt->lastError.code;
__pyx_v_code = __pyx_t_11;
- /* "src/lxml/parser.pxi":659
+ /* "src/lxml/parser.pxi":662
* message = ctxt.lastError.message.strip()
* code = ctxt.lastError.code
* line = ctxt.lastError.line # <<<<<<<<<<<<<<
__pyx_t_11 = __pyx_v_ctxt->lastError.line;
__pyx_v_line = __pyx_t_11;
- /* "src/lxml/parser.pxi":660
+ /* "src/lxml/parser.pxi":663
* code = ctxt.lastError.code
* line = ctxt.lastError.line
* column = ctxt.lastError.int2 # <<<<<<<<<<<<<<
__pyx_t_11 = __pyx_v_ctxt->lastError.int2;
__pyx_v_column = __pyx_t_11;
- /* "src/lxml/parser.pxi":661
+ /* "src/lxml/parser.pxi":664
* line = ctxt.lastError.line
* column = ctxt.lastError.int2
* if ctxt.lastError.line > 0: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_ctxt->lastError.line > 0) != 0);
if (__pyx_t_3) {
- /* "src/lxml/parser.pxi":662
+ /* "src/lxml/parser.pxi":665
* column = ctxt.lastError.int2
* if ctxt.lastError.line > 0:
* message = f"line {line}: {message}" # <<<<<<<<<<<<<<
* raise XMLSyntaxError(message, code, line, column, filename)
* else:
*/
- __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 662, __pyx_L1_error)
+ __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 665, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__pyx_t_5 = 0;
__pyx_t_15 = 127;
__pyx_t_5 += 5;
__Pyx_GIVEREF(__pyx_kp_u_line_3);
PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_kp_u_line_3);
- __pyx_t_12 = __Pyx_PyUnicode_From_int(__pyx_v_line, 0, ' ', 'd'); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 662, __pyx_L1_error)
+ __pyx_t_12 = __Pyx_PyUnicode_From_int(__pyx_v_line, 0, ' ', 'd'); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 665, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_12);
__pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_12);
__Pyx_GIVEREF(__pyx_t_12);
__pyx_t_5 += 2;
__Pyx_GIVEREF(__pyx_kp_u__18);
PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_kp_u__18);
- __pyx_t_12 = __Pyx_PyObject_FormatSimple(__pyx_v_message, __pyx_empty_unicode); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 662, __pyx_L1_error)
+ __pyx_t_12 = __Pyx_PyObject_FormatSimple(__pyx_v_message, __pyx_empty_unicode); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 665, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_12);
__pyx_t_15 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_12) > __pyx_t_15) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_12) : __pyx_t_15;
__pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_12);
__Pyx_GIVEREF(__pyx_t_12);
PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_12);
__pyx_t_12 = 0;
- __pyx_t_12 = __Pyx_PyUnicode_Join(__pyx_t_6, 4, __pyx_t_5, __pyx_t_15); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 662, __pyx_L1_error)
+ __pyx_t_12 = __Pyx_PyUnicode_Join(__pyx_t_6, 4, __pyx_t_5, __pyx_t_15); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 665, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_12);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__Pyx_DECREF_SET(__pyx_v_message, __pyx_t_12);
__pyx_t_12 = 0;
- /* "src/lxml/parser.pxi":661
+ /* "src/lxml/parser.pxi":664
* line = ctxt.lastError.line
* column = ctxt.lastError.int2
* if ctxt.lastError.line > 0: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":663
+ /* "src/lxml/parser.pxi":666
* if ctxt.lastError.line > 0:
* message = f"line {line}: {message}"
* raise XMLSyntaxError(message, code, line, column, filename) # <<<<<<<<<<<<<<
* else:
* raise XMLSyntaxError(None, xmlerror.XML_ERR_INTERNAL_ERROR, 0, 0,
*/
- __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_XMLSyntaxError); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 663, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_XMLSyntaxError); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 666, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
- __pyx_t_13 = __Pyx_PyInt_From_int(__pyx_v_code); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 663, __pyx_L1_error)
+ __pyx_t_13 = __Pyx_PyInt_From_int(__pyx_v_code); if (unlikely(!__pyx_t_13)) __PYX_ERR(2, 666, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_13);
- __pyx_t_14 = __Pyx_PyInt_From_int(__pyx_v_line); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 663, __pyx_L1_error)
+ __pyx_t_14 = __Pyx_PyInt_From_int(__pyx_v_line); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 666, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_14);
- __pyx_t_16 = __Pyx_PyInt_From_int(__pyx_v_column); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 663, __pyx_L1_error)
+ __pyx_t_16 = __Pyx_PyInt_From_int(__pyx_v_column); if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 666, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_16);
__pyx_t_17 = NULL;
__pyx_t_11 = 0;
#if CYTHON_FAST_PYCALL
if (PyFunction_Check(__pyx_t_6)) {
PyObject *__pyx_temp[6] = {__pyx_t_17, __pyx_v_message, __pyx_t_13, __pyx_t_14, __pyx_t_16, __pyx_v_filename};
- __pyx_t_12 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_11, 5+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 663, __pyx_L1_error)
+ __pyx_t_12 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_11, 5+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 666, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0;
__Pyx_GOTREF(__pyx_t_12);
__Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
#if CYTHON_FAST_PYCCALL
if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) {
PyObject *__pyx_temp[6] = {__pyx_t_17, __pyx_v_message, __pyx_t_13, __pyx_t_14, __pyx_t_16, __pyx_v_filename};
- __pyx_t_12 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_11, 5+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 663, __pyx_L1_error)
+ __pyx_t_12 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_11, 5+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 666, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_17); __pyx_t_17 = 0;
__Pyx_GOTREF(__pyx_t_12);
__Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
} else
#endif
{
- __pyx_t_18 = PyTuple_New(5+__pyx_t_11); if (unlikely(!__pyx_t_18)) __PYX_ERR(2, 663, __pyx_L1_error)
+ __pyx_t_18 = PyTuple_New(5+__pyx_t_11); if (unlikely(!__pyx_t_18)) __PYX_ERR(2, 666, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_18);
if (__pyx_t_17) {
__Pyx_GIVEREF(__pyx_t_17); PyTuple_SET_ITEM(__pyx_t_18, 0, __pyx_t_17); __pyx_t_17 = NULL;
__pyx_t_13 = 0;
__pyx_t_14 = 0;
__pyx_t_16 = 0;
- __pyx_t_12 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_18, NULL); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 663, __pyx_L1_error)
+ __pyx_t_12 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_18, NULL); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 666, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_12);
__Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
}
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__Pyx_Raise(__pyx_t_12, 0, 0, 0);
__Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
- __PYX_ERR(2, 663, __pyx_L1_error)
+ __PYX_ERR(2, 666, __pyx_L1_error)
- /* "src/lxml/parser.pxi":656
+ /* "src/lxml/parser.pxi":659
* raise error_log._buildParseException(
* XMLSyntaxError, u"Document is not well formed")
* elif ctxt.lastError.message is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":665
+ /* "src/lxml/parser.pxi":668
* raise XMLSyntaxError(message, code, line, column, filename)
* else:
* raise XMLSyntaxError(None, xmlerror.XML_ERR_INTERNAL_ERROR, 0, 0, # <<<<<<<<<<<<<<
*
*/
/*else*/ {
- __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_XMLSyntaxError); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 665, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_XMLSyntaxError); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 668, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
- __pyx_t_18 = __Pyx_PyInt_From_xmlParserErrors(XML_ERR_INTERNAL_ERROR); if (unlikely(!__pyx_t_18)) __PYX_ERR(2, 665, __pyx_L1_error)
+ __pyx_t_18 = __Pyx_PyInt_From_xmlParserErrors(XML_ERR_INTERNAL_ERROR); if (unlikely(!__pyx_t_18)) __PYX_ERR(2, 668, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_18);
- /* "src/lxml/parser.pxi":666
+ /* "src/lxml/parser.pxi":669
* else:
* raise XMLSyntaxError(None, xmlerror.XML_ERR_INTERNAL_ERROR, 0, 0,
* filename) # <<<<<<<<<<<<<<
#if CYTHON_FAST_PYCALL
if (PyFunction_Check(__pyx_t_6)) {
PyObject *__pyx_temp[6] = {__pyx_t_16, Py_None, __pyx_t_18, __pyx_int_0, __pyx_int_0, __pyx_v_filename};
- __pyx_t_12 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_11, 5+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 665, __pyx_L1_error)
+ __pyx_t_12 = __Pyx_PyFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_11, 5+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 668, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
__Pyx_GOTREF(__pyx_t_12);
__Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
#if CYTHON_FAST_PYCCALL
if (__Pyx_PyFastCFunction_Check(__pyx_t_6)) {
PyObject *__pyx_temp[6] = {__pyx_t_16, Py_None, __pyx_t_18, __pyx_int_0, __pyx_int_0, __pyx_v_filename};
- __pyx_t_12 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_11, 5+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 665, __pyx_L1_error)
+ __pyx_t_12 = __Pyx_PyCFunction_FastCall(__pyx_t_6, __pyx_temp+1-__pyx_t_11, 5+__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 668, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
__Pyx_GOTREF(__pyx_t_12);
__Pyx_DECREF(__pyx_t_18); __pyx_t_18 = 0;
} else
#endif
{
- __pyx_t_14 = PyTuple_New(5+__pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 665, __pyx_L1_error)
+ __pyx_t_14 = PyTuple_New(5+__pyx_t_11); if (unlikely(!__pyx_t_14)) __PYX_ERR(2, 668, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_14);
if (__pyx_t_16) {
__Pyx_GIVEREF(__pyx_t_16); PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_16); __pyx_t_16 = NULL;
__Pyx_GIVEREF(__pyx_v_filename);
PyTuple_SET_ITEM(__pyx_t_14, 4+__pyx_t_11, __pyx_v_filename);
__pyx_t_18 = 0;
- __pyx_t_12 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_14, NULL); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 665, __pyx_L1_error)
+ __pyx_t_12 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_14, NULL); if (unlikely(!__pyx_t_12)) __PYX_ERR(2, 668, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_12);
__Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
}
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__Pyx_Raise(__pyx_t_12, 0, 0, 0);
__Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
- __PYX_ERR(2, 665, __pyx_L1_error)
+ __PYX_ERR(2, 668, __pyx_L1_error)
}
- /* "src/lxml/parser.pxi":636
+ /* "src/lxml/parser.pxi":639
* _forwardParserError(<xmlparser.xmlParserCtxt*>c_context, error)
*
* cdef int _raiseParseError(xmlparser.xmlParserCtxt* ctxt, filename, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":668
+/* "src/lxml/parser.pxi":671
* filename)
*
* cdef xmlDoc* _handleParseResult(_ParserContext context, # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_handleParseResult", 0);
- /* "src/lxml/parser.pxi":673
+ /* "src/lxml/parser.pxi":676
* bint recover, bint free_doc) except NULL:
* cdef bint well_formed
* if result is not NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_result != NULL) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":674
+ /* "src/lxml/parser.pxi":677
* cdef bint well_formed
* if result is not NULL:
* __GLOBAL_PARSER_CONTEXT.initDocDict(result) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree_24_ParserDictionaryContext_initDocDict(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT, __pyx_v_result);
- /* "src/lxml/parser.pxi":673
+ /* "src/lxml/parser.pxi":676
* bint recover, bint free_doc) except NULL:
* cdef bint well_formed
* if result is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":676
+ /* "src/lxml/parser.pxi":679
* __GLOBAL_PARSER_CONTEXT.initDocDict(result)
*
* if c_ctxt.myDoc is not NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_ctxt->myDoc != NULL) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":677
+ /* "src/lxml/parser.pxi":680
*
* if c_ctxt.myDoc is not NULL:
* if c_ctxt.myDoc is not result: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_ctxt->myDoc != __pyx_v_result) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":678
+ /* "src/lxml/parser.pxi":681
* if c_ctxt.myDoc is not NULL:
* if c_ctxt.myDoc is not result:
* __GLOBAL_PARSER_CONTEXT.initDocDict(c_ctxt.myDoc) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree_24_ParserDictionaryContext_initDocDict(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT, __pyx_v_c_ctxt->myDoc);
- /* "src/lxml/parser.pxi":679
+ /* "src/lxml/parser.pxi":682
* if c_ctxt.myDoc is not result:
* __GLOBAL_PARSER_CONTEXT.initDocDict(c_ctxt.myDoc)
* tree.xmlFreeDoc(c_ctxt.myDoc) # <<<<<<<<<<<<<<
*/
xmlFreeDoc(__pyx_v_c_ctxt->myDoc);
- /* "src/lxml/parser.pxi":677
+ /* "src/lxml/parser.pxi":680
*
* if c_ctxt.myDoc is not NULL:
* if c_ctxt.myDoc is not result: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":680
+ /* "src/lxml/parser.pxi":683
* __GLOBAL_PARSER_CONTEXT.initDocDict(c_ctxt.myDoc)
* tree.xmlFreeDoc(c_ctxt.myDoc)
* c_ctxt.myDoc = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_c_ctxt->myDoc = NULL;
- /* "src/lxml/parser.pxi":676
+ /* "src/lxml/parser.pxi":679
* __GLOBAL_PARSER_CONTEXT.initDocDict(result)
*
* if c_ctxt.myDoc is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":682
+ /* "src/lxml/parser.pxi":685
* c_ctxt.myDoc = NULL
*
* if result is not NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_result != NULL) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":683
+ /* "src/lxml/parser.pxi":686
*
* if result is not NULL:
* if (context._validator is not None and # <<<<<<<<<<<<<<
goto __pyx_L8_bool_binop_done;
}
- /* "src/lxml/parser.pxi":684
+ /* "src/lxml/parser.pxi":687
* if result is not NULL:
* if (context._validator is not None and
* not context._validator.isvalid()): # <<<<<<<<<<<<<<
__pyx_t_1 = __pyx_t_3;
__pyx_L8_bool_binop_done:;
- /* "src/lxml/parser.pxi":683
+ /* "src/lxml/parser.pxi":686
*
* if result is not NULL:
* if (context._validator is not None and # <<<<<<<<<<<<<<
*/
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":685
+ /* "src/lxml/parser.pxi":688
* if (context._validator is not None and
* not context._validator.isvalid()):
* well_formed = 0 # actually not 'valid', but anyway ... # <<<<<<<<<<<<<<
*/
__pyx_v_well_formed = 0;
- /* "src/lxml/parser.pxi":683
+ /* "src/lxml/parser.pxi":686
*
* if result is not NULL:
* if (context._validator is not None and # <<<<<<<<<<<<<<
goto __pyx_L7;
}
- /* "src/lxml/parser.pxi":686
+ /* "src/lxml/parser.pxi":689
* not context._validator.isvalid()):
* well_formed = 0 # actually not 'valid', but anyway ...
* elif (not c_ctxt.wellFormed and not c_ctxt.html and # <<<<<<<<<<<<<<
goto __pyx_L10_bool_binop_done;
}
- /* "src/lxml/parser.pxi":687
+ /* "src/lxml/parser.pxi":690
* well_formed = 0 # actually not 'valid', but anyway ...
* elif (not c_ctxt.wellFormed and not c_ctxt.html and
* c_ctxt.charset == tree.XML_CHAR_ENCODING_8859_1 and # <<<<<<<<<<<<<<
goto __pyx_L10_bool_binop_done;
}
- /* "src/lxml/parser.pxi":688
+ /* "src/lxml/parser.pxi":691
* elif (not c_ctxt.wellFormed and not c_ctxt.html and
* c_ctxt.charset == tree.XML_CHAR_ENCODING_8859_1 and
* [1 for error in context._error_log # <<<<<<<<<<<<<<
* if error.type == ErrorTypes.ERR_INVALID_CHAR]):
* # An encoding error occurred and libxml2 switched from UTF-8
*/
- __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 688, __pyx_L1_error)
+ __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 691, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
if (likely(PyList_CheckExact(((PyObject *)__pyx_v_context->_error_log))) || PyTuple_CheckExact(((PyObject *)__pyx_v_context->_error_log))) {
__pyx_t_5 = ((PyObject *)__pyx_v_context->_error_log); __Pyx_INCREF(__pyx_t_5); __pyx_t_6 = 0;
__pyx_t_7 = NULL;
} else {
- __pyx_t_6 = -1; __pyx_t_5 = PyObject_GetIter(((PyObject *)__pyx_v_context->_error_log)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 688, __pyx_L1_error)
+ __pyx_t_6 = -1; __pyx_t_5 = PyObject_GetIter(((PyObject *)__pyx_v_context->_error_log)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 691, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
- __pyx_t_7 = Py_TYPE(__pyx_t_5)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 688, __pyx_L1_error)
+ __pyx_t_7 = Py_TYPE(__pyx_t_5)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 691, __pyx_L1_error)
}
for (;;) {
if (likely(!__pyx_t_7)) {
if (likely(PyList_CheckExact(__pyx_t_5))) {
if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_5)) break;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
- __pyx_t_8 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_8); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(2, 688, __pyx_L1_error)
+ __pyx_t_8 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_8); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(2, 691, __pyx_L1_error)
#else
- __pyx_t_8 = PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 688, __pyx_L1_error)
+ __pyx_t_8 = PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 691, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_8);
#endif
} else {
if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_5)) break;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
- __pyx_t_8 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_8); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(2, 688, __pyx_L1_error)
+ __pyx_t_8 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_8); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(2, 691, __pyx_L1_error)
#else
- __pyx_t_8 = PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 688, __pyx_L1_error)
+ __pyx_t_8 = PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 691, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_8);
#endif
}
PyObject* exc_type = PyErr_Occurred();
if (exc_type) {
if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
- else __PYX_ERR(2, 688, __pyx_L1_error)
+ else __PYX_ERR(2, 691, __pyx_L1_error)
}
break;
}
__Pyx_XDECREF_SET(__pyx_v_error, __pyx_t_8);
__pyx_t_8 = 0;
- /* "src/lxml/parser.pxi":689
+ /* "src/lxml/parser.pxi":692
* c_ctxt.charset == tree.XML_CHAR_ENCODING_8859_1 and
* [1 for error in context._error_log
* if error.type == ErrorTypes.ERR_INVALID_CHAR]): # <<<<<<<<<<<<<<
* # An encoding error occurred and libxml2 switched from UTF-8
* # input to (undecoded) Latin-1, at some arbitrary point in the
*/
- __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_error, __pyx_n_s_type); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 689, __pyx_L1_error)
+ __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_v_error, __pyx_n_s_type); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 692, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_8);
- __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_ErrorTypes); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 689, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_ErrorTypes); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 692, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_9);
- __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_ERR_INVALID_CHAR); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 689, __pyx_L1_error)
+ __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_ERR_INVALID_CHAR); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 692, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_10);
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
- __pyx_t_9 = PyObject_RichCompare(__pyx_t_8, __pyx_t_10, Py_EQ); __Pyx_XGOTREF(__pyx_t_9); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 689, __pyx_L1_error)
+ __pyx_t_9 = PyObject_RichCompare(__pyx_t_8, __pyx_t_10, Py_EQ); __Pyx_XGOTREF(__pyx_t_9); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 692, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
__Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
- __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 689, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(2, 692, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
if (__pyx_t_3) {
- if (unlikely(__Pyx_ListComp_Append(__pyx_t_4, (PyObject*)__pyx_int_1))) __PYX_ERR(2, 688, __pyx_L1_error)
+ if (unlikely(__Pyx_ListComp_Append(__pyx_t_4, (PyObject*)__pyx_int_1))) __PYX_ERR(2, 691, __pyx_L1_error)
}
- /* "src/lxml/parser.pxi":688
+ /* "src/lxml/parser.pxi":691
* elif (not c_ctxt.wellFormed and not c_ctxt.html and
* c_ctxt.charset == tree.XML_CHAR_ENCODING_8859_1 and
* [1 for error in context._error_log # <<<<<<<<<<<<<<
__pyx_t_1 = __pyx_t_3;
__pyx_L10_bool_binop_done:;
- /* "src/lxml/parser.pxi":686
+ /* "src/lxml/parser.pxi":689
* not context._validator.isvalid()):
* well_formed = 0 # actually not 'valid', but anyway ...
* elif (not c_ctxt.wellFormed and not c_ctxt.html and # <<<<<<<<<<<<<<
*/
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":694
+ /* "src/lxml/parser.pxi":697
* # document. Better raise an error than allowing for a broken
* # tree with mixed encodings.
* well_formed = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_well_formed = 0;
- /* "src/lxml/parser.pxi":686
+ /* "src/lxml/parser.pxi":689
* not context._validator.isvalid()):
* well_formed = 0 # actually not 'valid', but anyway ...
* elif (not c_ctxt.wellFormed and not c_ctxt.html and # <<<<<<<<<<<<<<
goto __pyx_L7;
}
- /* "src/lxml/parser.pxi":695
+ /* "src/lxml/parser.pxi":698
* # tree with mixed encodings.
* well_formed = 0
* elif recover or (c_ctxt.wellFormed and # <<<<<<<<<<<<<<
goto __pyx_L17_bool_binop_done;
}
- /* "src/lxml/parser.pxi":696
+ /* "src/lxml/parser.pxi":699
* well_formed = 0
* elif recover or (c_ctxt.wellFormed and
* c_ctxt.lastError.level < xmlerror.XML_ERR_ERROR): # <<<<<<<<<<<<<<
__pyx_t_1 = __pyx_t_3;
__pyx_L17_bool_binop_done:;
- /* "src/lxml/parser.pxi":695
+ /* "src/lxml/parser.pxi":698
* # tree with mixed encodings.
* well_formed = 0
* elif recover or (c_ctxt.wellFormed and # <<<<<<<<<<<<<<
*/
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":697
+ /* "src/lxml/parser.pxi":700
* elif recover or (c_ctxt.wellFormed and
* c_ctxt.lastError.level < xmlerror.XML_ERR_ERROR):
* well_formed = 1 # <<<<<<<<<<<<<<
*/
__pyx_v_well_formed = 1;
- /* "src/lxml/parser.pxi":695
+ /* "src/lxml/parser.pxi":698
* # tree with mixed encodings.
* well_formed = 0
* elif recover or (c_ctxt.wellFormed and # <<<<<<<<<<<<<<
goto __pyx_L7;
}
- /* "src/lxml/parser.pxi":698
+ /* "src/lxml/parser.pxi":701
* c_ctxt.lastError.level < xmlerror.XML_ERR_ERROR):
* well_formed = 1
* elif not c_ctxt.replaceEntities and not c_ctxt.validate \ # <<<<<<<<<<<<<<
goto __pyx_L20_bool_binop_done;
}
- /* "src/lxml/parser.pxi":699
+ /* "src/lxml/parser.pxi":702
* well_formed = 1
* elif not c_ctxt.replaceEntities and not c_ctxt.validate \
* and context is not None: # <<<<<<<<<<<<<<
__pyx_t_1 = __pyx_t_2;
__pyx_L20_bool_binop_done:;
- /* "src/lxml/parser.pxi":698
+ /* "src/lxml/parser.pxi":701
* c_ctxt.lastError.level < xmlerror.XML_ERR_ERROR):
* well_formed = 1
* elif not c_ctxt.replaceEntities and not c_ctxt.validate \ # <<<<<<<<<<<<<<
*/
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":701
+ /* "src/lxml/parser.pxi":704
* and context is not None:
* # in this mode, we ignore errors about undefined entities
* for error in context._error_log.filter_from_errors(): # <<<<<<<<<<<<<<
* if error.type != ErrorTypes.WAR_UNDECLARED_ENTITY and \
* error.type != ErrorTypes.ERR_UNDECLARED_ENTITY:
*/
- __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_context->_error_log), __pyx_n_s_filter_from_errors); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 701, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_context->_error_log), __pyx_n_s_filter_from_errors); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 704, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_9 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
}
__pyx_t_4 = (__pyx_t_9) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_9) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
__Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
- if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 701, __pyx_L1_error)
+ if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 704, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
if (likely(PyList_CheckExact(__pyx_t_4)) || PyTuple_CheckExact(__pyx_t_4)) {
__pyx_t_5 = __pyx_t_4; __Pyx_INCREF(__pyx_t_5); __pyx_t_6 = 0;
__pyx_t_7 = NULL;
} else {
- __pyx_t_6 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 701, __pyx_L1_error)
+ __pyx_t_6 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 704, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
- __pyx_t_7 = Py_TYPE(__pyx_t_5)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 701, __pyx_L1_error)
+ __pyx_t_7 = Py_TYPE(__pyx_t_5)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 704, __pyx_L1_error)
}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
for (;;) {
if (likely(PyList_CheckExact(__pyx_t_5))) {
if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_5)) break;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
- __pyx_t_4 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_4); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(2, 701, __pyx_L1_error)
+ __pyx_t_4 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_4); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(2, 704, __pyx_L1_error)
#else
- __pyx_t_4 = PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 701, __pyx_L1_error)
+ __pyx_t_4 = PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 704, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
#endif
} else {
if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_5)) break;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
- __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_4); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(2, 701, __pyx_L1_error)
+ __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_4); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(2, 704, __pyx_L1_error)
#else
- __pyx_t_4 = PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 701, __pyx_L1_error)
+ __pyx_t_4 = PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 704, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
#endif
}
PyObject* exc_type = PyErr_Occurred();
if (exc_type) {
if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
- else __PYX_ERR(2, 701, __pyx_L1_error)
+ else __PYX_ERR(2, 704, __pyx_L1_error)
}
break;
}
__Pyx_XDECREF_SET(__pyx_v_error, __pyx_t_4);
__pyx_t_4 = 0;
- /* "src/lxml/parser.pxi":702
+ /* "src/lxml/parser.pxi":705
* # in this mode, we ignore errors about undefined entities
* for error in context._error_log.filter_from_errors():
* if error.type != ErrorTypes.WAR_UNDECLARED_ENTITY and \ # <<<<<<<<<<<<<<
* error.type != ErrorTypes.ERR_UNDECLARED_ENTITY:
* well_formed = 0
*/
- __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_error, __pyx_n_s_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 702, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_error, __pyx_n_s_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 705, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
- __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_ErrorTypes); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 702, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_ErrorTypes); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 705, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_9);
- __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_WAR_UNDECLARED_ENTITY); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 702, __pyx_L1_error)
+ __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_t_9, __pyx_n_s_WAR_UNDECLARED_ENTITY); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 705, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_10);
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
- __pyx_t_9 = PyObject_RichCompare(__pyx_t_4, __pyx_t_10, Py_NE); __Pyx_XGOTREF(__pyx_t_9); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 702, __pyx_L1_error)
+ __pyx_t_9 = PyObject_RichCompare(__pyx_t_4, __pyx_t_10, Py_NE); __Pyx_XGOTREF(__pyx_t_9); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 705, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 702, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_9); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 705, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
if (__pyx_t_2) {
} else {
goto __pyx_L26_bool_binop_done;
}
- /* "src/lxml/parser.pxi":703
+ /* "src/lxml/parser.pxi":706
* for error in context._error_log.filter_from_errors():
* if error.type != ErrorTypes.WAR_UNDECLARED_ENTITY and \
* error.type != ErrorTypes.ERR_UNDECLARED_ENTITY: # <<<<<<<<<<<<<<
* well_formed = 0
* break
*/
- __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_error, __pyx_n_s_type); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 703, __pyx_L1_error)
+ __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_error, __pyx_n_s_type); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 706, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_9);
- __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_ErrorTypes); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 703, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_n_s_ErrorTypes); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 706, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_10);
- __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_ERR_UNDECLARED_ENTITY); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 703, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_10, __pyx_n_s_ERR_UNDECLARED_ENTITY); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 706, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
- __pyx_t_10 = PyObject_RichCompare(__pyx_t_9, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_10); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 703, __pyx_L1_error)
+ __pyx_t_10 = PyObject_RichCompare(__pyx_t_9, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_10); if (unlikely(!__pyx_t_10)) __PYX_ERR(2, 706, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_10); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 703, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_10); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 706, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
__pyx_t_1 = __pyx_t_2;
__pyx_L26_bool_binop_done:;
- /* "src/lxml/parser.pxi":702
+ /* "src/lxml/parser.pxi":705
* # in this mode, we ignore errors about undefined entities
* for error in context._error_log.filter_from_errors():
* if error.type != ErrorTypes.WAR_UNDECLARED_ENTITY and \ # <<<<<<<<<<<<<<
*/
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":704
+ /* "src/lxml/parser.pxi":707
* if error.type != ErrorTypes.WAR_UNDECLARED_ENTITY and \
* error.type != ErrorTypes.ERR_UNDECLARED_ENTITY:
* well_formed = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_well_formed = 0;
- /* "src/lxml/parser.pxi":705
+ /* "src/lxml/parser.pxi":708
* error.type != ErrorTypes.ERR_UNDECLARED_ENTITY:
* well_formed = 0
* break # <<<<<<<<<<<<<<
*/
goto __pyx_L24_break;
- /* "src/lxml/parser.pxi":702
+ /* "src/lxml/parser.pxi":705
* # in this mode, we ignore errors about undefined entities
* for error in context._error_log.filter_from_errors():
* if error.type != ErrorTypes.WAR_UNDECLARED_ENTITY and \ # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":701
+ /* "src/lxml/parser.pxi":704
* and context is not None:
* # in this mode, we ignore errors about undefined entities
* for error in context._error_log.filter_from_errors(): # <<<<<<<<<<<<<<
}
/*else*/ {
- /* "src/lxml/parser.pxi":707
+ /* "src/lxml/parser.pxi":710
* break
* else:
* well_formed = 1 # <<<<<<<<<<<<<<
__pyx_v_well_formed = 1;
}
- /* "src/lxml/parser.pxi":701
+ /* "src/lxml/parser.pxi":704
* and context is not None:
* # in this mode, we ignore errors about undefined entities
* for error in context._error_log.filter_from_errors(): # <<<<<<<<<<<<<<
__pyx_L24_break:;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- /* "src/lxml/parser.pxi":698
+ /* "src/lxml/parser.pxi":701
* c_ctxt.lastError.level < xmlerror.XML_ERR_ERROR):
* well_formed = 1
* elif not c_ctxt.replaceEntities and not c_ctxt.validate \ # <<<<<<<<<<<<<<
goto __pyx_L7;
}
- /* "src/lxml/parser.pxi":709
+ /* "src/lxml/parser.pxi":712
* well_formed = 1
* else:
* well_formed = 0 # <<<<<<<<<<<<<<
}
__pyx_L7:;
- /* "src/lxml/parser.pxi":711
+ /* "src/lxml/parser.pxi":714
* well_formed = 0
*
* if not well_formed: # <<<<<<<<<<<<<<
__pyx_t_1 = ((!(__pyx_v_well_formed != 0)) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":712
+ /* "src/lxml/parser.pxi":715
*
* if not well_formed:
* if free_doc: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_v_free_doc != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":713
+ /* "src/lxml/parser.pxi":716
* if not well_formed:
* if free_doc:
* tree.xmlFreeDoc(result) # <<<<<<<<<<<<<<
*/
xmlFreeDoc(__pyx_v_result);
- /* "src/lxml/parser.pxi":712
+ /* "src/lxml/parser.pxi":715
*
* if not well_formed:
* if free_doc: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":714
+ /* "src/lxml/parser.pxi":717
* if free_doc:
* tree.xmlFreeDoc(result)
* result = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_result = NULL;
- /* "src/lxml/parser.pxi":711
+ /* "src/lxml/parser.pxi":714
* well_formed = 0
*
* if not well_formed: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":682
+ /* "src/lxml/parser.pxi":685
* c_ctxt.myDoc = NULL
*
* if result is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":716
+ /* "src/lxml/parser.pxi":719
* result = NULL
*
* if context is not None and context._has_raised(): # <<<<<<<<<<<<<<
if (__pyx_t_3) {
} else {
__pyx_t_1 = __pyx_t_3;
- goto __pyx_L32_bool_binop_done;
+ goto __pyx_L33_bool_binop_done;
}
- __pyx_t_3 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base._has_raised(((struct __pyx_obj_4lxml_5etree__ExceptionContext *)__pyx_v_context)); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(2, 716, __pyx_L1_error)
+ __pyx_t_3 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base._has_raised(((struct __pyx_obj_4lxml_5etree__ExceptionContext *)__pyx_v_context)); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(2, 719, __pyx_L1_error)
__pyx_t_2 = (__pyx_t_3 != 0);
__pyx_t_1 = __pyx_t_2;
- __pyx_L32_bool_binop_done:;
+ __pyx_L33_bool_binop_done:;
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":717
+ /* "src/lxml/parser.pxi":720
*
* if context is not None and context._has_raised():
* if result is not NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_result != NULL) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":718
+ /* "src/lxml/parser.pxi":721
* if context is not None and context._has_raised():
* if result is not NULL:
* if free_doc: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_v_free_doc != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":719
+ /* "src/lxml/parser.pxi":722
* if result is not NULL:
* if free_doc:
* tree.xmlFreeDoc(result) # <<<<<<<<<<<<<<
*/
xmlFreeDoc(__pyx_v_result);
- /* "src/lxml/parser.pxi":718
+ /* "src/lxml/parser.pxi":721
* if context is not None and context._has_raised():
* if result is not NULL:
* if free_doc: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":720
+ /* "src/lxml/parser.pxi":723
* if free_doc:
* tree.xmlFreeDoc(result)
* result = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_result = NULL;
- /* "src/lxml/parser.pxi":717
+ /* "src/lxml/parser.pxi":720
*
* if context is not None and context._has_raised():
* if result is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":721
+ /* "src/lxml/parser.pxi":724
* tree.xmlFreeDoc(result)
* result = NULL
* context._raise_if_stored() # <<<<<<<<<<<<<<
*
* if result is NULL:
*/
- __pyx_t_11 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base._raise_if_stored(((struct __pyx_obj_4lxml_5etree__ExceptionContext *)__pyx_v_context)); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 721, __pyx_L1_error)
+ __pyx_t_11 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base._raise_if_stored(((struct __pyx_obj_4lxml_5etree__ExceptionContext *)__pyx_v_context)); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 724, __pyx_L1_error)
- /* "src/lxml/parser.pxi":716
+ /* "src/lxml/parser.pxi":719
* result = NULL
*
* if context is not None and context._has_raised(): # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":723
+ /* "src/lxml/parser.pxi":726
* context._raise_if_stored()
*
* if result is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_result == NULL) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":724
+ /* "src/lxml/parser.pxi":727
*
* if result is NULL:
* if context is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":725
+ /* "src/lxml/parser.pxi":728
* if result is NULL:
* if context is not None:
* _raiseParseError(c_ctxt, filename, context._error_log) # <<<<<<<<<<<<<<
*/
__pyx_t_5 = ((PyObject *)__pyx_v_context->_error_log);
__Pyx_INCREF(__pyx_t_5);
- __pyx_t_11 = __pyx_f_4lxml_5etree__raiseParseError(__pyx_v_c_ctxt, __pyx_v_filename, ((struct __pyx_obj_4lxml_5etree__ErrorLog *)__pyx_t_5)); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 725, __pyx_L1_error)
+ __pyx_t_11 = __pyx_f_4lxml_5etree__raiseParseError(__pyx_v_c_ctxt, __pyx_v_filename, ((struct __pyx_obj_4lxml_5etree__ErrorLog *)__pyx_t_5)); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 728, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- /* "src/lxml/parser.pxi":724
+ /* "src/lxml/parser.pxi":727
*
* if result is NULL:
* if context is not None: # <<<<<<<<<<<<<<
* _raiseParseError(c_ctxt, filename, context._error_log)
* else:
*/
- goto __pyx_L37;
+ goto __pyx_L38;
}
- /* "src/lxml/parser.pxi":727
+ /* "src/lxml/parser.pxi":730
* _raiseParseError(c_ctxt, filename, context._error_log)
* else:
* _raiseParseError(c_ctxt, filename, None) # <<<<<<<<<<<<<<
* if result.URL is NULL and filename is not None:
*/
/*else*/ {
- __pyx_t_11 = __pyx_f_4lxml_5etree__raiseParseError(__pyx_v_c_ctxt, __pyx_v_filename, ((struct __pyx_obj_4lxml_5etree__ErrorLog *)Py_None)); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 727, __pyx_L1_error)
+ __pyx_t_11 = __pyx_f_4lxml_5etree__raiseParseError(__pyx_v_c_ctxt, __pyx_v_filename, ((struct __pyx_obj_4lxml_5etree__ErrorLog *)Py_None)); if (unlikely(__pyx_t_11 == ((int)-1))) __PYX_ERR(2, 730, __pyx_L1_error)
}
- __pyx_L37:;
+ __pyx_L38:;
- /* "src/lxml/parser.pxi":723
+ /* "src/lxml/parser.pxi":726
* context._raise_if_stored()
*
* if result is NULL: # <<<<<<<<<<<<<<
* if context is not None:
* _raiseParseError(c_ctxt, filename, context._error_log)
*/
- goto __pyx_L36;
+ goto __pyx_L37;
}
- /* "src/lxml/parser.pxi":729
+ /* "src/lxml/parser.pxi":732
* _raiseParseError(c_ctxt, filename, None)
* else:
* if result.URL is NULL and filename is not None: # <<<<<<<<<<<<<<
if (__pyx_t_1) {
} else {
__pyx_t_2 = __pyx_t_1;
- goto __pyx_L39_bool_binop_done;
+ goto __pyx_L40_bool_binop_done;
}
__pyx_t_1 = (__pyx_v_filename != Py_None);
__pyx_t_3 = (__pyx_t_1 != 0);
__pyx_t_2 = __pyx_t_3;
- __pyx_L39_bool_binop_done:;
+ __pyx_L40_bool_binop_done:;
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":730
+ /* "src/lxml/parser.pxi":733
* else:
* if result.URL is NULL and filename is not None:
* result.URL = tree.xmlStrdup(_xcstr(filename)) # <<<<<<<<<<<<<<
*/
__pyx_v_result->URL = xmlStrdup((const xmlChar*)PyBytes_AS_STRING(__pyx_v_filename));
- /* "src/lxml/parser.pxi":729
+ /* "src/lxml/parser.pxi":732
* _raiseParseError(c_ctxt, filename, None)
* else:
* if result.URL is NULL and filename is not None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":731
+ /* "src/lxml/parser.pxi":734
* if result.URL is NULL and filename is not None:
* result.URL = tree.xmlStrdup(_xcstr(filename))
* if result.encoding is NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_result->encoding == NULL) != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":732
+ /* "src/lxml/parser.pxi":735
* result.URL = tree.xmlStrdup(_xcstr(filename))
* if result.encoding is NULL:
* result.encoding = tree.xmlStrdup(<unsigned char*>"UTF-8") # <<<<<<<<<<<<<<
*/
__pyx_v_result->encoding = xmlStrdup(((unsigned char *)((unsigned char *)((char const *)"UTF-8"))));
- /* "src/lxml/parser.pxi":731
+ /* "src/lxml/parser.pxi":734
* if result.URL is NULL and filename is not None:
* result.URL = tree.xmlStrdup(_xcstr(filename))
* if result.encoding is NULL: # <<<<<<<<<<<<<<
*/
}
}
- __pyx_L36:;
+ __pyx_L37:;
- /* "src/lxml/parser.pxi":734
+ /* "src/lxml/parser.pxi":737
* result.encoding = tree.xmlStrdup(<unsigned char*>"UTF-8")
*
* if context._validator is not None and \ # <<<<<<<<<<<<<<
if (__pyx_t_1) {
} else {
__pyx_t_2 = __pyx_t_1;
- goto __pyx_L43_bool_binop_done;
+ goto __pyx_L44_bool_binop_done;
}
- /* "src/lxml/parser.pxi":735
+ /* "src/lxml/parser.pxi":738
*
* if context._validator is not None and \
* context._validator._add_default_attributes: # <<<<<<<<<<<<<<
*/
__pyx_t_1 = (__pyx_v_context->_validator->_add_default_attributes != 0);
__pyx_t_2 = __pyx_t_1;
- __pyx_L43_bool_binop_done:;
+ __pyx_L44_bool_binop_done:;
- /* "src/lxml/parser.pxi":734
+ /* "src/lxml/parser.pxi":737
* result.encoding = tree.xmlStrdup(<unsigned char*>"UTF-8")
*
* if context._validator is not None and \ # <<<<<<<<<<<<<<
*/
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":739
+ /* "src/lxml/parser.pxi":742
* # support inserting default attributes during parse-time
* # validation
* context._validator.inject_default_attributes(result) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree_30_ParserSchemaValidationContext_inject_default_attributes(__pyx_v_context->_validator, __pyx_v_result);
- /* "src/lxml/parser.pxi":734
+ /* "src/lxml/parser.pxi":737
* result.encoding = tree.xmlStrdup(<unsigned char*>"UTF-8")
*
* if context._validator is not None and \ # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":741
+ /* "src/lxml/parser.pxi":744
* context._validator.inject_default_attributes(result)
*
* return result # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_result;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":668
+ /* "src/lxml/parser.pxi":671
* filename)
*
* cdef xmlDoc* _handleParseResult(_ParserContext context, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":743
+/* "src/lxml/parser.pxi":746
* return result
*
* cdef int _fixHtmlDictNames(tree.xmlDict* c_dict, xmlDoc* c_doc) nogil: # <<<<<<<<<<<<<<
int __pyx_t_1;
xmlNode *__pyx_t_2;
- /* "src/lxml/parser.pxi":745
+ /* "src/lxml/parser.pxi":748
* cdef int _fixHtmlDictNames(tree.xmlDict* c_dict, xmlDoc* c_doc) nogil:
* cdef xmlNode* c_node
* if c_doc is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_doc == NULL) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":746
+ /* "src/lxml/parser.pxi":749
* cdef xmlNode* c_node
* if c_doc is NULL:
* return 0 # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":745
+ /* "src/lxml/parser.pxi":748
* cdef int _fixHtmlDictNames(tree.xmlDict* c_dict, xmlDoc* c_doc) nogil:
* cdef xmlNode* c_node
* if c_doc is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":747
+ /* "src/lxml/parser.pxi":750
* if c_doc is NULL:
* return 0
* c_node = c_doc.children # <<<<<<<<<<<<<<
__pyx_t_2 = __pyx_v_c_doc->children;
__pyx_v_c_node = __pyx_t_2;
- /* "src/lxml/parser.pxi":748
+ /* "src/lxml/parser.pxi":751
* return 0
* c_node = c_doc.children
* tree.BEGIN_FOR_EACH_ELEMENT_FROM(<xmlNode*>c_doc, c_node, 1) # <<<<<<<<<<<<<<
*/
BEGIN_FOR_EACH_ELEMENT_FROM(((xmlNode *)__pyx_v_c_doc), __pyx_v_c_node, 1);
- /* "src/lxml/parser.pxi":749
+ /* "src/lxml/parser.pxi":752
* c_node = c_doc.children
* tree.BEGIN_FOR_EACH_ELEMENT_FROM(<xmlNode*>c_doc, c_node, 1)
* if c_node.type == tree.XML_ELEMENT_NODE: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_node->type == XML_ELEMENT_NODE) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":750
+ /* "src/lxml/parser.pxi":753
* tree.BEGIN_FOR_EACH_ELEMENT_FROM(<xmlNode*>c_doc, c_node, 1)
* if c_node.type == tree.XML_ELEMENT_NODE:
* if _fixHtmlDictNodeNames(c_dict, c_node) < 0: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_f_4lxml_5etree__fixHtmlDictNodeNames(__pyx_v_c_dict, __pyx_v_c_node) < 0) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":751
+ /* "src/lxml/parser.pxi":754
* if c_node.type == tree.XML_ELEMENT_NODE:
* if _fixHtmlDictNodeNames(c_dict, c_node) < 0:
* return -1 # <<<<<<<<<<<<<<
__pyx_r = -1;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":750
+ /* "src/lxml/parser.pxi":753
* tree.BEGIN_FOR_EACH_ELEMENT_FROM(<xmlNode*>c_doc, c_node, 1)
* if c_node.type == tree.XML_ELEMENT_NODE:
* if _fixHtmlDictNodeNames(c_dict, c_node) < 0: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":749
+ /* "src/lxml/parser.pxi":752
* c_node = c_doc.children
* tree.BEGIN_FOR_EACH_ELEMENT_FROM(<xmlNode*>c_doc, c_node, 1)
* if c_node.type == tree.XML_ELEMENT_NODE: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":752
+ /* "src/lxml/parser.pxi":755
* if _fixHtmlDictNodeNames(c_dict, c_node) < 0:
* return -1
* tree.END_FOR_EACH_ELEMENT_FROM(c_node) # <<<<<<<<<<<<<<
*/
END_FOR_EACH_ELEMENT_FROM(__pyx_v_c_node);
- /* "src/lxml/parser.pxi":753
+ /* "src/lxml/parser.pxi":756
* return -1
* tree.END_FOR_EACH_ELEMENT_FROM(c_node)
* return 0 # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":743
+ /* "src/lxml/parser.pxi":746
* return result
*
* cdef int _fixHtmlDictNames(tree.xmlDict* c_dict, xmlDoc* c_doc) nogil: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":755
+/* "src/lxml/parser.pxi":758
* return 0
*
* cdef int _fixHtmlDictSubtreeNames(tree.xmlDict* c_dict, xmlDoc* c_doc, # <<<<<<<<<<<<<<
int __pyx_r;
int __pyx_t_1;
- /* "src/lxml/parser.pxi":762
+ /* "src/lxml/parser.pxi":765
* """
* cdef xmlNode* c_node
* if not c_doc: # <<<<<<<<<<<<<<
__pyx_t_1 = ((!(__pyx_v_c_doc != 0)) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":763
+ /* "src/lxml/parser.pxi":766
* cdef xmlNode* c_node
* if not c_doc:
* return 0 # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":762
+ /* "src/lxml/parser.pxi":765
* """
* cdef xmlNode* c_node
* if not c_doc: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":764
+ /* "src/lxml/parser.pxi":767
* if not c_doc:
* return 0
* if not c_start_node: # <<<<<<<<<<<<<<
__pyx_t_1 = ((!(__pyx_v_c_start_node != 0)) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":765
+ /* "src/lxml/parser.pxi":768
* return 0
* if not c_start_node:
* return _fixHtmlDictNames(c_dict, c_doc) # <<<<<<<<<<<<<<
__pyx_r = __pyx_f_4lxml_5etree__fixHtmlDictNames(__pyx_v_c_dict, __pyx_v_c_doc);
goto __pyx_L0;
- /* "src/lxml/parser.pxi":764
+ /* "src/lxml/parser.pxi":767
* if not c_doc:
* return 0
* if not c_start_node: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":766
+ /* "src/lxml/parser.pxi":769
* if not c_start_node:
* return _fixHtmlDictNames(c_dict, c_doc)
* c_node = c_start_node # <<<<<<<<<<<<<<
*/
__pyx_v_c_node = __pyx_v_c_start_node;
- /* "src/lxml/parser.pxi":767
+ /* "src/lxml/parser.pxi":770
* return _fixHtmlDictNames(c_dict, c_doc)
* c_node = c_start_node
* tree.BEGIN_FOR_EACH_ELEMENT_FROM(<xmlNode*>c_doc, c_node, 1) # <<<<<<<<<<<<<<
*/
BEGIN_FOR_EACH_ELEMENT_FROM(((xmlNode *)__pyx_v_c_doc), __pyx_v_c_node, 1);
- /* "src/lxml/parser.pxi":768
+ /* "src/lxml/parser.pxi":771
* c_node = c_start_node
* tree.BEGIN_FOR_EACH_ELEMENT_FROM(<xmlNode*>c_doc, c_node, 1)
* if c_node.type == tree.XML_ELEMENT_NODE: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_node->type == XML_ELEMENT_NODE) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":769
+ /* "src/lxml/parser.pxi":772
* tree.BEGIN_FOR_EACH_ELEMENT_FROM(<xmlNode*>c_doc, c_node, 1)
* if c_node.type == tree.XML_ELEMENT_NODE:
* if _fixHtmlDictNodeNames(c_dict, c_node) < 0: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_f_4lxml_5etree__fixHtmlDictNodeNames(__pyx_v_c_dict, __pyx_v_c_node) < 0) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":770
+ /* "src/lxml/parser.pxi":773
* if c_node.type == tree.XML_ELEMENT_NODE:
* if _fixHtmlDictNodeNames(c_dict, c_node) < 0:
* return -1 # <<<<<<<<<<<<<<
__pyx_r = -1;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":769
+ /* "src/lxml/parser.pxi":772
* tree.BEGIN_FOR_EACH_ELEMENT_FROM(<xmlNode*>c_doc, c_node, 1)
* if c_node.type == tree.XML_ELEMENT_NODE:
* if _fixHtmlDictNodeNames(c_dict, c_node) < 0: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":768
+ /* "src/lxml/parser.pxi":771
* c_node = c_start_node
* tree.BEGIN_FOR_EACH_ELEMENT_FROM(<xmlNode*>c_doc, c_node, 1)
* if c_node.type == tree.XML_ELEMENT_NODE: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":771
+ /* "src/lxml/parser.pxi":774
* if _fixHtmlDictNodeNames(c_dict, c_node) < 0:
* return -1
* tree.END_FOR_EACH_ELEMENT_FROM(c_node) # <<<<<<<<<<<<<<
*/
END_FOR_EACH_ELEMENT_FROM(__pyx_v_c_node);
- /* "src/lxml/parser.pxi":772
+ /* "src/lxml/parser.pxi":775
* return -1
* tree.END_FOR_EACH_ELEMENT_FROM(c_node)
* return 0 # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":755
+ /* "src/lxml/parser.pxi":758
* return 0
*
* cdef int _fixHtmlDictSubtreeNames(tree.xmlDict* c_dict, xmlDoc* c_doc, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":774
+/* "src/lxml/parser.pxi":777
* return 0
*
* cdef inline int _fixHtmlDictNodeNames(tree.xmlDict* c_dict, # <<<<<<<<<<<<<<
int __pyx_t_1;
xmlNode *__pyx_t_2;
- /* "src/lxml/parser.pxi":777
+ /* "src/lxml/parser.pxi":780
* xmlNode* c_node) nogil:
* cdef xmlNode* c_attr
* c_name = tree.xmlDictLookup(c_dict, c_node.name, -1) # <<<<<<<<<<<<<<
*/
__pyx_v_c_name = xmlDictLookup(__pyx_v_c_dict, __pyx_v_c_node->name, -1);
- /* "src/lxml/parser.pxi":778
+ /* "src/lxml/parser.pxi":781
* cdef xmlNode* c_attr
* c_name = tree.xmlDictLookup(c_dict, c_node.name, -1)
* if c_name is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_name == NULL) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":779
+ /* "src/lxml/parser.pxi":782
* c_name = tree.xmlDictLookup(c_dict, c_node.name, -1)
* if c_name is NULL:
* return -1 # <<<<<<<<<<<<<<
__pyx_r = -1;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":778
+ /* "src/lxml/parser.pxi":781
* cdef xmlNode* c_attr
* c_name = tree.xmlDictLookup(c_dict, c_node.name, -1)
* if c_name is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":780
+ /* "src/lxml/parser.pxi":783
* if c_name is NULL:
* return -1
* if c_name is not c_node.name: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_name != __pyx_v_c_node->name) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":781
+ /* "src/lxml/parser.pxi":784
* return -1
* if c_name is not c_node.name:
* tree.xmlFree(<char*>c_node.name) # <<<<<<<<<<<<<<
*/
xmlFree(((char *)__pyx_v_c_node->name));
- /* "src/lxml/parser.pxi":782
+ /* "src/lxml/parser.pxi":785
* if c_name is not c_node.name:
* tree.xmlFree(<char*>c_node.name)
* c_node.name = c_name # <<<<<<<<<<<<<<
*/
__pyx_v_c_node->name = __pyx_v_c_name;
- /* "src/lxml/parser.pxi":780
+ /* "src/lxml/parser.pxi":783
* if c_name is NULL:
* return -1
* if c_name is not c_node.name: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":783
+ /* "src/lxml/parser.pxi":786
* tree.xmlFree(<char*>c_node.name)
* c_node.name = c_name
* c_attr = <xmlNode*>c_node.properties # <<<<<<<<<<<<<<
*/
__pyx_v_c_attr = ((xmlNode *)__pyx_v_c_node->properties);
- /* "src/lxml/parser.pxi":784
+ /* "src/lxml/parser.pxi":787
* c_node.name = c_name
* c_attr = <xmlNode*>c_node.properties
* while c_attr is not NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_attr != NULL) != 0);
if (!__pyx_t_1) break;
- /* "src/lxml/parser.pxi":785
+ /* "src/lxml/parser.pxi":788
* c_attr = <xmlNode*>c_node.properties
* while c_attr is not NULL:
* c_name = tree.xmlDictLookup(c_dict, c_attr.name, -1) # <<<<<<<<<<<<<<
*/
__pyx_v_c_name = xmlDictLookup(__pyx_v_c_dict, __pyx_v_c_attr->name, -1);
- /* "src/lxml/parser.pxi":786
+ /* "src/lxml/parser.pxi":789
* while c_attr is not NULL:
* c_name = tree.xmlDictLookup(c_dict, c_attr.name, -1)
* if c_name is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_name == NULL) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":787
+ /* "src/lxml/parser.pxi":790
* c_name = tree.xmlDictLookup(c_dict, c_attr.name, -1)
* if c_name is NULL:
* return -1 # <<<<<<<<<<<<<<
__pyx_r = -1;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":786
+ /* "src/lxml/parser.pxi":789
* while c_attr is not NULL:
* c_name = tree.xmlDictLookup(c_dict, c_attr.name, -1)
* if c_name is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":788
+ /* "src/lxml/parser.pxi":791
* if c_name is NULL:
* return -1
* if c_name is not c_attr.name: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_name != __pyx_v_c_attr->name) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":789
+ /* "src/lxml/parser.pxi":792
* return -1
* if c_name is not c_attr.name:
* tree.xmlFree(<char*>c_attr.name) # <<<<<<<<<<<<<<
*/
xmlFree(((char *)__pyx_v_c_attr->name));
- /* "src/lxml/parser.pxi":790
+ /* "src/lxml/parser.pxi":793
* if c_name is not c_attr.name:
* tree.xmlFree(<char*>c_attr.name)
* c_attr.name = c_name # <<<<<<<<<<<<<<
*/
__pyx_v_c_attr->name = __pyx_v_c_name;
- /* "src/lxml/parser.pxi":788
+ /* "src/lxml/parser.pxi":791
* if c_name is NULL:
* return -1
* if c_name is not c_attr.name: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":791
+ /* "src/lxml/parser.pxi":794
* tree.xmlFree(<char*>c_attr.name)
* c_attr.name = c_name
* c_attr = c_attr.next # <<<<<<<<<<<<<<
__pyx_v_c_attr = __pyx_t_2;
}
- /* "src/lxml/parser.pxi":792
+ /* "src/lxml/parser.pxi":795
* c_attr.name = c_name
* c_attr = c_attr.next
* return 0 # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":774
+ /* "src/lxml/parser.pxi":777
* return 0
*
* cdef inline int _fixHtmlDictNodeNames(tree.xmlDict* c_dict, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":812
+/* "src/lxml/parser.pxi":815
* cdef tuple _events_to_collect # (event_types, tag)
*
* def __init__(self, int parse_options, bint for_html, XMLSchema schema, # <<<<<<<<<<<<<<
case 1:
if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_for_html)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, 1); __PYX_ERR(2, 812, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, 1); __PYX_ERR(2, 815, __pyx_L3_error)
}
CYTHON_FALLTHROUGH;
case 2:
if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_schema)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, 2); __PYX_ERR(2, 812, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, 2); __PYX_ERR(2, 815, __pyx_L3_error)
}
CYTHON_FALLTHROUGH;
case 3:
if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_remove_comments)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, 3); __PYX_ERR(2, 812, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, 3); __PYX_ERR(2, 815, __pyx_L3_error)
}
CYTHON_FALLTHROUGH;
case 4:
if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_remove_pis)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, 4); __PYX_ERR(2, 812, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, 4); __PYX_ERR(2, 815, __pyx_L3_error)
}
CYTHON_FALLTHROUGH;
case 5:
if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_strip_cdata)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, 5); __PYX_ERR(2, 812, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, 5); __PYX_ERR(2, 815, __pyx_L3_error)
}
CYTHON_FALLTHROUGH;
case 6:
if (likely((values[6] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_collect_ids)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, 6); __PYX_ERR(2, 812, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, 6); __PYX_ERR(2, 815, __pyx_L3_error)
}
CYTHON_FALLTHROUGH;
case 7:
if (likely((values[7] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_target)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, 7); __PYX_ERR(2, 812, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, 7); __PYX_ERR(2, 815, __pyx_L3_error)
}
CYTHON_FALLTHROUGH;
case 8:
if (likely((values[8] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_encoding)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, 8); __PYX_ERR(2, 812, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, 8); __PYX_ERR(2, 815, __pyx_L3_error)
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(2, 812, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(2, 815, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 9) {
goto __pyx_L5_argtuple_error;
values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
}
- __pyx_v_parse_options = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_parse_options == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 812, __pyx_L3_error)
- __pyx_v_for_html = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_for_html == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 812, __pyx_L3_error)
+ __pyx_v_parse_options = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_parse_options == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 815, __pyx_L3_error)
+ __pyx_v_for_html = __Pyx_PyObject_IsTrue(values[1]); if (unlikely((__pyx_v_for_html == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 815, __pyx_L3_error)
__pyx_v_schema = ((struct __pyx_obj_4lxml_5etree_XMLSchema *)values[2]);
__pyx_v_remove_comments = values[3];
__pyx_v_remove_pis = values[4];
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 812, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__init__", 1, 9, 9, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 815, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._BaseParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return -1;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_schema), __pyx_ptype_4lxml_5etree_XMLSchema, 1, "schema", 0))) __PYX_ERR(2, 812, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_schema), __pyx_ptype_4lxml_5etree_XMLSchema, 1, "schema", 0))) __PYX_ERR(2, 815, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_11_BaseParser___init__(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self), __pyx_v_parse_options, __pyx_v_for_html, __pyx_v_schema, __pyx_v_remove_comments, __pyx_v_remove_pis, __pyx_v_strip_cdata, __pyx_v_collect_ids, __pyx_v_target, __pyx_v_encoding);
/* function exit code */
__Pyx_RefNannySetupContext("__init__", 0);
__Pyx_INCREF(__pyx_v_encoding);
- /* "src/lxml/parser.pxi":817
+ /* "src/lxml/parser.pxi":820
* cdef tree.xmlCharEncodingHandler* enchandler
* cdef int c_encoding
* if not isinstance(self, (XMLParser, HTMLParser)): # <<<<<<<<<<<<<<
__pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0);
if (unlikely(__pyx_t_2)) {
- /* "src/lxml/parser.pxi":818
+ /* "src/lxml/parser.pxi":821
* cdef int c_encoding
* if not isinstance(self, (XMLParser, HTMLParser)):
* raise TypeError, u"This class cannot be instantiated" # <<<<<<<<<<<<<<
* self._parse_options = parse_options
*/
__Pyx_Raise(__pyx_builtin_TypeError, __pyx_kp_u_This_class_cannot_be_instantiate, 0, 0);
- __PYX_ERR(2, 818, __pyx_L1_error)
+ __PYX_ERR(2, 821, __pyx_L1_error)
- /* "src/lxml/parser.pxi":817
+ /* "src/lxml/parser.pxi":820
* cdef tree.xmlCharEncodingHandler* enchandler
* cdef int c_encoding
* if not isinstance(self, (XMLParser, HTMLParser)): # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":820
+ /* "src/lxml/parser.pxi":823
* raise TypeError, u"This class cannot be instantiated"
*
* self._parse_options = parse_options # <<<<<<<<<<<<<<
*/
__pyx_v_self->_parse_options = __pyx_v_parse_options;
- /* "src/lxml/parser.pxi":821
+ /* "src/lxml/parser.pxi":824
*
* self._parse_options = parse_options
* self.target = target # <<<<<<<<<<<<<<
__Pyx_DECREF(__pyx_v_self->target);
__pyx_v_self->target = __pyx_v_target;
- /* "src/lxml/parser.pxi":822
+ /* "src/lxml/parser.pxi":825
* self._parse_options = parse_options
* self.target = target
* self._for_html = for_html # <<<<<<<<<<<<<<
*/
__pyx_v_self->_for_html = __pyx_v_for_html;
- /* "src/lxml/parser.pxi":823
+ /* "src/lxml/parser.pxi":826
* self.target = target
* self._for_html = for_html
* self._remove_comments = remove_comments # <<<<<<<<<<<<<<
* self._remove_pis = remove_pis
* self._strip_cdata = strip_cdata
*/
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_remove_comments); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 823, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_remove_comments); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 826, __pyx_L1_error)
__pyx_v_self->_remove_comments = __pyx_t_2;
- /* "src/lxml/parser.pxi":824
+ /* "src/lxml/parser.pxi":827
* self._for_html = for_html
* self._remove_comments = remove_comments
* self._remove_pis = remove_pis # <<<<<<<<<<<<<<
* self._strip_cdata = strip_cdata
* self._collect_ids = collect_ids
*/
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_remove_pis); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 824, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_remove_pis); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 827, __pyx_L1_error)
__pyx_v_self->_remove_pis = __pyx_t_2;
- /* "src/lxml/parser.pxi":825
+ /* "src/lxml/parser.pxi":828
* self._remove_comments = remove_comments
* self._remove_pis = remove_pis
* self._strip_cdata = strip_cdata # <<<<<<<<<<<<<<
* self._collect_ids = collect_ids
* self._schema = schema
*/
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_strip_cdata); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 825, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_strip_cdata); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 828, __pyx_L1_error)
__pyx_v_self->_strip_cdata = __pyx_t_2;
- /* "src/lxml/parser.pxi":826
+ /* "src/lxml/parser.pxi":829
* self._remove_pis = remove_pis
* self._strip_cdata = strip_cdata
* self._collect_ids = collect_ids # <<<<<<<<<<<<<<
* self._schema = schema
*
*/
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_collect_ids); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 826, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_collect_ids); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 829, __pyx_L1_error)
__pyx_v_self->_collect_ids = __pyx_t_2;
- /* "src/lxml/parser.pxi":827
+ /* "src/lxml/parser.pxi":830
* self._strip_cdata = strip_cdata
* self._collect_ids = collect_ids
* self._schema = schema # <<<<<<<<<<<<<<
__Pyx_DECREF(((PyObject *)__pyx_v_self->_schema));
__pyx_v_self->_schema = __pyx_v_schema;
- /* "src/lxml/parser.pxi":829
+ /* "src/lxml/parser.pxi":832
* self._schema = schema
*
* self._resolvers = _ResolverRegistry() # <<<<<<<<<<<<<<
*
* if encoding is None:
*/
- __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree__ResolverRegistry)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 829, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree__ResolverRegistry)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 832, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_GIVEREF(__pyx_t_4);
__Pyx_GOTREF(__pyx_v_self->_resolvers);
__pyx_v_self->_resolvers = ((struct __pyx_obj_4lxml_5etree__ResolverRegistry *)__pyx_t_4);
__pyx_t_4 = 0;
- /* "src/lxml/parser.pxi":831
+ /* "src/lxml/parser.pxi":834
* self._resolvers = _ResolverRegistry()
*
* if encoding is None: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_t_2 != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":832
+ /* "src/lxml/parser.pxi":835
*
* if encoding is None:
* self._default_encoding = None # <<<<<<<<<<<<<<
__Pyx_DECREF(__pyx_v_self->_default_encoding);
__pyx_v_self->_default_encoding = Py_None;
- /* "src/lxml/parser.pxi":831
+ /* "src/lxml/parser.pxi":834
* self._resolvers = _ResolverRegistry()
*
* if encoding is None: # <<<<<<<<<<<<<<
goto __pyx_L6;
}
- /* "src/lxml/parser.pxi":834
+ /* "src/lxml/parser.pxi":837
* self._default_encoding = None
* else:
* encoding = _utf8(encoding) # <<<<<<<<<<<<<<
* if enchandler is NULL:
*/
/*else*/ {
- __pyx_t_4 = __pyx_f_4lxml_5etree__utf8(__pyx_v_encoding); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 834, __pyx_L1_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree__utf8(__pyx_v_encoding); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 837, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF_SET(__pyx_v_encoding, __pyx_t_4);
__pyx_t_4 = 0;
- /* "src/lxml/parser.pxi":835
+ /* "src/lxml/parser.pxi":838
* else:
* encoding = _utf8(encoding)
* enchandler = tree.xmlFindCharEncodingHandler(_cstr(encoding)) # <<<<<<<<<<<<<<
*/
__pyx_v_enchandler = xmlFindCharEncodingHandler(PyBytes_AS_STRING(__pyx_v_encoding));
- /* "src/lxml/parser.pxi":836
+ /* "src/lxml/parser.pxi":839
* encoding = _utf8(encoding)
* enchandler = tree.xmlFindCharEncodingHandler(_cstr(encoding))
* if enchandler is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_enchandler == NULL) != 0);
if (unlikely(__pyx_t_1)) {
- /* "src/lxml/parser.pxi":837
+ /* "src/lxml/parser.pxi":840
* enchandler = tree.xmlFindCharEncodingHandler(_cstr(encoding))
* if enchandler is NULL:
* raise LookupError, f"unknown encoding: '{encoding}'" # <<<<<<<<<<<<<<
* tree.xmlCharEncCloseFunc(enchandler)
* self._default_encoding = encoding
*/
- __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 837, __pyx_L1_error)
+ __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 840, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_5 = 0;
__pyx_t_6 = 127;
__pyx_t_5 += 19;
__Pyx_GIVEREF(__pyx_kp_u_unknown_encoding);
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_unknown_encoding);
- __pyx_t_7 = __Pyx_PyObject_FormatSimple(__pyx_v_encoding, __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 837, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyObject_FormatSimple(__pyx_v_encoding, __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 840, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__pyx_t_6 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) > __pyx_t_6) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) : __pyx_t_6;
__pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_7);
__pyx_t_5 += 1;
__Pyx_GIVEREF(__pyx_kp_u__22);
PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_kp_u__22);
- __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_4, 3, __pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 837, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_4, 3, __pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 840, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_Raise(__pyx_builtin_LookupError, __pyx_t_7, 0, 0);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- __PYX_ERR(2, 837, __pyx_L1_error)
+ __PYX_ERR(2, 840, __pyx_L1_error)
- /* "src/lxml/parser.pxi":836
+ /* "src/lxml/parser.pxi":839
* encoding = _utf8(encoding)
* enchandler = tree.xmlFindCharEncodingHandler(_cstr(encoding))
* if enchandler is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":838
+ /* "src/lxml/parser.pxi":841
* if enchandler is NULL:
* raise LookupError, f"unknown encoding: '{encoding}'"
* tree.xmlCharEncCloseFunc(enchandler) # <<<<<<<<<<<<<<
*/
(void)(xmlCharEncCloseFunc(__pyx_v_enchandler));
- /* "src/lxml/parser.pxi":839
+ /* "src/lxml/parser.pxi":842
* raise LookupError, f"unknown encoding: '{encoding}'"
* tree.xmlCharEncCloseFunc(enchandler)
* self._default_encoding = encoding # <<<<<<<<<<<<<<
}
__pyx_L6:;
- /* "src/lxml/parser.pxi":812
+ /* "src/lxml/parser.pxi":815
* cdef tuple _events_to_collect # (event_types, tag)
*
* def __init__(self, int parse_options, bint for_html, XMLSchema schema, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":841
+/* "src/lxml/parser.pxi":844
* self._default_encoding = encoding
*
* cdef _setBaseURL(self, base_url): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_setBaseURL", 0);
- /* "src/lxml/parser.pxi":842
+ /* "src/lxml/parser.pxi":845
*
* cdef _setBaseURL(self, base_url):
* self._filename = _encodeFilename(base_url) # <<<<<<<<<<<<<<
*
* cdef _collectEvents(self, event_types, tag):
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__encodeFilename(__pyx_v_base_url); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 842, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__encodeFilename(__pyx_v_base_url); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 845, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- if (!(likely(PyBytes_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(2, 842, __pyx_L1_error)
+ if (!(likely(PyBytes_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(2, 845, __pyx_L1_error)
__Pyx_GIVEREF(__pyx_t_1);
__Pyx_GOTREF(__pyx_v_self->_filename);
__Pyx_DECREF(__pyx_v_self->_filename);
__pyx_v_self->_filename = ((PyObject*)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/parser.pxi":841
+ /* "src/lxml/parser.pxi":844
* self._default_encoding = encoding
*
* cdef _setBaseURL(self, base_url): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":844
+/* "src/lxml/parser.pxi":847
* self._filename = _encodeFilename(base_url)
*
* cdef _collectEvents(self, event_types, tag): # <<<<<<<<<<<<<<
__Pyx_RefNannySetupContext("_collectEvents", 0);
__Pyx_INCREF(__pyx_v_event_types);
- /* "src/lxml/parser.pxi":845
+ /* "src/lxml/parser.pxi":848
*
* cdef _collectEvents(self, event_types, tag):
* if event_types is None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":846
+ /* "src/lxml/parser.pxi":849
* cdef _collectEvents(self, event_types, tag):
* if event_types is None:
* event_types = () # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_empty_tuple);
__Pyx_DECREF_SET(__pyx_v_event_types, __pyx_empty_tuple);
- /* "src/lxml/parser.pxi":845
+ /* "src/lxml/parser.pxi":848
*
* cdef _collectEvents(self, event_types, tag):
* if event_types is None: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "src/lxml/parser.pxi":848
+ /* "src/lxml/parser.pxi":851
* event_types = ()
* else:
* event_types = tuple(set(event_types)) # <<<<<<<<<<<<<<
* self._events_to_collect = (event_types, tag)
*/
/*else*/ {
- __pyx_t_3 = PySet_New(__pyx_v_event_types); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 848, __pyx_L1_error)
+ __pyx_t_3 = PySet_New(__pyx_v_event_types); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 851, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_4 = PySequence_Tuple(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 848, __pyx_L1_error)
+ __pyx_t_4 = PySequence_Tuple(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 851, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF_SET(__pyx_v_event_types, __pyx_t_4);
__pyx_t_4 = 0;
- /* "src/lxml/parser.pxi":849
+ /* "src/lxml/parser.pxi":852
* else:
* event_types = tuple(set(event_types))
* _buildParseEventFilter(event_types) # purely for validation # <<<<<<<<<<<<<<
* self._events_to_collect = (event_types, tag)
*
*/
- __pyx_t_5 = __pyx_f_4lxml_5etree__buildParseEventFilter(__pyx_v_event_types); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 849, __pyx_L1_error)
+ __pyx_t_5 = __pyx_f_4lxml_5etree__buildParseEventFilter(__pyx_v_event_types); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 852, __pyx_L1_error)
}
__pyx_L3:;
- /* "src/lxml/parser.pxi":850
+ /* "src/lxml/parser.pxi":853
* event_types = tuple(set(event_types))
* _buildParseEventFilter(event_types) # purely for validation
* self._events_to_collect = (event_types, tag) # <<<<<<<<<<<<<<
*
* cdef _ParserContext _getParserContext(self):
*/
- __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 850, __pyx_L1_error)
+ __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 853, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_INCREF(__pyx_v_event_types);
__Pyx_GIVEREF(__pyx_v_event_types);
__pyx_v_self->_events_to_collect = ((PyObject*)__pyx_t_4);
__pyx_t_4 = 0;
- /* "src/lxml/parser.pxi":844
+ /* "src/lxml/parser.pxi":847
* self._filename = _encodeFilename(base_url)
*
* cdef _collectEvents(self, event_types, tag): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":852
+/* "src/lxml/parser.pxi":855
* self._events_to_collect = (event_types, tag)
*
* cdef _ParserContext _getParserContext(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_getParserContext", 0);
- /* "src/lxml/parser.pxi":854
+ /* "src/lxml/parser.pxi":857
* cdef _ParserContext _getParserContext(self):
* cdef xmlparser.xmlParserCtxt* pctxt
* if self._parser_context is None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":855
+ /* "src/lxml/parser.pxi":858
* cdef xmlparser.xmlParserCtxt* pctxt
* if self._parser_context is None:
* self._parser_context = self._createContext(self.target, None) # <<<<<<<<<<<<<<
*/
__pyx_t_3 = __pyx_v_self->target;
__Pyx_INCREF(__pyx_t_3);
- __pyx_t_4 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)__pyx_v_self->__pyx_vtab)->_createContext(__pyx_v_self, __pyx_t_3, Py_None)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 855, __pyx_L1_error)
+ __pyx_t_4 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)__pyx_v_self->__pyx_vtab)->_createContext(__pyx_v_self, __pyx_t_3, Py_None)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 858, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_GIVEREF(__pyx_t_4);
__pyx_v_self->_parser_context = ((struct __pyx_obj_4lxml_5etree__ParserContext *)__pyx_t_4);
__pyx_t_4 = 0;
- /* "src/lxml/parser.pxi":856
+ /* "src/lxml/parser.pxi":859
* if self._parser_context is None:
* self._parser_context = self._createContext(self.target, None)
* self._parser_context._collect_ids = self._collect_ids # <<<<<<<<<<<<<<
__pyx_t_2 = __pyx_v_self->_collect_ids;
__pyx_v_self->_parser_context->_collect_ids = __pyx_t_2;
- /* "src/lxml/parser.pxi":857
+ /* "src/lxml/parser.pxi":860
* self._parser_context = self._createContext(self.target, None)
* self._parser_context._collect_ids = self._collect_ids
* if self._schema is not None: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_t_2 != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":859
+ /* "src/lxml/parser.pxi":862
* if self._schema is not None:
* self._parser_context._validator = \
* self._schema._newSaxValidator( # <<<<<<<<<<<<<<
* self._parse_options & xmlparser.XML_PARSE_DTDATTR)
* pctxt = self._newParserCtxt()
*/
- __pyx_t_4 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree_XMLSchema *)__pyx_v_self->_schema->__pyx_base.__pyx_vtab)->_newSaxValidator(__pyx_v_self->_schema, (__pyx_v_self->_parse_options & XML_PARSE_DTDATTR))); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 859, __pyx_L1_error)
+ __pyx_t_4 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree_XMLSchema *)__pyx_v_self->_schema->__pyx_base.__pyx_vtab)->_newSaxValidator(__pyx_v_self->_schema, (__pyx_v_self->_parse_options & XML_PARSE_DTDATTR))); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 862, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
- /* "src/lxml/parser.pxi":858
+ /* "src/lxml/parser.pxi":861
* self._parser_context._collect_ids = self._collect_ids
* if self._schema is not None:
* self._parser_context._validator = \ # <<<<<<<<<<<<<<
__pyx_v_self->_parser_context->_validator = ((struct __pyx_obj_4lxml_5etree__ParserSchemaValidationContext *)__pyx_t_4);
__pyx_t_4 = 0;
- /* "src/lxml/parser.pxi":857
+ /* "src/lxml/parser.pxi":860
* self._parser_context = self._createContext(self.target, None)
* self._parser_context._collect_ids = self._collect_ids
* if self._schema is not None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":861
+ /* "src/lxml/parser.pxi":864
* self._schema._newSaxValidator(
* self._parse_options & xmlparser.XML_PARSE_DTDATTR)
* pctxt = self._newParserCtxt() # <<<<<<<<<<<<<<
* _initParserContext(self._parser_context, self._resolvers, pctxt)
* self._configureSaxContext(pctxt)
*/
- __pyx_t_5 = ((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)__pyx_v_self->__pyx_vtab)->_newParserCtxt(__pyx_v_self); if (unlikely(__pyx_t_5 == ((xmlParserCtxt *)NULL))) __PYX_ERR(2, 861, __pyx_L1_error)
+ __pyx_t_5 = ((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)__pyx_v_self->__pyx_vtab)->_newParserCtxt(__pyx_v_self); if (unlikely(__pyx_t_5 == ((xmlParserCtxt *)NULL))) __PYX_ERR(2, 864, __pyx_L1_error)
__pyx_v_pctxt = __pyx_t_5;
- /* "src/lxml/parser.pxi":862
+ /* "src/lxml/parser.pxi":865
* self._parse_options & xmlparser.XML_PARSE_DTDATTR)
* pctxt = self._newParserCtxt()
* _initParserContext(self._parser_context, self._resolvers, pctxt) # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_t_4);
__pyx_t_3 = ((PyObject *)__pyx_v_self->_resolvers);
__Pyx_INCREF(__pyx_t_3);
- __pyx_t_6 = __pyx_f_4lxml_5etree__initParserContext(((struct __pyx_obj_4lxml_5etree__ParserContext *)__pyx_t_4), ((struct __pyx_obj_4lxml_5etree__ResolverRegistry *)__pyx_t_3), __pyx_v_pctxt); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 862, __pyx_L1_error)
+ __pyx_t_6 = __pyx_f_4lxml_5etree__initParserContext(((struct __pyx_obj_4lxml_5etree__ParserContext *)__pyx_t_4), ((struct __pyx_obj_4lxml_5etree__ResolverRegistry *)__pyx_t_3), __pyx_v_pctxt); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 865, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
- /* "src/lxml/parser.pxi":863
+ /* "src/lxml/parser.pxi":866
* pctxt = self._newParserCtxt()
* _initParserContext(self._parser_context, self._resolvers, pctxt)
* self._configureSaxContext(pctxt) # <<<<<<<<<<<<<<
* return self._parser_context
*
*/
- __pyx_t_7 = __pyx_f_4lxml_5etree_11_BaseParser__configureSaxContext(__pyx_v_self, __pyx_v_pctxt); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(2, 863, __pyx_L1_error)
+ __pyx_t_7 = __pyx_f_4lxml_5etree_11_BaseParser__configureSaxContext(__pyx_v_self, __pyx_v_pctxt); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(2, 866, __pyx_L1_error)
- /* "src/lxml/parser.pxi":854
+ /* "src/lxml/parser.pxi":857
* cdef _ParserContext _getParserContext(self):
* cdef xmlparser.xmlParserCtxt* pctxt
* if self._parser_context is None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":864
+ /* "src/lxml/parser.pxi":867
* _initParserContext(self._parser_context, self._resolvers, pctxt)
* self._configureSaxContext(pctxt)
* return self._parser_context # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_self->_parser_context;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":852
+ /* "src/lxml/parser.pxi":855
* self._events_to_collect = (event_types, tag)
*
* cdef _ParserContext _getParserContext(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":866
+/* "src/lxml/parser.pxi":869
* return self._parser_context
*
* cdef _ParserContext _getPushParserContext(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_getPushParserContext", 0);
- /* "src/lxml/parser.pxi":868
+ /* "src/lxml/parser.pxi":871
* cdef _ParserContext _getPushParserContext(self):
* cdef xmlparser.xmlParserCtxt* pctxt
* if self._push_parser_context is None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":870
+ /* "src/lxml/parser.pxi":873
* if self._push_parser_context is None:
* self._push_parser_context = self._createContext(
* self.target, self._events_to_collect) # <<<<<<<<<<<<<<
__pyx_t_4 = __pyx_v_self->_events_to_collect;
__Pyx_INCREF(__pyx_t_4);
- /* "src/lxml/parser.pxi":869
+ /* "src/lxml/parser.pxi":872
* cdef xmlparser.xmlParserCtxt* pctxt
* if self._push_parser_context is None:
* self._push_parser_context = self._createContext( # <<<<<<<<<<<<<<
* self.target, self._events_to_collect)
* self._push_parser_context._collect_ids = self._collect_ids
*/
- __pyx_t_5 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)__pyx_v_self->__pyx_vtab)->_createContext(__pyx_v_self, __pyx_t_3, __pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 869, __pyx_L1_error)
+ __pyx_t_5 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)__pyx_v_self->__pyx_vtab)->_createContext(__pyx_v_self, __pyx_t_3, __pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 872, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_v_self->_push_parser_context = ((struct __pyx_obj_4lxml_5etree__ParserContext *)__pyx_t_5);
__pyx_t_5 = 0;
- /* "src/lxml/parser.pxi":871
+ /* "src/lxml/parser.pxi":874
* self._push_parser_context = self._createContext(
* self.target, self._events_to_collect)
* self._push_parser_context._collect_ids = self._collect_ids # <<<<<<<<<<<<<<
__pyx_t_2 = __pyx_v_self->_collect_ids;
__pyx_v_self->_push_parser_context->_collect_ids = __pyx_t_2;
- /* "src/lxml/parser.pxi":872
+ /* "src/lxml/parser.pxi":875
* self.target, self._events_to_collect)
* self._push_parser_context._collect_ids = self._collect_ids
* if self._schema is not None: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_t_2 != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":874
+ /* "src/lxml/parser.pxi":877
* if self._schema is not None:
* self._push_parser_context._validator = \
* self._schema._newSaxValidator( # <<<<<<<<<<<<<<
* self._parse_options & xmlparser.XML_PARSE_DTDATTR)
* pctxt = self._newPushParserCtxt()
*/
- __pyx_t_5 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree_XMLSchema *)__pyx_v_self->_schema->__pyx_base.__pyx_vtab)->_newSaxValidator(__pyx_v_self->_schema, (__pyx_v_self->_parse_options & XML_PARSE_DTDATTR))); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 874, __pyx_L1_error)
+ __pyx_t_5 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree_XMLSchema *)__pyx_v_self->_schema->__pyx_base.__pyx_vtab)->_newSaxValidator(__pyx_v_self->_schema, (__pyx_v_self->_parse_options & XML_PARSE_DTDATTR))); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 877, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
- /* "src/lxml/parser.pxi":873
+ /* "src/lxml/parser.pxi":876
* self._push_parser_context._collect_ids = self._collect_ids
* if self._schema is not None:
* self._push_parser_context._validator = \ # <<<<<<<<<<<<<<
__pyx_v_self->_push_parser_context->_validator = ((struct __pyx_obj_4lxml_5etree__ParserSchemaValidationContext *)__pyx_t_5);
__pyx_t_5 = 0;
- /* "src/lxml/parser.pxi":872
+ /* "src/lxml/parser.pxi":875
* self.target, self._events_to_collect)
* self._push_parser_context._collect_ids = self._collect_ids
* if self._schema is not None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":876
+ /* "src/lxml/parser.pxi":879
* self._schema._newSaxValidator(
* self._parse_options & xmlparser.XML_PARSE_DTDATTR)
* pctxt = self._newPushParserCtxt() # <<<<<<<<<<<<<<
* _initParserContext(
* self._push_parser_context, self._resolvers, pctxt)
*/
- __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)__pyx_v_self->__pyx_vtab)->_newPushParserCtxt(__pyx_v_self); if (unlikely(__pyx_t_6 == ((xmlParserCtxt *)NULL))) __PYX_ERR(2, 876, __pyx_L1_error)
+ __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)__pyx_v_self->__pyx_vtab)->_newPushParserCtxt(__pyx_v_self); if (unlikely(__pyx_t_6 == ((xmlParserCtxt *)NULL))) __PYX_ERR(2, 879, __pyx_L1_error)
__pyx_v_pctxt = __pyx_t_6;
- /* "src/lxml/parser.pxi":878
+ /* "src/lxml/parser.pxi":881
* pctxt = self._newPushParserCtxt()
* _initParserContext(
* self._push_parser_context, self._resolvers, pctxt) # <<<<<<<<<<<<<<
__pyx_t_4 = ((PyObject *)__pyx_v_self->_resolvers);
__Pyx_INCREF(__pyx_t_4);
- /* "src/lxml/parser.pxi":877
+ /* "src/lxml/parser.pxi":880
* self._parse_options & xmlparser.XML_PARSE_DTDATTR)
* pctxt = self._newPushParserCtxt()
* _initParserContext( # <<<<<<<<<<<<<<
* self._push_parser_context, self._resolvers, pctxt)
* self._configureSaxContext(pctxt)
*/
- __pyx_t_3 = __pyx_f_4lxml_5etree__initParserContext(((struct __pyx_obj_4lxml_5etree__ParserContext *)__pyx_t_5), ((struct __pyx_obj_4lxml_5etree__ResolverRegistry *)__pyx_t_4), __pyx_v_pctxt); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 877, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree__initParserContext(((struct __pyx_obj_4lxml_5etree__ParserContext *)__pyx_t_5), ((struct __pyx_obj_4lxml_5etree__ResolverRegistry *)__pyx_t_4), __pyx_v_pctxt); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 880, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- /* "src/lxml/parser.pxi":879
+ /* "src/lxml/parser.pxi":882
* _initParserContext(
* self._push_parser_context, self._resolvers, pctxt)
* self._configureSaxContext(pctxt) # <<<<<<<<<<<<<<
* return self._push_parser_context
*
*/
- __pyx_t_7 = __pyx_f_4lxml_5etree_11_BaseParser__configureSaxContext(__pyx_v_self, __pyx_v_pctxt); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(2, 879, __pyx_L1_error)
+ __pyx_t_7 = __pyx_f_4lxml_5etree_11_BaseParser__configureSaxContext(__pyx_v_self, __pyx_v_pctxt); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(2, 882, __pyx_L1_error)
- /* "src/lxml/parser.pxi":868
+ /* "src/lxml/parser.pxi":871
* cdef _ParserContext _getPushParserContext(self):
* cdef xmlparser.xmlParserCtxt* pctxt
* if self._push_parser_context is None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":880
+ /* "src/lxml/parser.pxi":883
* self._push_parser_context, self._resolvers, pctxt)
* self._configureSaxContext(pctxt)
* return self._push_parser_context # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_self->_push_parser_context;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":866
+ /* "src/lxml/parser.pxi":869
* return self._parser_context
*
* cdef _ParserContext _getPushParserContext(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":882
+/* "src/lxml/parser.pxi":885
* return self._push_parser_context
*
* cdef _ParserContext _createContext(self, target, events_to_collect): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_createContext", 0);
- /* "src/lxml/parser.pxi":884
+ /* "src/lxml/parser.pxi":887
* cdef _ParserContext _createContext(self, target, events_to_collect):
* cdef _SaxParserContext sax_context
* if target is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":885
+ /* "src/lxml/parser.pxi":888
* cdef _SaxParserContext sax_context
* if target is not None:
* sax_context = _TargetParserContext(self) # <<<<<<<<<<<<<<
* (<_TargetParserContext>sax_context)._setTarget(target)
* elif events_to_collect:
*/
- __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4lxml_5etree__TargetParserContext), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 885, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4lxml_5etree__TargetParserContext), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 888, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_v_sax_context = ((struct __pyx_obj_4lxml_5etree__SaxParserContext *)__pyx_t_3);
__pyx_t_3 = 0;
- /* "src/lxml/parser.pxi":886
+ /* "src/lxml/parser.pxi":889
* if target is not None:
* sax_context = _TargetParserContext(self)
* (<_TargetParserContext>sax_context)._setTarget(target) # <<<<<<<<<<<<<<
* elif events_to_collect:
* sax_context = _SaxParserContext(self)
*/
- __pyx_t_4 = __pyx_f_4lxml_5etree_20_TargetParserContext__setTarget(((struct __pyx_obj_4lxml_5etree__TargetParserContext *)__pyx_v_sax_context), __pyx_v_target); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 886, __pyx_L1_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree_20_TargetParserContext__setTarget(((struct __pyx_obj_4lxml_5etree__TargetParserContext *)__pyx_v_sax_context), __pyx_v_target); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 889, __pyx_L1_error)
- /* "src/lxml/parser.pxi":884
+ /* "src/lxml/parser.pxi":887
* cdef _ParserContext _createContext(self, target, events_to_collect):
* cdef _SaxParserContext sax_context
* if target is not None: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "src/lxml/parser.pxi":887
+ /* "src/lxml/parser.pxi":890
* sax_context = _TargetParserContext(self)
* (<_TargetParserContext>sax_context)._setTarget(target)
* elif events_to_collect: # <<<<<<<<<<<<<<
* sax_context = _SaxParserContext(self)
* else:
*/
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_events_to_collect); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 887, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_events_to_collect); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 890, __pyx_L1_error)
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":888
+ /* "src/lxml/parser.pxi":891
* (<_TargetParserContext>sax_context)._setTarget(target)
* elif events_to_collect:
* sax_context = _SaxParserContext(self) # <<<<<<<<<<<<<<
* else:
* # nothing special to configure
*/
- __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4lxml_5etree__SaxParserContext), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 888, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4lxml_5etree__SaxParserContext), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 891, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_v_sax_context = ((struct __pyx_obj_4lxml_5etree__SaxParserContext *)__pyx_t_3);
__pyx_t_3 = 0;
- /* "src/lxml/parser.pxi":887
+ /* "src/lxml/parser.pxi":890
* sax_context = _TargetParserContext(self)
* (<_TargetParserContext>sax_context)._setTarget(target)
* elif events_to_collect: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "src/lxml/parser.pxi":891
+ /* "src/lxml/parser.pxi":894
* else:
* # nothing special to configure
* return _ParserContext() # <<<<<<<<<<<<<<
*/
/*else*/ {
__Pyx_XDECREF(((PyObject *)__pyx_r));
- __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree__ParserContext)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 891, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree__ParserContext)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 894, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_r = ((struct __pyx_obj_4lxml_5etree__ParserContext *)__pyx_t_3);
__pyx_t_3 = 0;
}
__pyx_L3:;
- /* "src/lxml/parser.pxi":892
+ /* "src/lxml/parser.pxi":895
* # nothing special to configure
* return _ParserContext()
* if events_to_collect: # <<<<<<<<<<<<<<
* events, tag = events_to_collect
* sax_context._setEventFilter(events, tag)
*/
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_events_to_collect); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 892, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_events_to_collect); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 895, __pyx_L1_error)
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":893
+ /* "src/lxml/parser.pxi":896
* return _ParserContext()
* if events_to_collect:
* events, tag = events_to_collect # <<<<<<<<<<<<<<
if (unlikely(size != 2)) {
if (size > 2) __Pyx_RaiseTooManyValuesError(2);
else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
- __PYX_ERR(2, 893, __pyx_L1_error)
+ __PYX_ERR(2, 896, __pyx_L1_error)
}
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
if (likely(PyTuple_CheckExact(sequence))) {
__Pyx_INCREF(__pyx_t_3);
__Pyx_INCREF(__pyx_t_5);
#else
- __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 893, __pyx_L1_error)
+ __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 896, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_5 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 893, __pyx_L1_error)
+ __pyx_t_5 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 896, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
#endif
} else {
Py_ssize_t index = -1;
- __pyx_t_6 = PyObject_GetIter(__pyx_v_events_to_collect); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 893, __pyx_L1_error)
+ __pyx_t_6 = PyObject_GetIter(__pyx_v_events_to_collect); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 896, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__pyx_t_7 = Py_TYPE(__pyx_t_6)->tp_iternext;
index = 0; __pyx_t_3 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_3)) goto __pyx_L5_unpacking_failed;
__Pyx_GOTREF(__pyx_t_3);
index = 1; __pyx_t_5 = __pyx_t_7(__pyx_t_6); if (unlikely(!__pyx_t_5)) goto __pyx_L5_unpacking_failed;
__Pyx_GOTREF(__pyx_t_5);
- if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_6), 2) < 0) __PYX_ERR(2, 893, __pyx_L1_error)
+ if (__Pyx_IternextUnpackEndCheck(__pyx_t_7(__pyx_t_6), 2) < 0) __PYX_ERR(2, 896, __pyx_L1_error)
__pyx_t_7 = NULL;
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
goto __pyx_L6_unpacking_done;
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__pyx_t_7 = NULL;
if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
- __PYX_ERR(2, 893, __pyx_L1_error)
+ __PYX_ERR(2, 896, __pyx_L1_error)
__pyx_L6_unpacking_done:;
}
__pyx_v_events = __pyx_t_3;
__pyx_v_tag = __pyx_t_5;
__pyx_t_5 = 0;
- /* "src/lxml/parser.pxi":894
+ /* "src/lxml/parser.pxi":897
* if events_to_collect:
* events, tag = events_to_collect
* sax_context._setEventFilter(events, tag) # <<<<<<<<<<<<<<
* return sax_context
*
*/
- __pyx_t_5 = ((struct __pyx_vtabstruct_4lxml_5etree__SaxParserContext *)__pyx_v_sax_context->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->_setEventFilter(__pyx_v_sax_context, __pyx_v_events, __pyx_v_tag); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 894, __pyx_L1_error)
+ __pyx_t_5 = ((struct __pyx_vtabstruct_4lxml_5etree__SaxParserContext *)__pyx_v_sax_context->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->_setEventFilter(__pyx_v_sax_context, __pyx_v_events, __pyx_v_tag); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 897, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- /* "src/lxml/parser.pxi":892
+ /* "src/lxml/parser.pxi":895
* # nothing special to configure
* return _ParserContext()
* if events_to_collect: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":895
+ /* "src/lxml/parser.pxi":898
* events, tag = events_to_collect
* sax_context._setEventFilter(events, tag)
* return sax_context # <<<<<<<<<<<<<<
__pyx_r = ((struct __pyx_obj_4lxml_5etree__ParserContext *)__pyx_v_sax_context);
goto __pyx_L0;
- /* "src/lxml/parser.pxi":882
+ /* "src/lxml/parser.pxi":885
* return self._push_parser_context
*
* cdef _ParserContext _createContext(self, target, events_to_collect): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":898
+/* "src/lxml/parser.pxi":901
*
* @cython.final
* cdef int _configureSaxContext(self, xmlparser.xmlParserCtxt* pctxt) except -1: # <<<<<<<<<<<<<<
int __pyx_t_1;
__Pyx_RefNannySetupContext("_configureSaxContext", 0);
- /* "src/lxml/parser.pxi":899
+ /* "src/lxml/parser.pxi":902
* @cython.final
* cdef int _configureSaxContext(self, xmlparser.xmlParserCtxt* pctxt) except -1:
* if self._remove_comments: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_v_self->_remove_comments != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":900
+ /* "src/lxml/parser.pxi":903
* cdef int _configureSaxContext(self, xmlparser.xmlParserCtxt* pctxt) except -1:
* if self._remove_comments:
* pctxt.sax.comment = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_pctxt->sax->comment = NULL;
- /* "src/lxml/parser.pxi":899
+ /* "src/lxml/parser.pxi":902
* @cython.final
* cdef int _configureSaxContext(self, xmlparser.xmlParserCtxt* pctxt) except -1:
* if self._remove_comments: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":901
+ /* "src/lxml/parser.pxi":904
* if self._remove_comments:
* pctxt.sax.comment = NULL
* if self._remove_pis: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_v_self->_remove_pis != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":902
+ /* "src/lxml/parser.pxi":905
* pctxt.sax.comment = NULL
* if self._remove_pis:
* pctxt.sax.processingInstruction = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_pctxt->sax->processingInstruction = NULL;
- /* "src/lxml/parser.pxi":901
+ /* "src/lxml/parser.pxi":904
* if self._remove_comments:
* pctxt.sax.comment = NULL
* if self._remove_pis: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":903
+ /* "src/lxml/parser.pxi":906
* if self._remove_pis:
* pctxt.sax.processingInstruction = NULL
* if self._strip_cdata: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_v_self->_strip_cdata != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":905
+ /* "src/lxml/parser.pxi":908
* if self._strip_cdata:
* # hard switch-off for CDATA nodes => makes them plain text
* pctxt.sax.cdataBlock = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_pctxt->sax->cdataBlock = NULL;
- /* "src/lxml/parser.pxi":903
+ /* "src/lxml/parser.pxi":906
* if self._remove_pis:
* pctxt.sax.processingInstruction = NULL
* if self._strip_cdata: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":898
+ /* "src/lxml/parser.pxi":901
*
* @cython.final
* cdef int _configureSaxContext(self, xmlparser.xmlParserCtxt* pctxt) except -1: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":907
+/* "src/lxml/parser.pxi":910
* pctxt.sax.cdataBlock = NULL
*
* cdef int _registerHtmlErrorHandler(self, xmlparser.xmlParserCtxt* c_ctxt) except -1: # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_registerHtmlErrorHandler", 0);
- /* "src/lxml/parser.pxi":908
+ /* "src/lxml/parser.pxi":911
*
* cdef int _registerHtmlErrorHandler(self, xmlparser.xmlParserCtxt* c_ctxt) except -1:
* cdef xmlparser.xmlSAXHandler* sax = c_ctxt.sax # <<<<<<<<<<<<<<
__pyx_t_1 = __pyx_v_c_ctxt->sax;
__pyx_v_sax = __pyx_t_1;
- /* "src/lxml/parser.pxi":909
+ /* "src/lxml/parser.pxi":912
* cdef int _registerHtmlErrorHandler(self, xmlparser.xmlParserCtxt* c_ctxt) except -1:
* cdef xmlparser.xmlSAXHandler* sax = c_ctxt.sax
* if sax is not NULL and sax.initialized and sax.initialized != xmlparser.XML_SAX2_MAGIC: # <<<<<<<<<<<<<<
__pyx_L4_bool_binop_done:;
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":911
+ /* "src/lxml/parser.pxi":914
* if sax is not NULL and sax.initialized and sax.initialized != xmlparser.XML_SAX2_MAGIC:
* # need to extend SAX1 context to SAX2 to get proper error reports
* if <xmlparser.xmlSAXHandlerV1*>sax is &htmlparser.htmlDefaultSAXHandler: # <<<<<<<<<<<<<<
__pyx_t_2 = ((((xmlSAXHandlerV1 *)__pyx_v_sax) == (&htmlDefaultSAXHandler)) != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":912
+ /* "src/lxml/parser.pxi":915
* # need to extend SAX1 context to SAX2 to get proper error reports
* if <xmlparser.xmlSAXHandlerV1*>sax is &htmlparser.htmlDefaultSAXHandler:
* sax = <xmlparser.xmlSAXHandler*> tree.xmlMalloc(sizeof(xmlparser.xmlSAXHandler)) # <<<<<<<<<<<<<<
*/
__pyx_v_sax = ((xmlSAXHandler *)xmlMalloc((sizeof(xmlSAXHandler))));
- /* "src/lxml/parser.pxi":913
+ /* "src/lxml/parser.pxi":916
* if <xmlparser.xmlSAXHandlerV1*>sax is &htmlparser.htmlDefaultSAXHandler:
* sax = <xmlparser.xmlSAXHandler*> tree.xmlMalloc(sizeof(xmlparser.xmlSAXHandler))
* if sax is NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_sax == NULL) != 0);
if (unlikely(__pyx_t_2)) {
- /* "src/lxml/parser.pxi":914
+ /* "src/lxml/parser.pxi":917
* sax = <xmlparser.xmlSAXHandler*> tree.xmlMalloc(sizeof(xmlparser.xmlSAXHandler))
* if sax is NULL:
* raise MemoryError() # <<<<<<<<<<<<<<
* cstring_h.memcpy(sax, &htmlparser.htmlDefaultSAXHandler,
* sizeof(htmlparser.htmlDefaultSAXHandler))
*/
- PyErr_NoMemory(); __PYX_ERR(2, 914, __pyx_L1_error)
+ PyErr_NoMemory(); __PYX_ERR(2, 917, __pyx_L1_error)
- /* "src/lxml/parser.pxi":913
+ /* "src/lxml/parser.pxi":916
* if <xmlparser.xmlSAXHandlerV1*>sax is &htmlparser.htmlDefaultSAXHandler:
* sax = <xmlparser.xmlSAXHandler*> tree.xmlMalloc(sizeof(xmlparser.xmlSAXHandler))
* if sax is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":915
+ /* "src/lxml/parser.pxi":918
* if sax is NULL:
* raise MemoryError()
* cstring_h.memcpy(sax, &htmlparser.htmlDefaultSAXHandler, # <<<<<<<<<<<<<<
*/
(void)(memcpy(__pyx_v_sax, (&htmlDefaultSAXHandler), (sizeof(htmlDefaultSAXHandler))));
- /* "src/lxml/parser.pxi":917
+ /* "src/lxml/parser.pxi":920
* cstring_h.memcpy(sax, &htmlparser.htmlDefaultSAXHandler,
* sizeof(htmlparser.htmlDefaultSAXHandler))
* c_ctxt.sax = sax # <<<<<<<<<<<<<<
*/
__pyx_v_c_ctxt->sax = __pyx_v_sax;
- /* "src/lxml/parser.pxi":911
+ /* "src/lxml/parser.pxi":914
* if sax is not NULL and sax.initialized and sax.initialized != xmlparser.XML_SAX2_MAGIC:
* # need to extend SAX1 context to SAX2 to get proper error reports
* if <xmlparser.xmlSAXHandlerV1*>sax is &htmlparser.htmlDefaultSAXHandler: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":918
+ /* "src/lxml/parser.pxi":921
* sizeof(htmlparser.htmlDefaultSAXHandler))
* c_ctxt.sax = sax
* sax.initialized = xmlparser.XML_SAX2_MAGIC # <<<<<<<<<<<<<<
*/
__pyx_v_sax->initialized = XML_SAX2_MAGIC;
- /* "src/lxml/parser.pxi":919
+ /* "src/lxml/parser.pxi":922
* c_ctxt.sax = sax
* sax.initialized = xmlparser.XML_SAX2_MAGIC
* sax.serror = _receiveParserError # <<<<<<<<<<<<<<
*/
__pyx_v_sax->serror = __pyx_f_4lxml_5etree__receiveParserError;
- /* "src/lxml/parser.pxi":920
+ /* "src/lxml/parser.pxi":923
* sax.initialized = xmlparser.XML_SAX2_MAGIC
* sax.serror = _receiveParserError
* sax.startElementNs = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_sax->startElementNs = NULL;
- /* "src/lxml/parser.pxi":921
+ /* "src/lxml/parser.pxi":924
* sax.serror = _receiveParserError
* sax.startElementNs = NULL
* sax.endElementNs = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_sax->endElementNs = NULL;
- /* "src/lxml/parser.pxi":922
+ /* "src/lxml/parser.pxi":925
* sax.startElementNs = NULL
* sax.endElementNs = NULL
* sax._private = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_sax->_private = NULL;
- /* "src/lxml/parser.pxi":909
+ /* "src/lxml/parser.pxi":912
* cdef int _registerHtmlErrorHandler(self, xmlparser.xmlParserCtxt* c_ctxt) except -1:
* cdef xmlparser.xmlSAXHandler* sax = c_ctxt.sax
* if sax is not NULL and sax.initialized and sax.initialized != xmlparser.XML_SAX2_MAGIC: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":923
+ /* "src/lxml/parser.pxi":926
* sax.endElementNs = NULL
* sax._private = NULL
* return 0 # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":907
+ /* "src/lxml/parser.pxi":910
* pctxt.sax.cdataBlock = NULL
*
* cdef int _registerHtmlErrorHandler(self, xmlparser.xmlParserCtxt* c_ctxt) except -1: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":925
+/* "src/lxml/parser.pxi":928
* return 0
*
* cdef xmlparser.xmlParserCtxt* _newParserCtxt(self) except NULL: # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_newParserCtxt", 0);
- /* "src/lxml/parser.pxi":927
+ /* "src/lxml/parser.pxi":930
* cdef xmlparser.xmlParserCtxt* _newParserCtxt(self) except NULL:
* cdef xmlparser.xmlParserCtxt* c_ctxt
* if self._for_html: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_v_self->_for_html != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":928
+ /* "src/lxml/parser.pxi":931
* cdef xmlparser.xmlParserCtxt* c_ctxt
* if self._for_html:
* c_ctxt = htmlparser.htmlCreateMemoryParserCtxt('dummy', 5) # <<<<<<<<<<<<<<
*/
__pyx_v_c_ctxt = htmlCreateMemoryParserCtxt(((char *)"dummy"), 5);
- /* "src/lxml/parser.pxi":929
+ /* "src/lxml/parser.pxi":932
* if self._for_html:
* c_ctxt = htmlparser.htmlCreateMemoryParserCtxt('dummy', 5)
* if c_ctxt is not NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_ctxt != NULL) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":930
+ /* "src/lxml/parser.pxi":933
* c_ctxt = htmlparser.htmlCreateMemoryParserCtxt('dummy', 5)
* if c_ctxt is not NULL:
* self._registerHtmlErrorHandler(c_ctxt) # <<<<<<<<<<<<<<
* else:
* c_ctxt = xmlparser.xmlNewParserCtxt()
*/
- __pyx_t_2 = ((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)__pyx_v_self->__pyx_vtab)->_registerHtmlErrorHandler(__pyx_v_self, __pyx_v_c_ctxt); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(2, 930, __pyx_L1_error)
+ __pyx_t_2 = ((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)__pyx_v_self->__pyx_vtab)->_registerHtmlErrorHandler(__pyx_v_self, __pyx_v_c_ctxt); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(2, 933, __pyx_L1_error)
- /* "src/lxml/parser.pxi":929
+ /* "src/lxml/parser.pxi":932
* if self._for_html:
* c_ctxt = htmlparser.htmlCreateMemoryParserCtxt('dummy', 5)
* if c_ctxt is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":927
+ /* "src/lxml/parser.pxi":930
* cdef xmlparser.xmlParserCtxt* _newParserCtxt(self) except NULL:
* cdef xmlparser.xmlParserCtxt* c_ctxt
* if self._for_html: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "src/lxml/parser.pxi":932
+ /* "src/lxml/parser.pxi":935
* self._registerHtmlErrorHandler(c_ctxt)
* else:
* c_ctxt = xmlparser.xmlNewParserCtxt() # <<<<<<<<<<<<<<
}
__pyx_L3:;
- /* "src/lxml/parser.pxi":933
+ /* "src/lxml/parser.pxi":936
* else:
* c_ctxt = xmlparser.xmlNewParserCtxt()
* if c_ctxt is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_ctxt == NULL) != 0);
if (unlikely(__pyx_t_1)) {
- /* "src/lxml/parser.pxi":934
+ /* "src/lxml/parser.pxi":937
* c_ctxt = xmlparser.xmlNewParserCtxt()
* if c_ctxt is NULL:
* raise MemoryError # <<<<<<<<<<<<<<
* c_ctxt.sax.startDocument = _initSaxDocument
* return c_ctxt
*/
- PyErr_NoMemory(); __PYX_ERR(2, 934, __pyx_L1_error)
+ PyErr_NoMemory(); __PYX_ERR(2, 937, __pyx_L1_error)
- /* "src/lxml/parser.pxi":933
+ /* "src/lxml/parser.pxi":936
* else:
* c_ctxt = xmlparser.xmlNewParserCtxt()
* if c_ctxt is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":935
+ /* "src/lxml/parser.pxi":938
* if c_ctxt is NULL:
* raise MemoryError
* c_ctxt.sax.startDocument = _initSaxDocument # <<<<<<<<<<<<<<
*/
__pyx_v_c_ctxt->sax->startDocument = __pyx_f_4lxml_5etree__initSaxDocument;
- /* "src/lxml/parser.pxi":936
+ /* "src/lxml/parser.pxi":939
* raise MemoryError
* c_ctxt.sax.startDocument = _initSaxDocument
* return c_ctxt # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_c_ctxt;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":925
+ /* "src/lxml/parser.pxi":928
* return 0
*
* cdef xmlparser.xmlParserCtxt* _newParserCtxt(self) except NULL: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":938
+/* "src/lxml/parser.pxi":941
* return c_ctxt
*
* cdef xmlparser.xmlParserCtxt* _newPushParserCtxt(self) except NULL: # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_newPushParserCtxt", 0);
- /* "src/lxml/parser.pxi":940
+ /* "src/lxml/parser.pxi":943
* cdef xmlparser.xmlParserCtxt* _newPushParserCtxt(self) except NULL:
* cdef xmlparser.xmlParserCtxt* c_ctxt
* cdef char* c_filename = _cstr(self._filename) if self._filename is not None else NULL # <<<<<<<<<<<<<<
}
__pyx_v_c_filename = __pyx_t_1;
- /* "src/lxml/parser.pxi":941
+ /* "src/lxml/parser.pxi":944
* cdef xmlparser.xmlParserCtxt* c_ctxt
* cdef char* c_filename = _cstr(self._filename) if self._filename is not None else NULL
* if self._for_html: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_v_self->_for_html != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":942
+ /* "src/lxml/parser.pxi":945
* cdef char* c_filename = _cstr(self._filename) if self._filename is not None else NULL
* if self._for_html:
* c_ctxt = htmlparser.htmlCreatePushParserCtxt( # <<<<<<<<<<<<<<
*/
__pyx_v_c_ctxt = htmlCreatePushParserCtxt(NULL, NULL, NULL, 0, __pyx_v_c_filename, XML_CHAR_ENCODING_NONE);
- /* "src/lxml/parser.pxi":944
+ /* "src/lxml/parser.pxi":947
* c_ctxt = htmlparser.htmlCreatePushParserCtxt(
* NULL, NULL, NULL, 0, c_filename, tree.XML_CHAR_ENCODING_NONE)
* if c_ctxt is not NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_ctxt != NULL) != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":945
+ /* "src/lxml/parser.pxi":948
* NULL, NULL, NULL, 0, c_filename, tree.XML_CHAR_ENCODING_NONE)
* if c_ctxt is not NULL:
* self._registerHtmlErrorHandler(c_ctxt) # <<<<<<<<<<<<<<
* htmlparser.htmlCtxtUseOptions(c_ctxt, self._parse_options)
* else:
*/
- __pyx_t_4 = ((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)__pyx_v_self->__pyx_vtab)->_registerHtmlErrorHandler(__pyx_v_self, __pyx_v_c_ctxt); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 945, __pyx_L1_error)
+ __pyx_t_4 = ((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)__pyx_v_self->__pyx_vtab)->_registerHtmlErrorHandler(__pyx_v_self, __pyx_v_c_ctxt); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 948, __pyx_L1_error)
- /* "src/lxml/parser.pxi":946
+ /* "src/lxml/parser.pxi":949
* if c_ctxt is not NULL:
* self._registerHtmlErrorHandler(c_ctxt)
* htmlparser.htmlCtxtUseOptions(c_ctxt, self._parse_options) # <<<<<<<<<<<<<<
*/
(void)(htmlCtxtUseOptions(__pyx_v_c_ctxt, __pyx_v_self->_parse_options));
- /* "src/lxml/parser.pxi":944
+ /* "src/lxml/parser.pxi":947
* c_ctxt = htmlparser.htmlCreatePushParserCtxt(
* NULL, NULL, NULL, 0, c_filename, tree.XML_CHAR_ENCODING_NONE)
* if c_ctxt is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":941
+ /* "src/lxml/parser.pxi":944
* cdef xmlparser.xmlParserCtxt* c_ctxt
* cdef char* c_filename = _cstr(self._filename) if self._filename is not None else NULL
* if self._for_html: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "src/lxml/parser.pxi":948
+ /* "src/lxml/parser.pxi":951
* htmlparser.htmlCtxtUseOptions(c_ctxt, self._parse_options)
* else:
* c_ctxt = xmlparser.xmlCreatePushParserCtxt( # <<<<<<<<<<<<<<
*/
/*else*/ {
- /* "src/lxml/parser.pxi":949
+ /* "src/lxml/parser.pxi":952
* else:
* c_ctxt = xmlparser.xmlCreatePushParserCtxt(
* NULL, NULL, NULL, 0, c_filename) # <<<<<<<<<<<<<<
*/
__pyx_v_c_ctxt = xmlCreatePushParserCtxt(NULL, NULL, NULL, 0, __pyx_v_c_filename);
- /* "src/lxml/parser.pxi":950
+ /* "src/lxml/parser.pxi":953
* c_ctxt = xmlparser.xmlCreatePushParserCtxt(
* NULL, NULL, NULL, 0, c_filename)
* if c_ctxt is not NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_ctxt != NULL) != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":951
+ /* "src/lxml/parser.pxi":954
* NULL, NULL, NULL, 0, c_filename)
* if c_ctxt is not NULL:
* xmlparser.xmlCtxtUseOptions(c_ctxt, self._parse_options) # <<<<<<<<<<<<<<
*/
(void)(xmlCtxtUseOptions(__pyx_v_c_ctxt, __pyx_v_self->_parse_options));
- /* "src/lxml/parser.pxi":950
+ /* "src/lxml/parser.pxi":953
* c_ctxt = xmlparser.xmlCreatePushParserCtxt(
* NULL, NULL, NULL, 0, c_filename)
* if c_ctxt is not NULL: # <<<<<<<<<<<<<<
}
__pyx_L3:;
- /* "src/lxml/parser.pxi":952
+ /* "src/lxml/parser.pxi":955
* if c_ctxt is not NULL:
* xmlparser.xmlCtxtUseOptions(c_ctxt, self._parse_options)
* if c_ctxt is NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_ctxt == NULL) != 0);
if (unlikely(__pyx_t_2)) {
- /* "src/lxml/parser.pxi":953
+ /* "src/lxml/parser.pxi":956
* xmlparser.xmlCtxtUseOptions(c_ctxt, self._parse_options)
* if c_ctxt is NULL:
* raise MemoryError() # <<<<<<<<<<<<<<
* c_ctxt.sax.startDocument = _initSaxDocument
* return c_ctxt
*/
- PyErr_NoMemory(); __PYX_ERR(2, 953, __pyx_L1_error)
+ PyErr_NoMemory(); __PYX_ERR(2, 956, __pyx_L1_error)
- /* "src/lxml/parser.pxi":952
+ /* "src/lxml/parser.pxi":955
* if c_ctxt is not NULL:
* xmlparser.xmlCtxtUseOptions(c_ctxt, self._parse_options)
* if c_ctxt is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":954
+ /* "src/lxml/parser.pxi":957
* if c_ctxt is NULL:
* raise MemoryError()
* c_ctxt.sax.startDocument = _initSaxDocument # <<<<<<<<<<<<<<
*/
__pyx_v_c_ctxt->sax->startDocument = __pyx_f_4lxml_5etree__initSaxDocument;
- /* "src/lxml/parser.pxi":955
+ /* "src/lxml/parser.pxi":958
* raise MemoryError()
* c_ctxt.sax.startDocument = _initSaxDocument
* return c_ctxt # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_c_ctxt;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":938
+ /* "src/lxml/parser.pxi":941
* return c_ctxt
*
* cdef xmlparser.xmlParserCtxt* _newPushParserCtxt(self) except NULL: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":958
+/* "src/lxml/parser.pxi":961
*
* @property
* def error_log(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "src/lxml/parser.pxi":962
+ /* "src/lxml/parser.pxi":965
* """
* cdef _ParserContext context
* context = self._getParserContext() # <<<<<<<<<<<<<<
* return context._error_log.copy()
*
*/
- __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)__pyx_v_self->__pyx_vtab)->_getParserContext(__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 962, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)__pyx_v_self->__pyx_vtab)->_getParserContext(__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 965, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_v_context = ((struct __pyx_obj_4lxml_5etree__ParserContext *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/parser.pxi":963
+ /* "src/lxml/parser.pxi":966
* cdef _ParserContext context
* context = self._getParserContext()
* return context._error_log.copy() # <<<<<<<<<<<<<<
* @property
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = ((struct __pyx_vtabstruct_4lxml_5etree__ErrorLog *)__pyx_v_context->_error_log->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.copy(((struct __pyx_obj_4lxml_5etree__BaseErrorLog *)__pyx_v_context->_error_log), 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 963, __pyx_L1_error)
+ __pyx_t_1 = ((struct __pyx_vtabstruct_4lxml_5etree__ErrorLog *)__pyx_v_context->_error_log->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.copy(((struct __pyx_obj_4lxml_5etree__BaseErrorLog *)__pyx_v_context->_error_log), 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 966, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":958
+ /* "src/lxml/parser.pxi":961
*
* @property
* def error_log(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":966
+/* "src/lxml/parser.pxi":969
*
* @property
* def resolvers(self): # <<<<<<<<<<<<<<
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__get__", 0);
- /* "src/lxml/parser.pxi":968
+ /* "src/lxml/parser.pxi":971
* def resolvers(self):
* """The custom resolver registry of this parser."""
* return self._resolvers # <<<<<<<<<<<<<<
__pyx_r = ((PyObject *)__pyx_v_self->_resolvers);
goto __pyx_L0;
- /* "src/lxml/parser.pxi":966
+ /* "src/lxml/parser.pxi":969
*
* @property
* def resolvers(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":971
+/* "src/lxml/parser.pxi":974
*
* @property
* def version(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "src/lxml/parser.pxi":973
+ /* "src/lxml/parser.pxi":976
* def version(self):
* """The version of the underlying XML parser."""
* return u"libxml2 %d.%d.%d" % LIBXML_VERSION # <<<<<<<<<<<<<<
* def setElementClassLookup(self, ElementClassLookup lookup = None):
*/
__Pyx_XDECREF(__pyx_r);
- __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_LIBXML_VERSION); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 973, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_LIBXML_VERSION); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 976, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_2 = __Pyx_PyUnicode_FormatSafe(__pyx_kp_u_libxml2_d_d_d, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 973, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyUnicode_FormatSafe(__pyx_kp_u_libxml2_d_d_d, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 976, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":971
+ /* "src/lxml/parser.pxi":974
*
* @property
* def version(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":975
+/* "src/lxml/parser.pxi":978
* return u"libxml2 %d.%d.%d" % LIBXML_VERSION
*
* def setElementClassLookup(self, ElementClassLookup lookup = None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setElementClassLookup") < 0)) __PYX_ERR(2, 975, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "setElementClassLookup") < 0)) __PYX_ERR(2, 978, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("setElementClassLookup", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 975, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("setElementClassLookup", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 978, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._BaseParser.setElementClassLookup", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return NULL;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_lookup), __pyx_ptype_4lxml_5etree_ElementClassLookup, 1, "lookup", 0))) __PYX_ERR(2, 975, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_lookup), __pyx_ptype_4lxml_5etree_ElementClassLookup, 1, "lookup", 0))) __PYX_ERR(2, 978, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_11_BaseParser_2setElementClassLookup(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self), __pyx_v_lookup);
/* function exit code */
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("setElementClassLookup", 0);
- /* "src/lxml/parser.pxi":977
+ /* "src/lxml/parser.pxi":980
* def setElementClassLookup(self, ElementClassLookup lookup = None):
* u":deprecated: use ``parser.set_element_class_lookup(lookup)`` instead."
* self.set_element_class_lookup(lookup) # <<<<<<<<<<<<<<
*
* def set_element_class_lookup(self, ElementClassLookup lookup = None):
*/
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_set_element_class_lookup); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 977, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_set_element_class_lookup); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 980, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
}
__pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, ((PyObject *)__pyx_v_lookup)) : __Pyx_PyObject_CallOneArg(__pyx_t_2, ((PyObject *)__pyx_v_lookup));
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
- if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 977, __pyx_L1_error)
+ if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 980, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "src/lxml/parser.pxi":975
+ /* "src/lxml/parser.pxi":978
* return u"libxml2 %d.%d.%d" % LIBXML_VERSION
*
* def setElementClassLookup(self, ElementClassLookup lookup = None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":979
+/* "src/lxml/parser.pxi":982
* self.set_element_class_lookup(lookup)
*
* def set_element_class_lookup(self, ElementClassLookup lookup = None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_element_class_lookup") < 0)) __PYX_ERR(2, 979, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_element_class_lookup") < 0)) __PYX_ERR(2, 982, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("set_element_class_lookup", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 979, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("set_element_class_lookup", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 982, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._BaseParser.set_element_class_lookup", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return NULL;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_lookup), __pyx_ptype_4lxml_5etree_ElementClassLookup, 1, "lookup", 0))) __PYX_ERR(2, 979, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_lookup), __pyx_ptype_4lxml_5etree_ElementClassLookup, 1, "lookup", 0))) __PYX_ERR(2, 982, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_11_BaseParser_4set_element_class_lookup(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self), __pyx_v_lookup);
/* function exit code */
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("set_element_class_lookup", 0);
- /* "src/lxml/parser.pxi":986
+ /* "src/lxml/parser.pxi":989
* Reset it by passing None or nothing.
* """
* self._class_lookup = lookup # <<<<<<<<<<<<<<
__Pyx_DECREF(((PyObject *)__pyx_v_self->_class_lookup));
__pyx_v_self->_class_lookup = __pyx_v_lookup;
- /* "src/lxml/parser.pxi":979
+ /* "src/lxml/parser.pxi":982
* self.set_element_class_lookup(lookup)
*
* def set_element_class_lookup(self, ElementClassLookup lookup = None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":988
+/* "src/lxml/parser.pxi":991
* self._class_lookup = lookup
*
* cdef _BaseParser _copy(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_copy", 0);
- /* "src/lxml/parser.pxi":991
+ /* "src/lxml/parser.pxi":994
* u"Create a new parser with the same configuration."
* cdef _BaseParser parser
* parser = self.__class__() # <<<<<<<<<<<<<<
* parser._parse_options = self._parse_options
* parser._for_html = self._for_html
*/
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 991, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_class); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 994, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
}
__pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
- if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 991, __pyx_L1_error)
+ if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 994, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_4lxml_5etree__BaseParser))))) __PYX_ERR(2, 991, __pyx_L1_error)
+ if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_4lxml_5etree__BaseParser))))) __PYX_ERR(2, 994, __pyx_L1_error)
__pyx_v_parser = ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/parser.pxi":992
+ /* "src/lxml/parser.pxi":995
* cdef _BaseParser parser
* parser = self.__class__()
* parser._parse_options = self._parse_options # <<<<<<<<<<<<<<
__pyx_t_4 = __pyx_v_self->_parse_options;
__pyx_v_parser->_parse_options = __pyx_t_4;
- /* "src/lxml/parser.pxi":993
+ /* "src/lxml/parser.pxi":996
* parser = self.__class__()
* parser._parse_options = self._parse_options
* parser._for_html = self._for_html # <<<<<<<<<<<<<<
__pyx_t_5 = __pyx_v_self->_for_html;
__pyx_v_parser->_for_html = __pyx_t_5;
- /* "src/lxml/parser.pxi":994
+ /* "src/lxml/parser.pxi":997
* parser._parse_options = self._parse_options
* parser._for_html = self._for_html
* parser._remove_comments = self._remove_comments # <<<<<<<<<<<<<<
__pyx_t_5 = __pyx_v_self->_remove_comments;
__pyx_v_parser->_remove_comments = __pyx_t_5;
- /* "src/lxml/parser.pxi":995
+ /* "src/lxml/parser.pxi":998
* parser._for_html = self._for_html
* parser._remove_comments = self._remove_comments
* parser._remove_pis = self._remove_pis # <<<<<<<<<<<<<<
__pyx_t_5 = __pyx_v_self->_remove_pis;
__pyx_v_parser->_remove_pis = __pyx_t_5;
- /* "src/lxml/parser.pxi":996
+ /* "src/lxml/parser.pxi":999
* parser._remove_comments = self._remove_comments
* parser._remove_pis = self._remove_pis
* parser._strip_cdata = self._strip_cdata # <<<<<<<<<<<<<<
__pyx_t_5 = __pyx_v_self->_strip_cdata;
__pyx_v_parser->_strip_cdata = __pyx_t_5;
- /* "src/lxml/parser.pxi":997
+ /* "src/lxml/parser.pxi":1000
* parser._remove_pis = self._remove_pis
* parser._strip_cdata = self._strip_cdata
* parser._filename = self._filename # <<<<<<<<<<<<<<
__pyx_v_parser->_filename = ((PyObject*)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/parser.pxi":998
+ /* "src/lxml/parser.pxi":1001
* parser._strip_cdata = self._strip_cdata
* parser._filename = self._filename
* parser._resolvers = self._resolvers # <<<<<<<<<<<<<<
__pyx_v_parser->_resolvers = ((struct __pyx_obj_4lxml_5etree__ResolverRegistry *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/parser.pxi":999
+ /* "src/lxml/parser.pxi":1002
* parser._filename = self._filename
* parser._resolvers = self._resolvers
* parser.target = self.target # <<<<<<<<<<<<<<
__pyx_v_parser->target = __pyx_t_1;
__pyx_t_1 = 0;
- /* "src/lxml/parser.pxi":1000
+ /* "src/lxml/parser.pxi":1003
* parser._resolvers = self._resolvers
* parser.target = self.target
* parser._class_lookup = self._class_lookup # <<<<<<<<<<<<<<
__pyx_v_parser->_class_lookup = ((struct LxmlElementClassLookup *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/parser.pxi":1001
+ /* "src/lxml/parser.pxi":1004
* parser.target = self.target
* parser._class_lookup = self._class_lookup
* parser._default_encoding = self._default_encoding # <<<<<<<<<<<<<<
__pyx_v_parser->_default_encoding = __pyx_t_1;
__pyx_t_1 = 0;
- /* "src/lxml/parser.pxi":1002
+ /* "src/lxml/parser.pxi":1005
* parser._class_lookup = self._class_lookup
* parser._default_encoding = self._default_encoding
* parser._schema = self._schema # <<<<<<<<<<<<<<
__pyx_v_parser->_schema = ((struct __pyx_obj_4lxml_5etree_XMLSchema *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/parser.pxi":1003
+ /* "src/lxml/parser.pxi":1006
* parser._default_encoding = self._default_encoding
* parser._schema = self._schema
* parser._events_to_collect = self._events_to_collect # <<<<<<<<<<<<<<
__pyx_v_parser->_events_to_collect = ((PyObject*)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/parser.pxi":1004
+ /* "src/lxml/parser.pxi":1007
* parser._schema = self._schema
* parser._events_to_collect = self._events_to_collect
* return parser # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_parser;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":988
+ /* "src/lxml/parser.pxi":991
* self._class_lookup = lookup
*
* cdef _BaseParser _copy(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1006
+/* "src/lxml/parser.pxi":1009
* return parser
*
* def copy(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("copy", 0);
- /* "src/lxml/parser.pxi":1011
+ /* "src/lxml/parser.pxi":1014
* Create a new parser with the same configuration.
* """
* return self._copy() # <<<<<<<<<<<<<<
* def makeelement(self, _tag, attrib=None, nsmap=None, **_extra):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)__pyx_v_self->__pyx_vtab)->_copy(__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1011, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)__pyx_v_self->__pyx_vtab)->_copy(__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1014, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1006
+ /* "src/lxml/parser.pxi":1009
* return parser
*
* def copy(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1013
+/* "src/lxml/parser.pxi":1016
* return self._copy()
*
* def makeelement(self, _tag, attrib=None, nsmap=None, **_extra): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v__extra, values, pos_args, "makeelement") < 0)) __PYX_ERR(2, 1013, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v__extra, values, pos_args, "makeelement") < 0)) __PYX_ERR(2, 1016, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("makeelement", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 1013, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("makeelement", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 1016, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_DECREF(__pyx_v__extra); __pyx_v__extra = 0;
__Pyx_AddTraceback("lxml.etree._BaseParser.makeelement", __pyx_clineno, __pyx_lineno, __pyx_filename);
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("makeelement", 0);
- /* "src/lxml/parser.pxi":1018
+ /* "src/lxml/parser.pxi":1021
* Creates a new element associated with this parser.
* """
* return _makeElement(_tag, NULL, None, self, None, None, # <<<<<<<<<<<<<<
*/
__Pyx_XDECREF(__pyx_r);
- /* "src/lxml/parser.pxi":1019
+ /* "src/lxml/parser.pxi":1022
* """
* return _makeElement(_tag, NULL, None, self, None, None,
* attrib, nsmap, _extra) # <<<<<<<<<<<<<<
*
* # internal parser methods
*/
- __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__makeElement(__pyx_v__tag, NULL, ((struct LxmlDocument *)Py_None), __pyx_v_self, Py_None, Py_None, __pyx_v_attrib, __pyx_v_nsmap, __pyx_v__extra)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1018, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__makeElement(__pyx_v__tag, NULL, ((struct LxmlDocument *)Py_None), __pyx_v_self, Py_None, Py_None, __pyx_v_attrib, __pyx_v_nsmap, __pyx_v__extra)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1021, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1013
+ /* "src/lxml/parser.pxi":1016
* return self._copy()
*
* def makeelement(self, _tag, attrib=None, nsmap=None, **_extra): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1023
+/* "src/lxml/parser.pxi":1026
* # internal parser methods
*
* cdef xmlDoc* _parseUnicodeDoc(self, utext, char* c_filename) except NULL: # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_parseUnicodeDoc", 0);
- /* "src/lxml/parser.pxi":1032
+ /* "src/lxml/parser.pxi":1035
* cdef int buffer_len, c_kind
* cdef const_char* c_text
* cdef const_char* c_encoding = _PY_UNICODE_ENCODING # <<<<<<<<<<<<<<
*/
__pyx_v_c_encoding = __pyx_v_4lxml_5etree__PY_UNICODE_ENCODING;
- /* "src/lxml/parser.pxi":1034
+ /* "src/lxml/parser.pxi":1037
* cdef const_char* c_encoding = _PY_UNICODE_ENCODING
* cdef bint is_pep393_string = (
* python.PEP393_ENABLED and python.PyUnicode_IS_READY(utext)) # <<<<<<<<<<<<<<
__pyx_L3_bool_binop_done:;
__pyx_v_is_pep393_string = __pyx_t_1;
- /* "src/lxml/parser.pxi":1035
+ /* "src/lxml/parser.pxi":1038
* cdef bint is_pep393_string = (
* python.PEP393_ENABLED and python.PyUnicode_IS_READY(utext))
* if is_pep393_string: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_v_is_pep393_string != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":1036
+ /* "src/lxml/parser.pxi":1039
* python.PEP393_ENABLED and python.PyUnicode_IS_READY(utext))
* if is_pep393_string:
* c_text = <const_char*>python.PyUnicode_DATA(utext) # <<<<<<<<<<<<<<
*/
__pyx_v_c_text = ((const char *)PyUnicode_DATA(__pyx_v_utext));
- /* "src/lxml/parser.pxi":1037
+ /* "src/lxml/parser.pxi":1040
* if is_pep393_string:
* c_text = <const_char*>python.PyUnicode_DATA(utext)
* py_buffer_len = python.PyUnicode_GET_LENGTH(utext) # <<<<<<<<<<<<<<
*/
__pyx_v_py_buffer_len = PyUnicode_GET_LENGTH(__pyx_v_utext);
- /* "src/lxml/parser.pxi":1038
+ /* "src/lxml/parser.pxi":1041
* c_text = <const_char*>python.PyUnicode_DATA(utext)
* py_buffer_len = python.PyUnicode_GET_LENGTH(utext)
* c_kind = python.PyUnicode_KIND(utext) # <<<<<<<<<<<<<<
*/
__pyx_v_c_kind = PyUnicode_KIND(__pyx_v_utext);
- /* "src/lxml/parser.pxi":1039
+ /* "src/lxml/parser.pxi":1042
* py_buffer_len = python.PyUnicode_GET_LENGTH(utext)
* c_kind = python.PyUnicode_KIND(utext)
* if c_kind == 1: # <<<<<<<<<<<<<<
switch (__pyx_v_c_kind) {
case 1:
- /* "src/lxml/parser.pxi":1040
+ /* "src/lxml/parser.pxi":1043
* c_kind = python.PyUnicode_KIND(utext)
* if c_kind == 1:
* c_encoding = 'ISO-8859-1' # <<<<<<<<<<<<<<
*/
__pyx_v_c_encoding = ((const char *)"ISO-8859-1");
- /* "src/lxml/parser.pxi":1039
+ /* "src/lxml/parser.pxi":1042
* py_buffer_len = python.PyUnicode_GET_LENGTH(utext)
* c_kind = python.PyUnicode_KIND(utext)
* if c_kind == 1: # <<<<<<<<<<<<<<
break;
case 2:
- /* "src/lxml/parser.pxi":1042
+ /* "src/lxml/parser.pxi":1045
* c_encoding = 'ISO-8859-1'
* elif c_kind == 2:
* py_buffer_len *= 2 # <<<<<<<<<<<<<<
*/
__pyx_v_py_buffer_len = (__pyx_v_py_buffer_len * 2);
- /* "src/lxml/parser.pxi":1043
+ /* "src/lxml/parser.pxi":1046
* elif c_kind == 2:
* py_buffer_len *= 2
* if python.PY_BIG_ENDIAN: # <<<<<<<<<<<<<<
__pyx_t_1 = (PY_BIG_ENDIAN != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":1044
+ /* "src/lxml/parser.pxi":1047
* py_buffer_len *= 2
* if python.PY_BIG_ENDIAN:
* c_encoding = 'UTF-16BE' # actually UCS-2 # <<<<<<<<<<<<<<
*/
__pyx_v_c_encoding = ((const char *)"UTF-16BE");
- /* "src/lxml/parser.pxi":1043
+ /* "src/lxml/parser.pxi":1046
* elif c_kind == 2:
* py_buffer_len *= 2
* if python.PY_BIG_ENDIAN: # <<<<<<<<<<<<<<
goto __pyx_L6;
}
- /* "src/lxml/parser.pxi":1046
+ /* "src/lxml/parser.pxi":1049
* c_encoding = 'UTF-16BE' # actually UCS-2
* else:
* c_encoding = 'UTF-16LE' # actually UCS-2 # <<<<<<<<<<<<<<
}
__pyx_L6:;
- /* "src/lxml/parser.pxi":1041
+ /* "src/lxml/parser.pxi":1044
* if c_kind == 1:
* c_encoding = 'ISO-8859-1'
* elif c_kind == 2: # <<<<<<<<<<<<<<
break;
case 4:
- /* "src/lxml/parser.pxi":1048
+ /* "src/lxml/parser.pxi":1051
* c_encoding = 'UTF-16LE' # actually UCS-2
* elif c_kind == 4:
* py_buffer_len *= 4 # <<<<<<<<<<<<<<
*/
__pyx_v_py_buffer_len = (__pyx_v_py_buffer_len * 4);
- /* "src/lxml/parser.pxi":1049
+ /* "src/lxml/parser.pxi":1052
* elif c_kind == 4:
* py_buffer_len *= 4
* if python.PY_BIG_ENDIAN: # <<<<<<<<<<<<<<
__pyx_t_1 = (PY_BIG_ENDIAN != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":1050
+ /* "src/lxml/parser.pxi":1053
* py_buffer_len *= 4
* if python.PY_BIG_ENDIAN:
* c_encoding = 'UCS-4BE' # <<<<<<<<<<<<<<
*/
__pyx_v_c_encoding = ((const char *)"UCS-4BE");
- /* "src/lxml/parser.pxi":1049
+ /* "src/lxml/parser.pxi":1052
* elif c_kind == 4:
* py_buffer_len *= 4
* if python.PY_BIG_ENDIAN: # <<<<<<<<<<<<<<
goto __pyx_L7;
}
- /* "src/lxml/parser.pxi":1052
+ /* "src/lxml/parser.pxi":1055
* c_encoding = 'UCS-4BE'
* else:
* c_encoding = 'UCS-4LE' # <<<<<<<<<<<<<<
}
__pyx_L7:;
- /* "src/lxml/parser.pxi":1047
+ /* "src/lxml/parser.pxi":1050
* else:
* c_encoding = 'UTF-16LE' # actually UCS-2
* elif c_kind == 4: # <<<<<<<<<<<<<<
break;
default:
- /* "src/lxml/parser.pxi":1054
+ /* "src/lxml/parser.pxi":1057
* c_encoding = 'UCS-4LE'
* else:
* assert False, f"Illegal Unicode kind {c_kind}" # <<<<<<<<<<<<<<
* py_buffer_len = python.PyUnicode_GET_DATA_SIZE(utext)
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!0)) {
- __pyx_t_3 = __Pyx_PyUnicode_From_int(__pyx_v_c_kind, 0, ' ', 'd'); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1054, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyUnicode_From_int(__pyx_v_c_kind, 0, ' ', 'd'); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1057, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Illegal_Unicode_kind, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1054, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Illegal_Unicode_kind, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1057, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
PyErr_SetObject(PyExc_AssertionError, __pyx_t_4);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- __PYX_ERR(2, 1054, __pyx_L1_error)
+ __PYX_ERR(2, 1057, __pyx_L1_error)
}
}
#endif
break;
}
- /* "src/lxml/parser.pxi":1035
+ /* "src/lxml/parser.pxi":1038
* cdef bint is_pep393_string = (
* python.PEP393_ENABLED and python.PyUnicode_IS_READY(utext))
* if is_pep393_string: # <<<<<<<<<<<<<<
goto __pyx_L5;
}
- /* "src/lxml/parser.pxi":1056
+ /* "src/lxml/parser.pxi":1059
* assert False, f"Illegal Unicode kind {c_kind}"
* else:
* py_buffer_len = python.PyUnicode_GET_DATA_SIZE(utext) # <<<<<<<<<<<<<<
/*else*/ {
__pyx_v_py_buffer_len = PyUnicode_GET_DATA_SIZE(__pyx_v_utext);
- /* "src/lxml/parser.pxi":1057
+ /* "src/lxml/parser.pxi":1060
* else:
* py_buffer_len = python.PyUnicode_GET_DATA_SIZE(utext)
* c_text = python.PyUnicode_AS_DATA(utext) # <<<<<<<<<<<<<<
}
__pyx_L5:;
- /* "src/lxml/parser.pxi":1058
+ /* "src/lxml/parser.pxi":1061
* py_buffer_len = python.PyUnicode_GET_DATA_SIZE(utext)
* c_text = python.PyUnicode_AS_DATA(utext)
* assert 0 <= py_buffer_len <= limits.INT_MAX # <<<<<<<<<<<<<<
*
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
__pyx_t_1 = (0 <= __pyx_v_py_buffer_len);
if (__pyx_t_1) {
__pyx_t_1 = (__pyx_v_py_buffer_len <= INT_MAX);
}
if (unlikely(!(__pyx_t_1 != 0))) {
PyErr_SetNone(PyExc_AssertionError);
- __PYX_ERR(2, 1058, __pyx_L1_error)
+ __PYX_ERR(2, 1061, __pyx_L1_error)
}
}
#endif
- /* "src/lxml/parser.pxi":1059
+ /* "src/lxml/parser.pxi":1062
* c_text = python.PyUnicode_AS_DATA(utext)
* assert 0 <= py_buffer_len <= limits.INT_MAX
* buffer_len = py_buffer_len # <<<<<<<<<<<<<<
*/
__pyx_v_buffer_len = __pyx_v_py_buffer_len;
- /* "src/lxml/parser.pxi":1061
+ /* "src/lxml/parser.pxi":1064
* buffer_len = py_buffer_len
*
* context = self._getParserContext() # <<<<<<<<<<<<<<
* context.prepare()
* try:
*/
- __pyx_t_4 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)__pyx_v_self->__pyx_vtab)->_getParserContext(__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1061, __pyx_L1_error)
+ __pyx_t_4 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)__pyx_v_self->__pyx_vtab)->_getParserContext(__pyx_v_self)); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1064, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_v_context = ((struct __pyx_obj_4lxml_5etree__ParserContext *)__pyx_t_4);
__pyx_t_4 = 0;
- /* "src/lxml/parser.pxi":1062
+ /* "src/lxml/parser.pxi":1065
*
* context = self._getParserContext()
* context.prepare() # <<<<<<<<<<<<<<
* try:
* pctxt = context._c_ctxt
*/
- __pyx_t_5 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->prepare(__pyx_v_context, NULL); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 1062, __pyx_L1_error)
+ __pyx_t_5 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->prepare(__pyx_v_context, NULL); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 1065, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1063
+ /* "src/lxml/parser.pxi":1066
* context = self._getParserContext()
* context.prepare()
* try: # <<<<<<<<<<<<<<
*/
/*try:*/ {
- /* "src/lxml/parser.pxi":1064
+ /* "src/lxml/parser.pxi":1067
* context.prepare()
* try:
* pctxt = context._c_ctxt # <<<<<<<<<<<<<<
__pyx_t_6 = __pyx_v_context->_c_ctxt;
__pyx_v_pctxt = __pyx_t_6;
- /* "src/lxml/parser.pxi":1065
+ /* "src/lxml/parser.pxi":1068
* try:
* pctxt = context._c_ctxt
* __GLOBAL_PARSER_CONTEXT.initParserDict(pctxt) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree_24_ParserDictionaryContext_initParserDict(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT, __pyx_v_pctxt);
- /* "src/lxml/parser.pxi":1066
+ /* "src/lxml/parser.pxi":1069
* pctxt = context._c_ctxt
* __GLOBAL_PARSER_CONTEXT.initParserDict(pctxt)
* orig_options = pctxt.options # <<<<<<<<<<<<<<
__pyx_t_5 = __pyx_v_pctxt->options;
__pyx_v_orig_options = __pyx_t_5;
- /* "src/lxml/parser.pxi":1067
+ /* "src/lxml/parser.pxi":1070
* __GLOBAL_PARSER_CONTEXT.initParserDict(pctxt)
* orig_options = pctxt.options
* with nogil: # <<<<<<<<<<<<<<
#endif
/*try:*/ {
- /* "src/lxml/parser.pxi":1068
+ /* "src/lxml/parser.pxi":1071
* orig_options = pctxt.options
* with nogil:
* if self._for_html: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_v_self->_for_html != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":1069
+ /* "src/lxml/parser.pxi":1072
* with nogil:
* if self._for_html:
* result = htmlparser.htmlCtxtReadMemory( # <<<<<<<<<<<<<<
*/
__pyx_v_result = htmlCtxtReadMemory(__pyx_v_pctxt, __pyx_v_c_text, __pyx_v_buffer_len, __pyx_v_c_filename, __pyx_v_c_encoding, __pyx_v_self->_parse_options);
- /* "src/lxml/parser.pxi":1072
+ /* "src/lxml/parser.pxi":1075
* pctxt, c_text, buffer_len, c_filename, c_encoding,
* self._parse_options)
* if result is not NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_result != NULL) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":1073
+ /* "src/lxml/parser.pxi":1076
* self._parse_options)
* if result is not NULL:
* if _fixHtmlDictNames(pctxt.dict, result) < 0: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_f_4lxml_5etree__fixHtmlDictNames(__pyx_v_pctxt->dict, __pyx_v_result) < 0) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":1074
+ /* "src/lxml/parser.pxi":1077
* if result is not NULL:
* if _fixHtmlDictNames(pctxt.dict, result) < 0:
* tree.xmlFreeDoc(result) # <<<<<<<<<<<<<<
*/
xmlFreeDoc(__pyx_v_result);
- /* "src/lxml/parser.pxi":1075
+ /* "src/lxml/parser.pxi":1078
* if _fixHtmlDictNames(pctxt.dict, result) < 0:
* tree.xmlFreeDoc(result)
* result = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_result = NULL;
- /* "src/lxml/parser.pxi":1073
+ /* "src/lxml/parser.pxi":1076
* self._parse_options)
* if result is not NULL:
* if _fixHtmlDictNames(pctxt.dict, result) < 0: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1072
+ /* "src/lxml/parser.pxi":1075
* pctxt, c_text, buffer_len, c_filename, c_encoding,
* self._parse_options)
* if result is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1068
+ /* "src/lxml/parser.pxi":1071
* orig_options = pctxt.options
* with nogil:
* if self._for_html: # <<<<<<<<<<<<<<
goto __pyx_L14;
}
- /* "src/lxml/parser.pxi":1077
+ /* "src/lxml/parser.pxi":1080
* result = NULL
* else:
* result = xmlparser.xmlCtxtReadMemory( # <<<<<<<<<<<<<<
*/
/*else*/ {
- /* "src/lxml/parser.pxi":1079
+ /* "src/lxml/parser.pxi":1082
* result = xmlparser.xmlCtxtReadMemory(
* pctxt, c_text, buffer_len, c_filename, c_encoding,
* self._parse_options) # <<<<<<<<<<<<<<
__pyx_L14:;
}
- /* "src/lxml/parser.pxi":1067
+ /* "src/lxml/parser.pxi":1070
* __GLOBAL_PARSER_CONTEXT.initParserDict(pctxt)
* orig_options = pctxt.options
* with nogil: # <<<<<<<<<<<<<<
}
}
- /* "src/lxml/parser.pxi":1080
+ /* "src/lxml/parser.pxi":1083
* pctxt, c_text, buffer_len, c_filename, c_encoding,
* self._parse_options)
* pctxt.options = orig_options # work around libxml2 problem # <<<<<<<<<<<<<<
*/
__pyx_v_pctxt->options = __pyx_v_orig_options;
- /* "src/lxml/parser.pxi":1082
+ /* "src/lxml/parser.pxi":1085
* pctxt.options = orig_options # work around libxml2 problem
*
* return context._handleParseResultDoc(self, result, None) # <<<<<<<<<<<<<<
* finally:
* context.cleanup()
*/
- __pyx_t_7 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->_handleParseResultDoc(__pyx_v_context, __pyx_v_self, __pyx_v_result, Py_None); if (unlikely(__pyx_t_7 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1082, __pyx_L9_error)
+ __pyx_t_7 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->_handleParseResultDoc(__pyx_v_context, __pyx_v_self, __pyx_v_result, Py_None); if (unlikely(__pyx_t_7 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1085, __pyx_L9_error)
__pyx_r = __pyx_t_7;
goto __pyx_L8_return;
}
- /* "src/lxml/parser.pxi":1084
+ /* "src/lxml/parser.pxi":1087
* return context._handleParseResultDoc(self, result, None)
* finally:
* context.cleanup() # <<<<<<<<<<<<<<
__Pyx_XGOTREF(__pyx_t_15);
__pyx_t_5 = __pyx_lineno; __pyx_t_8 = __pyx_clineno; __pyx_t_9 = __pyx_filename;
{
- __pyx_t_16 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->cleanup(__pyx_v_context); if (unlikely(__pyx_t_16 == ((int)-1))) __PYX_ERR(2, 1084, __pyx_L18_error)
+ __pyx_t_16 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->cleanup(__pyx_v_context); if (unlikely(__pyx_t_16 == ((int)-1))) __PYX_ERR(2, 1087, __pyx_L18_error)
}
if (PY_MAJOR_VERSION >= 3) {
__Pyx_XGIVEREF(__pyx_t_13);
}
__pyx_L8_return: {
__pyx_t_7 = __pyx_r;
- __pyx_t_8 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->cleanup(__pyx_v_context); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(2, 1084, __pyx_L1_error)
+ __pyx_t_8 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->cleanup(__pyx_v_context); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(2, 1087, __pyx_L1_error)
__pyx_r = __pyx_t_7;
goto __pyx_L0;
}
}
- /* "src/lxml/parser.pxi":1023
+ /* "src/lxml/parser.pxi":1026
* # internal parser methods
*
* cdef xmlDoc* _parseUnicodeDoc(self, utext, char* c_filename) except NULL: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1086
+/* "src/lxml/parser.pxi":1089
* context.cleanup()
*
* cdef xmlDoc* _parseDoc(self, char* c_text, int c_len, # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_parseDoc", 0);
- /* "src/lxml/parser.pxi":1095
+ /* "src/lxml/parser.pxi":1098
* cdef char* c_encoding
* cdef tree.xmlCharEncoding enc
* context = self._getParserContext() # <<<<<<<<<<<<<<
* context.prepare()
* try:
*/
- __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)__pyx_v_self->__pyx_vtab)->_getParserContext(__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1095, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)__pyx_v_self->__pyx_vtab)->_getParserContext(__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1098, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_v_context = ((struct __pyx_obj_4lxml_5etree__ParserContext *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/parser.pxi":1096
+ /* "src/lxml/parser.pxi":1099
* cdef tree.xmlCharEncoding enc
* context = self._getParserContext()
* context.prepare() # <<<<<<<<<<<<<<
* try:
* pctxt = context._c_ctxt
*/
- __pyx_t_2 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->prepare(__pyx_v_context, NULL); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(2, 1096, __pyx_L1_error)
+ __pyx_t_2 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->prepare(__pyx_v_context, NULL); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(2, 1099, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1097
+ /* "src/lxml/parser.pxi":1100
* context = self._getParserContext()
* context.prepare()
* try: # <<<<<<<<<<<<<<
*/
/*try:*/ {
- /* "src/lxml/parser.pxi":1098
+ /* "src/lxml/parser.pxi":1101
* context.prepare()
* try:
* pctxt = context._c_ctxt # <<<<<<<<<<<<<<
__pyx_t_3 = __pyx_v_context->_c_ctxt;
__pyx_v_pctxt = __pyx_t_3;
- /* "src/lxml/parser.pxi":1099
+ /* "src/lxml/parser.pxi":1102
* try:
* pctxt = context._c_ctxt
* __GLOBAL_PARSER_CONTEXT.initParserDict(pctxt) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree_24_ParserDictionaryContext_initParserDict(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT, __pyx_v_pctxt);
- /* "src/lxml/parser.pxi":1101
+ /* "src/lxml/parser.pxi":1104
* __GLOBAL_PARSER_CONTEXT.initParserDict(pctxt)
*
* if self._default_encoding is None: # <<<<<<<<<<<<<<
__pyx_t_5 = (__pyx_t_4 != 0);
if (__pyx_t_5) {
- /* "src/lxml/parser.pxi":1102
+ /* "src/lxml/parser.pxi":1105
*
* if self._default_encoding is None:
* c_encoding = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_c_encoding = NULL;
- /* "src/lxml/parser.pxi":1105
+ /* "src/lxml/parser.pxi":1108
* # libxml2 (at least 2.9.3) does not recognise UTF-32 BOMs
* # NOTE: limit to problematic cases because it changes character offsets
* if c_len >= 4 and (c_text[0] == '\xFF' and c_text[1] == '\xFE' and # <<<<<<<<<<<<<<
goto __pyx_L8_bool_binop_done;
}
- /* "src/lxml/parser.pxi":1106
+ /* "src/lxml/parser.pxi":1109
* # NOTE: limit to problematic cases because it changes character offsets
* if c_len >= 4 and (c_text[0] == '\xFF' and c_text[1] == '\xFE' and
* c_text[2] == 0 and c_text[3] == 0): # <<<<<<<<<<<<<<
__pyx_t_5 = __pyx_t_4;
__pyx_L8_bool_binop_done:;
- /* "src/lxml/parser.pxi":1105
+ /* "src/lxml/parser.pxi":1108
* # libxml2 (at least 2.9.3) does not recognise UTF-32 BOMs
* # NOTE: limit to problematic cases because it changes character offsets
* if c_len >= 4 and (c_text[0] == '\xFF' and c_text[1] == '\xFE' and # <<<<<<<<<<<<<<
*/
if (__pyx_t_5) {
- /* "src/lxml/parser.pxi":1107
+ /* "src/lxml/parser.pxi":1110
* if c_len >= 4 and (c_text[0] == '\xFF' and c_text[1] == '\xFE' and
* c_text[2] == 0 and c_text[3] == 0):
* c_encoding = "UTF-32LE" # <<<<<<<<<<<<<<
*/
__pyx_v_c_encoding = ((char *)"UTF-32LE");
- /* "src/lxml/parser.pxi":1108
+ /* "src/lxml/parser.pxi":1111
* c_text[2] == 0 and c_text[3] == 0):
* c_encoding = "UTF-32LE"
* c_text += 4 # <<<<<<<<<<<<<<
*/
__pyx_v_c_text = (__pyx_v_c_text + 4);
- /* "src/lxml/parser.pxi":1109
+ /* "src/lxml/parser.pxi":1112
* c_encoding = "UTF-32LE"
* c_text += 4
* c_len -= 4 # <<<<<<<<<<<<<<
*/
__pyx_v_c_len = (__pyx_v_c_len - 4);
- /* "src/lxml/parser.pxi":1105
+ /* "src/lxml/parser.pxi":1108
* # libxml2 (at least 2.9.3) does not recognise UTF-32 BOMs
* # NOTE: limit to problematic cases because it changes character offsets
* if c_len >= 4 and (c_text[0] == '\xFF' and c_text[1] == '\xFE' and # <<<<<<<<<<<<<<
goto __pyx_L7;
}
- /* "src/lxml/parser.pxi":1110
+ /* "src/lxml/parser.pxi":1113
* c_text += 4
* c_len -= 4
* elif c_len >= 4 and (c_text[0] == 0 and c_text[1] == 0 and # <<<<<<<<<<<<<<
goto __pyx_L13_bool_binop_done;
}
- /* "src/lxml/parser.pxi":1111
+ /* "src/lxml/parser.pxi":1114
* c_len -= 4
* elif c_len >= 4 and (c_text[0] == 0 and c_text[1] == 0 and
* c_text[2] == '\xFE' and c_text[3] == '\xFF'): # <<<<<<<<<<<<<<
__pyx_t_5 = __pyx_t_4;
__pyx_L13_bool_binop_done:;
- /* "src/lxml/parser.pxi":1110
+ /* "src/lxml/parser.pxi":1113
* c_text += 4
* c_len -= 4
* elif c_len >= 4 and (c_text[0] == 0 and c_text[1] == 0 and # <<<<<<<<<<<<<<
*/
if (__pyx_t_5) {
- /* "src/lxml/parser.pxi":1112
+ /* "src/lxml/parser.pxi":1115
* elif c_len >= 4 and (c_text[0] == 0 and c_text[1] == 0 and
* c_text[2] == '\xFE' and c_text[3] == '\xFF'):
* c_encoding = "UTF-32BE" # <<<<<<<<<<<<<<
*/
__pyx_v_c_encoding = ((char *)"UTF-32BE");
- /* "src/lxml/parser.pxi":1113
+ /* "src/lxml/parser.pxi":1116
* c_text[2] == '\xFE' and c_text[3] == '\xFF'):
* c_encoding = "UTF-32BE"
* c_text += 4 # <<<<<<<<<<<<<<
*/
__pyx_v_c_text = (__pyx_v_c_text + 4);
- /* "src/lxml/parser.pxi":1114
+ /* "src/lxml/parser.pxi":1117
* c_encoding = "UTF-32BE"
* c_text += 4
* c_len -= 4 # <<<<<<<<<<<<<<
*/
__pyx_v_c_len = (__pyx_v_c_len - 4);
- /* "src/lxml/parser.pxi":1110
+ /* "src/lxml/parser.pxi":1113
* c_text += 4
* c_len -= 4
* elif c_len >= 4 and (c_text[0] == 0 and c_text[1] == 0 and # <<<<<<<<<<<<<<
goto __pyx_L7;
}
- /* "src/lxml/parser.pxi":1117
+ /* "src/lxml/parser.pxi":1120
* else:
* # no BOM => try to determine encoding
* enc = tree.xmlDetectCharEncoding(<const_xmlChar*>c_text, c_len) # <<<<<<<<<<<<<<
/*else*/ {
__pyx_v_enc = xmlDetectCharEncoding(((const xmlChar *)__pyx_v_c_text), __pyx_v_c_len);
- /* "src/lxml/parser.pxi":1118
+ /* "src/lxml/parser.pxi":1121
* # no BOM => try to determine encoding
* enc = tree.xmlDetectCharEncoding(<const_xmlChar*>c_text, c_len)
* if enc == tree.XML_CHAR_ENCODING_UCS4LE: # <<<<<<<<<<<<<<
switch (__pyx_v_enc) {
case XML_CHAR_ENCODING_UCS4LE:
- /* "src/lxml/parser.pxi":1119
+ /* "src/lxml/parser.pxi":1122
* enc = tree.xmlDetectCharEncoding(<const_xmlChar*>c_text, c_len)
* if enc == tree.XML_CHAR_ENCODING_UCS4LE:
* c_encoding = 'UTF-32LE' # <<<<<<<<<<<<<<
*/
__pyx_v_c_encoding = ((char *)"UTF-32LE");
- /* "src/lxml/parser.pxi":1118
+ /* "src/lxml/parser.pxi":1121
* # no BOM => try to determine encoding
* enc = tree.xmlDetectCharEncoding(<const_xmlChar*>c_text, c_len)
* if enc == tree.XML_CHAR_ENCODING_UCS4LE: # <<<<<<<<<<<<<<
break;
case XML_CHAR_ENCODING_UCS4BE:
- /* "src/lxml/parser.pxi":1121
+ /* "src/lxml/parser.pxi":1124
* c_encoding = 'UTF-32LE'
* elif enc == tree.XML_CHAR_ENCODING_UCS4BE:
* c_encoding = 'UTF-32BE' # <<<<<<<<<<<<<<
*/
__pyx_v_c_encoding = ((char *)"UTF-32BE");
- /* "src/lxml/parser.pxi":1120
+ /* "src/lxml/parser.pxi":1123
* if enc == tree.XML_CHAR_ENCODING_UCS4LE:
* c_encoding = 'UTF-32LE'
* elif enc == tree.XML_CHAR_ENCODING_UCS4BE: # <<<<<<<<<<<<<<
}
__pyx_L7:;
- /* "src/lxml/parser.pxi":1101
+ /* "src/lxml/parser.pxi":1104
* __GLOBAL_PARSER_CONTEXT.initParserDict(pctxt)
*
* if self._default_encoding is None: # <<<<<<<<<<<<<<
goto __pyx_L6;
}
- /* "src/lxml/parser.pxi":1123
+ /* "src/lxml/parser.pxi":1126
* c_encoding = 'UTF-32BE'
* else:
* c_encoding = _cstr(self._default_encoding) # <<<<<<<<<<<<<<
}
__pyx_L6:;
- /* "src/lxml/parser.pxi":1125
+ /* "src/lxml/parser.pxi":1128
* c_encoding = _cstr(self._default_encoding)
*
* orig_options = pctxt.options # <<<<<<<<<<<<<<
__pyx_t_2 = __pyx_v_pctxt->options;
__pyx_v_orig_options = __pyx_t_2;
- /* "src/lxml/parser.pxi":1126
+ /* "src/lxml/parser.pxi":1129
*
* orig_options = pctxt.options
* with nogil: # <<<<<<<<<<<<<<
#endif
/*try:*/ {
- /* "src/lxml/parser.pxi":1127
+ /* "src/lxml/parser.pxi":1130
* orig_options = pctxt.options
* with nogil:
* if self._for_html: # <<<<<<<<<<<<<<
__pyx_t_5 = (__pyx_v_self->_for_html != 0);
if (__pyx_t_5) {
- /* "src/lxml/parser.pxi":1128
+ /* "src/lxml/parser.pxi":1131
* with nogil:
* if self._for_html:
* result = htmlparser.htmlCtxtReadMemory( # <<<<<<<<<<<<<<
*/
__pyx_v_result = htmlCtxtReadMemory(__pyx_v_pctxt, __pyx_v_c_text, __pyx_v_c_len, __pyx_v_c_filename, __pyx_v_c_encoding, __pyx_v_self->_parse_options);
- /* "src/lxml/parser.pxi":1131
+ /* "src/lxml/parser.pxi":1134
* pctxt, c_text, c_len, c_filename,
* c_encoding, self._parse_options)
* if result is not NULL: # <<<<<<<<<<<<<<
__pyx_t_5 = ((__pyx_v_result != NULL) != 0);
if (__pyx_t_5) {
- /* "src/lxml/parser.pxi":1132
+ /* "src/lxml/parser.pxi":1135
* c_encoding, self._parse_options)
* if result is not NULL:
* if _fixHtmlDictNames(pctxt.dict, result) < 0: # <<<<<<<<<<<<<<
__pyx_t_5 = ((__pyx_f_4lxml_5etree__fixHtmlDictNames(__pyx_v_pctxt->dict, __pyx_v_result) < 0) != 0);
if (__pyx_t_5) {
- /* "src/lxml/parser.pxi":1133
+ /* "src/lxml/parser.pxi":1136
* if result is not NULL:
* if _fixHtmlDictNames(pctxt.dict, result) < 0:
* tree.xmlFreeDoc(result) # <<<<<<<<<<<<<<
*/
xmlFreeDoc(__pyx_v_result);
- /* "src/lxml/parser.pxi":1134
+ /* "src/lxml/parser.pxi":1137
* if _fixHtmlDictNames(pctxt.dict, result) < 0:
* tree.xmlFreeDoc(result)
* result = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_result = NULL;
- /* "src/lxml/parser.pxi":1132
+ /* "src/lxml/parser.pxi":1135
* c_encoding, self._parse_options)
* if result is not NULL:
* if _fixHtmlDictNames(pctxt.dict, result) < 0: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1131
+ /* "src/lxml/parser.pxi":1134
* pctxt, c_text, c_len, c_filename,
* c_encoding, self._parse_options)
* if result is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1127
+ /* "src/lxml/parser.pxi":1130
* orig_options = pctxt.options
* with nogil:
* if self._for_html: # <<<<<<<<<<<<<<
goto __pyx_L21;
}
- /* "src/lxml/parser.pxi":1136
+ /* "src/lxml/parser.pxi":1139
* result = NULL
* else:
* result = xmlparser.xmlCtxtReadMemory( # <<<<<<<<<<<<<<
*/
/*else*/ {
- /* "src/lxml/parser.pxi":1138
+ /* "src/lxml/parser.pxi":1141
* result = xmlparser.xmlCtxtReadMemory(
* pctxt, c_text, c_len, c_filename,
* c_encoding, self._parse_options) # <<<<<<<<<<<<<<
__pyx_L21:;
}
- /* "src/lxml/parser.pxi":1126
+ /* "src/lxml/parser.pxi":1129
*
* orig_options = pctxt.options
* with nogil: # <<<<<<<<<<<<<<
}
}
- /* "src/lxml/parser.pxi":1139
+ /* "src/lxml/parser.pxi":1142
* pctxt, c_text, c_len, c_filename,
* c_encoding, self._parse_options)
* pctxt.options = orig_options # work around libxml2 problem # <<<<<<<<<<<<<<
*/
__pyx_v_pctxt->options = __pyx_v_orig_options;
- /* "src/lxml/parser.pxi":1141
+ /* "src/lxml/parser.pxi":1144
* pctxt.options = orig_options # work around libxml2 problem
*
* return context._handleParseResultDoc(self, result, None) # <<<<<<<<<<<<<<
* finally:
* context.cleanup()
*/
- __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->_handleParseResultDoc(__pyx_v_context, __pyx_v_self, __pyx_v_result, Py_None); if (unlikely(__pyx_t_6 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1141, __pyx_L4_error)
+ __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->_handleParseResultDoc(__pyx_v_context, __pyx_v_self, __pyx_v_result, Py_None); if (unlikely(__pyx_t_6 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1144, __pyx_L4_error)
__pyx_r = __pyx_t_6;
goto __pyx_L3_return;
}
- /* "src/lxml/parser.pxi":1143
+ /* "src/lxml/parser.pxi":1146
* return context._handleParseResultDoc(self, result, None)
* finally:
* context.cleanup() # <<<<<<<<<<<<<<
__Pyx_XGOTREF(__pyx_t_14);
__pyx_t_2 = __pyx_lineno; __pyx_t_7 = __pyx_clineno; __pyx_t_8 = __pyx_filename;
{
- __pyx_t_15 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->cleanup(__pyx_v_context); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(2, 1143, __pyx_L25_error)
+ __pyx_t_15 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->cleanup(__pyx_v_context); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(2, 1146, __pyx_L25_error)
}
if (PY_MAJOR_VERSION >= 3) {
__Pyx_XGIVEREF(__pyx_t_12);
}
__pyx_L3_return: {
__pyx_t_6 = __pyx_r;
- __pyx_t_7 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->cleanup(__pyx_v_context); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(2, 1143, __pyx_L1_error)
+ __pyx_t_7 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->cleanup(__pyx_v_context); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(2, 1146, __pyx_L1_error)
__pyx_r = __pyx_t_6;
goto __pyx_L0;
}
}
- /* "src/lxml/parser.pxi":1086
+ /* "src/lxml/parser.pxi":1089
* context.cleanup()
*
* cdef xmlDoc* _parseDoc(self, char* c_text, int c_len, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1145
+/* "src/lxml/parser.pxi":1148
* context.cleanup()
*
* cdef xmlDoc* _parseDocFromFile(self, char* c_filename) except NULL: # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_parseDocFromFile", 0);
- /* "src/lxml/parser.pxi":1150
+ /* "src/lxml/parser.pxi":1153
* cdef xmlparser.xmlParserCtxt* pctxt
* cdef char* c_encoding
* result = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_result = NULL;
- /* "src/lxml/parser.pxi":1152
+ /* "src/lxml/parser.pxi":1155
* result = NULL
*
* context = self._getParserContext() # <<<<<<<<<<<<<<
* context.prepare()
* try:
*/
- __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)__pyx_v_self->__pyx_vtab)->_getParserContext(__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1152, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)__pyx_v_self->__pyx_vtab)->_getParserContext(__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1155, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_v_context = ((struct __pyx_obj_4lxml_5etree__ParserContext *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/parser.pxi":1153
+ /* "src/lxml/parser.pxi":1156
*
* context = self._getParserContext()
* context.prepare() # <<<<<<<<<<<<<<
* try:
* pctxt = context._c_ctxt
*/
- __pyx_t_2 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->prepare(__pyx_v_context, NULL); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(2, 1153, __pyx_L1_error)
+ __pyx_t_2 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->prepare(__pyx_v_context, NULL); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(2, 1156, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1154
+ /* "src/lxml/parser.pxi":1157
* context = self._getParserContext()
* context.prepare()
* try: # <<<<<<<<<<<<<<
*/
/*try:*/ {
- /* "src/lxml/parser.pxi":1155
+ /* "src/lxml/parser.pxi":1158
* context.prepare()
* try:
* pctxt = context._c_ctxt # <<<<<<<<<<<<<<
__pyx_t_3 = __pyx_v_context->_c_ctxt;
__pyx_v_pctxt = __pyx_t_3;
- /* "src/lxml/parser.pxi":1156
+ /* "src/lxml/parser.pxi":1159
* try:
* pctxt = context._c_ctxt
* __GLOBAL_PARSER_CONTEXT.initParserDict(pctxt) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree_24_ParserDictionaryContext_initParserDict(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT, __pyx_v_pctxt);
- /* "src/lxml/parser.pxi":1158
+ /* "src/lxml/parser.pxi":1161
* __GLOBAL_PARSER_CONTEXT.initParserDict(pctxt)
*
* if self._default_encoding is None: # <<<<<<<<<<<<<<
__pyx_t_5 = (__pyx_t_4 != 0);
if (__pyx_t_5) {
- /* "src/lxml/parser.pxi":1159
+ /* "src/lxml/parser.pxi":1162
*
* if self._default_encoding is None:
* c_encoding = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_c_encoding = NULL;
- /* "src/lxml/parser.pxi":1158
+ /* "src/lxml/parser.pxi":1161
* __GLOBAL_PARSER_CONTEXT.initParserDict(pctxt)
*
* if self._default_encoding is None: # <<<<<<<<<<<<<<
goto __pyx_L6;
}
- /* "src/lxml/parser.pxi":1161
+ /* "src/lxml/parser.pxi":1164
* c_encoding = NULL
* else:
* c_encoding = _cstr(self._default_encoding) # <<<<<<<<<<<<<<
}
__pyx_L6:;
- /* "src/lxml/parser.pxi":1163
+ /* "src/lxml/parser.pxi":1166
* c_encoding = _cstr(self._default_encoding)
*
* orig_options = pctxt.options # <<<<<<<<<<<<<<
__pyx_t_2 = __pyx_v_pctxt->options;
__pyx_v_orig_options = __pyx_t_2;
- /* "src/lxml/parser.pxi":1164
+ /* "src/lxml/parser.pxi":1167
*
* orig_options = pctxt.options
* with nogil: # <<<<<<<<<<<<<<
#endif
/*try:*/ {
- /* "src/lxml/parser.pxi":1165
+ /* "src/lxml/parser.pxi":1168
* orig_options = pctxt.options
* with nogil:
* if self._for_html: # <<<<<<<<<<<<<<
__pyx_t_5 = (__pyx_v_self->_for_html != 0);
if (__pyx_t_5) {
- /* "src/lxml/parser.pxi":1166
+ /* "src/lxml/parser.pxi":1169
* with nogil:
* if self._for_html:
* result = htmlparser.htmlCtxtReadFile( # <<<<<<<<<<<<<<
*/
__pyx_v_result = htmlCtxtReadFile(__pyx_v_pctxt, __pyx_v_c_filename, __pyx_v_c_encoding, __pyx_v_self->_parse_options);
- /* "src/lxml/parser.pxi":1168
+ /* "src/lxml/parser.pxi":1171
* result = htmlparser.htmlCtxtReadFile(
* pctxt, c_filename, c_encoding, self._parse_options)
* if result is not NULL: # <<<<<<<<<<<<<<
__pyx_t_5 = ((__pyx_v_result != NULL) != 0);
if (__pyx_t_5) {
- /* "src/lxml/parser.pxi":1169
+ /* "src/lxml/parser.pxi":1172
* pctxt, c_filename, c_encoding, self._parse_options)
* if result is not NULL:
* if _fixHtmlDictNames(pctxt.dict, result) < 0: # <<<<<<<<<<<<<<
__pyx_t_5 = ((__pyx_f_4lxml_5etree__fixHtmlDictNames(__pyx_v_pctxt->dict, __pyx_v_result) < 0) != 0);
if (__pyx_t_5) {
- /* "src/lxml/parser.pxi":1170
+ /* "src/lxml/parser.pxi":1173
* if result is not NULL:
* if _fixHtmlDictNames(pctxt.dict, result) < 0:
* tree.xmlFreeDoc(result) # <<<<<<<<<<<<<<
*/
xmlFreeDoc(__pyx_v_result);
- /* "src/lxml/parser.pxi":1171
+ /* "src/lxml/parser.pxi":1174
* if _fixHtmlDictNames(pctxt.dict, result) < 0:
* tree.xmlFreeDoc(result)
* result = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_result = NULL;
- /* "src/lxml/parser.pxi":1169
+ /* "src/lxml/parser.pxi":1172
* pctxt, c_filename, c_encoding, self._parse_options)
* if result is not NULL:
* if _fixHtmlDictNames(pctxt.dict, result) < 0: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1168
+ /* "src/lxml/parser.pxi":1171
* result = htmlparser.htmlCtxtReadFile(
* pctxt, c_filename, c_encoding, self._parse_options)
* if result is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1165
+ /* "src/lxml/parser.pxi":1168
* orig_options = pctxt.options
* with nogil:
* if self._for_html: # <<<<<<<<<<<<<<
goto __pyx_L10;
}
- /* "src/lxml/parser.pxi":1173
+ /* "src/lxml/parser.pxi":1176
* result = NULL
* else:
* result = xmlparser.xmlCtxtReadFile( # <<<<<<<<<<<<<<
*/
/*else*/ {
- /* "src/lxml/parser.pxi":1174
+ /* "src/lxml/parser.pxi":1177
* else:
* result = xmlparser.xmlCtxtReadFile(
* pctxt, c_filename, c_encoding, self._parse_options) # <<<<<<<<<<<<<<
__pyx_L10:;
}
- /* "src/lxml/parser.pxi":1164
+ /* "src/lxml/parser.pxi":1167
*
* orig_options = pctxt.options
* with nogil: # <<<<<<<<<<<<<<
}
}
- /* "src/lxml/parser.pxi":1175
+ /* "src/lxml/parser.pxi":1178
* result = xmlparser.xmlCtxtReadFile(
* pctxt, c_filename, c_encoding, self._parse_options)
* pctxt.options = orig_options # work around libxml2 problem # <<<<<<<<<<<<<<
*/
__pyx_v_pctxt->options = __pyx_v_orig_options;
- /* "src/lxml/parser.pxi":1177
+ /* "src/lxml/parser.pxi":1180
* pctxt.options = orig_options # work around libxml2 problem
*
* return context._handleParseResultDoc(self, result, c_filename) # <<<<<<<<<<<<<<
* finally:
* context.cleanup()
*/
- __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_c_filename); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1177, __pyx_L4_error)
+ __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_c_filename); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1180, __pyx_L4_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->_handleParseResultDoc(__pyx_v_context, __pyx_v_self, __pyx_v_result, __pyx_t_1); if (unlikely(__pyx_t_6 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1177, __pyx_L4_error)
+ __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->_handleParseResultDoc(__pyx_v_context, __pyx_v_self, __pyx_v_result, __pyx_t_1); if (unlikely(__pyx_t_6 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1180, __pyx_L4_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_r = __pyx_t_6;
goto __pyx_L3_return;
}
- /* "src/lxml/parser.pxi":1179
+ /* "src/lxml/parser.pxi":1182
* return context._handleParseResultDoc(self, result, c_filename)
* finally:
* context.cleanup() # <<<<<<<<<<<<<<
__Pyx_XGOTREF(__pyx_t_14);
__pyx_t_2 = __pyx_lineno; __pyx_t_7 = __pyx_clineno; __pyx_t_8 = __pyx_filename;
{
- __pyx_t_15 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->cleanup(__pyx_v_context); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(2, 1179, __pyx_L14_error)
+ __pyx_t_15 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->cleanup(__pyx_v_context); if (unlikely(__pyx_t_15 == ((int)-1))) __PYX_ERR(2, 1182, __pyx_L14_error)
}
if (PY_MAJOR_VERSION >= 3) {
__Pyx_XGIVEREF(__pyx_t_12);
}
__pyx_L3_return: {
__pyx_t_6 = __pyx_r;
- __pyx_t_7 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->cleanup(__pyx_v_context); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(2, 1179, __pyx_L1_error)
+ __pyx_t_7 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->cleanup(__pyx_v_context); if (unlikely(__pyx_t_7 == ((int)-1))) __PYX_ERR(2, 1182, __pyx_L1_error)
__pyx_r = __pyx_t_6;
goto __pyx_L0;
}
}
- /* "src/lxml/parser.pxi":1145
+ /* "src/lxml/parser.pxi":1148
* context.cleanup()
*
* cdef xmlDoc* _parseDocFromFile(self, char* c_filename) except NULL: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1181
+/* "src/lxml/parser.pxi":1184
* context.cleanup()
*
* cdef xmlDoc* _parseDocFromFilelike(self, filelike, filename, # <<<<<<<<<<<<<<
__Pyx_RefNannySetupContext("_parseDocFromFilelike", 0);
__Pyx_INCREF(__pyx_v_filename);
- /* "src/lxml/parser.pxi":1188
+ /* "src/lxml/parser.pxi":1191
* cdef xmlparser.xmlParserCtxt* pctxt
* cdef char* c_filename
* if not filename: # <<<<<<<<<<<<<<
* filename = None
*
*/
- __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_filename); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 1188, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_filename); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 1191, __pyx_L1_error)
__pyx_t_2 = ((!__pyx_t_1) != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1189
+ /* "src/lxml/parser.pxi":1192
* cdef char* c_filename
* if not filename:
* filename = None # <<<<<<<<<<<<<<
__Pyx_INCREF(Py_None);
__Pyx_DECREF_SET(__pyx_v_filename, Py_None);
- /* "src/lxml/parser.pxi":1188
+ /* "src/lxml/parser.pxi":1191
* cdef xmlparser.xmlParserCtxt* pctxt
* cdef char* c_filename
* if not filename: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1191
+ /* "src/lxml/parser.pxi":1194
* filename = None
*
* context = self._getParserContext() # <<<<<<<<<<<<<<
* context.prepare()
* try:
*/
- __pyx_t_3 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)__pyx_v_self->__pyx_vtab)->_getParserContext(__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1191, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)__pyx_v_self->__pyx_vtab)->_getParserContext(__pyx_v_self)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1194, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_v_context = ((struct __pyx_obj_4lxml_5etree__ParserContext *)__pyx_t_3);
__pyx_t_3 = 0;
- /* "src/lxml/parser.pxi":1192
+ /* "src/lxml/parser.pxi":1195
*
* context = self._getParserContext()
* context.prepare() # <<<<<<<<<<<<<<
* try:
* pctxt = context._c_ctxt
*/
- __pyx_t_4 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->prepare(__pyx_v_context, NULL); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1192, __pyx_L1_error)
+ __pyx_t_4 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->prepare(__pyx_v_context, NULL); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1195, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1193
+ /* "src/lxml/parser.pxi":1196
* context = self._getParserContext()
* context.prepare()
* try: # <<<<<<<<<<<<<<
*/
/*try:*/ {
- /* "src/lxml/parser.pxi":1194
+ /* "src/lxml/parser.pxi":1197
* context.prepare()
* try:
* pctxt = context._c_ctxt # <<<<<<<<<<<<<<
__pyx_t_5 = __pyx_v_context->_c_ctxt;
__pyx_v_pctxt = __pyx_t_5;
- /* "src/lxml/parser.pxi":1195
+ /* "src/lxml/parser.pxi":1198
* try:
* pctxt = context._c_ctxt
* __GLOBAL_PARSER_CONTEXT.initParserDict(pctxt) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree_24_ParserDictionaryContext_initParserDict(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT, __pyx_v_pctxt);
- /* "src/lxml/parser.pxi":1198
+ /* "src/lxml/parser.pxi":1201
* file_context = _FileReaderContext(
* filelike, context, filename,
* encoding or self._default_encoding) # <<<<<<<<<<<<<<
* result = file_context._readDoc(pctxt, self._parse_options)
*
*/
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_encoding); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1198, __pyx_L5_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_encoding); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1201, __pyx_L5_error)
if (!__pyx_t_2) {
} else {
__Pyx_INCREF(__pyx_v_encoding);
__pyx_t_3 = __pyx_v_self->_default_encoding;
__pyx_L7_bool_binop_done:;
- /* "src/lxml/parser.pxi":1196
+ /* "src/lxml/parser.pxi":1199
* pctxt = context._c_ctxt
* __GLOBAL_PARSER_CONTEXT.initParserDict(pctxt)
* file_context = _FileReaderContext( # <<<<<<<<<<<<<<
* filelike, context, filename,
* encoding or self._default_encoding)
*/
- __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 1196, __pyx_L5_error)
+ __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 1199, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_INCREF(__pyx_v_filelike);
__Pyx_GIVEREF(__pyx_v_filelike);
__Pyx_GIVEREF(__pyx_t_3);
PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_3);
__pyx_t_3 = 0;
- __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree__FileReaderContext), __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1196, __pyx_L5_error)
+ __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree__FileReaderContext), __pyx_t_6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1199, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__pyx_v_file_context = ((struct __pyx_obj_4lxml_5etree__FileReaderContext *)__pyx_t_3);
__pyx_t_3 = 0;
- /* "src/lxml/parser.pxi":1199
+ /* "src/lxml/parser.pxi":1202
* filelike, context, filename,
* encoding or self._default_encoding)
* result = file_context._readDoc(pctxt, self._parse_options) # <<<<<<<<<<<<<<
*/
__pyx_v_result = __pyx_f_4lxml_5etree_18_FileReaderContext__readDoc(__pyx_v_file_context, __pyx_v_pctxt, __pyx_v_self->_parse_options);
- /* "src/lxml/parser.pxi":1201
+ /* "src/lxml/parser.pxi":1204
* result = file_context._readDoc(pctxt, self._parse_options)
*
* return context._handleParseResultDoc( # <<<<<<<<<<<<<<
* self, result, filename)
* finally:
*/
- __pyx_t_7 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->_handleParseResultDoc(__pyx_v_context, __pyx_v_self, __pyx_v_result, __pyx_v_filename); if (unlikely(__pyx_t_7 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1201, __pyx_L5_error)
+ __pyx_t_7 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->_handleParseResultDoc(__pyx_v_context, __pyx_v_self, __pyx_v_result, __pyx_v_filename); if (unlikely(__pyx_t_7 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1204, __pyx_L5_error)
__pyx_r = __pyx_t_7;
goto __pyx_L4_return;
}
- /* "src/lxml/parser.pxi":1204
+ /* "src/lxml/parser.pxi":1207
* self, result, filename)
* finally:
* context.cleanup() # <<<<<<<<<<<<<<
__Pyx_XGOTREF(__pyx_t_15);
__pyx_t_4 = __pyx_lineno; __pyx_t_8 = __pyx_clineno; __pyx_t_9 = __pyx_filename;
{
- __pyx_t_16 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->cleanup(__pyx_v_context); if (unlikely(__pyx_t_16 == ((int)-1))) __PYX_ERR(2, 1204, __pyx_L10_error)
+ __pyx_t_16 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->cleanup(__pyx_v_context); if (unlikely(__pyx_t_16 == ((int)-1))) __PYX_ERR(2, 1207, __pyx_L10_error)
}
if (PY_MAJOR_VERSION >= 3) {
__Pyx_XGIVEREF(__pyx_t_13);
}
__pyx_L4_return: {
__pyx_t_7 = __pyx_r;
- __pyx_t_8 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->cleanup(__pyx_v_context); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(2, 1204, __pyx_L1_error)
+ __pyx_t_8 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->cleanup(__pyx_v_context); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(2, 1207, __pyx_L1_error)
__pyx_r = __pyx_t_7;
goto __pyx_L0;
}
}
- /* "src/lxml/parser.pxi":1181
+ /* "src/lxml/parser.pxi":1184
* context.cleanup()
*
* cdef xmlDoc* _parseDocFromFilelike(self, filelike, filename, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":808
+/* "src/lxml/parser.pxi":811
* cdef XMLSchema _schema
* cdef bytes _filename
* cdef readonly object target # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1207
+/* "src/lxml/parser.pxi":1210
*
*
* cdef void _initSaxDocument(void* ctxt) with gil: # <<<<<<<<<<<<<<
#endif
__Pyx_RefNannySetupContext("_initSaxDocument", 0);
- /* "src/lxml/parser.pxi":1208
+ /* "src/lxml/parser.pxi":1211
*
* cdef void _initSaxDocument(void* ctxt) with gil:
* xmlparser.xmlSAX2StartDocument(ctxt) # <<<<<<<<<<<<<<
*/
xmlSAX2StartDocument(__pyx_v_ctxt);
- /* "src/lxml/parser.pxi":1209
+ /* "src/lxml/parser.pxi":1212
* cdef void _initSaxDocument(void* ctxt) with gil:
* xmlparser.xmlSAX2StartDocument(ctxt)
* c_ctxt = <xmlparser.xmlParserCtxt*>ctxt # <<<<<<<<<<<<<<
*/
__pyx_v_c_ctxt = ((xmlParserCtxt *)__pyx_v_ctxt);
- /* "src/lxml/parser.pxi":1210
+ /* "src/lxml/parser.pxi":1213
* xmlparser.xmlSAX2StartDocument(ctxt)
* c_ctxt = <xmlparser.xmlParserCtxt*>ctxt
* c_doc = c_ctxt.myDoc # <<<<<<<<<<<<<<
__pyx_t_1 = __pyx_v_c_ctxt->myDoc;
__pyx_v_c_doc = __pyx_t_1;
- /* "src/lxml/parser.pxi":1213
+ /* "src/lxml/parser.pxi":1216
*
* # set up document dict
* if c_doc and c_ctxt.dict and not c_doc.dict: # <<<<<<<<<<<<<<
__pyx_L4_bool_binop_done:;
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1215
+ /* "src/lxml/parser.pxi":1218
* if c_doc and c_ctxt.dict and not c_doc.dict:
* # I have no idea why libxml2 disables this - we need it
* c_ctxt.dictNames = 1 # <<<<<<<<<<<<<<
*/
__pyx_v_c_ctxt->dictNames = 1;
- /* "src/lxml/parser.pxi":1216
+ /* "src/lxml/parser.pxi":1219
* # I have no idea why libxml2 disables this - we need it
* c_ctxt.dictNames = 1
* c_doc.dict = c_ctxt.dict # <<<<<<<<<<<<<<
__pyx_t_4 = __pyx_v_c_ctxt->dict;
__pyx_v_c_doc->dict = __pyx_t_4;
- /* "src/lxml/parser.pxi":1217
+ /* "src/lxml/parser.pxi":1220
* c_ctxt.dictNames = 1
* c_doc.dict = c_ctxt.dict
* xmlparser.xmlDictReference(c_ctxt.dict) # <<<<<<<<<<<<<<
*/
(void)(xmlDictReference(__pyx_v_c_ctxt->dict));
- /* "src/lxml/parser.pxi":1213
+ /* "src/lxml/parser.pxi":1216
*
* # set up document dict
* if c_doc and c_ctxt.dict and not c_doc.dict: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1220
+ /* "src/lxml/parser.pxi":1223
*
* # set up XML ID hash table
* if c_ctxt._private: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_v_c_ctxt->_private != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1221
+ /* "src/lxml/parser.pxi":1224
* # set up XML ID hash table
* if c_ctxt._private:
* context = <_ParserContext>c_ctxt._private # <<<<<<<<<<<<<<
__pyx_v_context = ((struct __pyx_obj_4lxml_5etree__ParserContext *)__pyx_t_5);
__pyx_t_5 = 0;
- /* "src/lxml/parser.pxi":1222
+ /* "src/lxml/parser.pxi":1225
* if c_ctxt._private:
* context = <_ParserContext>c_ctxt._private
* if context._collect_ids: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_v_context->_collect_ids != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1224
+ /* "src/lxml/parser.pxi":1227
* if context._collect_ids:
* # keep the global parser dict from filling up with XML IDs
* if c_doc and not c_doc.ids: # <<<<<<<<<<<<<<
__pyx_L10_bool_binop_done:;
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1226
+ /* "src/lxml/parser.pxi":1229
* if c_doc and not c_doc.ids:
* # memory errors are not fatal here
* c_dict = xmlparser.xmlDictCreate() # <<<<<<<<<<<<<<
*/
__pyx_v_c_dict = xmlDictCreate();
- /* "src/lxml/parser.pxi":1227
+ /* "src/lxml/parser.pxi":1230
* # memory errors are not fatal here
* c_dict = xmlparser.xmlDictCreate()
* if c_dict: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_v_c_dict != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1228
+ /* "src/lxml/parser.pxi":1231
* c_dict = xmlparser.xmlDictCreate()
* if c_dict:
* c_doc.ids = tree.xmlHashCreateDict(0, c_dict) # <<<<<<<<<<<<<<
*/
__pyx_v_c_doc->ids = xmlHashCreateDict(0, __pyx_v_c_dict);
- /* "src/lxml/parser.pxi":1229
+ /* "src/lxml/parser.pxi":1232
* if c_dict:
* c_doc.ids = tree.xmlHashCreateDict(0, c_dict)
* xmlparser.xmlDictFree(c_dict) # <<<<<<<<<<<<<<
*/
xmlDictFree(__pyx_v_c_dict);
- /* "src/lxml/parser.pxi":1227
+ /* "src/lxml/parser.pxi":1230
* # memory errors are not fatal here
* c_dict = xmlparser.xmlDictCreate()
* if c_dict: # <<<<<<<<<<<<<<
goto __pyx_L12;
}
- /* "src/lxml/parser.pxi":1231
+ /* "src/lxml/parser.pxi":1234
* xmlparser.xmlDictFree(c_dict)
* else:
* c_doc.ids = tree.xmlHashCreate(0) # <<<<<<<<<<<<<<
}
__pyx_L12:;
- /* "src/lxml/parser.pxi":1224
+ /* "src/lxml/parser.pxi":1227
* if context._collect_ids:
* # keep the global parser dict from filling up with XML IDs
* if c_doc and not c_doc.ids: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1222
+ /* "src/lxml/parser.pxi":1225
* if c_ctxt._private:
* context = <_ParserContext>c_ctxt._private
* if context._collect_ids: # <<<<<<<<<<<<<<
goto __pyx_L8;
}
- /* "src/lxml/parser.pxi":1233
+ /* "src/lxml/parser.pxi":1236
* c_doc.ids = tree.xmlHashCreate(0)
* else:
* c_ctxt.loadsubset |= xmlparser.XML_SKIP_IDS # <<<<<<<<<<<<<<
/*else*/ {
__pyx_v_c_ctxt->loadsubset = (__pyx_v_c_ctxt->loadsubset | XML_SKIP_IDS);
- /* "src/lxml/parser.pxi":1234
+ /* "src/lxml/parser.pxi":1237
* else:
* c_ctxt.loadsubset |= xmlparser.XML_SKIP_IDS
* if c_doc and c_doc.ids and not tree.xmlHashSize(c_doc.ids): # <<<<<<<<<<<<<<
__pyx_L14_bool_binop_done:;
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1236
+ /* "src/lxml/parser.pxi":1239
* if c_doc and c_doc.ids and not tree.xmlHashSize(c_doc.ids):
* # already initialised but empty => clear
* tree.xmlHashFree(c_doc.ids, NULL) # <<<<<<<<<<<<<<
*/
xmlHashFree(__pyx_v_c_doc->ids, NULL);
- /* "src/lxml/parser.pxi":1237
+ /* "src/lxml/parser.pxi":1240
* # already initialised but empty => clear
* tree.xmlHashFree(c_doc.ids, NULL)
* c_doc.ids = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_c_doc->ids = NULL;
- /* "src/lxml/parser.pxi":1234
+ /* "src/lxml/parser.pxi":1237
* else:
* c_ctxt.loadsubset |= xmlparser.XML_SKIP_IDS
* if c_doc and c_doc.ids and not tree.xmlHashSize(c_doc.ids): # <<<<<<<<<<<<<<
}
__pyx_L8:;
- /* "src/lxml/parser.pxi":1220
+ /* "src/lxml/parser.pxi":1223
*
* # set up XML ID hash table
* if c_ctxt._private: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1207
+ /* "src/lxml/parser.pxi":1210
*
*
* cdef void _initSaxDocument(void* ctxt) with gil: # <<<<<<<<<<<<<<
#endif
}
-/* "src/lxml/parser.pxi":1248
+/* "src/lxml/parser.pxi":1251
*
* @property
* def feed_error_log(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "src/lxml/parser.pxi":1254
+ /* "src/lxml/parser.pxi":1257
* different from what the ``error_log`` property returns.
* """
* return self._getPushParserContext()._error_log.copy() # <<<<<<<<<<<<<<
* cpdef feed(self, data):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree__FeedParser *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base._getPushParserContext(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self))); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1254, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree__FeedParser *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base._getPushParserContext(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self))); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1257, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_2 = ((struct __pyx_vtabstruct_4lxml_5etree__ErrorLog *)((struct __pyx_obj_4lxml_5etree__ParserContext *)__pyx_t_1)->_error_log->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.copy(((struct __pyx_obj_4lxml_5etree__BaseErrorLog *)((struct __pyx_obj_4lxml_5etree__ParserContext *)__pyx_t_1)->_error_log), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1254, __pyx_L1_error)
+ __pyx_t_2 = ((struct __pyx_vtabstruct_4lxml_5etree__ErrorLog *)((struct __pyx_obj_4lxml_5etree__ParserContext *)__pyx_t_1)->_error_log->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.copy(((struct __pyx_obj_4lxml_5etree__BaseErrorLog *)((struct __pyx_obj_4lxml_5etree__ParserContext *)__pyx_t_1)->_error_log), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1257, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1248
+ /* "src/lxml/parser.pxi":1251
*
* @property
* def feed_error_log(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1256
+/* "src/lxml/parser.pxi":1259
* return self._getPushParserContext()._error_log.copy()
*
* cpdef feed(self, data): # <<<<<<<<<<<<<<
if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
#endif
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_feed); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1256, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_feed); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1259, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_4lxml_5etree_11_FeedParser_1feed)) {
__Pyx_XDECREF(__pyx_r);
}
__pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_v_data) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_data);
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
- if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1256, __pyx_L1_error)
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1259, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_r = __pyx_t_2;
#endif
}
- /* "src/lxml/parser.pxi":1282
+ /* "src/lxml/parser.pxi":1285
* cdef int buffer_len
* cdef int error
* cdef bint recover = self._parse_options & xmlparser.XML_PARSE_RECOVER # <<<<<<<<<<<<<<
*/
__pyx_v_recover = (__pyx_v_self->__pyx_base._parse_options & XML_PARSE_RECOVER);
- /* "src/lxml/parser.pxi":1284
+ /* "src/lxml/parser.pxi":1287
* cdef bint recover = self._parse_options & xmlparser.XML_PARSE_RECOVER
*
* if isinstance(data, bytes): # <<<<<<<<<<<<<<
__pyx_t_6 = (__pyx_t_5 != 0);
if (__pyx_t_6) {
- /* "src/lxml/parser.pxi":1285
+ /* "src/lxml/parser.pxi":1288
*
* if isinstance(data, bytes):
* if self._default_encoding is None: # <<<<<<<<<<<<<<
__pyx_t_5 = (__pyx_t_6 != 0);
if (__pyx_t_5) {
- /* "src/lxml/parser.pxi":1286
+ /* "src/lxml/parser.pxi":1289
* if isinstance(data, bytes):
* if self._default_encoding is None:
* c_encoding = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_c_encoding = NULL;
- /* "src/lxml/parser.pxi":1285
+ /* "src/lxml/parser.pxi":1288
*
* if isinstance(data, bytes):
* if self._default_encoding is None: # <<<<<<<<<<<<<<
goto __pyx_L4;
}
- /* "src/lxml/parser.pxi":1288
+ /* "src/lxml/parser.pxi":1291
* c_encoding = NULL
* else:
* c_encoding = self._default_encoding # <<<<<<<<<<<<<<
* py_buffer_len = python.PyBytes_GET_SIZE(data)
*/
/*else*/ {
- __pyx_t_7 = __Pyx_PyObject_AsString(__pyx_v_self->__pyx_base._default_encoding); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) __PYX_ERR(2, 1288, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyObject_AsString(__pyx_v_self->__pyx_base._default_encoding); if (unlikely((!__pyx_t_7) && PyErr_Occurred())) __PYX_ERR(2, 1291, __pyx_L1_error)
__pyx_v_c_encoding = __pyx_t_7;
}
__pyx_L4:;
- /* "src/lxml/parser.pxi":1289
+ /* "src/lxml/parser.pxi":1292
* else:
* c_encoding = self._default_encoding
* char_data = _cstr(data) # <<<<<<<<<<<<<<
*/
__pyx_v_char_data = PyBytes_AS_STRING(__pyx_v_data);
- /* "src/lxml/parser.pxi":1290
+ /* "src/lxml/parser.pxi":1293
* c_encoding = self._default_encoding
* char_data = _cstr(data)
* py_buffer_len = python.PyBytes_GET_SIZE(data) # <<<<<<<<<<<<<<
*/
__pyx_v_py_buffer_len = PyBytes_GET_SIZE(__pyx_v_data);
- /* "src/lxml/parser.pxi":1291
+ /* "src/lxml/parser.pxi":1294
* char_data = _cstr(data)
* py_buffer_len = python.PyBytes_GET_SIZE(data)
* ustart = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_ustart = 0;
- /* "src/lxml/parser.pxi":1284
+ /* "src/lxml/parser.pxi":1287
* cdef bint recover = self._parse_options & xmlparser.XML_PARSE_RECOVER
*
* if isinstance(data, bytes): # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "src/lxml/parser.pxi":1292
+ /* "src/lxml/parser.pxi":1295
* py_buffer_len = python.PyBytes_GET_SIZE(data)
* ustart = 0
* elif isinstance(data, unicode): # <<<<<<<<<<<<<<
__pyx_t_6 = (__pyx_t_5 != 0);
if (likely(__pyx_t_6)) {
- /* "src/lxml/parser.pxi":1293
+ /* "src/lxml/parser.pxi":1296
* ustart = 0
* elif isinstance(data, unicode):
* c_encoding = b"UTF-8" # <<<<<<<<<<<<<<
*/
__pyx_v_c_encoding = ((const char *)"UTF-8");
- /* "src/lxml/parser.pxi":1294
+ /* "src/lxml/parser.pxi":1297
* elif isinstance(data, unicode):
* c_encoding = b"UTF-8"
* char_data = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_char_data = NULL;
- /* "src/lxml/parser.pxi":1295
+ /* "src/lxml/parser.pxi":1298
* c_encoding = b"UTF-8"
* char_data = NULL
* py_buffer_len = len(<unicode> data) # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_v_data == Py_None)) {
PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
- __PYX_ERR(2, 1295, __pyx_L1_error)
+ __PYX_ERR(2, 1298, __pyx_L1_error)
}
- __pyx_t_8 = __Pyx_PyUnicode_GET_LENGTH(((PyObject*)__pyx_v_data)); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(2, 1295, __pyx_L1_error)
+ __pyx_t_8 = __Pyx_PyUnicode_GET_LENGTH(((PyObject*)__pyx_v_data)); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(2, 1298, __pyx_L1_error)
__pyx_v_py_buffer_len = __pyx_t_8;
- /* "src/lxml/parser.pxi":1296
+ /* "src/lxml/parser.pxi":1299
* char_data = NULL
* py_buffer_len = len(<unicode> data)
* ustart = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_ustart = 0;
- /* "src/lxml/parser.pxi":1292
+ /* "src/lxml/parser.pxi":1295
* py_buffer_len = python.PyBytes_GET_SIZE(data)
* ustart = 0
* elif isinstance(data, unicode): # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "src/lxml/parser.pxi":1298
+ /* "src/lxml/parser.pxi":1301
* ustart = 0
* else:
* raise TypeError, u"Parsing requires string data" # <<<<<<<<<<<<<<
*/
/*else*/ {
__Pyx_Raise(__pyx_builtin_TypeError, __pyx_kp_u_Parsing_requires_string_data, 0, 0);
- __PYX_ERR(2, 1298, __pyx_L1_error)
+ __PYX_ERR(2, 1301, __pyx_L1_error)
}
__pyx_L3:;
- /* "src/lxml/parser.pxi":1300
+ /* "src/lxml/parser.pxi":1303
* raise TypeError, u"Parsing requires string data"
*
* context = self._getPushParserContext() # <<<<<<<<<<<<<<
* pctxt = context._c_ctxt
* error = 0
*/
- __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree__FeedParser *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base._getPushParserContext(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self))); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1300, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree__FeedParser *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base._getPushParserContext(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self))); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1303, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_v_context = ((struct __pyx_obj_4lxml_5etree__ParserContext *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/parser.pxi":1301
+ /* "src/lxml/parser.pxi":1304
*
* context = self._getPushParserContext()
* pctxt = context._c_ctxt # <<<<<<<<<<<<<<
__pyx_t_9 = __pyx_v_context->_c_ctxt;
__pyx_v_pctxt = __pyx_t_9;
- /* "src/lxml/parser.pxi":1302
+ /* "src/lxml/parser.pxi":1305
* context = self._getPushParserContext()
* pctxt = context._c_ctxt
* error = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_error = 0;
- /* "src/lxml/parser.pxi":1303
+ /* "src/lxml/parser.pxi":1306
* pctxt = context._c_ctxt
* error = 0
* if not self._feed_parser_running: # <<<<<<<<<<<<<<
__pyx_t_6 = ((!(__pyx_v_self->_feed_parser_running != 0)) != 0);
if (__pyx_t_6) {
- /* "src/lxml/parser.pxi":1304
+ /* "src/lxml/parser.pxi":1307
* error = 0
* if not self._feed_parser_running:
* context.prepare(set_document_loader=False) # <<<<<<<<<<<<<<
*/
__pyx_t_11.__pyx_n = 1;
__pyx_t_11.set_document_loader = 0;
- __pyx_t_10 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->prepare(__pyx_v_context, &__pyx_t_11); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(2, 1304, __pyx_L1_error)
+ __pyx_t_10 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->prepare(__pyx_v_context, &__pyx_t_11); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(2, 1307, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1305
+ /* "src/lxml/parser.pxi":1308
* if not self._feed_parser_running:
* context.prepare(set_document_loader=False)
* self._feed_parser_running = 1 # <<<<<<<<<<<<<<
*/
__pyx_v_self->_feed_parser_running = 1;
- /* "src/lxml/parser.pxi":1307
+ /* "src/lxml/parser.pxi":1310
* self._feed_parser_running = 1
* c_filename = (_cstr(self._filename)
* if self._filename is not None else NULL) # <<<<<<<<<<<<<<
__pyx_t_6 = (__pyx_v_self->__pyx_base._filename != ((PyObject*)Py_None));
if ((__pyx_t_6 != 0)) {
- /* "src/lxml/parser.pxi":1306
+ /* "src/lxml/parser.pxi":1309
* context.prepare(set_document_loader=False)
* self._feed_parser_running = 1
* c_filename = (_cstr(self._filename) # <<<<<<<<<<<<<<
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
} else {
- /* "src/lxml/parser.pxi":1307
+ /* "src/lxml/parser.pxi":1310
* self._feed_parser_running = 1
* c_filename = (_cstr(self._filename)
* if self._filename is not None else NULL) # <<<<<<<<<<<<<<
}
__pyx_v_c_filename = __pyx_t_12;
- /* "src/lxml/parser.pxi":1313
+ /* "src/lxml/parser.pxi":1316
* # however if we give it all we got, we'll have nothing for
* # *mlParseChunk() and things go wrong.
* buffer_len = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_buffer_len = 0;
- /* "src/lxml/parser.pxi":1314
+ /* "src/lxml/parser.pxi":1317
* # *mlParseChunk() and things go wrong.
* buffer_len = 0
* if char_data is not NULL: # <<<<<<<<<<<<<<
__pyx_t_6 = ((__pyx_v_char_data != NULL) != 0);
if (__pyx_t_6) {
- /* "src/lxml/parser.pxi":1315
+ /* "src/lxml/parser.pxi":1318
* buffer_len = 0
* if char_data is not NULL:
* buffer_len = 4 if py_buffer_len > 4 else <int>py_buffer_len # <<<<<<<<<<<<<<
}
__pyx_v_buffer_len = __pyx_t_10;
- /* "src/lxml/parser.pxi":1314
+ /* "src/lxml/parser.pxi":1317
* # *mlParseChunk() and things go wrong.
* buffer_len = 0
* if char_data is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1316
+ /* "src/lxml/parser.pxi":1319
* if char_data is not NULL:
* buffer_len = 4 if py_buffer_len > 4 else <int>py_buffer_len
* orig_loader = _register_document_loader() # <<<<<<<<<<<<<<
*/
__pyx_v_orig_loader = __pyx_f_4lxml_5etree__register_document_loader();
- /* "src/lxml/parser.pxi":1317
+ /* "src/lxml/parser.pxi":1320
* buffer_len = 4 if py_buffer_len > 4 else <int>py_buffer_len
* orig_loader = _register_document_loader()
* if self._for_html: # <<<<<<<<<<<<<<
__pyx_t_6 = (__pyx_v_self->__pyx_base._for_html != 0);
if (__pyx_t_6) {
- /* "src/lxml/parser.pxi":1318
+ /* "src/lxml/parser.pxi":1321
* orig_loader = _register_document_loader()
* if self._for_html:
* error = _htmlCtxtResetPush( # <<<<<<<<<<<<<<
* pctxt, char_data, buffer_len, c_filename, c_encoding,
* self._parse_options)
*/
- __pyx_t_10 = __pyx_f_4lxml_5etree__htmlCtxtResetPush(__pyx_v_pctxt, __pyx_v_char_data, __pyx_v_buffer_len, __pyx_v_c_filename, __pyx_v_c_encoding, __pyx_v_self->__pyx_base._parse_options); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(2, 1318, __pyx_L1_error)
+ __pyx_t_10 = __pyx_f_4lxml_5etree__htmlCtxtResetPush(__pyx_v_pctxt, __pyx_v_char_data, __pyx_v_buffer_len, __pyx_v_c_filename, __pyx_v_c_encoding, __pyx_v_self->__pyx_base._parse_options); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(2, 1321, __pyx_L1_error)
__pyx_v_error = __pyx_t_10;
- /* "src/lxml/parser.pxi":1317
+ /* "src/lxml/parser.pxi":1320
* buffer_len = 4 if py_buffer_len > 4 else <int>py_buffer_len
* orig_loader = _register_document_loader()
* if self._for_html: # <<<<<<<<<<<<<<
goto __pyx_L7;
}
- /* "src/lxml/parser.pxi":1322
+ /* "src/lxml/parser.pxi":1325
* self._parse_options)
* else:
* xmlparser.xmlCtxtUseOptions(pctxt, self._parse_options) # <<<<<<<<<<<<<<
/*else*/ {
(void)(xmlCtxtUseOptions(__pyx_v_pctxt, __pyx_v_self->__pyx_base._parse_options));
- /* "src/lxml/parser.pxi":1323
+ /* "src/lxml/parser.pxi":1326
* else:
* xmlparser.xmlCtxtUseOptions(pctxt, self._parse_options)
* error = xmlparser.xmlCtxtResetPush( # <<<<<<<<<<<<<<
}
__pyx_L7:;
- /* "src/lxml/parser.pxi":1325
+ /* "src/lxml/parser.pxi":1328
* error = xmlparser.xmlCtxtResetPush(
* pctxt, char_data, buffer_len, c_filename, c_encoding)
* _reset_document_loader(orig_loader) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree__reset_document_loader(__pyx_v_orig_loader);
- /* "src/lxml/parser.pxi":1326
+ /* "src/lxml/parser.pxi":1329
* pctxt, char_data, buffer_len, c_filename, c_encoding)
* _reset_document_loader(orig_loader)
* py_buffer_len -= buffer_len # <<<<<<<<<<<<<<
*/
__pyx_v_py_buffer_len = (__pyx_v_py_buffer_len - __pyx_v_buffer_len);
- /* "src/lxml/parser.pxi":1327
+ /* "src/lxml/parser.pxi":1330
* _reset_document_loader(orig_loader)
* py_buffer_len -= buffer_len
* char_data += buffer_len # <<<<<<<<<<<<<<
*/
__pyx_v_char_data = (__pyx_v_char_data + __pyx_v_buffer_len);
- /* "src/lxml/parser.pxi":1328
+ /* "src/lxml/parser.pxi":1331
* py_buffer_len -= buffer_len
* char_data += buffer_len
* if error: # <<<<<<<<<<<<<<
__pyx_t_6 = (__pyx_v_error != 0);
if (unlikely(__pyx_t_6)) {
- /* "src/lxml/parser.pxi":1329
+ /* "src/lxml/parser.pxi":1332
* char_data += buffer_len
* if error:
* raise MemoryError() # <<<<<<<<<<<<<<
* __GLOBAL_PARSER_CONTEXT.initParserDict(pctxt)
*
*/
- PyErr_NoMemory(); __PYX_ERR(2, 1329, __pyx_L1_error)
+ PyErr_NoMemory(); __PYX_ERR(2, 1332, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1328
+ /* "src/lxml/parser.pxi":1331
* py_buffer_len -= buffer_len
* char_data += buffer_len
* if error: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1330
+ /* "src/lxml/parser.pxi":1333
* if error:
* raise MemoryError()
* __GLOBAL_PARSER_CONTEXT.initParserDict(pctxt) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree_24_ParserDictionaryContext_initParserDict(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT, __pyx_v_pctxt);
- /* "src/lxml/parser.pxi":1303
+ /* "src/lxml/parser.pxi":1306
* pctxt = context._c_ctxt
* error = 0
* if not self._feed_parser_running: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1334
+ /* "src/lxml/parser.pxi":1337
* #print pctxt.charset, 'NONE' if c_encoding is NULL else c_encoding
*
* fixup_error = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_fixup_error = 0;
- /* "src/lxml/parser.pxi":1335
+ /* "src/lxml/parser.pxi":1338
*
* fixup_error = 0
* while py_buffer_len > 0 and (error == 0 or recover): # <<<<<<<<<<<<<<
__pyx_L11_bool_binop_done:;
if (!__pyx_t_6) break;
- /* "src/lxml/parser.pxi":1336
+ /* "src/lxml/parser.pxi":1339
* fixup_error = 0
* while py_buffer_len > 0 and (error == 0 or recover):
* if char_data is NULL: # <<<<<<<<<<<<<<
__pyx_t_6 = ((__pyx_v_char_data == NULL) != 0);
if (__pyx_t_6) {
- /* "src/lxml/parser.pxi":1338
+ /* "src/lxml/parser.pxi":1341
* if char_data is NULL:
* # Unicode parsing by converting chunks to UTF-8
* buffer_len = 2**19 # len(bytes) <= 4 * (2**19) == 2 MiB # <<<<<<<<<<<<<<
*/
__pyx_v_buffer_len = 0x80000;
- /* "src/lxml/parser.pxi":1339
+ /* "src/lxml/parser.pxi":1342
* # Unicode parsing by converting chunks to UTF-8
* buffer_len = 2**19 # len(bytes) <= 4 * (2**19) == 2 MiB
* bstring = (<unicode> data)[ustart : ustart+buffer_len].encode('UTF-8') # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_v_data == Py_None)) {
PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
- __PYX_ERR(2, 1339, __pyx_L1_error)
+ __PYX_ERR(2, 1342, __pyx_L1_error)
}
- __pyx_t_1 = __Pyx_PyUnicode_Substring(((PyObject*)__pyx_v_data), __pyx_v_ustart, (__pyx_v_ustart + __pyx_v_buffer_len)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1339, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyUnicode_Substring(((PyObject*)__pyx_v_data), __pyx_v_ustart, (__pyx_v_ustart + __pyx_v_buffer_len)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1342, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_2 = PyUnicode_AsUTF8String(((PyObject*)__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1339, __pyx_L1_error)
+ __pyx_t_2 = PyUnicode_AsUTF8String(((PyObject*)__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1342, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_XDECREF_SET(__pyx_v_bstring, ((PyObject*)__pyx_t_2));
__pyx_t_2 = 0;
- /* "src/lxml/parser.pxi":1340
+ /* "src/lxml/parser.pxi":1343
* buffer_len = 2**19 # len(bytes) <= 4 * (2**19) == 2 MiB
* bstring = (<unicode> data)[ustart : ustart+buffer_len].encode('UTF-8')
* ustart += buffer_len # <<<<<<<<<<<<<<
*/
__pyx_v_ustart = (__pyx_v_ustart + __pyx_v_buffer_len);
- /* "src/lxml/parser.pxi":1341
+ /* "src/lxml/parser.pxi":1344
* bstring = (<unicode> data)[ustart : ustart+buffer_len].encode('UTF-8')
* ustart += buffer_len
* py_buffer_len -= buffer_len # may end up < 0 # <<<<<<<<<<<<<<
*/
__pyx_v_py_buffer_len = (__pyx_v_py_buffer_len - __pyx_v_buffer_len);
- /* "src/lxml/parser.pxi":1342
+ /* "src/lxml/parser.pxi":1345
* ustart += buffer_len
* py_buffer_len -= buffer_len # may end up < 0
* error, fixup_error = _parse_data_chunk(pctxt, <const char*> bstring, <int> len(bstring)) # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_v_bstring == Py_None)) {
PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
- __PYX_ERR(2, 1342, __pyx_L1_error)
+ __PYX_ERR(2, 1345, __pyx_L1_error)
}
- __pyx_t_13 = __Pyx_PyBytes_AsString(__pyx_v_bstring); if (unlikely((!__pyx_t_13) && PyErr_Occurred())) __PYX_ERR(2, 1342, __pyx_L1_error)
+ __pyx_t_13 = __Pyx_PyBytes_AsString(__pyx_v_bstring); if (unlikely((!__pyx_t_13) && PyErr_Occurred())) __PYX_ERR(2, 1345, __pyx_L1_error)
if (unlikely(__pyx_v_bstring == Py_None)) {
PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
- __PYX_ERR(2, 1342, __pyx_L1_error)
+ __PYX_ERR(2, 1345, __pyx_L1_error)
}
- __pyx_t_8 = PyBytes_GET_SIZE(__pyx_v_bstring); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(2, 1342, __pyx_L1_error)
+ __pyx_t_8 = PyBytes_GET_SIZE(__pyx_v_bstring); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(2, 1345, __pyx_L1_error)
__pyx_t_14 = __pyx_f_4lxml_5etree__parse_data_chunk(__pyx_v_pctxt, ((char const *)__pyx_t_13), ((int)__pyx_t_8));
__pyx_t_10 = __pyx_t_14.f0;
__pyx_t_15 = __pyx_t_14.f1;
__pyx_v_error = __pyx_t_10;
__pyx_v_fixup_error = __pyx_t_15;
- /* "src/lxml/parser.pxi":1336
+ /* "src/lxml/parser.pxi":1339
* fixup_error = 0
* while py_buffer_len > 0 and (error == 0 or recover):
* if char_data is NULL: # <<<<<<<<<<<<<<
goto __pyx_L14;
}
- /* "src/lxml/parser.pxi":1345
+ /* "src/lxml/parser.pxi":1348
* else:
* # Direct byte string parsing.
* buffer_len = <int>py_buffer_len if py_buffer_len <= limits.INT_MAX else limits.INT_MAX # <<<<<<<<<<<<<<
}
__pyx_v_buffer_len = __pyx_t_15;
- /* "src/lxml/parser.pxi":1346
+ /* "src/lxml/parser.pxi":1349
* # Direct byte string parsing.
* buffer_len = <int>py_buffer_len if py_buffer_len <= limits.INT_MAX else limits.INT_MAX
* error, fixup_error = _parse_data_chunk(pctxt, char_data, buffer_len) # <<<<<<<<<<<<<<
__pyx_v_error = __pyx_t_15;
__pyx_v_fixup_error = __pyx_t_10;
- /* "src/lxml/parser.pxi":1347
+ /* "src/lxml/parser.pxi":1350
* buffer_len = <int>py_buffer_len if py_buffer_len <= limits.INT_MAX else limits.INT_MAX
* error, fixup_error = _parse_data_chunk(pctxt, char_data, buffer_len)
* py_buffer_len -= buffer_len # <<<<<<<<<<<<<<
*/
__pyx_v_py_buffer_len = (__pyx_v_py_buffer_len - __pyx_v_buffer_len);
- /* "src/lxml/parser.pxi":1348
+ /* "src/lxml/parser.pxi":1351
* error, fixup_error = _parse_data_chunk(pctxt, char_data, buffer_len)
* py_buffer_len -= buffer_len
* char_data += buffer_len # <<<<<<<<<<<<<<
}
__pyx_L14:;
- /* "src/lxml/parser.pxi":1350
+ /* "src/lxml/parser.pxi":1353
* char_data += buffer_len
*
* if fixup_error: # <<<<<<<<<<<<<<
__pyx_t_6 = (__pyx_v_fixup_error != 0);
if (__pyx_t_6) {
- /* "src/lxml/parser.pxi":1351
+ /* "src/lxml/parser.pxi":1354
*
* if fixup_error:
* context.store_exception(MemoryError()) # <<<<<<<<<<<<<<
*
* if context._has_raised():
*/
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_context), __pyx_n_s_store_exception); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1351, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_context), __pyx_n_s_store_exception); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1354, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_builtin_MemoryError); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1351, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_builtin_MemoryError); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1354, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
__pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_4, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3);
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1351, __pyx_L1_error)
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1354, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "src/lxml/parser.pxi":1350
+ /* "src/lxml/parser.pxi":1353
* char_data += buffer_len
*
* if fixup_error: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1353
+ /* "src/lxml/parser.pxi":1356
* context.store_exception(MemoryError())
*
* if context._has_raised(): # <<<<<<<<<<<<<<
* # propagate Python exceptions immediately
* recover = 0
*/
- __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base._has_raised(((struct __pyx_obj_4lxml_5etree__ExceptionContext *)__pyx_v_context)); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(2, 1353, __pyx_L1_error)
+ __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base._has_raised(((struct __pyx_obj_4lxml_5etree__ExceptionContext *)__pyx_v_context)); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(2, 1356, __pyx_L1_error)
__pyx_t_5 = (__pyx_t_6 != 0);
if (__pyx_t_5) {
- /* "src/lxml/parser.pxi":1355
+ /* "src/lxml/parser.pxi":1358
* if context._has_raised():
* # propagate Python exceptions immediately
* recover = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_recover = 0;
- /* "src/lxml/parser.pxi":1356
+ /* "src/lxml/parser.pxi":1359
* # propagate Python exceptions immediately
* recover = 0
* error = 1 # <<<<<<<<<<<<<<
*/
__pyx_v_error = 1;
- /* "src/lxml/parser.pxi":1357
+ /* "src/lxml/parser.pxi":1360
* recover = 0
* error = 1
* break # <<<<<<<<<<<<<<
*/
goto __pyx_L10_break;
- /* "src/lxml/parser.pxi":1353
+ /* "src/lxml/parser.pxi":1356
* context.store_exception(MemoryError())
*
* if context._has_raised(): # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1359
+ /* "src/lxml/parser.pxi":1362
* break
*
* if error and not pctxt.replaceEntities and not pctxt.validate: # <<<<<<<<<<<<<<
__pyx_L18_bool_binop_done:;
if (__pyx_t_5) {
- /* "src/lxml/parser.pxi":1361
+ /* "src/lxml/parser.pxi":1364
* if error and not pctxt.replaceEntities and not pctxt.validate:
* # in this mode, we ignore errors about undefined entities
* for entry in context._error_log.filter_from_errors(): # <<<<<<<<<<<<<<
* if entry.type != ErrorTypes.WAR_UNDECLARED_ENTITY and \
* entry.type != ErrorTypes.ERR_UNDECLARED_ENTITY:
*/
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_context->_error_log), __pyx_n_s_filter_from_errors); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1361, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_context->_error_log), __pyx_n_s_filter_from_errors); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1364, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_3 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
}
__pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_1);
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
- if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1361, __pyx_L1_error)
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1364, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) {
__pyx_t_1 = __pyx_t_2; __Pyx_INCREF(__pyx_t_1); __pyx_t_8 = 0;
__pyx_t_16 = NULL;
} else {
- __pyx_t_8 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1361, __pyx_L1_error)
+ __pyx_t_8 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1364, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_16 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 1361, __pyx_L1_error)
+ __pyx_t_16 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_16)) __PYX_ERR(2, 1364, __pyx_L1_error)
}
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
for (;;) {
if (likely(PyList_CheckExact(__pyx_t_1))) {
if (__pyx_t_8 >= PyList_GET_SIZE(__pyx_t_1)) break;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
- __pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_8); __Pyx_INCREF(__pyx_t_2); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(2, 1361, __pyx_L1_error)
+ __pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_8); __Pyx_INCREF(__pyx_t_2); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(2, 1364, __pyx_L1_error)
#else
- __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1361, __pyx_L1_error)
+ __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1364, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
#endif
} else {
if (__pyx_t_8 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
- __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_8); __Pyx_INCREF(__pyx_t_2); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(2, 1361, __pyx_L1_error)
+ __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_8); __Pyx_INCREF(__pyx_t_2); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(2, 1364, __pyx_L1_error)
#else
- __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1361, __pyx_L1_error)
+ __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1364, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
#endif
}
PyObject* exc_type = PyErr_Occurred();
if (exc_type) {
if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
- else __PYX_ERR(2, 1361, __pyx_L1_error)
+ else __PYX_ERR(2, 1364, __pyx_L1_error)
}
break;
}
__Pyx_XDECREF_SET(__pyx_v_entry, __pyx_t_2);
__pyx_t_2 = 0;
- /* "src/lxml/parser.pxi":1362
+ /* "src/lxml/parser.pxi":1365
* # in this mode, we ignore errors about undefined entities
* for entry in context._error_log.filter_from_errors():
* if entry.type != ErrorTypes.WAR_UNDECLARED_ENTITY and \ # <<<<<<<<<<<<<<
* entry.type != ErrorTypes.ERR_UNDECLARED_ENTITY:
* break
*/
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_entry, __pyx_n_s_type); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1362, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_entry, __pyx_n_s_type); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1365, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_ErrorTypes); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1362, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_ErrorTypes); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1365, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_WAR_UNDECLARED_ENTITY); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1362, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_WAR_UNDECLARED_ENTITY); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1365, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- __pyx_t_3 = PyObject_RichCompare(__pyx_t_2, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1362, __pyx_L1_error)
+ __pyx_t_3 = PyObject_RichCompare(__pyx_t_2, __pyx_t_4, Py_NE); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1365, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 1362, __pyx_L1_error)
+ __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 1365, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_6) {
} else {
goto __pyx_L24_bool_binop_done;
}
- /* "src/lxml/parser.pxi":1363
+ /* "src/lxml/parser.pxi":1366
* for entry in context._error_log.filter_from_errors():
* if entry.type != ErrorTypes.WAR_UNDECLARED_ENTITY and \
* entry.type != ErrorTypes.ERR_UNDECLARED_ENTITY: # <<<<<<<<<<<<<<
* break
* else:
*/
- __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_entry, __pyx_n_s_type); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1363, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_entry, __pyx_n_s_type); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1366, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_ErrorTypes); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1363, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_ErrorTypes); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1366, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_ERR_UNDECLARED_ENTITY); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1363, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_ERR_UNDECLARED_ENTITY); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1366, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- __pyx_t_4 = PyObject_RichCompare(__pyx_t_3, __pyx_t_2, Py_NE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1363, __pyx_L1_error)
+ __pyx_t_4 = PyObject_RichCompare(__pyx_t_3, __pyx_t_2, Py_NE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1366, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 1363, __pyx_L1_error)
+ __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 1366, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_5 = __pyx_t_6;
__pyx_L24_bool_binop_done:;
- /* "src/lxml/parser.pxi":1362
+ /* "src/lxml/parser.pxi":1365
* # in this mode, we ignore errors about undefined entities
* for entry in context._error_log.filter_from_errors():
* if entry.type != ErrorTypes.WAR_UNDECLARED_ENTITY and \ # <<<<<<<<<<<<<<
*/
if (__pyx_t_5) {
- /* "src/lxml/parser.pxi":1364
+ /* "src/lxml/parser.pxi":1367
* if entry.type != ErrorTypes.WAR_UNDECLARED_ENTITY and \
* entry.type != ErrorTypes.ERR_UNDECLARED_ENTITY:
* break # <<<<<<<<<<<<<<
*/
goto __pyx_L22_break;
- /* "src/lxml/parser.pxi":1362
+ /* "src/lxml/parser.pxi":1365
* # in this mode, we ignore errors about undefined entities
* for entry in context._error_log.filter_from_errors():
* if entry.type != ErrorTypes.WAR_UNDECLARED_ENTITY and \ # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1361
+ /* "src/lxml/parser.pxi":1364
* if error and not pctxt.replaceEntities and not pctxt.validate:
* # in this mode, we ignore errors about undefined entities
* for entry in context._error_log.filter_from_errors(): # <<<<<<<<<<<<<<
}
/*else*/ {
- /* "src/lxml/parser.pxi":1366
+ /* "src/lxml/parser.pxi":1369
* break
* else:
* error = 0 # <<<<<<<<<<<<<<
__pyx_v_error = 0;
}
- /* "src/lxml/parser.pxi":1361
+ /* "src/lxml/parser.pxi":1364
* if error and not pctxt.replaceEntities and not pctxt.validate:
* # in this mode, we ignore errors about undefined entities
* for entry in context._error_log.filter_from_errors(): # <<<<<<<<<<<<<<
__pyx_L22_break:;
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "src/lxml/parser.pxi":1359
+ /* "src/lxml/parser.pxi":1362
* break
*
* if error and not pctxt.replaceEntities and not pctxt.validate: # <<<<<<<<<<<<<<
}
__pyx_L10_break:;
- /* "src/lxml/parser.pxi":1368
+ /* "src/lxml/parser.pxi":1371
* error = 0
*
* if not pctxt.wellFormed and pctxt.disableSAX and context._has_raised(): # <<<<<<<<<<<<<<
if (__pyx_t_6) {
} else {
__pyx_t_5 = __pyx_t_6;
- goto __pyx_L28_bool_binop_done;
+ goto __pyx_L29_bool_binop_done;
}
__pyx_t_6 = (__pyx_v_pctxt->disableSAX != 0);
if (__pyx_t_6) {
} else {
__pyx_t_5 = __pyx_t_6;
- goto __pyx_L28_bool_binop_done;
+ goto __pyx_L29_bool_binop_done;
}
- __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base._has_raised(((struct __pyx_obj_4lxml_5etree__ExceptionContext *)__pyx_v_context)); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(2, 1368, __pyx_L1_error)
+ __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base._has_raised(((struct __pyx_obj_4lxml_5etree__ExceptionContext *)__pyx_v_context)); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(2, 1371, __pyx_L1_error)
__pyx_t_17 = (__pyx_t_6 != 0);
__pyx_t_5 = __pyx_t_17;
- __pyx_L28_bool_binop_done:;
+ __pyx_L29_bool_binop_done:;
if (__pyx_t_5) {
- /* "src/lxml/parser.pxi":1370
+ /* "src/lxml/parser.pxi":1373
* if not pctxt.wellFormed and pctxt.disableSAX and context._has_raised():
* # propagate Python exceptions immediately
* recover = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_recover = 0;
- /* "src/lxml/parser.pxi":1371
+ /* "src/lxml/parser.pxi":1374
* # propagate Python exceptions immediately
* recover = 0
* error = 1 # <<<<<<<<<<<<<<
*/
__pyx_v_error = 1;
- /* "src/lxml/parser.pxi":1368
+ /* "src/lxml/parser.pxi":1371
* error = 0
*
* if not pctxt.wellFormed and pctxt.disableSAX and context._has_raised(): # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1373
+ /* "src/lxml/parser.pxi":1376
* error = 1
*
* if fixup_error or not recover and (error or not pctxt.wellFormed): # <<<<<<<<<<<<<<
if (!__pyx_t_17) {
} else {
__pyx_t_5 = __pyx_t_17;
- goto __pyx_L32_bool_binop_done;
+ goto __pyx_L33_bool_binop_done;
}
__pyx_t_17 = ((!(__pyx_v_recover != 0)) != 0);
if (__pyx_t_17) {
} else {
__pyx_t_5 = __pyx_t_17;
- goto __pyx_L32_bool_binop_done;
+ goto __pyx_L33_bool_binop_done;
}
__pyx_t_17 = (__pyx_v_error != 0);
if (!__pyx_t_17) {
} else {
__pyx_t_5 = __pyx_t_17;
- goto __pyx_L32_bool_binop_done;
+ goto __pyx_L33_bool_binop_done;
}
__pyx_t_17 = ((!(__pyx_v_pctxt->wellFormed != 0)) != 0);
__pyx_t_5 = __pyx_t_17;
- __pyx_L32_bool_binop_done:;
+ __pyx_L33_bool_binop_done:;
if (__pyx_t_5) {
- /* "src/lxml/parser.pxi":1374
+ /* "src/lxml/parser.pxi":1377
*
* if fixup_error or not recover and (error or not pctxt.wellFormed):
* self._feed_parser_running = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_self->_feed_parser_running = 0;
- /* "src/lxml/parser.pxi":1375
+ /* "src/lxml/parser.pxi":1378
* if fixup_error or not recover and (error or not pctxt.wellFormed):
* self._feed_parser_running = 0
* try: # <<<<<<<<<<<<<<
*/
/*try:*/ {
- /* "src/lxml/parser.pxi":1376
+ /* "src/lxml/parser.pxi":1379
* self._feed_parser_running = 0
* try:
* context._handleParseResult(self, pctxt.myDoc, None) # <<<<<<<<<<<<<<
* finally:
* context.cleanup()
*/
- __pyx_t_1 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->_handleParseResult(__pyx_v_context, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self), __pyx_v_pctxt->myDoc, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1376, __pyx_L37_error)
+ __pyx_t_1 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->_handleParseResult(__pyx_v_context, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self), __pyx_v_pctxt->myDoc, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1379, __pyx_L38_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
}
- /* "src/lxml/parser.pxi":1378
+ /* "src/lxml/parser.pxi":1381
* context._handleParseResult(self, pctxt.myDoc, None)
* finally:
* context.cleanup() # <<<<<<<<<<<<<<
*/
/*finally:*/ {
/*normal exit:*/{
- __pyx_t_10 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->cleanup(__pyx_v_context); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(2, 1378, __pyx_L1_error)
- goto __pyx_L38;
+ __pyx_t_10 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->cleanup(__pyx_v_context); if (unlikely(__pyx_t_10 == ((int)-1))) __PYX_ERR(2, 1381, __pyx_L1_error)
+ goto __pyx_L39;
}
- __pyx_L37_error:;
+ __pyx_L38_error:;
/*exception exit:*/{
__Pyx_PyThreadState_declare
__Pyx_PyThreadState_assign
__Pyx_XGOTREF(__pyx_t_24);
__pyx_t_10 = __pyx_lineno; __pyx_t_15 = __pyx_clineno; __pyx_t_18 = __pyx_filename;
{
- __pyx_t_25 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->cleanup(__pyx_v_context); if (unlikely(__pyx_t_25 == ((int)-1))) __PYX_ERR(2, 1378, __pyx_L40_error)
+ __pyx_t_25 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->cleanup(__pyx_v_context); if (unlikely(__pyx_t_25 == ((int)-1))) __PYX_ERR(2, 1381, __pyx_L41_error)
}
if (PY_MAJOR_VERSION >= 3) {
__Pyx_XGIVEREF(__pyx_t_22);
__pyx_t_19 = 0; __pyx_t_20 = 0; __pyx_t_21 = 0; __pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0;
__pyx_lineno = __pyx_t_10; __pyx_clineno = __pyx_t_15; __pyx_filename = __pyx_t_18;
goto __pyx_L1_error;
- __pyx_L40_error:;
+ __pyx_L41_error:;
if (PY_MAJOR_VERSION >= 3) {
__Pyx_XGIVEREF(__pyx_t_22);
__Pyx_XGIVEREF(__pyx_t_23);
__pyx_t_22 = 0; __pyx_t_23 = 0; __pyx_t_24 = 0;
goto __pyx_L1_error;
}
- __pyx_L38:;
+ __pyx_L39:;
}
- /* "src/lxml/parser.pxi":1373
+ /* "src/lxml/parser.pxi":1376
* error = 1
*
* if fixup_error or not recover and (error or not pctxt.wellFormed): # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1256
+ /* "src/lxml/parser.pxi":1259
* return self._getPushParserContext()._error_log.copy()
*
* cpdef feed(self, data): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("feed", 0);
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __pyx_f_4lxml_5etree_11_FeedParser_feed(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1256, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_11_FeedParser_feed(__pyx_v_self, __pyx_v_data, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1259, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1380
+/* "src/lxml/parser.pxi":1383
* context.cleanup()
*
* cpdef close(self): # <<<<<<<<<<<<<<
if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
#endif
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_close); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1380, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_close); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1383, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_4lxml_5etree_11_FeedParser_3close)) {
__Pyx_XDECREF(__pyx_r);
}
__pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
- if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1380, __pyx_L1_error)
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1383, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_r = __pyx_t_2;
#endif
}
- /* "src/lxml/parser.pxi":1391
+ /* "src/lxml/parser.pxi":1394
* parser interface, all other usage is undefined.
* """
* if not self._feed_parser_running: # <<<<<<<<<<<<<<
__pyx_t_5 = ((!(__pyx_v_self->_feed_parser_running != 0)) != 0);
if (unlikely(__pyx_t_5)) {
- /* "src/lxml/parser.pxi":1392
+ /* "src/lxml/parser.pxi":1395
* """
* if not self._feed_parser_running:
* raise XMLSyntaxError(u"no element found", # <<<<<<<<<<<<<<
* xmlerror.XML_ERR_INTERNAL_ERROR, 0, 0,
* self._filename)
*/
- __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_XMLSyntaxError); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1392, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_XMLSyntaxError); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1395, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- /* "src/lxml/parser.pxi":1393
+ /* "src/lxml/parser.pxi":1396
* if not self._feed_parser_running:
* raise XMLSyntaxError(u"no element found",
* xmlerror.XML_ERR_INTERNAL_ERROR, 0, 0, # <<<<<<<<<<<<<<
* self._filename)
*
*/
- __pyx_t_3 = __Pyx_PyInt_From_xmlParserErrors(XML_ERR_INTERNAL_ERROR); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1393, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyInt_From_xmlParserErrors(XML_ERR_INTERNAL_ERROR); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1396, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- /* "src/lxml/parser.pxi":1394
+ /* "src/lxml/parser.pxi":1397
* raise XMLSyntaxError(u"no element found",
* xmlerror.XML_ERR_INTERNAL_ERROR, 0, 0,
* self._filename) # <<<<<<<<<<<<<<
#if CYTHON_FAST_PYCALL
if (PyFunction_Check(__pyx_t_2)) {
PyObject *__pyx_temp[6] = {__pyx_t_4, __pyx_kp_u_no_element_found, __pyx_t_3, __pyx_int_0, __pyx_int_0, __pyx_v_self->__pyx_base._filename};
- __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 5+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1392, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 5+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1395, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
#if CYTHON_FAST_PYCCALL
if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
PyObject *__pyx_temp[6] = {__pyx_t_4, __pyx_kp_u_no_element_found, __pyx_t_3, __pyx_int_0, __pyx_int_0, __pyx_v_self->__pyx_base._filename};
- __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 5+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1392, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 5+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1395, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
} else
#endif
{
- __pyx_t_7 = PyTuple_New(5+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 1392, __pyx_L1_error)
+ __pyx_t_7 = PyTuple_New(5+__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 1395, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
if (__pyx_t_4) {
__Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL;
__Pyx_GIVEREF(__pyx_v_self->__pyx_base._filename);
PyTuple_SET_ITEM(__pyx_t_7, 4+__pyx_t_6, __pyx_v_self->__pyx_base._filename);
__pyx_t_3 = 0;
- __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1392, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1395, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
}
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_Raise(__pyx_t_1, 0, 0, 0);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __PYX_ERR(2, 1392, __pyx_L1_error)
+ __PYX_ERR(2, 1395, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1391
+ /* "src/lxml/parser.pxi":1394
* parser interface, all other usage is undefined.
* """
* if not self._feed_parser_running: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1396
+ /* "src/lxml/parser.pxi":1399
* self._filename)
*
* context = self._getPushParserContext() # <<<<<<<<<<<<<<
* pctxt = context._c_ctxt
*
*/
- __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree__FeedParser *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base._getPushParserContext(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self))); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1396, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree__FeedParser *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base._getPushParserContext(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self))); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1399, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_v_context = ((struct __pyx_obj_4lxml_5etree__ParserContext *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/parser.pxi":1397
+ /* "src/lxml/parser.pxi":1400
*
* context = self._getPushParserContext()
* pctxt = context._c_ctxt # <<<<<<<<<<<<<<
__pyx_t_8 = __pyx_v_context->_c_ctxt;
__pyx_v_pctxt = __pyx_t_8;
- /* "src/lxml/parser.pxi":1399
+ /* "src/lxml/parser.pxi":1402
* pctxt = context._c_ctxt
*
* self._feed_parser_running = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_self->_feed_parser_running = 0;
- /* "src/lxml/parser.pxi":1400
+ /* "src/lxml/parser.pxi":1403
*
* self._feed_parser_running = 0
* if self._for_html: # <<<<<<<<<<<<<<
__pyx_t_5 = (__pyx_v_self->__pyx_base._for_html != 0);
if (__pyx_t_5) {
- /* "src/lxml/parser.pxi":1401
+ /* "src/lxml/parser.pxi":1404
* self._feed_parser_running = 0
* if self._for_html:
* htmlparser.htmlParseChunk(pctxt, NULL, 0, 1) # <<<<<<<<<<<<<<
*/
(void)(htmlParseChunk(__pyx_v_pctxt, NULL, 0, 1));
- /* "src/lxml/parser.pxi":1400
+ /* "src/lxml/parser.pxi":1403
*
* self._feed_parser_running = 0
* if self._for_html: # <<<<<<<<<<<<<<
goto __pyx_L4;
}
- /* "src/lxml/parser.pxi":1403
+ /* "src/lxml/parser.pxi":1406
* htmlparser.htmlParseChunk(pctxt, NULL, 0, 1)
* else:
* xmlparser.xmlParseChunk(pctxt, NULL, 0, 1) # <<<<<<<<<<<<<<
}
__pyx_L4:;
- /* "src/lxml/parser.pxi":1405
+ /* "src/lxml/parser.pxi":1408
* xmlparser.xmlParseChunk(pctxt, NULL, 0, 1)
*
* if (pctxt.recovery and not pctxt.disableSAX and # <<<<<<<<<<<<<<
goto __pyx_L6_bool_binop_done;
}
- /* "src/lxml/parser.pxi":1406
+ /* "src/lxml/parser.pxi":1409
*
* if (pctxt.recovery and not pctxt.disableSAX and
* isinstance(context, _SaxParserContext)): # <<<<<<<<<<<<<<
__pyx_t_5 = __pyx_t_10;
__pyx_L6_bool_binop_done:;
- /* "src/lxml/parser.pxi":1405
+ /* "src/lxml/parser.pxi":1408
* xmlparser.xmlParseChunk(pctxt, NULL, 0, 1)
*
* if (pctxt.recovery and not pctxt.disableSAX and # <<<<<<<<<<<<<<
*/
if (__pyx_t_5) {
- /* "src/lxml/parser.pxi":1408
+ /* "src/lxml/parser.pxi":1411
* isinstance(context, _SaxParserContext)):
* # apply any left-over 'end' events
* (<_SaxParserContext>context).flushEvents() # <<<<<<<<<<<<<<
*
* try:
*/
- __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__SaxParserContext *)((struct __pyx_obj_4lxml_5etree__SaxParserContext *)__pyx_v_context)->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->flushEvents(((struct __pyx_obj_4lxml_5etree__SaxParserContext *)__pyx_v_context)); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(2, 1408, __pyx_L1_error)
+ __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__SaxParserContext *)((struct __pyx_obj_4lxml_5etree__SaxParserContext *)__pyx_v_context)->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->flushEvents(((struct __pyx_obj_4lxml_5etree__SaxParserContext *)__pyx_v_context)); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(2, 1411, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1405
+ /* "src/lxml/parser.pxi":1408
* xmlparser.xmlParseChunk(pctxt, NULL, 0, 1)
*
* if (pctxt.recovery and not pctxt.disableSAX and # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1410
+ /* "src/lxml/parser.pxi":1413
* (<_SaxParserContext>context).flushEvents()
*
* try: # <<<<<<<<<<<<<<
*/
/*try:*/ {
- /* "src/lxml/parser.pxi":1411
+ /* "src/lxml/parser.pxi":1414
*
* try:
* result = context._handleParseResult(self, pctxt.myDoc, None) # <<<<<<<<<<<<<<
* finally:
* context.cleanup()
*/
- __pyx_t_1 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->_handleParseResult(__pyx_v_context, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self), __pyx_v_pctxt->myDoc, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1411, __pyx_L10_error)
+ __pyx_t_1 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->_handleParseResult(__pyx_v_context, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self), __pyx_v_pctxt->myDoc, Py_None); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1414, __pyx_L10_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_v_result = __pyx_t_1;
__pyx_t_1 = 0;
}
- /* "src/lxml/parser.pxi":1413
+ /* "src/lxml/parser.pxi":1416
* result = context._handleParseResult(self, pctxt.myDoc, None)
* finally:
* context.cleanup() # <<<<<<<<<<<<<<
*/
/*finally:*/ {
/*normal exit:*/{
- __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->cleanup(__pyx_v_context); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(2, 1413, __pyx_L1_error)
+ __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->cleanup(__pyx_v_context); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(2, 1416, __pyx_L1_error)
goto __pyx_L11;
}
__pyx_L10_error:;
__Pyx_XGOTREF(__pyx_t_18);
__pyx_t_6 = __pyx_lineno; __pyx_t_11 = __pyx_clineno; __pyx_t_12 = __pyx_filename;
{
- __pyx_t_19 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->cleanup(__pyx_v_context); if (unlikely(__pyx_t_19 == ((int)-1))) __PYX_ERR(2, 1413, __pyx_L13_error)
+ __pyx_t_19 = ((struct __pyx_vtabstruct_4lxml_5etree__ParserContext *)__pyx_v_context->__pyx_base.__pyx_base.__pyx_vtab)->cleanup(__pyx_v_context); if (unlikely(__pyx_t_19 == ((int)-1))) __PYX_ERR(2, 1416, __pyx_L13_error)
}
if (PY_MAJOR_VERSION >= 3) {
__Pyx_XGIVEREF(__pyx_t_16);
__pyx_L11:;
}
- /* "src/lxml/parser.pxi":1415
+ /* "src/lxml/parser.pxi":1418
* context.cleanup()
*
* if isinstance(result, _Document): # <<<<<<<<<<<<<<
__pyx_t_10 = (__pyx_t_5 != 0);
if (__pyx_t_10) {
- /* "src/lxml/parser.pxi":1416
+ /* "src/lxml/parser.pxi":1419
*
* if isinstance(result, _Document):
* return (<_Document>result).getroot() # <<<<<<<<<<<<<<
* return result
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __pyx_f_4lxml_5etree_9_Document_getroot(((struct LxmlDocument *)__pyx_v_result)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1416, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_9_Document_getroot(((struct LxmlDocument *)__pyx_v_result)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1419, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1415
+ /* "src/lxml/parser.pxi":1418
* context.cleanup()
*
* if isinstance(result, _Document): # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1418
+ /* "src/lxml/parser.pxi":1421
* return (<_Document>result).getroot()
* else:
* return result # <<<<<<<<<<<<<<
goto __pyx_L0;
}
- /* "src/lxml/parser.pxi":1380
+ /* "src/lxml/parser.pxi":1383
* context.cleanup()
*
* cpdef close(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("close", 0);
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __pyx_f_4lxml_5etree_11_FeedParser_close(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1380, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_11_FeedParser_close(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1383, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1421
+/* "src/lxml/parser.pxi":1424
*
*
* cdef (int, int) _parse_data_chunk(xmlparser.xmlParserCtxt* c_ctxt, # <<<<<<<<<<<<<<
__pyx_ctuple_int__and_int __pyx_t_5;
__Pyx_RefNannySetupContext("_parse_data_chunk", 0);
- /* "src/lxml/parser.pxi":1423
+ /* "src/lxml/parser.pxi":1426
* cdef (int, int) _parse_data_chunk(xmlparser.xmlParserCtxt* c_ctxt,
* const char* char_data, int buffer_len):
* fixup_error = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_fixup_error = 0;
- /* "src/lxml/parser.pxi":1424
+ /* "src/lxml/parser.pxi":1427
* const char* char_data, int buffer_len):
* fixup_error = 0
* with nogil: # <<<<<<<<<<<<<<
#endif
/*try:*/ {
- /* "src/lxml/parser.pxi":1425
+ /* "src/lxml/parser.pxi":1428
* fixup_error = 0
* with nogil:
* if c_ctxt.html: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_v_c_ctxt->html != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":1426
+ /* "src/lxml/parser.pxi":1429
* with nogil:
* if c_ctxt.html:
* c_node = c_ctxt.node # last node where the parser stopped # <<<<<<<<<<<<<<
__pyx_t_2 = __pyx_v_c_ctxt->node;
__pyx_v_c_node = __pyx_t_2;
- /* "src/lxml/parser.pxi":1427
+ /* "src/lxml/parser.pxi":1430
* if c_ctxt.html:
* c_node = c_ctxt.node # last node where the parser stopped
* orig_loader = _register_document_loader() # <<<<<<<<<<<<<<
*/
__pyx_v_orig_loader = __pyx_f_4lxml_5etree__register_document_loader();
- /* "src/lxml/parser.pxi":1428
+ /* "src/lxml/parser.pxi":1431
* c_node = c_ctxt.node # last node where the parser stopped
* orig_loader = _register_document_loader()
* error = htmlparser.htmlParseChunk(c_ctxt, char_data, buffer_len, 0) # <<<<<<<<<<<<<<
*/
__pyx_v_error = htmlParseChunk(__pyx_v_c_ctxt, __pyx_v_char_data, __pyx_v_buffer_len, 0);
- /* "src/lxml/parser.pxi":1429
+ /* "src/lxml/parser.pxi":1432
* orig_loader = _register_document_loader()
* error = htmlparser.htmlParseChunk(c_ctxt, char_data, buffer_len, 0)
* _reset_document_loader(orig_loader) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree__reset_document_loader(__pyx_v_orig_loader);
- /* "src/lxml/parser.pxi":1431
+ /* "src/lxml/parser.pxi":1434
* _reset_document_loader(orig_loader)
* # and now for the fun part: move node names to the dict
* if c_ctxt.myDoc: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_v_c_ctxt->myDoc != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":1432
+ /* "src/lxml/parser.pxi":1435
* # and now for the fun part: move node names to the dict
* if c_ctxt.myDoc:
* fixup_error = _fixHtmlDictSubtreeNames( # <<<<<<<<<<<<<<
*/
__pyx_v_fixup_error = __pyx_f_4lxml_5etree__fixHtmlDictSubtreeNames(__pyx_v_c_ctxt->dict, __pyx_v_c_ctxt->myDoc, __pyx_v_c_node);
- /* "src/lxml/parser.pxi":1434
+ /* "src/lxml/parser.pxi":1437
* fixup_error = _fixHtmlDictSubtreeNames(
* c_ctxt.dict, c_ctxt.myDoc, c_node)
* if c_ctxt.myDoc.dict and c_ctxt.myDoc.dict is not c_ctxt.dict: # <<<<<<<<<<<<<<
__pyx_L9_bool_binop_done:;
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":1435
+ /* "src/lxml/parser.pxi":1438
* c_ctxt.dict, c_ctxt.myDoc, c_node)
* if c_ctxt.myDoc.dict and c_ctxt.myDoc.dict is not c_ctxt.dict:
* xmlparser.xmlDictFree(c_ctxt.myDoc.dict) # <<<<<<<<<<<<<<
*/
xmlDictFree(__pyx_v_c_ctxt->myDoc->dict);
- /* "src/lxml/parser.pxi":1436
+ /* "src/lxml/parser.pxi":1439
* if c_ctxt.myDoc.dict and c_ctxt.myDoc.dict is not c_ctxt.dict:
* xmlparser.xmlDictFree(c_ctxt.myDoc.dict)
* c_ctxt.myDoc.dict = c_ctxt.dict # <<<<<<<<<<<<<<
__pyx_t_4 = __pyx_v_c_ctxt->dict;
__pyx_v_c_ctxt->myDoc->dict = __pyx_t_4;
- /* "src/lxml/parser.pxi":1437
+ /* "src/lxml/parser.pxi":1440
* xmlparser.xmlDictFree(c_ctxt.myDoc.dict)
* c_ctxt.myDoc.dict = c_ctxt.dict
* xmlparser.xmlDictReference(c_ctxt.dict) # <<<<<<<<<<<<<<
*/
(void)(xmlDictReference(__pyx_v_c_ctxt->dict));
- /* "src/lxml/parser.pxi":1434
+ /* "src/lxml/parser.pxi":1437
* fixup_error = _fixHtmlDictSubtreeNames(
* c_ctxt.dict, c_ctxt.myDoc, c_node)
* if c_ctxt.myDoc.dict and c_ctxt.myDoc.dict is not c_ctxt.dict: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1431
+ /* "src/lxml/parser.pxi":1434
* _reset_document_loader(orig_loader)
* # and now for the fun part: move node names to the dict
* if c_ctxt.myDoc: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1425
+ /* "src/lxml/parser.pxi":1428
* fixup_error = 0
* with nogil:
* if c_ctxt.html: # <<<<<<<<<<<<<<
goto __pyx_L6;
}
- /* "src/lxml/parser.pxi":1439
+ /* "src/lxml/parser.pxi":1442
* xmlparser.xmlDictReference(c_ctxt.dict)
* else:
* orig_loader = _register_document_loader() # <<<<<<<<<<<<<<
/*else*/ {
__pyx_v_orig_loader = __pyx_f_4lxml_5etree__register_document_loader();
- /* "src/lxml/parser.pxi":1440
+ /* "src/lxml/parser.pxi":1443
* else:
* orig_loader = _register_document_loader()
* error = xmlparser.xmlParseChunk(c_ctxt, char_data, buffer_len, 0) # <<<<<<<<<<<<<<
*/
__pyx_v_error = xmlParseChunk(__pyx_v_c_ctxt, __pyx_v_char_data, __pyx_v_buffer_len, 0);
- /* "src/lxml/parser.pxi":1441
+ /* "src/lxml/parser.pxi":1444
* orig_loader = _register_document_loader()
* error = xmlparser.xmlParseChunk(c_ctxt, char_data, buffer_len, 0)
* _reset_document_loader(orig_loader) # <<<<<<<<<<<<<<
__pyx_L6:;
}
- /* "src/lxml/parser.pxi":1424
+ /* "src/lxml/parser.pxi":1427
* const char* char_data, int buffer_len):
* fixup_error = 0
* with nogil: # <<<<<<<<<<<<<<
}
}
- /* "src/lxml/parser.pxi":1442
+ /* "src/lxml/parser.pxi":1445
* error = xmlparser.xmlParseChunk(c_ctxt, char_data, buffer_len, 0)
* _reset_document_loader(orig_loader)
* return (error, fixup_error) # <<<<<<<<<<<<<<
__pyx_r = __pyx_t_5;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1421
+ /* "src/lxml/parser.pxi":1424
*
*
* cdef (int, int) _parse_data_chunk(xmlparser.xmlParserCtxt* c_ctxt, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1445
+/* "src/lxml/parser.pxi":1448
*
*
* cdef int _htmlCtxtResetPush(xmlparser.xmlParserCtxt* c_ctxt, # <<<<<<<<<<<<<<
int __pyx_t_1;
__Pyx_RefNannySetupContext("_htmlCtxtResetPush", 0);
- /* "src/lxml/parser.pxi":1451
+ /* "src/lxml/parser.pxi":1454
* cdef xmlparser.xmlParserInput* c_input_stream
* # libxml2 lacks an HTML push parser setup function
* error = xmlparser.xmlCtxtResetPush( # <<<<<<<<<<<<<<
*/
__pyx_v_error = xmlCtxtResetPush(__pyx_v_c_ctxt, __pyx_v_c_data, __pyx_v_buffer_len, __pyx_v_c_filename, __pyx_v_c_encoding);
- /* "src/lxml/parser.pxi":1453
+ /* "src/lxml/parser.pxi":1456
* error = xmlparser.xmlCtxtResetPush(
* c_ctxt, c_data, buffer_len, c_filename, c_encoding)
* if error: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_v_error != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":1454
+ /* "src/lxml/parser.pxi":1457
* c_ctxt, c_data, buffer_len, c_filename, c_encoding)
* if error:
* return error # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_error;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1453
+ /* "src/lxml/parser.pxi":1456
* error = xmlparser.xmlCtxtResetPush(
* c_ctxt, c_data, buffer_len, c_filename, c_encoding)
* if error: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1457
+ /* "src/lxml/parser.pxi":1460
*
* # fix libxml2 setup for HTML
* c_ctxt.progressive = 1 # <<<<<<<<<<<<<<
*/
__pyx_v_c_ctxt->progressive = 1;
- /* "src/lxml/parser.pxi":1458
+ /* "src/lxml/parser.pxi":1461
* # fix libxml2 setup for HTML
* c_ctxt.progressive = 1
* c_ctxt.html = 1 # <<<<<<<<<<<<<<
*/
__pyx_v_c_ctxt->html = 1;
- /* "src/lxml/parser.pxi":1459
+ /* "src/lxml/parser.pxi":1462
* c_ctxt.progressive = 1
* c_ctxt.html = 1
* htmlparser.htmlCtxtUseOptions(c_ctxt, parse_options) # <<<<<<<<<<<<<<
*/
(void)(htmlCtxtUseOptions(__pyx_v_c_ctxt, __pyx_v_parse_options));
- /* "src/lxml/parser.pxi":1461
+ /* "src/lxml/parser.pxi":1464
* htmlparser.htmlCtxtUseOptions(c_ctxt, parse_options)
*
* return 0 # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1445
+ /* "src/lxml/parser.pxi":1448
*
*
* cdef int _htmlCtxtResetPush(xmlparser.xmlParserCtxt* c_ctxt, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1522
+/* "src/lxml/parser.pxi":1525
* apply to the default parser.
* """
* def __init__(self, *, encoding=None, attribute_defaults=False, # <<<<<<<<<<<<<<
values[0] = ((PyObject *)Py_None);
values[1] = ((PyObject *)Py_False);
- /* "src/lxml/parser.pxi":1523
+ /* "src/lxml/parser.pxi":1526
* """
* def __init__(self, *, encoding=None, attribute_defaults=False,
* dtd_validation=False, load_dtd=False, no_network=True, # <<<<<<<<<<<<<<
values[3] = ((PyObject *)Py_False);
values[4] = ((PyObject *)Py_True);
- /* "src/lxml/parser.pxi":1524
+ /* "src/lxml/parser.pxi":1527
* def __init__(self, *, encoding=None, attribute_defaults=False,
* dtd_validation=False, load_dtd=False, no_network=True,
* ns_clean=False, recover=False, XMLSchema schema=None, # <<<<<<<<<<<<<<
values[6] = ((PyObject *)Py_False);
values[7] = (PyObject *)((struct __pyx_obj_4lxml_5etree_XMLSchema *)Py_None);
- /* "src/lxml/parser.pxi":1525
+ /* "src/lxml/parser.pxi":1528
* dtd_validation=False, load_dtd=False, no_network=True,
* ns_clean=False, recover=False, XMLSchema schema=None,
* huge_tree=False, remove_blank_text=False, resolve_entities=True, # <<<<<<<<<<<<<<
values[9] = ((PyObject *)Py_False);
values[10] = ((PyObject *)Py_True);
- /* "src/lxml/parser.pxi":1526
+ /* "src/lxml/parser.pxi":1529
* ns_clean=False, recover=False, XMLSchema schema=None,
* huge_tree=False, remove_blank_text=False, resolve_entities=True,
* remove_comments=False, remove_pis=False, strip_cdata=True, # <<<<<<<<<<<<<<
values[12] = ((PyObject *)Py_False);
values[13] = ((PyObject *)Py_True);
- /* "src/lxml/parser.pxi":1527
+ /* "src/lxml/parser.pxi":1530
* huge_tree=False, remove_blank_text=False, resolve_entities=True,
* remove_comments=False, remove_pis=False, strip_cdata=True,
* collect_ids=True, target=None, compact=True): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, 0, "__init__") < 0)) __PYX_ERR(2, 1522, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, 0, "__init__") < 0)) __PYX_ERR(2, 1525, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 0) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 1522, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 1525, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.XMLParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return -1;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_schema), __pyx_ptype_4lxml_5etree_XMLSchema, 1, "schema", 0))) __PYX_ERR(2, 1524, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_schema), __pyx_ptype_4lxml_5etree_XMLSchema, 1, "schema", 0))) __PYX_ERR(2, 1527, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_9XMLParser___init__(((struct __pyx_obj_4lxml_5etree_XMLParser *)__pyx_v_self), __pyx_v_encoding, __pyx_v_attribute_defaults, __pyx_v_dtd_validation, __pyx_v_load_dtd, __pyx_v_no_network, __pyx_v_ns_clean, __pyx_v_recover, __pyx_v_schema, __pyx_v_huge_tree, __pyx_v_remove_blank_text, __pyx_v_resolve_entities, __pyx_v_remove_comments, __pyx_v_remove_pis, __pyx_v_strip_cdata, __pyx_v_collect_ids, __pyx_v_target, __pyx_v_compact);
- /* "src/lxml/parser.pxi":1522
+ /* "src/lxml/parser.pxi":1525
* apply to the default parser.
* """
* def __init__(self, *, encoding=None, attribute_defaults=False, # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__init__", 0);
- /* "src/lxml/parser.pxi":1529
+ /* "src/lxml/parser.pxi":1532
* collect_ids=True, target=None, compact=True):
* cdef int parse_options
* parse_options = _XML_DEFAULT_PARSE_OPTIONS # <<<<<<<<<<<<<<
*/
__pyx_v_parse_options = __pyx_v_4lxml_5etree__XML_DEFAULT_PARSE_OPTIONS;
- /* "src/lxml/parser.pxi":1530
+ /* "src/lxml/parser.pxi":1533
* cdef int parse_options
* parse_options = _XML_DEFAULT_PARSE_OPTIONS
* if load_dtd: # <<<<<<<<<<<<<<
* parse_options = parse_options | xmlparser.XML_PARSE_DTDLOAD
* if dtd_validation:
*/
- __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_load_dtd); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 1530, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_load_dtd); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 1533, __pyx_L1_error)
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":1531
+ /* "src/lxml/parser.pxi":1534
* parse_options = _XML_DEFAULT_PARSE_OPTIONS
* if load_dtd:
* parse_options = parse_options | xmlparser.XML_PARSE_DTDLOAD # <<<<<<<<<<<<<<
*/
__pyx_v_parse_options = (__pyx_v_parse_options | XML_PARSE_DTDLOAD);
- /* "src/lxml/parser.pxi":1530
+ /* "src/lxml/parser.pxi":1533
* cdef int parse_options
* parse_options = _XML_DEFAULT_PARSE_OPTIONS
* if load_dtd: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1532
+ /* "src/lxml/parser.pxi":1535
* if load_dtd:
* parse_options = parse_options | xmlparser.XML_PARSE_DTDLOAD
* if dtd_validation: # <<<<<<<<<<<<<<
* parse_options = parse_options | xmlparser.XML_PARSE_DTDVALID | \
* xmlparser.XML_PARSE_DTDLOAD
*/
- __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_dtd_validation); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 1532, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_dtd_validation); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 1535, __pyx_L1_error)
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":1533
+ /* "src/lxml/parser.pxi":1536
* parse_options = parse_options | xmlparser.XML_PARSE_DTDLOAD
* if dtd_validation:
* parse_options = parse_options | xmlparser.XML_PARSE_DTDVALID | \ # <<<<<<<<<<<<<<
*/
__pyx_v_parse_options = ((__pyx_v_parse_options | XML_PARSE_DTDVALID) | XML_PARSE_DTDLOAD);
- /* "src/lxml/parser.pxi":1532
+ /* "src/lxml/parser.pxi":1535
* if load_dtd:
* parse_options = parse_options | xmlparser.XML_PARSE_DTDLOAD
* if dtd_validation: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1535
+ /* "src/lxml/parser.pxi":1538
* parse_options = parse_options | xmlparser.XML_PARSE_DTDVALID | \
* xmlparser.XML_PARSE_DTDLOAD
* if attribute_defaults: # <<<<<<<<<<<<<<
* parse_options = parse_options | xmlparser.XML_PARSE_DTDATTR
* if schema is None:
*/
- __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_attribute_defaults); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 1535, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_attribute_defaults); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 1538, __pyx_L1_error)
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":1536
+ /* "src/lxml/parser.pxi":1539
* xmlparser.XML_PARSE_DTDLOAD
* if attribute_defaults:
* parse_options = parse_options | xmlparser.XML_PARSE_DTDATTR # <<<<<<<<<<<<<<
*/
__pyx_v_parse_options = (__pyx_v_parse_options | XML_PARSE_DTDATTR);
- /* "src/lxml/parser.pxi":1537
+ /* "src/lxml/parser.pxi":1540
* if attribute_defaults:
* parse_options = parse_options | xmlparser.XML_PARSE_DTDATTR
* if schema is None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1538
+ /* "src/lxml/parser.pxi":1541
* parse_options = parse_options | xmlparser.XML_PARSE_DTDATTR
* if schema is None:
* parse_options = parse_options | xmlparser.XML_PARSE_DTDLOAD # <<<<<<<<<<<<<<
*/
__pyx_v_parse_options = (__pyx_v_parse_options | XML_PARSE_DTDLOAD);
- /* "src/lxml/parser.pxi":1537
+ /* "src/lxml/parser.pxi":1540
* if attribute_defaults:
* parse_options = parse_options | xmlparser.XML_PARSE_DTDATTR
* if schema is None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1535
+ /* "src/lxml/parser.pxi":1538
* parse_options = parse_options | xmlparser.XML_PARSE_DTDVALID | \
* xmlparser.XML_PARSE_DTDLOAD
* if attribute_defaults: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1539
+ /* "src/lxml/parser.pxi":1542
* if schema is None:
* parse_options = parse_options | xmlparser.XML_PARSE_DTDLOAD
* if ns_clean: # <<<<<<<<<<<<<<
* parse_options = parse_options | xmlparser.XML_PARSE_NSCLEAN
* if recover:
*/
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_ns_clean); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1539, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_ns_clean); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1542, __pyx_L1_error)
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1540
+ /* "src/lxml/parser.pxi":1543
* parse_options = parse_options | xmlparser.XML_PARSE_DTDLOAD
* if ns_clean:
* parse_options = parse_options | xmlparser.XML_PARSE_NSCLEAN # <<<<<<<<<<<<<<
*/
__pyx_v_parse_options = (__pyx_v_parse_options | XML_PARSE_NSCLEAN);
- /* "src/lxml/parser.pxi":1539
+ /* "src/lxml/parser.pxi":1542
* if schema is None:
* parse_options = parse_options | xmlparser.XML_PARSE_DTDLOAD
* if ns_clean: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1541
+ /* "src/lxml/parser.pxi":1544
* if ns_clean:
* parse_options = parse_options | xmlparser.XML_PARSE_NSCLEAN
* if recover: # <<<<<<<<<<<<<<
* parse_options = parse_options | xmlparser.XML_PARSE_RECOVER
* if remove_blank_text:
*/
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_recover); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1541, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_recover); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1544, __pyx_L1_error)
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1542
+ /* "src/lxml/parser.pxi":1545
* parse_options = parse_options | xmlparser.XML_PARSE_NSCLEAN
* if recover:
* parse_options = parse_options | xmlparser.XML_PARSE_RECOVER # <<<<<<<<<<<<<<
*/
__pyx_v_parse_options = (__pyx_v_parse_options | XML_PARSE_RECOVER);
- /* "src/lxml/parser.pxi":1541
+ /* "src/lxml/parser.pxi":1544
* if ns_clean:
* parse_options = parse_options | xmlparser.XML_PARSE_NSCLEAN
* if recover: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1543
+ /* "src/lxml/parser.pxi":1546
* if recover:
* parse_options = parse_options | xmlparser.XML_PARSE_RECOVER
* if remove_blank_text: # <<<<<<<<<<<<<<
* parse_options = parse_options | xmlparser.XML_PARSE_NOBLANKS
* if huge_tree:
*/
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_remove_blank_text); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1543, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_remove_blank_text); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1546, __pyx_L1_error)
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1544
+ /* "src/lxml/parser.pxi":1547
* parse_options = parse_options | xmlparser.XML_PARSE_RECOVER
* if remove_blank_text:
* parse_options = parse_options | xmlparser.XML_PARSE_NOBLANKS # <<<<<<<<<<<<<<
*/
__pyx_v_parse_options = (__pyx_v_parse_options | XML_PARSE_NOBLANKS);
- /* "src/lxml/parser.pxi":1543
+ /* "src/lxml/parser.pxi":1546
* if recover:
* parse_options = parse_options | xmlparser.XML_PARSE_RECOVER
* if remove_blank_text: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1545
+ /* "src/lxml/parser.pxi":1548
* if remove_blank_text:
* parse_options = parse_options | xmlparser.XML_PARSE_NOBLANKS
* if huge_tree: # <<<<<<<<<<<<<<
* parse_options = parse_options | xmlparser.XML_PARSE_HUGE
* if not no_network:
*/
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_huge_tree); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1545, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_huge_tree); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1548, __pyx_L1_error)
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1546
+ /* "src/lxml/parser.pxi":1549
* parse_options = parse_options | xmlparser.XML_PARSE_NOBLANKS
* if huge_tree:
* parse_options = parse_options | xmlparser.XML_PARSE_HUGE # <<<<<<<<<<<<<<
*/
__pyx_v_parse_options = (__pyx_v_parse_options | XML_PARSE_HUGE);
- /* "src/lxml/parser.pxi":1545
+ /* "src/lxml/parser.pxi":1548
* if remove_blank_text:
* parse_options = parse_options | xmlparser.XML_PARSE_NOBLANKS
* if huge_tree: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1547
+ /* "src/lxml/parser.pxi":1550
* if huge_tree:
* parse_options = parse_options | xmlparser.XML_PARSE_HUGE
* if not no_network: # <<<<<<<<<<<<<<
* parse_options = parse_options ^ xmlparser.XML_PARSE_NONET
* if not compact:
*/
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_no_network); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1547, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_no_network); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1550, __pyx_L1_error)
__pyx_t_1 = ((!__pyx_t_2) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":1548
+ /* "src/lxml/parser.pxi":1551
* parse_options = parse_options | xmlparser.XML_PARSE_HUGE
* if not no_network:
* parse_options = parse_options ^ xmlparser.XML_PARSE_NONET # <<<<<<<<<<<<<<
*/
__pyx_v_parse_options = (__pyx_v_parse_options ^ XML_PARSE_NONET);
- /* "src/lxml/parser.pxi":1547
+ /* "src/lxml/parser.pxi":1550
* if huge_tree:
* parse_options = parse_options | xmlparser.XML_PARSE_HUGE
* if not no_network: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1549
+ /* "src/lxml/parser.pxi":1552
* if not no_network:
* parse_options = parse_options ^ xmlparser.XML_PARSE_NONET
* if not compact: # <<<<<<<<<<<<<<
* parse_options = parse_options ^ xmlparser.XML_PARSE_COMPACT
* if not resolve_entities:
*/
- __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_compact); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 1549, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_compact); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 1552, __pyx_L1_error)
__pyx_t_2 = ((!__pyx_t_1) != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1550
+ /* "src/lxml/parser.pxi":1553
* parse_options = parse_options ^ xmlparser.XML_PARSE_NONET
* if not compact:
* parse_options = parse_options ^ xmlparser.XML_PARSE_COMPACT # <<<<<<<<<<<<<<
*/
__pyx_v_parse_options = (__pyx_v_parse_options ^ XML_PARSE_COMPACT);
- /* "src/lxml/parser.pxi":1549
+ /* "src/lxml/parser.pxi":1552
* if not no_network:
* parse_options = parse_options ^ xmlparser.XML_PARSE_NONET
* if not compact: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1551
+ /* "src/lxml/parser.pxi":1554
* if not compact:
* parse_options = parse_options ^ xmlparser.XML_PARSE_COMPACT
* if not resolve_entities: # <<<<<<<<<<<<<<
* parse_options = parse_options ^ xmlparser.XML_PARSE_NOENT
* if not strip_cdata:
*/
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_resolve_entities); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1551, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_resolve_entities); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1554, __pyx_L1_error)
__pyx_t_1 = ((!__pyx_t_2) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":1552
+ /* "src/lxml/parser.pxi":1555
* parse_options = parse_options ^ xmlparser.XML_PARSE_COMPACT
* if not resolve_entities:
* parse_options = parse_options ^ xmlparser.XML_PARSE_NOENT # <<<<<<<<<<<<<<
*/
__pyx_v_parse_options = (__pyx_v_parse_options ^ XML_PARSE_NOENT);
- /* "src/lxml/parser.pxi":1551
+ /* "src/lxml/parser.pxi":1554
* if not compact:
* parse_options = parse_options ^ xmlparser.XML_PARSE_COMPACT
* if not resolve_entities: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1553
+ /* "src/lxml/parser.pxi":1556
* if not resolve_entities:
* parse_options = parse_options ^ xmlparser.XML_PARSE_NOENT
* if not strip_cdata: # <<<<<<<<<<<<<<
* parse_options = parse_options ^ xmlparser.XML_PARSE_NOCDATA
*
*/
- __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_strip_cdata); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 1553, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_strip_cdata); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 1556, __pyx_L1_error)
__pyx_t_2 = ((!__pyx_t_1) != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1554
+ /* "src/lxml/parser.pxi":1557
* parse_options = parse_options ^ xmlparser.XML_PARSE_NOENT
* if not strip_cdata:
* parse_options = parse_options ^ xmlparser.XML_PARSE_NOCDATA # <<<<<<<<<<<<<<
*/
__pyx_v_parse_options = (__pyx_v_parse_options ^ XML_PARSE_NOCDATA);
- /* "src/lxml/parser.pxi":1553
+ /* "src/lxml/parser.pxi":1556
* if not resolve_entities:
* parse_options = parse_options ^ xmlparser.XML_PARSE_NOENT
* if not strip_cdata: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1556
+ /* "src/lxml/parser.pxi":1559
* parse_options = parse_options ^ xmlparser.XML_PARSE_NOCDATA
*
* _BaseParser.__init__(self, parse_options, 0, schema, # <<<<<<<<<<<<<<
* remove_comments, remove_pis, strip_cdata,
* collect_ids, target, encoding)
*/
- __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_4lxml_5etree__BaseParser), __pyx_n_s_init); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1556, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_4lxml_5etree__BaseParser), __pyx_n_s_init); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1559, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
- __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_parse_options); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 1556, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_parse_options); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 1559, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
- /* "src/lxml/parser.pxi":1558
+ /* "src/lxml/parser.pxi":1561
* _BaseParser.__init__(self, parse_options, 0, schema,
* remove_comments, remove_pis, strip_cdata,
* collect_ids, target, encoding) # <<<<<<<<<<<<<<
#if CYTHON_FAST_PYCALL
if (PyFunction_Check(__pyx_t_4)) {
PyObject *__pyx_temp[11] = {__pyx_t_6, ((PyObject *)__pyx_v_self), __pyx_t_5, __pyx_int_0, ((PyObject *)__pyx_v_schema), __pyx_v_remove_comments, __pyx_v_remove_pis, __pyx_v_strip_cdata, __pyx_v_collect_ids, __pyx_v_target, __pyx_v_encoding};
- __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 10+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1556, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 10+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1559, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
#if CYTHON_FAST_PYCCALL
if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
PyObject *__pyx_temp[11] = {__pyx_t_6, ((PyObject *)__pyx_v_self), __pyx_t_5, __pyx_int_0, ((PyObject *)__pyx_v_schema), __pyx_v_remove_comments, __pyx_v_remove_pis, __pyx_v_strip_cdata, __pyx_v_collect_ids, __pyx_v_target, __pyx_v_encoding};
- __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 10+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1556, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 10+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1559, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
} else
#endif
{
- __pyx_t_8 = PyTuple_New(10+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1556, __pyx_L1_error)
+ __pyx_t_8 = PyTuple_New(10+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1559, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_8);
if (__pyx_t_6) {
__Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
__Pyx_GIVEREF(__pyx_v_encoding);
PyTuple_SET_ITEM(__pyx_t_8, 9+__pyx_t_7, __pyx_v_encoding);
__pyx_t_5 = 0;
- __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1556, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1559, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- /* "src/lxml/parser.pxi":1522
+ /* "src/lxml/parser.pxi":1525
* apply to the default parser.
* """
* def __init__(self, *, encoding=None, attribute_defaults=False, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1579
+/* "src/lxml/parser.pxi":1582
* source, you can pass the ``base_url``.
* """
* def __init__(self, events=None, *, tag=None, base_url=None, **kwargs): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kwargs, values, pos_args, "__init__") < 0)) __PYX_ERR(2, 1579, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kwargs, values, pos_args, "__init__") < 0)) __PYX_ERR(2, 1582, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 1579, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 1582, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0;
__Pyx_AddTraceback("lxml.etree.XMLPullParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannySetupContext("__init__", 0);
__Pyx_INCREF(__pyx_v_events);
- /* "src/lxml/parser.pxi":1580
+ /* "src/lxml/parser.pxi":1583
* """
* def __init__(self, events=None, *, tag=None, base_url=None, **kwargs):
* XMLParser.__init__(self, **kwargs) # <<<<<<<<<<<<<<
* if events is None:
* events = ('end',)
*/
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_4lxml_5etree_XMLParser), __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1580, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_4lxml_5etree_XMLParser), __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1583, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1580, __pyx_L1_error)
+ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1583, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_INCREF(((PyObject *)__pyx_v_self));
__Pyx_GIVEREF(((PyObject *)__pyx_v_self));
PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_self));
- __pyx_t_3 = PyDict_Copy(__pyx_v_kwargs); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1580, __pyx_L1_error)
+ __pyx_t_3 = PyDict_Copy(__pyx_v_kwargs); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1583, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1580, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1583, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "src/lxml/parser.pxi":1581
+ /* "src/lxml/parser.pxi":1584
* def __init__(self, events=None, *, tag=None, base_url=None, **kwargs):
* XMLParser.__init__(self, **kwargs)
* if events is None: # <<<<<<<<<<<<<<
__pyx_t_6 = (__pyx_t_5 != 0);
if (__pyx_t_6) {
- /* "src/lxml/parser.pxi":1582
+ /* "src/lxml/parser.pxi":1585
* XMLParser.__init__(self, **kwargs)
* if events is None:
* events = ('end',) # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_tuple__57);
__Pyx_DECREF_SET(__pyx_v_events, __pyx_tuple__57);
- /* "src/lxml/parser.pxi":1581
+ /* "src/lxml/parser.pxi":1584
* def __init__(self, events=None, *, tag=None, base_url=None, **kwargs):
* XMLParser.__init__(self, **kwargs)
* if events is None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1583
+ /* "src/lxml/parser.pxi":1586
* if events is None:
* events = ('end',)
* self._setBaseURL(base_url) # <<<<<<<<<<<<<<
* self._collectEvents(events, tag)
*
*/
- __pyx_t_4 = ((struct __pyx_vtabstruct_4lxml_5etree_XMLPullParser *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base._setBaseURL(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self), __pyx_v_base_url); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1583, __pyx_L1_error)
+ __pyx_t_4 = ((struct __pyx_vtabstruct_4lxml_5etree_XMLPullParser *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base._setBaseURL(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self), __pyx_v_base_url); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1586, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "src/lxml/parser.pxi":1584
+ /* "src/lxml/parser.pxi":1587
* events = ('end',)
* self._setBaseURL(base_url)
* self._collectEvents(events, tag) # <<<<<<<<<<<<<<
*
* def read_events(self):
*/
- __pyx_t_4 = ((struct __pyx_vtabstruct_4lxml_5etree_XMLPullParser *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base._collectEvents(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self), __pyx_v_events, __pyx_v_tag); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1584, __pyx_L1_error)
+ __pyx_t_4 = ((struct __pyx_vtabstruct_4lxml_5etree_XMLPullParser *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base._collectEvents(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self), __pyx_v_events, __pyx_v_tag); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1587, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "src/lxml/parser.pxi":1579
+ /* "src/lxml/parser.pxi":1582
* source, you can pass the ``base_url``.
* """
* def __init__(self, events=None, *, tag=None, base_url=None, **kwargs): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1586
+/* "src/lxml/parser.pxi":1589
* self._collectEvents(events, tag)
*
* def read_events(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("read_events", 0);
- /* "src/lxml/parser.pxi":1587
+ /* "src/lxml/parser.pxi":1590
*
* def read_events(self):
* return (<_SaxParserContext?>self._getPushParserContext()).events_iterator # <<<<<<<<<<<<<<
*
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree_XMLPullParser *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base._getPushParserContext(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self))); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1587, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree_XMLPullParser *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base._getPushParserContext(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self))); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1590, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- if (!(likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_4lxml_5etree__SaxParserContext)))) __PYX_ERR(2, 1587, __pyx_L1_error)
+ if (!(likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_4lxml_5etree__SaxParserContext)))) __PYX_ERR(2, 1590, __pyx_L1_error)
__Pyx_INCREF(((PyObject *)((struct __pyx_obj_4lxml_5etree__SaxParserContext *)__pyx_t_1)->events_iterator));
__pyx_r = ((PyObject *)((struct __pyx_obj_4lxml_5etree__SaxParserContext *)__pyx_t_1)->events_iterator);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1586
+ /* "src/lxml/parser.pxi":1589
* self._collectEvents(events, tag)
*
* def read_events(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1605
+/* "src/lxml/parser.pxi":1608
* and thus ignores comments and processing instructions.
* """
* def __init__(self, *, encoding=None, attribute_defaults=False, # <<<<<<<<<<<<<<
values[0] = ((PyObject *)Py_None);
values[1] = ((PyObject *)Py_False);
- /* "src/lxml/parser.pxi":1606
+ /* "src/lxml/parser.pxi":1609
* """
* def __init__(self, *, encoding=None, attribute_defaults=False,
* dtd_validation=False, load_dtd=False, no_network=True, # <<<<<<<<<<<<<<
values[3] = ((PyObject *)Py_False);
values[4] = ((PyObject *)Py_True);
- /* "src/lxml/parser.pxi":1607
+ /* "src/lxml/parser.pxi":1610
* def __init__(self, *, encoding=None, attribute_defaults=False,
* dtd_validation=False, load_dtd=False, no_network=True,
* ns_clean=False, recover=False, schema=None, # <<<<<<<<<<<<<<
values[6] = ((PyObject *)Py_False);
values[7] = ((PyObject *)Py_None);
- /* "src/lxml/parser.pxi":1608
+ /* "src/lxml/parser.pxi":1611
* dtd_validation=False, load_dtd=False, no_network=True,
* ns_clean=False, recover=False, schema=None,
* huge_tree=False, remove_blank_text=False, resolve_entities=True, # <<<<<<<<<<<<<<
values[9] = ((PyObject *)Py_False);
values[10] = ((PyObject *)Py_True);
- /* "src/lxml/parser.pxi":1609
+ /* "src/lxml/parser.pxi":1612
* ns_clean=False, recover=False, schema=None,
* huge_tree=False, remove_blank_text=False, resolve_entities=True,
* remove_comments=True, remove_pis=True, strip_cdata=True, # <<<<<<<<<<<<<<
values[12] = ((PyObject *)Py_True);
values[13] = ((PyObject *)Py_True);
- /* "src/lxml/parser.pxi":1610
+ /* "src/lxml/parser.pxi":1613
* huge_tree=False, remove_blank_text=False, resolve_entities=True,
* remove_comments=True, remove_pis=True, strip_cdata=True,
* target=None, compact=True): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, 0, "__init__") < 0)) __PYX_ERR(2, 1605, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, 0, "__init__") < 0)) __PYX_ERR(2, 1608, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 0) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 1605, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 1608, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.ETCompatXMLParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
__pyx_L4_argument_unpacking_done:;
__pyx_r = __pyx_pf_4lxml_5etree_17ETCompatXMLParser___init__(((struct __pyx_obj_4lxml_5etree_ETCompatXMLParser *)__pyx_v_self), __pyx_v_encoding, __pyx_v_attribute_defaults, __pyx_v_dtd_validation, __pyx_v_load_dtd, __pyx_v_no_network, __pyx_v_ns_clean, __pyx_v_recover, __pyx_v_schema, __pyx_v_huge_tree, __pyx_v_remove_blank_text, __pyx_v_resolve_entities, __pyx_v_remove_comments, __pyx_v_remove_pis, __pyx_v_strip_cdata, __pyx_v_target, __pyx_v_compact);
- /* "src/lxml/parser.pxi":1605
+ /* "src/lxml/parser.pxi":1608
* and thus ignores comments and processing instructions.
* """
* def __init__(self, *, encoding=None, attribute_defaults=False, # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__init__", 0);
- /* "src/lxml/parser.pxi":1611
+ /* "src/lxml/parser.pxi":1614
* remove_comments=True, remove_pis=True, strip_cdata=True,
* target=None, compact=True):
* XMLParser.__init__(self, # <<<<<<<<<<<<<<
* attribute_defaults=attribute_defaults,
* dtd_validation=dtd_validation,
*/
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_4lxml_5etree_XMLParser), __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1611, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_4lxml_5etree_XMLParser), __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1614, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1611, __pyx_L1_error)
+ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1614, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_INCREF(((PyObject *)__pyx_v_self));
__Pyx_GIVEREF(((PyObject *)__pyx_v_self));
PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_self));
- /* "src/lxml/parser.pxi":1612
+ /* "src/lxml/parser.pxi":1615
* target=None, compact=True):
* XMLParser.__init__(self,
* attribute_defaults=attribute_defaults, # <<<<<<<<<<<<<<
* dtd_validation=dtd_validation,
* load_dtd=load_dtd,
*/
- __pyx_t_3 = __Pyx_PyDict_NewPresized(16); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1612, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyDict_NewPresized(16); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1615, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_attribute_defaults, __pyx_v_attribute_defaults) < 0) __PYX_ERR(2, 1612, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_attribute_defaults, __pyx_v_attribute_defaults) < 0) __PYX_ERR(2, 1615, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1613
+ /* "src/lxml/parser.pxi":1616
* XMLParser.__init__(self,
* attribute_defaults=attribute_defaults,
* dtd_validation=dtd_validation, # <<<<<<<<<<<<<<
* load_dtd=load_dtd,
* no_network=no_network,
*/
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dtd_validation, __pyx_v_dtd_validation) < 0) __PYX_ERR(2, 1612, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dtd_validation, __pyx_v_dtd_validation) < 0) __PYX_ERR(2, 1615, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1614
+ /* "src/lxml/parser.pxi":1617
* attribute_defaults=attribute_defaults,
* dtd_validation=dtd_validation,
* load_dtd=load_dtd, # <<<<<<<<<<<<<<
* no_network=no_network,
* ns_clean=ns_clean,
*/
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_load_dtd, __pyx_v_load_dtd) < 0) __PYX_ERR(2, 1612, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_load_dtd, __pyx_v_load_dtd) < 0) __PYX_ERR(2, 1615, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1615
+ /* "src/lxml/parser.pxi":1618
* dtd_validation=dtd_validation,
* load_dtd=load_dtd,
* no_network=no_network, # <<<<<<<<<<<<<<
* ns_clean=ns_clean,
* recover=recover,
*/
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_no_network, __pyx_v_no_network) < 0) __PYX_ERR(2, 1612, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_no_network, __pyx_v_no_network) < 0) __PYX_ERR(2, 1615, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1616
+ /* "src/lxml/parser.pxi":1619
* load_dtd=load_dtd,
* no_network=no_network,
* ns_clean=ns_clean, # <<<<<<<<<<<<<<
* recover=recover,
* remove_blank_text=remove_blank_text,
*/
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_ns_clean, __pyx_v_ns_clean) < 0) __PYX_ERR(2, 1612, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_ns_clean, __pyx_v_ns_clean) < 0) __PYX_ERR(2, 1615, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1617
+ /* "src/lxml/parser.pxi":1620
* no_network=no_network,
* ns_clean=ns_clean,
* recover=recover, # <<<<<<<<<<<<<<
* remove_blank_text=remove_blank_text,
* huge_tree=huge_tree,
*/
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_recover, __pyx_v_recover) < 0) __PYX_ERR(2, 1612, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_recover, __pyx_v_recover) < 0) __PYX_ERR(2, 1615, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1618
+ /* "src/lxml/parser.pxi":1621
* ns_clean=ns_clean,
* recover=recover,
* remove_blank_text=remove_blank_text, # <<<<<<<<<<<<<<
* huge_tree=huge_tree,
* compact=compact,
*/
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_remove_blank_text, __pyx_v_remove_blank_text) < 0) __PYX_ERR(2, 1612, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_remove_blank_text, __pyx_v_remove_blank_text) < 0) __PYX_ERR(2, 1615, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1619
+ /* "src/lxml/parser.pxi":1622
* recover=recover,
* remove_blank_text=remove_blank_text,
* huge_tree=huge_tree, # <<<<<<<<<<<<<<
* compact=compact,
* resolve_entities=resolve_entities,
*/
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_huge_tree, __pyx_v_huge_tree) < 0) __PYX_ERR(2, 1612, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_huge_tree, __pyx_v_huge_tree) < 0) __PYX_ERR(2, 1615, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1620
+ /* "src/lxml/parser.pxi":1623
* remove_blank_text=remove_blank_text,
* huge_tree=huge_tree,
* compact=compact, # <<<<<<<<<<<<<<
* resolve_entities=resolve_entities,
* remove_comments=remove_comments,
*/
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_compact, __pyx_v_compact) < 0) __PYX_ERR(2, 1612, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_compact, __pyx_v_compact) < 0) __PYX_ERR(2, 1615, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1621
+ /* "src/lxml/parser.pxi":1624
* huge_tree=huge_tree,
* compact=compact,
* resolve_entities=resolve_entities, # <<<<<<<<<<<<<<
* remove_comments=remove_comments,
* remove_pis=remove_pis,
*/
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_resolve_entities, __pyx_v_resolve_entities) < 0) __PYX_ERR(2, 1612, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_resolve_entities, __pyx_v_resolve_entities) < 0) __PYX_ERR(2, 1615, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1622
+ /* "src/lxml/parser.pxi":1625
* compact=compact,
* resolve_entities=resolve_entities,
* remove_comments=remove_comments, # <<<<<<<<<<<<<<
* remove_pis=remove_pis,
* strip_cdata=strip_cdata,
*/
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_remove_comments, __pyx_v_remove_comments) < 0) __PYX_ERR(2, 1612, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_remove_comments, __pyx_v_remove_comments) < 0) __PYX_ERR(2, 1615, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1623
+ /* "src/lxml/parser.pxi":1626
* resolve_entities=resolve_entities,
* remove_comments=remove_comments,
* remove_pis=remove_pis, # <<<<<<<<<<<<<<
* strip_cdata=strip_cdata,
* target=target,
*/
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_remove_pis, __pyx_v_remove_pis) < 0) __PYX_ERR(2, 1612, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_remove_pis, __pyx_v_remove_pis) < 0) __PYX_ERR(2, 1615, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1624
+ /* "src/lxml/parser.pxi":1627
* remove_comments=remove_comments,
* remove_pis=remove_pis,
* strip_cdata=strip_cdata, # <<<<<<<<<<<<<<
* target=target,
* encoding=encoding,
*/
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_strip_cdata, __pyx_v_strip_cdata) < 0) __PYX_ERR(2, 1612, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_strip_cdata, __pyx_v_strip_cdata) < 0) __PYX_ERR(2, 1615, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1625
+ /* "src/lxml/parser.pxi":1628
* remove_pis=remove_pis,
* strip_cdata=strip_cdata,
* target=target, # <<<<<<<<<<<<<<
* encoding=encoding,
* schema=schema)
*/
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_target, __pyx_v_target) < 0) __PYX_ERR(2, 1612, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_target, __pyx_v_target) < 0) __PYX_ERR(2, 1615, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1626
+ /* "src/lxml/parser.pxi":1629
* strip_cdata=strip_cdata,
* target=target,
* encoding=encoding, # <<<<<<<<<<<<<<
* schema=schema)
*
*/
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_encoding, __pyx_v_encoding) < 0) __PYX_ERR(2, 1612, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_encoding, __pyx_v_encoding) < 0) __PYX_ERR(2, 1615, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1627
+ /* "src/lxml/parser.pxi":1630
* target=target,
* encoding=encoding,
* schema=schema) # <<<<<<<<<<<<<<
*
* # ET 1.2 compatible name
*/
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_schema, __pyx_v_schema) < 0) __PYX_ERR(2, 1612, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_schema, __pyx_v_schema) < 0) __PYX_ERR(2, 1615, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1611
+ /* "src/lxml/parser.pxi":1614
* remove_comments=True, remove_pis=True, strip_cdata=True,
* target=None, compact=True):
* XMLParser.__init__(self, # <<<<<<<<<<<<<<
* attribute_defaults=attribute_defaults,
* dtd_validation=dtd_validation,
*/
- __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1611, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1614, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "src/lxml/parser.pxi":1605
+ /* "src/lxml/parser.pxi":1608
* and thus ignores comments and processing instructions.
* """
* def __init__(self, *, encoding=None, attribute_defaults=False, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1638
+/* "src/lxml/parser.pxi":1641
* __GLOBAL_PARSER_CONTEXT.setDefaultParser(__DEFAULT_XML_PARSER)
*
* def set_default_parser(_BaseParser parser=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_default_parser") < 0)) __PYX_ERR(2, 1638, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_default_parser") < 0)) __PYX_ERR(2, 1641, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("set_default_parser", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 1638, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("set_default_parser", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 1641, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.set_default_parser", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return NULL;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_parser), __pyx_ptype_4lxml_5etree__BaseParser, 1, "parser", 0))) __PYX_ERR(2, 1638, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_parser), __pyx_ptype_4lxml_5etree__BaseParser, 1, "parser", 0))) __PYX_ERR(2, 1641, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_46set_default_parser(__pyx_self, __pyx_v_parser);
/* function exit code */
__Pyx_RefNannySetupContext("set_default_parser", 0);
__Pyx_INCREF((PyObject *)__pyx_v_parser);
- /* "src/lxml/parser.pxi":1650
+ /* "src/lxml/parser.pxi":1653
* parser for each thread explicitly or use a parser pool.
* """
* if parser is None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1651
+ /* "src/lxml/parser.pxi":1654
* """
* if parser is None:
* parser = __DEFAULT_XML_PARSER # <<<<<<<<<<<<<<
__Pyx_INCREF(((PyObject *)__pyx_v_4lxml_5etree___DEFAULT_XML_PARSER));
__Pyx_DECREF_SET(__pyx_v_parser, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_4lxml_5etree___DEFAULT_XML_PARSER));
- /* "src/lxml/parser.pxi":1650
+ /* "src/lxml/parser.pxi":1653
* parser for each thread explicitly or use a parser pool.
* """
* if parser is None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1652
+ /* "src/lxml/parser.pxi":1655
* if parser is None:
* parser = __DEFAULT_XML_PARSER
* __GLOBAL_PARSER_CONTEXT.setDefaultParser(parser) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree_24_ParserDictionaryContext_setDefaultParser(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT, __pyx_v_parser);
- /* "src/lxml/parser.pxi":1638
+ /* "src/lxml/parser.pxi":1641
* __GLOBAL_PARSER_CONTEXT.setDefaultParser(__DEFAULT_XML_PARSER)
*
* def set_default_parser(_BaseParser parser=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1654
+/* "src/lxml/parser.pxi":1657
* __GLOBAL_PARSER_CONTEXT.setDefaultParser(parser)
*
* def get_default_parser(): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("get_default_parser", 0);
- /* "src/lxml/parser.pxi":1656
+ /* "src/lxml/parser.pxi":1659
* def get_default_parser():
* u"get_default_parser()"
* return __GLOBAL_PARSER_CONTEXT.getDefaultParser() # <<<<<<<<<<<<<<
* ############################################################
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_24_ParserDictionaryContext_getDefaultParser(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1656, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_24_ParserDictionaryContext_getDefaultParser(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1659, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1654
+ /* "src/lxml/parser.pxi":1657
* __GLOBAL_PARSER_CONTEXT.setDefaultParser(parser)
*
* def get_default_parser(): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1705
+/* "src/lxml/parser.pxi":1708
* reasons.
* """
* def __init__(self, *, encoding=None, remove_blank_text=False, # <<<<<<<<<<<<<<
values[0] = ((PyObject *)Py_None);
values[1] = ((PyObject *)Py_False);
- /* "src/lxml/parser.pxi":1706
+ /* "src/lxml/parser.pxi":1709
* """
* def __init__(self, *, encoding=None, remove_blank_text=False,
* remove_comments=False, remove_pis=False, strip_cdata=True, # <<<<<<<<<<<<<<
values[3] = ((PyObject *)Py_False);
values[4] = ((PyObject *)Py_True);
- /* "src/lxml/parser.pxi":1707
+ /* "src/lxml/parser.pxi":1710
* def __init__(self, *, encoding=None, remove_blank_text=False,
* remove_comments=False, remove_pis=False, strip_cdata=True,
* no_network=True, target=None, XMLSchema schema=None, # <<<<<<<<<<<<<<
values[6] = ((PyObject *)Py_None);
values[7] = (PyObject *)((struct __pyx_obj_4lxml_5etree_XMLSchema *)Py_None);
- /* "src/lxml/parser.pxi":1708
+ /* "src/lxml/parser.pxi":1711
* remove_comments=False, remove_pis=False, strip_cdata=True,
* no_network=True, target=None, XMLSchema schema=None,
* recover=True, compact=True, default_doctype=True, # <<<<<<<<<<<<<<
values[9] = ((PyObject *)Py_True);
values[10] = ((PyObject *)Py_True);
- /* "src/lxml/parser.pxi":1709
+ /* "src/lxml/parser.pxi":1712
* no_network=True, target=None, XMLSchema schema=None,
* recover=True, compact=True, default_doctype=True,
* collect_ids=True, huge_tree=False): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, 0, "__init__") < 0)) __PYX_ERR(2, 1705, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, 0, "__init__") < 0)) __PYX_ERR(2, 1708, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 0) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 1705, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 1708, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.HTMLParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return -1;
__pyx_L4_argument_unpacking_done:;
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_schema), __pyx_ptype_4lxml_5etree_XMLSchema, 1, "schema", 0))) __PYX_ERR(2, 1707, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_schema), __pyx_ptype_4lxml_5etree_XMLSchema, 1, "schema", 0))) __PYX_ERR(2, 1710, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_10HTMLParser___init__(((struct __pyx_obj_4lxml_5etree_HTMLParser *)__pyx_v_self), __pyx_v_encoding, __pyx_v_remove_blank_text, __pyx_v_remove_comments, __pyx_v_remove_pis, __pyx_v_strip_cdata, __pyx_v_no_network, __pyx_v_target, __pyx_v_schema, __pyx_v_recover, __pyx_v_compact, __pyx_v_default_doctype, __pyx_v_collect_ids, __pyx_v_huge_tree);
- /* "src/lxml/parser.pxi":1705
+ /* "src/lxml/parser.pxi":1708
* reasons.
* """
* def __init__(self, *, encoding=None, remove_blank_text=False, # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__init__", 0);
- /* "src/lxml/parser.pxi":1711
+ /* "src/lxml/parser.pxi":1714
* collect_ids=True, huge_tree=False):
* cdef int parse_options
* parse_options = _HTML_DEFAULT_PARSE_OPTIONS # <<<<<<<<<<<<<<
*/
__pyx_v_parse_options = __pyx_v_4lxml_5etree__HTML_DEFAULT_PARSE_OPTIONS;
- /* "src/lxml/parser.pxi":1712
+ /* "src/lxml/parser.pxi":1715
* cdef int parse_options
* parse_options = _HTML_DEFAULT_PARSE_OPTIONS
* if remove_blank_text: # <<<<<<<<<<<<<<
* parse_options = parse_options | htmlparser.HTML_PARSE_NOBLANKS
* if not recover:
*/
- __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_remove_blank_text); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 1712, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_remove_blank_text); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 1715, __pyx_L1_error)
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":1713
+ /* "src/lxml/parser.pxi":1716
* parse_options = _HTML_DEFAULT_PARSE_OPTIONS
* if remove_blank_text:
* parse_options = parse_options | htmlparser.HTML_PARSE_NOBLANKS # <<<<<<<<<<<<<<
*/
__pyx_v_parse_options = (__pyx_v_parse_options | HTML_PARSE_NOBLANKS);
- /* "src/lxml/parser.pxi":1712
+ /* "src/lxml/parser.pxi":1715
* cdef int parse_options
* parse_options = _HTML_DEFAULT_PARSE_OPTIONS
* if remove_blank_text: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1714
+ /* "src/lxml/parser.pxi":1717
* if remove_blank_text:
* parse_options = parse_options | htmlparser.HTML_PARSE_NOBLANKS
* if not recover: # <<<<<<<<<<<<<<
* parse_options = parse_options ^ htmlparser.HTML_PARSE_RECOVER
* if not no_network:
*/
- __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_recover); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 1714, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_recover); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 1717, __pyx_L1_error)
__pyx_t_2 = ((!__pyx_t_1) != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1715
+ /* "src/lxml/parser.pxi":1718
* parse_options = parse_options | htmlparser.HTML_PARSE_NOBLANKS
* if not recover:
* parse_options = parse_options ^ htmlparser.HTML_PARSE_RECOVER # <<<<<<<<<<<<<<
*/
__pyx_v_parse_options = (__pyx_v_parse_options ^ HTML_PARSE_RECOVER);
- /* "src/lxml/parser.pxi":1714
+ /* "src/lxml/parser.pxi":1717
* if remove_blank_text:
* parse_options = parse_options | htmlparser.HTML_PARSE_NOBLANKS
* if not recover: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1716
+ /* "src/lxml/parser.pxi":1719
* if not recover:
* parse_options = parse_options ^ htmlparser.HTML_PARSE_RECOVER
* if not no_network: # <<<<<<<<<<<<<<
* parse_options = parse_options ^ htmlparser.HTML_PARSE_NONET
* if not compact:
*/
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_no_network); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1716, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_no_network); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1719, __pyx_L1_error)
__pyx_t_1 = ((!__pyx_t_2) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":1717
+ /* "src/lxml/parser.pxi":1720
* parse_options = parse_options ^ htmlparser.HTML_PARSE_RECOVER
* if not no_network:
* parse_options = parse_options ^ htmlparser.HTML_PARSE_NONET # <<<<<<<<<<<<<<
*/
__pyx_v_parse_options = (__pyx_v_parse_options ^ HTML_PARSE_NONET);
- /* "src/lxml/parser.pxi":1716
+ /* "src/lxml/parser.pxi":1719
* if not recover:
* parse_options = parse_options ^ htmlparser.HTML_PARSE_RECOVER
* if not no_network: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1718
+ /* "src/lxml/parser.pxi":1721
* if not no_network:
* parse_options = parse_options ^ htmlparser.HTML_PARSE_NONET
* if not compact: # <<<<<<<<<<<<<<
* parse_options = parse_options ^ htmlparser.HTML_PARSE_COMPACT
* if not default_doctype:
*/
- __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_compact); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 1718, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_compact); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 1721, __pyx_L1_error)
__pyx_t_2 = ((!__pyx_t_1) != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1719
+ /* "src/lxml/parser.pxi":1722
* parse_options = parse_options ^ htmlparser.HTML_PARSE_NONET
* if not compact:
* parse_options = parse_options ^ htmlparser.HTML_PARSE_COMPACT # <<<<<<<<<<<<<<
*/
__pyx_v_parse_options = (__pyx_v_parse_options ^ HTML_PARSE_COMPACT);
- /* "src/lxml/parser.pxi":1718
+ /* "src/lxml/parser.pxi":1721
* if not no_network:
* parse_options = parse_options ^ htmlparser.HTML_PARSE_NONET
* if not compact: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1720
+ /* "src/lxml/parser.pxi":1723
* if not compact:
* parse_options = parse_options ^ htmlparser.HTML_PARSE_COMPACT
* if not default_doctype: # <<<<<<<<<<<<<<
* parse_options = parse_options ^ htmlparser.HTML_PARSE_NODEFDTD
* if huge_tree:
*/
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_default_doctype); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1720, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_default_doctype); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1723, __pyx_L1_error)
__pyx_t_1 = ((!__pyx_t_2) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":1721
+ /* "src/lxml/parser.pxi":1724
* parse_options = parse_options ^ htmlparser.HTML_PARSE_COMPACT
* if not default_doctype:
* parse_options = parse_options ^ htmlparser.HTML_PARSE_NODEFDTD # <<<<<<<<<<<<<<
*/
__pyx_v_parse_options = (__pyx_v_parse_options ^ HTML_PARSE_NODEFDTD);
- /* "src/lxml/parser.pxi":1720
+ /* "src/lxml/parser.pxi":1723
* if not compact:
* parse_options = parse_options ^ htmlparser.HTML_PARSE_COMPACT
* if not default_doctype: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1722
+ /* "src/lxml/parser.pxi":1725
* if not default_doctype:
* parse_options = parse_options ^ htmlparser.HTML_PARSE_NODEFDTD
* if huge_tree: # <<<<<<<<<<<<<<
* parse_options = parse_options | xmlparser.XML_PARSE_HUGE
*
*/
- __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_huge_tree); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 1722, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_huge_tree); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(2, 1725, __pyx_L1_error)
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":1723
+ /* "src/lxml/parser.pxi":1726
* parse_options = parse_options ^ htmlparser.HTML_PARSE_NODEFDTD
* if huge_tree:
* parse_options = parse_options | xmlparser.XML_PARSE_HUGE # <<<<<<<<<<<<<<
*/
__pyx_v_parse_options = (__pyx_v_parse_options | XML_PARSE_HUGE);
- /* "src/lxml/parser.pxi":1722
+ /* "src/lxml/parser.pxi":1725
* if not default_doctype:
* parse_options = parse_options ^ htmlparser.HTML_PARSE_NODEFDTD
* if huge_tree: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1725
+ /* "src/lxml/parser.pxi":1728
* parse_options = parse_options | xmlparser.XML_PARSE_HUGE
*
* _BaseParser.__init__(self, parse_options, 1, schema, # <<<<<<<<<<<<<<
* remove_comments, remove_pis, strip_cdata,
* collect_ids, target, encoding)
*/
- __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_4lxml_5etree__BaseParser), __pyx_n_s_init); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1725, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_4lxml_5etree__BaseParser), __pyx_n_s_init); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1728, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
- __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_parse_options); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 1725, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_parse_options); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 1728, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
- /* "src/lxml/parser.pxi":1727
+ /* "src/lxml/parser.pxi":1730
* _BaseParser.__init__(self, parse_options, 1, schema,
* remove_comments, remove_pis, strip_cdata,
* collect_ids, target, encoding) # <<<<<<<<<<<<<<
#if CYTHON_FAST_PYCALL
if (PyFunction_Check(__pyx_t_4)) {
PyObject *__pyx_temp[11] = {__pyx_t_6, ((PyObject *)__pyx_v_self), __pyx_t_5, __pyx_int_1, ((PyObject *)__pyx_v_schema), __pyx_v_remove_comments, __pyx_v_remove_pis, __pyx_v_strip_cdata, __pyx_v_collect_ids, __pyx_v_target, __pyx_v_encoding};
- __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 10+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1725, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 10+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1728, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
#if CYTHON_FAST_PYCCALL
if (__Pyx_PyFastCFunction_Check(__pyx_t_4)) {
PyObject *__pyx_temp[11] = {__pyx_t_6, ((PyObject *)__pyx_v_self), __pyx_t_5, __pyx_int_1, ((PyObject *)__pyx_v_schema), __pyx_v_remove_comments, __pyx_v_remove_pis, __pyx_v_strip_cdata, __pyx_v_collect_ids, __pyx_v_target, __pyx_v_encoding};
- __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 10+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1725, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_4, __pyx_temp+1-__pyx_t_7, 10+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1728, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
} else
#endif
{
- __pyx_t_8 = PyTuple_New(10+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1725, __pyx_L1_error)
+ __pyx_t_8 = PyTuple_New(10+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1728, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_8);
if (__pyx_t_6) {
__Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
__Pyx_GIVEREF(__pyx_v_encoding);
PyTuple_SET_ITEM(__pyx_t_8, 9+__pyx_t_7, __pyx_v_encoding);
__pyx_t_5 = 0;
- __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1725, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1728, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
}
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- /* "src/lxml/parser.pxi":1705
+ /* "src/lxml/parser.pxi":1708
* reasons.
* """
* def __init__(self, *, encoding=None, remove_blank_text=False, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1752
+/* "src/lxml/parser.pxi":1755
* source, you can pass the ``base_url``.
* """
* def __init__(self, events=None, *, tag=None, base_url=None, **kwargs): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kwargs, values, pos_args, "__init__") < 0)) __PYX_ERR(2, 1752, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kwargs, values, pos_args, "__init__") < 0)) __PYX_ERR(2, 1755, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 1752, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(2, 1755, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0;
__Pyx_AddTraceback("lxml.etree.HTMLPullParser.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannySetupContext("__init__", 0);
__Pyx_INCREF(__pyx_v_events);
- /* "src/lxml/parser.pxi":1753
+ /* "src/lxml/parser.pxi":1756
* """
* def __init__(self, events=None, *, tag=None, base_url=None, **kwargs):
* HTMLParser.__init__(self, **kwargs) # <<<<<<<<<<<<<<
* if events is None:
* events = ('end',)
*/
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_4lxml_5etree_HTMLParser), __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1753, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_ptype_4lxml_5etree_HTMLParser), __pyx_n_s_init); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1756, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1753, __pyx_L1_error)
+ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1756, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_INCREF(((PyObject *)__pyx_v_self));
__Pyx_GIVEREF(((PyObject *)__pyx_v_self));
PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_self));
- __pyx_t_3 = PyDict_Copy(__pyx_v_kwargs); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1753, __pyx_L1_error)
+ __pyx_t_3 = PyDict_Copy(__pyx_v_kwargs); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1756, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1753, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1756, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "src/lxml/parser.pxi":1754
+ /* "src/lxml/parser.pxi":1757
* def __init__(self, events=None, *, tag=None, base_url=None, **kwargs):
* HTMLParser.__init__(self, **kwargs)
* if events is None: # <<<<<<<<<<<<<<
__pyx_t_6 = (__pyx_t_5 != 0);
if (__pyx_t_6) {
- /* "src/lxml/parser.pxi":1755
+ /* "src/lxml/parser.pxi":1758
* HTMLParser.__init__(self, **kwargs)
* if events is None:
* events = ('end',) # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_tuple__57);
__Pyx_DECREF_SET(__pyx_v_events, __pyx_tuple__57);
- /* "src/lxml/parser.pxi":1754
+ /* "src/lxml/parser.pxi":1757
* def __init__(self, events=None, *, tag=None, base_url=None, **kwargs):
* HTMLParser.__init__(self, **kwargs)
* if events is None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1756
+ /* "src/lxml/parser.pxi":1759
* if events is None:
* events = ('end',)
* self._setBaseURL(base_url) # <<<<<<<<<<<<<<
* self._collectEvents(events, tag)
*
*/
- __pyx_t_4 = ((struct __pyx_vtabstruct_4lxml_5etree_HTMLPullParser *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base._setBaseURL(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self), __pyx_v_base_url); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1756, __pyx_L1_error)
+ __pyx_t_4 = ((struct __pyx_vtabstruct_4lxml_5etree_HTMLPullParser *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base._setBaseURL(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self), __pyx_v_base_url); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1759, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "src/lxml/parser.pxi":1757
+ /* "src/lxml/parser.pxi":1760
* events = ('end',)
* self._setBaseURL(base_url)
* self._collectEvents(events, tag) # <<<<<<<<<<<<<<
*
* def read_events(self):
*/
- __pyx_t_4 = ((struct __pyx_vtabstruct_4lxml_5etree_HTMLPullParser *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base._collectEvents(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self), __pyx_v_events, __pyx_v_tag); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1757, __pyx_L1_error)
+ __pyx_t_4 = ((struct __pyx_vtabstruct_4lxml_5etree_HTMLPullParser *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base._collectEvents(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self), __pyx_v_events, __pyx_v_tag); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 1760, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "src/lxml/parser.pxi":1752
+ /* "src/lxml/parser.pxi":1755
* source, you can pass the ``base_url``.
* """
* def __init__(self, events=None, *, tag=None, base_url=None, **kwargs): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1759
+/* "src/lxml/parser.pxi":1762
* self._collectEvents(events, tag)
*
* def read_events(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("read_events", 0);
- /* "src/lxml/parser.pxi":1760
+ /* "src/lxml/parser.pxi":1763
*
* def read_events(self):
* return (<_SaxParserContext?>self._getPushParserContext()).events_iterator # <<<<<<<<<<<<<<
*
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree_HTMLPullParser *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base._getPushParserContext(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self))); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1760, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)((struct __pyx_vtabstruct_4lxml_5etree_HTMLPullParser *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base._getPushParserContext(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_self))); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1763, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- if (!(likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_4lxml_5etree__SaxParserContext)))) __PYX_ERR(2, 1760, __pyx_L1_error)
+ if (!(likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_4lxml_5etree__SaxParserContext)))) __PYX_ERR(2, 1763, __pyx_L1_error)
__Pyx_INCREF(((PyObject *)((struct __pyx_obj_4lxml_5etree__SaxParserContext *)__pyx_t_1)->events_iterator));
__pyx_r = ((PyObject *)((struct __pyx_obj_4lxml_5etree__SaxParserContext *)__pyx_t_1)->events_iterator);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1759
+ /* "src/lxml/parser.pxi":1762
* self._collectEvents(events, tag)
*
* def read_events(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1767
+/* "src/lxml/parser.pxi":1770
* ############################################################
*
* cdef xmlDoc* _parseDoc(text, filename, _BaseParser parser) except NULL: # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_v_text);
__Pyx_INCREF((PyObject *)__pyx_v_parser);
- /* "src/lxml/parser.pxi":1772
+ /* "src/lxml/parser.pxi":1775
* cdef Py_ssize_t c_len
* cdef bint is_pep393_string
* if parser is None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1773
+ /* "src/lxml/parser.pxi":1776
* cdef bint is_pep393_string
* if parser is None:
* parser = __GLOBAL_PARSER_CONTEXT.getDefaultParser() # <<<<<<<<<<<<<<
* if not filename:
* c_filename = NULL
*/
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree_24_ParserDictionaryContext_getDefaultParser(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1773, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree_24_ParserDictionaryContext_getDefaultParser(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1776, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF_SET(__pyx_v_parser, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_t_3));
__pyx_t_3 = 0;
- /* "src/lxml/parser.pxi":1772
+ /* "src/lxml/parser.pxi":1775
* cdef Py_ssize_t c_len
* cdef bint is_pep393_string
* if parser is None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1774
+ /* "src/lxml/parser.pxi":1777
* if parser is None:
* parser = __GLOBAL_PARSER_CONTEXT.getDefaultParser()
* if not filename: # <<<<<<<<<<<<<<
* c_filename = NULL
* else:
*/
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_filename); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1774, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_filename); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1777, __pyx_L1_error)
__pyx_t_1 = ((!__pyx_t_2) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":1775
+ /* "src/lxml/parser.pxi":1778
* parser = __GLOBAL_PARSER_CONTEXT.getDefaultParser()
* if not filename:
* c_filename = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_c_filename = NULL;
- /* "src/lxml/parser.pxi":1774
+ /* "src/lxml/parser.pxi":1777
* if parser is None:
* parser = __GLOBAL_PARSER_CONTEXT.getDefaultParser()
* if not filename: # <<<<<<<<<<<<<<
goto __pyx_L4;
}
- /* "src/lxml/parser.pxi":1777
+ /* "src/lxml/parser.pxi":1780
* c_filename = NULL
* else:
* filename_utf = _encodeFilenameUTF8(filename) # <<<<<<<<<<<<<<
* if isinstance(text, unicode):
*/
/*else*/ {
- __pyx_t_3 = __pyx_f_4lxml_5etree__encodeFilenameUTF8(__pyx_v_filename); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1777, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree__encodeFilenameUTF8(__pyx_v_filename); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1780, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_v_filename_utf = __pyx_t_3;
__pyx_t_3 = 0;
- /* "src/lxml/parser.pxi":1778
+ /* "src/lxml/parser.pxi":1781
* else:
* filename_utf = _encodeFilenameUTF8(filename)
* c_filename = _cstr(filename_utf) # <<<<<<<<<<<<<<
}
__pyx_L4:;
- /* "src/lxml/parser.pxi":1779
+ /* "src/lxml/parser.pxi":1782
* filename_utf = _encodeFilenameUTF8(filename)
* c_filename = _cstr(filename_utf)
* if isinstance(text, unicode): # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1781
+ /* "src/lxml/parser.pxi":1784
* if isinstance(text, unicode):
* is_pep393_string = (
* python.PEP393_ENABLED and python.PyUnicode_IS_READY(text)) # <<<<<<<<<<<<<<
__pyx_L6_bool_binop_done:;
__pyx_v_is_pep393_string = __pyx_t_2;
- /* "src/lxml/parser.pxi":1782
+ /* "src/lxml/parser.pxi":1785
* is_pep393_string = (
* python.PEP393_ENABLED and python.PyUnicode_IS_READY(text))
* if is_pep393_string: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_v_is_pep393_string != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1783
+ /* "src/lxml/parser.pxi":1786
* python.PEP393_ENABLED and python.PyUnicode_IS_READY(text))
* if is_pep393_string:
* c_len = python.PyUnicode_GET_LENGTH(text) * python.PyUnicode_KIND(text) # <<<<<<<<<<<<<<
*/
__pyx_v_c_len = (PyUnicode_GET_LENGTH(__pyx_v_text) * PyUnicode_KIND(__pyx_v_text));
- /* "src/lxml/parser.pxi":1782
+ /* "src/lxml/parser.pxi":1785
* is_pep393_string = (
* python.PEP393_ENABLED and python.PyUnicode_IS_READY(text))
* if is_pep393_string: # <<<<<<<<<<<<<<
goto __pyx_L8;
}
- /* "src/lxml/parser.pxi":1785
+ /* "src/lxml/parser.pxi":1788
* c_len = python.PyUnicode_GET_LENGTH(text) * python.PyUnicode_KIND(text)
* else:
* c_len = python.PyUnicode_GET_DATA_SIZE(text) # <<<<<<<<<<<<<<
}
__pyx_L8:;
- /* "src/lxml/parser.pxi":1786
+ /* "src/lxml/parser.pxi":1789
* else:
* c_len = python.PyUnicode_GET_DATA_SIZE(text)
* if c_len > limits.INT_MAX: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_len > INT_MAX) != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1788
+ /* "src/lxml/parser.pxi":1791
* if c_len > limits.INT_MAX:
* return (<_BaseParser>parser)._parseDocFromFilelike(
* StringIO(text), filename, None) # <<<<<<<<<<<<<<
}
__pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_text) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_text);
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
- if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1788, __pyx_L1_error)
+ if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1791, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "src/lxml/parser.pxi":1787
+ /* "src/lxml/parser.pxi":1790
* c_len = python.PyUnicode_GET_DATA_SIZE(text)
* if c_len > limits.INT_MAX:
* return (<_BaseParser>parser)._parseDocFromFilelike( # <<<<<<<<<<<<<<
* StringIO(text), filename, None)
* if _PY_UNICODE_ENCODING is NULL and not is_pep393_string:
*/
- __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser)->__pyx_vtab)->_parseDocFromFilelike(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser), __pyx_t_3, __pyx_v_filename, Py_None); if (unlikely(__pyx_t_6 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1787, __pyx_L1_error)
+ __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser)->__pyx_vtab)->_parseDocFromFilelike(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser), __pyx_t_3, __pyx_v_filename, Py_None); if (unlikely(__pyx_t_6 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1790, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_r = __pyx_t_6;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1786
+ /* "src/lxml/parser.pxi":1789
* else:
* c_len = python.PyUnicode_GET_DATA_SIZE(text)
* if c_len > limits.INT_MAX: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1789
+ /* "src/lxml/parser.pxi":1792
* return (<_BaseParser>parser)._parseDocFromFilelike(
* StringIO(text), filename, None)
* if _PY_UNICODE_ENCODING is NULL and not is_pep393_string: # <<<<<<<<<<<<<<
__pyx_L11_bool_binop_done:;
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1790
+ /* "src/lxml/parser.pxi":1793
* StringIO(text), filename, None)
* if _PY_UNICODE_ENCODING is NULL and not is_pep393_string:
* text = (<unicode>text).encode('utf8') # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_v_text == Py_None)) {
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "encode");
- __PYX_ERR(2, 1790, __pyx_L1_error)
+ __PYX_ERR(2, 1793, __pyx_L1_error)
}
- __pyx_t_3 = PyUnicode_AsUTF8String(((PyObject*)__pyx_v_text)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1790, __pyx_L1_error)
+ __pyx_t_3 = PyUnicode_AsUTF8String(((PyObject*)__pyx_v_text)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1793, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF_SET(__pyx_v_text, __pyx_t_3);
__pyx_t_3 = 0;
- /* "src/lxml/parser.pxi":1792
+ /* "src/lxml/parser.pxi":1795
* text = (<unicode>text).encode('utf8')
* return (<_BaseParser>parser)._parseDocFromFilelike(
* BytesIO(text), filename, "UTF-8") # <<<<<<<<<<<<<<
}
__pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_text) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_text);
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
- if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1792, __pyx_L1_error)
+ if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1795, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "src/lxml/parser.pxi":1791
+ /* "src/lxml/parser.pxi":1794
* if _PY_UNICODE_ENCODING is NULL and not is_pep393_string:
* text = (<unicode>text).encode('utf8')
* return (<_BaseParser>parser)._parseDocFromFilelike( # <<<<<<<<<<<<<<
* BytesIO(text), filename, "UTF-8")
* return (<_BaseParser>parser)._parseUnicodeDoc(text, c_filename)
*/
- __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser)->__pyx_vtab)->_parseDocFromFilelike(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser), __pyx_t_3, __pyx_v_filename, __pyx_kp_s_UTF_8); if (unlikely(__pyx_t_6 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1791, __pyx_L1_error)
+ __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser)->__pyx_vtab)->_parseDocFromFilelike(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser), __pyx_t_3, __pyx_v_filename, __pyx_kp_s_UTF_8); if (unlikely(__pyx_t_6 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1794, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_r = __pyx_t_6;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1789
+ /* "src/lxml/parser.pxi":1792
* return (<_BaseParser>parser)._parseDocFromFilelike(
* StringIO(text), filename, None)
* if _PY_UNICODE_ENCODING is NULL and not is_pep393_string: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1793
+ /* "src/lxml/parser.pxi":1796
* return (<_BaseParser>parser)._parseDocFromFilelike(
* BytesIO(text), filename, "UTF-8")
* return (<_BaseParser>parser)._parseUnicodeDoc(text, c_filename) # <<<<<<<<<<<<<<
* else:
* c_len = python.PyBytes_GET_SIZE(text)
*/
- __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser)->__pyx_vtab)->_parseUnicodeDoc(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser), __pyx_v_text, __pyx_v_c_filename); if (unlikely(__pyx_t_6 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1793, __pyx_L1_error)
+ __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser)->__pyx_vtab)->_parseUnicodeDoc(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser), __pyx_v_text, __pyx_v_c_filename); if (unlikely(__pyx_t_6 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1796, __pyx_L1_error)
__pyx_r = __pyx_t_6;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1779
+ /* "src/lxml/parser.pxi":1782
* filename_utf = _encodeFilenameUTF8(filename)
* c_filename = _cstr(filename_utf)
* if isinstance(text, unicode): # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1795
+ /* "src/lxml/parser.pxi":1798
* return (<_BaseParser>parser)._parseUnicodeDoc(text, c_filename)
* else:
* c_len = python.PyBytes_GET_SIZE(text) # <<<<<<<<<<<<<<
/*else*/ {
__pyx_v_c_len = PyBytes_GET_SIZE(__pyx_v_text);
- /* "src/lxml/parser.pxi":1796
+ /* "src/lxml/parser.pxi":1799
* else:
* c_len = python.PyBytes_GET_SIZE(text)
* if c_len > limits.INT_MAX: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_len > INT_MAX) != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1798
+ /* "src/lxml/parser.pxi":1801
* if c_len > limits.INT_MAX:
* return (<_BaseParser>parser)._parseDocFromFilelike(
* BytesIO(text), filename, None) # <<<<<<<<<<<<<<
}
__pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_text) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_text);
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
- if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1798, __pyx_L1_error)
+ if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1801, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "src/lxml/parser.pxi":1797
+ /* "src/lxml/parser.pxi":1800
* c_len = python.PyBytes_GET_SIZE(text)
* if c_len > limits.INT_MAX:
* return (<_BaseParser>parser)._parseDocFromFilelike( # <<<<<<<<<<<<<<
* BytesIO(text), filename, None)
* c_text = _cstr(text)
*/
- __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser)->__pyx_vtab)->_parseDocFromFilelike(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser), __pyx_t_3, __pyx_v_filename, Py_None); if (unlikely(__pyx_t_6 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1797, __pyx_L1_error)
+ __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser)->__pyx_vtab)->_parseDocFromFilelike(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser), __pyx_t_3, __pyx_v_filename, Py_None); if (unlikely(__pyx_t_6 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1800, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_r = __pyx_t_6;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1796
+ /* "src/lxml/parser.pxi":1799
* else:
* c_len = python.PyBytes_GET_SIZE(text)
* if c_len > limits.INT_MAX: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1799
+ /* "src/lxml/parser.pxi":1802
* return (<_BaseParser>parser)._parseDocFromFilelike(
* BytesIO(text), filename, None)
* c_text = _cstr(text) # <<<<<<<<<<<<<<
*/
__pyx_v_c_text = PyBytes_AS_STRING(__pyx_v_text);
- /* "src/lxml/parser.pxi":1800
+ /* "src/lxml/parser.pxi":1803
* BytesIO(text), filename, None)
* c_text = _cstr(text)
* return (<_BaseParser>parser)._parseDoc(c_text, c_len, c_filename) # <<<<<<<<<<<<<<
*
* cdef xmlDoc* _parseDocFromFile(filename8, _BaseParser parser) except NULL:
*/
- __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser)->__pyx_vtab)->_parseDoc(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser), __pyx_v_c_text, __pyx_v_c_len, __pyx_v_c_filename); if (unlikely(__pyx_t_6 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1800, __pyx_L1_error)
+ __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser)->__pyx_vtab)->_parseDoc(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser), __pyx_v_c_text, __pyx_v_c_len, __pyx_v_c_filename); if (unlikely(__pyx_t_6 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1803, __pyx_L1_error)
__pyx_r = __pyx_t_6;
goto __pyx_L0;
}
- /* "src/lxml/parser.pxi":1767
+ /* "src/lxml/parser.pxi":1770
* ############################################################
*
* cdef xmlDoc* _parseDoc(text, filename, _BaseParser parser) except NULL: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1802
+/* "src/lxml/parser.pxi":1805
* return (<_BaseParser>parser)._parseDoc(c_text, c_len, c_filename)
*
* cdef xmlDoc* _parseDocFromFile(filename8, _BaseParser parser) except NULL: # <<<<<<<<<<<<<<
__Pyx_RefNannySetupContext("_parseDocFromFile", 0);
__Pyx_INCREF((PyObject *)__pyx_v_parser);
- /* "src/lxml/parser.pxi":1803
+ /* "src/lxml/parser.pxi":1806
*
* cdef xmlDoc* _parseDocFromFile(filename8, _BaseParser parser) except NULL:
* if parser is None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1804
+ /* "src/lxml/parser.pxi":1807
* cdef xmlDoc* _parseDocFromFile(filename8, _BaseParser parser) except NULL:
* if parser is None:
* parser = __GLOBAL_PARSER_CONTEXT.getDefaultParser() # <<<<<<<<<<<<<<
* return (<_BaseParser>parser)._parseDocFromFile(_cstr(filename8))
*
*/
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree_24_ParserDictionaryContext_getDefaultParser(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1804, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree_24_ParserDictionaryContext_getDefaultParser(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1807, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF_SET(__pyx_v_parser, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_t_3));
__pyx_t_3 = 0;
- /* "src/lxml/parser.pxi":1803
+ /* "src/lxml/parser.pxi":1806
*
* cdef xmlDoc* _parseDocFromFile(filename8, _BaseParser parser) except NULL:
* if parser is None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1805
+ /* "src/lxml/parser.pxi":1808
* if parser is None:
* parser = __GLOBAL_PARSER_CONTEXT.getDefaultParser()
* return (<_BaseParser>parser)._parseDocFromFile(_cstr(filename8)) # <<<<<<<<<<<<<<
*
* cdef xmlDoc* _parseDocFromFilelike(source, filename,
*/
- __pyx_t_4 = ((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser)->__pyx_vtab)->_parseDocFromFile(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser), PyBytes_AS_STRING(__pyx_v_filename8)); if (unlikely(__pyx_t_4 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1805, __pyx_L1_error)
+ __pyx_t_4 = ((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser)->__pyx_vtab)->_parseDocFromFile(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser), PyBytes_AS_STRING(__pyx_v_filename8)); if (unlikely(__pyx_t_4 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1808, __pyx_L1_error)
__pyx_r = __pyx_t_4;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1802
+ /* "src/lxml/parser.pxi":1805
* return (<_BaseParser>parser)._parseDoc(c_text, c_len, c_filename)
*
* cdef xmlDoc* _parseDocFromFile(filename8, _BaseParser parser) except NULL: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1807
+/* "src/lxml/parser.pxi":1810
* return (<_BaseParser>parser)._parseDocFromFile(_cstr(filename8))
*
* cdef xmlDoc* _parseDocFromFilelike(source, filename, # <<<<<<<<<<<<<<
__Pyx_RefNannySetupContext("_parseDocFromFilelike", 0);
__Pyx_INCREF((PyObject *)__pyx_v_parser);
- /* "src/lxml/parser.pxi":1809
+ /* "src/lxml/parser.pxi":1812
* cdef xmlDoc* _parseDocFromFilelike(source, filename,
* _BaseParser parser) except NULL:
* if parser is None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1810
+ /* "src/lxml/parser.pxi":1813
* _BaseParser parser) except NULL:
* if parser is None:
* parser = __GLOBAL_PARSER_CONTEXT.getDefaultParser() # <<<<<<<<<<<<<<
* return (<_BaseParser>parser)._parseDocFromFilelike(source, filename, None)
*
*/
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree_24_ParserDictionaryContext_getDefaultParser(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1810, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree_24_ParserDictionaryContext_getDefaultParser(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1813, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF_SET(__pyx_v_parser, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_t_3));
__pyx_t_3 = 0;
- /* "src/lxml/parser.pxi":1809
+ /* "src/lxml/parser.pxi":1812
* cdef xmlDoc* _parseDocFromFilelike(source, filename,
* _BaseParser parser) except NULL:
* if parser is None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1811
+ /* "src/lxml/parser.pxi":1814
* if parser is None:
* parser = __GLOBAL_PARSER_CONTEXT.getDefaultParser()
* return (<_BaseParser>parser)._parseDocFromFilelike(source, filename, None) # <<<<<<<<<<<<<<
*
* cdef xmlDoc* _newXMLDoc() except NULL:
*/
- __pyx_t_4 = ((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser)->__pyx_vtab)->_parseDocFromFilelike(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser), __pyx_v_source, __pyx_v_filename, Py_None); if (unlikely(__pyx_t_4 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1811, __pyx_L1_error)
+ __pyx_t_4 = ((struct __pyx_vtabstruct_4lxml_5etree__BaseParser *)((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser)->__pyx_vtab)->_parseDocFromFilelike(((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser), __pyx_v_source, __pyx_v_filename, Py_None); if (unlikely(__pyx_t_4 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1814, __pyx_L1_error)
__pyx_r = __pyx_t_4;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1807
+ /* "src/lxml/parser.pxi":1810
* return (<_BaseParser>parser)._parseDocFromFile(_cstr(filename8))
*
* cdef xmlDoc* _parseDocFromFilelike(source, filename, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1813
+/* "src/lxml/parser.pxi":1816
* return (<_BaseParser>parser)._parseDocFromFilelike(source, filename, None)
*
* cdef xmlDoc* _newXMLDoc() except NULL: # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_newXMLDoc", 0);
- /* "src/lxml/parser.pxi":1815
+ /* "src/lxml/parser.pxi":1818
* cdef xmlDoc* _newXMLDoc() except NULL:
* cdef xmlDoc* result
* result = tree.xmlNewDoc(NULL) # <<<<<<<<<<<<<<
*/
__pyx_v_result = xmlNewDoc(NULL);
- /* "src/lxml/parser.pxi":1816
+ /* "src/lxml/parser.pxi":1819
* cdef xmlDoc* result
* result = tree.xmlNewDoc(NULL)
* if result is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_result == NULL) != 0);
if (unlikely(__pyx_t_1)) {
- /* "src/lxml/parser.pxi":1817
+ /* "src/lxml/parser.pxi":1820
* result = tree.xmlNewDoc(NULL)
* if result is NULL:
* raise MemoryError() # <<<<<<<<<<<<<<
* if result.encoding is NULL:
* result.encoding = tree.xmlStrdup(<unsigned char*>"UTF-8")
*/
- PyErr_NoMemory(); __PYX_ERR(2, 1817, __pyx_L1_error)
+ PyErr_NoMemory(); __PYX_ERR(2, 1820, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1816
+ /* "src/lxml/parser.pxi":1819
* cdef xmlDoc* result
* result = tree.xmlNewDoc(NULL)
* if result is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1818
+ /* "src/lxml/parser.pxi":1821
* if result is NULL:
* raise MemoryError()
* if result.encoding is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_result->encoding == NULL) != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":1819
+ /* "src/lxml/parser.pxi":1822
* raise MemoryError()
* if result.encoding is NULL:
* result.encoding = tree.xmlStrdup(<unsigned char*>"UTF-8") # <<<<<<<<<<<<<<
*/
__pyx_v_result->encoding = xmlStrdup(((unsigned char *)((unsigned char *)((char const *)"UTF-8"))));
- /* "src/lxml/parser.pxi":1818
+ /* "src/lxml/parser.pxi":1821
* if result is NULL:
* raise MemoryError()
* if result.encoding is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1820
+ /* "src/lxml/parser.pxi":1823
* if result.encoding is NULL:
* result.encoding = tree.xmlStrdup(<unsigned char*>"UTF-8")
* __GLOBAL_PARSER_CONTEXT.initDocDict(result) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree_24_ParserDictionaryContext_initDocDict(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT, __pyx_v_result);
- /* "src/lxml/parser.pxi":1821
+ /* "src/lxml/parser.pxi":1824
* result.encoding = tree.xmlStrdup(<unsigned char*>"UTF-8")
* __GLOBAL_PARSER_CONTEXT.initDocDict(result)
* return result # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_result;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1813
+ /* "src/lxml/parser.pxi":1816
* return (<_BaseParser>parser)._parseDocFromFilelike(source, filename, None)
*
* cdef xmlDoc* _newXMLDoc() except NULL: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1823
+/* "src/lxml/parser.pxi":1826
* return result
*
* cdef xmlDoc* _newHTMLDoc() except NULL: # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_newHTMLDoc", 0);
- /* "src/lxml/parser.pxi":1825
+ /* "src/lxml/parser.pxi":1828
* cdef xmlDoc* _newHTMLDoc() except NULL:
* cdef xmlDoc* result
* result = tree.htmlNewDoc(NULL, NULL) # <<<<<<<<<<<<<<
*/
__pyx_v_result = htmlNewDoc(NULL, NULL);
- /* "src/lxml/parser.pxi":1826
+ /* "src/lxml/parser.pxi":1829
* cdef xmlDoc* result
* result = tree.htmlNewDoc(NULL, NULL)
* if result is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_result == NULL) != 0);
if (unlikely(__pyx_t_1)) {
- /* "src/lxml/parser.pxi":1827
+ /* "src/lxml/parser.pxi":1830
* result = tree.htmlNewDoc(NULL, NULL)
* if result is NULL:
* raise MemoryError() # <<<<<<<<<<<<<<
* __GLOBAL_PARSER_CONTEXT.initDocDict(result)
* return result
*/
- PyErr_NoMemory(); __PYX_ERR(2, 1827, __pyx_L1_error)
+ PyErr_NoMemory(); __PYX_ERR(2, 1830, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1826
+ /* "src/lxml/parser.pxi":1829
* cdef xmlDoc* result
* result = tree.htmlNewDoc(NULL, NULL)
* if result is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1828
+ /* "src/lxml/parser.pxi":1831
* if result is NULL:
* raise MemoryError()
* __GLOBAL_PARSER_CONTEXT.initDocDict(result) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree_24_ParserDictionaryContext_initDocDict(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT, __pyx_v_result);
- /* "src/lxml/parser.pxi":1829
+ /* "src/lxml/parser.pxi":1832
* raise MemoryError()
* __GLOBAL_PARSER_CONTEXT.initDocDict(result)
* return result # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_result;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1823
+ /* "src/lxml/parser.pxi":1826
* return result
*
* cdef xmlDoc* _newHTMLDoc() except NULL: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1831
+/* "src/lxml/parser.pxi":1834
* return result
*
* cdef xmlDoc* _copyDoc(xmlDoc* c_doc, int recursive) except NULL: # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_copyDoc", 0);
- /* "src/lxml/parser.pxi":1833
+ /* "src/lxml/parser.pxi":1836
* cdef xmlDoc* _copyDoc(xmlDoc* c_doc, int recursive) except NULL:
* cdef xmlDoc* result
* if recursive: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_v_recursive != 0);
if (__pyx_t_1) {
- /* "src/lxml/parser.pxi":1834
+ /* "src/lxml/parser.pxi":1837
* cdef xmlDoc* result
* if recursive:
* with nogil: # <<<<<<<<<<<<<<
#endif
/*try:*/ {
- /* "src/lxml/parser.pxi":1835
+ /* "src/lxml/parser.pxi":1838
* if recursive:
* with nogil:
* result = tree.xmlCopyDoc(c_doc, recursive) # <<<<<<<<<<<<<<
__pyx_v_result = xmlCopyDoc(__pyx_v_c_doc, __pyx_v_recursive);
}
- /* "src/lxml/parser.pxi":1834
+ /* "src/lxml/parser.pxi":1837
* cdef xmlDoc* result
* if recursive:
* with nogil: # <<<<<<<<<<<<<<
}
}
- /* "src/lxml/parser.pxi":1833
+ /* "src/lxml/parser.pxi":1836
* cdef xmlDoc* _copyDoc(xmlDoc* c_doc, int recursive) except NULL:
* cdef xmlDoc* result
* if recursive: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "src/lxml/parser.pxi":1837
+ /* "src/lxml/parser.pxi":1840
* result = tree.xmlCopyDoc(c_doc, recursive)
* else:
* result = tree.xmlCopyDoc(c_doc, 0) # <<<<<<<<<<<<<<
}
__pyx_L3:;
- /* "src/lxml/parser.pxi":1838
+ /* "src/lxml/parser.pxi":1841
* else:
* result = tree.xmlCopyDoc(c_doc, 0)
* if result is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_result == NULL) != 0);
if (unlikely(__pyx_t_1)) {
- /* "src/lxml/parser.pxi":1839
+ /* "src/lxml/parser.pxi":1842
* result = tree.xmlCopyDoc(c_doc, 0)
* if result is NULL:
* raise MemoryError() # <<<<<<<<<<<<<<
* __GLOBAL_PARSER_CONTEXT.initDocDict(result)
* return result
*/
- PyErr_NoMemory(); __PYX_ERR(2, 1839, __pyx_L1_error)
+ PyErr_NoMemory(); __PYX_ERR(2, 1842, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1838
+ /* "src/lxml/parser.pxi":1841
* else:
* result = tree.xmlCopyDoc(c_doc, 0)
* if result is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1840
+ /* "src/lxml/parser.pxi":1843
* if result is NULL:
* raise MemoryError()
* __GLOBAL_PARSER_CONTEXT.initDocDict(result) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree_24_ParserDictionaryContext_initDocDict(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT, __pyx_v_result);
- /* "src/lxml/parser.pxi":1841
+ /* "src/lxml/parser.pxi":1844
* raise MemoryError()
* __GLOBAL_PARSER_CONTEXT.initDocDict(result)
* return result # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_result;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1831
+ /* "src/lxml/parser.pxi":1834
* return result
*
* cdef xmlDoc* _copyDoc(xmlDoc* c_doc, int recursive) except NULL: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1843
+/* "src/lxml/parser.pxi":1846
* return result
*
* cdef xmlDoc* _copyDocRoot(xmlDoc* c_doc, xmlNode* c_new_root) except NULL: # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_copyDocRoot", 0);
- /* "src/lxml/parser.pxi":1847
+ /* "src/lxml/parser.pxi":1850
* cdef xmlDoc* result
* cdef xmlNode* c_node
* result = tree.xmlCopyDoc(c_doc, 0) # non recursive # <<<<<<<<<<<<<<
*/
__pyx_v_result = xmlCopyDoc(__pyx_v_c_doc, 0);
- /* "src/lxml/parser.pxi":1848
+ /* "src/lxml/parser.pxi":1851
* cdef xmlNode* c_node
* result = tree.xmlCopyDoc(c_doc, 0) # non recursive
* __GLOBAL_PARSER_CONTEXT.initDocDict(result) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree_24_ParserDictionaryContext_initDocDict(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT, __pyx_v_result);
- /* "src/lxml/parser.pxi":1849
+ /* "src/lxml/parser.pxi":1852
* result = tree.xmlCopyDoc(c_doc, 0) # non recursive
* __GLOBAL_PARSER_CONTEXT.initDocDict(result)
* with nogil: # <<<<<<<<<<<<<<
#endif
/*try:*/ {
- /* "src/lxml/parser.pxi":1850
+ /* "src/lxml/parser.pxi":1853
* __GLOBAL_PARSER_CONTEXT.initDocDict(result)
* with nogil:
* c_node = tree.xmlDocCopyNode(c_new_root, result, 1) # recursive # <<<<<<<<<<<<<<
__pyx_v_c_node = xmlDocCopyNode(__pyx_v_c_new_root, __pyx_v_result, 1);
}
- /* "src/lxml/parser.pxi":1849
+ /* "src/lxml/parser.pxi":1852
* result = tree.xmlCopyDoc(c_doc, 0) # non recursive
* __GLOBAL_PARSER_CONTEXT.initDocDict(result)
* with nogil: # <<<<<<<<<<<<<<
}
}
- /* "src/lxml/parser.pxi":1851
+ /* "src/lxml/parser.pxi":1854
* with nogil:
* c_node = tree.xmlDocCopyNode(c_new_root, result, 1) # recursive
* if c_node is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_node == NULL) != 0);
if (unlikely(__pyx_t_1)) {
- /* "src/lxml/parser.pxi":1852
+ /* "src/lxml/parser.pxi":1855
* c_node = tree.xmlDocCopyNode(c_new_root, result, 1) # recursive
* if c_node is NULL:
* raise MemoryError() # <<<<<<<<<<<<<<
* tree.xmlDocSetRootElement(result, c_node)
* _copyTail(c_new_root.next, c_node)
*/
- PyErr_NoMemory(); __PYX_ERR(2, 1852, __pyx_L1_error)
+ PyErr_NoMemory(); __PYX_ERR(2, 1855, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1851
+ /* "src/lxml/parser.pxi":1854
* with nogil:
* c_node = tree.xmlDocCopyNode(c_new_root, result, 1) # recursive
* if c_node is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1853
+ /* "src/lxml/parser.pxi":1856
* if c_node is NULL:
* raise MemoryError()
* tree.xmlDocSetRootElement(result, c_node) # <<<<<<<<<<<<<<
*/
(void)(xmlDocSetRootElement(__pyx_v_result, __pyx_v_c_node));
- /* "src/lxml/parser.pxi":1854
+ /* "src/lxml/parser.pxi":1857
* raise MemoryError()
* tree.xmlDocSetRootElement(result, c_node)
* _copyTail(c_new_root.next, c_node) # <<<<<<<<<<<<<<
* return result
*
*/
- __pyx_t_2 = __pyx_f_4lxml_5etree__copyTail(__pyx_v_c_new_root->next, __pyx_v_c_node); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(2, 1854, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__copyTail(__pyx_v_c_new_root->next, __pyx_v_c_node); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(2, 1857, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1855
+ /* "src/lxml/parser.pxi":1858
* tree.xmlDocSetRootElement(result, c_node)
* _copyTail(c_new_root.next, c_node)
* return result # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_result;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1843
+ /* "src/lxml/parser.pxi":1846
* return result
*
* cdef xmlDoc* _copyDocRoot(xmlDoc* c_doc, xmlNode* c_new_root) except NULL: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1857
+/* "src/lxml/parser.pxi":1860
* return result
*
* cdef xmlNode* _copyNodeToDoc(xmlNode* c_node, xmlDoc* c_doc) except NULL: # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_copyNodeToDoc", 0);
- /* "src/lxml/parser.pxi":1860
+ /* "src/lxml/parser.pxi":1863
* u"Recursively copy the element into the document. c_doc is not modified."
* cdef xmlNode* c_root
* c_root = tree.xmlDocCopyNode(c_node, c_doc, 1) # recursive # <<<<<<<<<<<<<<
*/
__pyx_v_c_root = xmlDocCopyNode(__pyx_v_c_node, __pyx_v_c_doc, 1);
- /* "src/lxml/parser.pxi":1861
+ /* "src/lxml/parser.pxi":1864
* cdef xmlNode* c_root
* c_root = tree.xmlDocCopyNode(c_node, c_doc, 1) # recursive
* if c_root is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_c_root == NULL) != 0);
if (unlikely(__pyx_t_1)) {
- /* "src/lxml/parser.pxi":1862
+ /* "src/lxml/parser.pxi":1865
* c_root = tree.xmlDocCopyNode(c_node, c_doc, 1) # recursive
* if c_root is NULL:
* raise MemoryError() # <<<<<<<<<<<<<<
* _copyTail(c_node.next, c_root)
* return c_root
*/
- PyErr_NoMemory(); __PYX_ERR(2, 1862, __pyx_L1_error)
+ PyErr_NoMemory(); __PYX_ERR(2, 1865, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1861
+ /* "src/lxml/parser.pxi":1864
* cdef xmlNode* c_root
* c_root = tree.xmlDocCopyNode(c_node, c_doc, 1) # recursive
* if c_root is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1863
+ /* "src/lxml/parser.pxi":1866
* if c_root is NULL:
* raise MemoryError()
* _copyTail(c_node.next, c_root) # <<<<<<<<<<<<<<
* return c_root
*
*/
- __pyx_t_2 = __pyx_f_4lxml_5etree__copyTail(__pyx_v_c_node->next, __pyx_v_c_root); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(2, 1863, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__copyTail(__pyx_v_c_node->next, __pyx_v_c_root); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(2, 1866, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1864
+ /* "src/lxml/parser.pxi":1867
* raise MemoryError()
* _copyTail(c_node.next, c_root)
* return c_root # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_c_root;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1857
+ /* "src/lxml/parser.pxi":1860
* return result
*
* cdef xmlNode* _copyNodeToDoc(xmlNode* c_node, xmlDoc* c_doc) except NULL: # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1871
+/* "src/lxml/parser.pxi":1874
* ############################################################
*
* cdef _Document _parseDocument(source, _BaseParser parser, base_url): # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_v_source);
__Pyx_INCREF(__pyx_v_base_url);
- /* "src/lxml/parser.pxi":1873
+ /* "src/lxml/parser.pxi":1876
* cdef _Document _parseDocument(source, _BaseParser parser, base_url):
* cdef _Document doc
* source = _getFSPathOrObject(source) # <<<<<<<<<<<<<<
* if _isString(source):
* # parse the file directly from the filesystem
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__getFSPathOrObject(__pyx_v_source); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1873, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__getFSPathOrObject(__pyx_v_source); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1876, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF_SET(__pyx_v_source, __pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/parser.pxi":1874
+ /* "src/lxml/parser.pxi":1877
* cdef _Document doc
* source = _getFSPathOrObject(source)
* if _isString(source): # <<<<<<<<<<<<<<
__pyx_t_2 = (_isString(__pyx_v_source) != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1876
+ /* "src/lxml/parser.pxi":1879
* if _isString(source):
* # parse the file directly from the filesystem
* doc = _parseDocumentFromURL(_encodeFilename(source), parser) # <<<<<<<<<<<<<<
* # fix base URL if requested
* if base_url is not None:
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__encodeFilename(__pyx_v_source); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1876, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__encodeFilename(__pyx_v_source); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1879, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__parseDocumentFromURL(__pyx_t_1, __pyx_v_parser)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1876, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__parseDocumentFromURL(__pyx_t_1, __pyx_v_parser)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1879, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_v_doc = ((struct LxmlDocument *)__pyx_t_3);
__pyx_t_3 = 0;
- /* "src/lxml/parser.pxi":1878
+ /* "src/lxml/parser.pxi":1881
* doc = _parseDocumentFromURL(_encodeFilename(source), parser)
* # fix base URL if requested
* if base_url is not None: # <<<<<<<<<<<<<<
__pyx_t_4 = (__pyx_t_2 != 0);
if (__pyx_t_4) {
- /* "src/lxml/parser.pxi":1879
+ /* "src/lxml/parser.pxi":1882
* # fix base URL if requested
* if base_url is not None:
* base_url = _encodeFilenameUTF8(base_url) # <<<<<<<<<<<<<<
* if doc._c_doc.URL is not NULL:
* tree.xmlFree(<char*>doc._c_doc.URL)
*/
- __pyx_t_3 = __pyx_f_4lxml_5etree__encodeFilenameUTF8(__pyx_v_base_url); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1879, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree__encodeFilenameUTF8(__pyx_v_base_url); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1882, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF_SET(__pyx_v_base_url, __pyx_t_3);
__pyx_t_3 = 0;
- /* "src/lxml/parser.pxi":1880
+ /* "src/lxml/parser.pxi":1883
* if base_url is not None:
* base_url = _encodeFilenameUTF8(base_url)
* if doc._c_doc.URL is not NULL: # <<<<<<<<<<<<<<
__pyx_t_4 = ((__pyx_v_doc->_c_doc->URL != NULL) != 0);
if (__pyx_t_4) {
- /* "src/lxml/parser.pxi":1881
+ /* "src/lxml/parser.pxi":1884
* base_url = _encodeFilenameUTF8(base_url)
* if doc._c_doc.URL is not NULL:
* tree.xmlFree(<char*>doc._c_doc.URL) # <<<<<<<<<<<<<<
*/
xmlFree(((char *)__pyx_v_doc->_c_doc->URL));
- /* "src/lxml/parser.pxi":1880
+ /* "src/lxml/parser.pxi":1883
* if base_url is not None:
* base_url = _encodeFilenameUTF8(base_url)
* if doc._c_doc.URL is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1882
+ /* "src/lxml/parser.pxi":1885
* if doc._c_doc.URL is not NULL:
* tree.xmlFree(<char*>doc._c_doc.URL)
* doc._c_doc.URL = tree.xmlStrdup(_xcstr(base_url)) # <<<<<<<<<<<<<<
*/
__pyx_v_doc->_c_doc->URL = xmlStrdup((const xmlChar*)PyBytes_AS_STRING(__pyx_v_base_url));
- /* "src/lxml/parser.pxi":1878
+ /* "src/lxml/parser.pxi":1881
* doc = _parseDocumentFromURL(_encodeFilename(source), parser)
* # fix base URL if requested
* if base_url is not None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1883
+ /* "src/lxml/parser.pxi":1886
* tree.xmlFree(<char*>doc._c_doc.URL)
* doc._c_doc.URL = tree.xmlStrdup(_xcstr(base_url))
* return doc # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_doc;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1874
+ /* "src/lxml/parser.pxi":1877
* cdef _Document doc
* source = _getFSPathOrObject(source)
* if _isString(source): # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1885
+ /* "src/lxml/parser.pxi":1888
* return doc
*
* if base_url is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_4 != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1886
+ /* "src/lxml/parser.pxi":1889
*
* if base_url is not None:
* url = base_url # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_v_base_url);
__pyx_v_url = __pyx_v_base_url;
- /* "src/lxml/parser.pxi":1885
+ /* "src/lxml/parser.pxi":1888
* return doc
*
* if base_url is not None: # <<<<<<<<<<<<<<
goto __pyx_L6;
}
- /* "src/lxml/parser.pxi":1888
+ /* "src/lxml/parser.pxi":1891
* url = base_url
* else:
* url = _getFilenameForFile(source) # <<<<<<<<<<<<<<
* if hasattr(source, u'getvalue') and hasattr(source, u'tell'):
*/
/*else*/ {
- __pyx_t_3 = __pyx_f_4lxml_5etree__getFilenameForFile(__pyx_v_source); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1888, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree__getFilenameForFile(__pyx_v_source); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1891, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_v_url = __pyx_t_3;
__pyx_t_3 = 0;
}
__pyx_L6:;
- /* "src/lxml/parser.pxi":1890
+ /* "src/lxml/parser.pxi":1893
* url = _getFilenameForFile(source)
*
* if hasattr(source, u'getvalue') and hasattr(source, u'tell'): # <<<<<<<<<<<<<<
* # StringIO - reading from start?
* if source.tell() == 0:
*/
- __pyx_t_4 = __Pyx_HasAttr(__pyx_v_source, __pyx_n_u_getvalue); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1890, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_HasAttr(__pyx_v_source, __pyx_n_u_getvalue); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1893, __pyx_L1_error)
__pyx_t_5 = (__pyx_t_4 != 0);
if (__pyx_t_5) {
} else {
__pyx_t_2 = __pyx_t_5;
goto __pyx_L8_bool_binop_done;
}
- __pyx_t_5 = __Pyx_HasAttr(__pyx_v_source, __pyx_n_u_tell); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 1890, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_HasAttr(__pyx_v_source, __pyx_n_u_tell); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(2, 1893, __pyx_L1_error)
__pyx_t_4 = (__pyx_t_5 != 0);
__pyx_t_2 = __pyx_t_4;
__pyx_L8_bool_binop_done:;
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1892
+ /* "src/lxml/parser.pxi":1895
* if hasattr(source, u'getvalue') and hasattr(source, u'tell'):
* # StringIO - reading from start?
* if source.tell() == 0: # <<<<<<<<<<<<<<
* return _parseMemoryDocument(source.getvalue(), url, parser)
*
*/
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_source, __pyx_n_s_tell); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1892, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_source, __pyx_n_s_tell); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1895, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_6 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
}
__pyx_t_3 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_1);
__Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
- if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1892, __pyx_L1_error)
+ if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1895, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_t_3, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1892, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_t_3, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1895, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1892, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(2, 1895, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1893
+ /* "src/lxml/parser.pxi":1896
* # StringIO - reading from start?
* if source.tell() == 0:
* return _parseMemoryDocument(source.getvalue(), url, parser) # <<<<<<<<<<<<<<
* # Support for file-like objects (urlgrabber.urlopen, ...)
*/
__Pyx_XDECREF(((PyObject *)__pyx_r));
- __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_source, __pyx_n_s_getvalue); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1893, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_source, __pyx_n_s_getvalue); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1896, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_6 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
}
__pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
- if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1893, __pyx_L1_error)
+ if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1896, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__parseMemoryDocument(__pyx_t_1, __pyx_v_url, __pyx_v_parser)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1893, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__parseMemoryDocument(__pyx_t_1, __pyx_v_url, __pyx_v_parser)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1896, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_r = ((struct LxmlDocument *)__pyx_t_3);
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1892
+ /* "src/lxml/parser.pxi":1895
* if hasattr(source, u'getvalue') and hasattr(source, u'tell'):
* # StringIO - reading from start?
* if source.tell() == 0: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1890
+ /* "src/lxml/parser.pxi":1893
* url = _getFilenameForFile(source)
*
* if hasattr(source, u'getvalue') and hasattr(source, u'tell'): # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1896
+ /* "src/lxml/parser.pxi":1899
*
* # Support for file-like objects (urlgrabber.urlopen, ...)
* if hasattr(source, u'read'): # <<<<<<<<<<<<<<
* return _parseFilelikeDocument(source, url, parser)
*
*/
- __pyx_t_2 = __Pyx_HasAttr(__pyx_v_source, __pyx_n_u_read); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(2, 1896, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_HasAttr(__pyx_v_source, __pyx_n_u_read); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(2, 1899, __pyx_L1_error)
__pyx_t_4 = (__pyx_t_2 != 0);
if (__pyx_t_4) {
- /* "src/lxml/parser.pxi":1897
+ /* "src/lxml/parser.pxi":1900
* # Support for file-like objects (urlgrabber.urlopen, ...)
* if hasattr(source, u'read'):
* return _parseFilelikeDocument(source, url, parser) # <<<<<<<<<<<<<<
* raise TypeError, f"cannot parse from '{python._fqtypename(source).decode('UTF-8')}'"
*/
__Pyx_XDECREF(((PyObject *)__pyx_r));
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__parseFilelikeDocument(__pyx_v_source, __pyx_v_url, __pyx_v_parser)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1897, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__parseFilelikeDocument(__pyx_v_source, __pyx_v_url, __pyx_v_parser)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1900, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_r = ((struct LxmlDocument *)__pyx_t_3);
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1896
+ /* "src/lxml/parser.pxi":1899
*
* # Support for file-like objects (urlgrabber.urlopen, ...)
* if hasattr(source, u'read'): # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1899
+ /* "src/lxml/parser.pxi":1902
* return _parseFilelikeDocument(source, url, parser)
*
* raise TypeError, f"cannot parse from '{python._fqtypename(source).decode('UTF-8')}'" # <<<<<<<<<<<<<<
*
* cdef _Document _parseDocumentFromURL(url, _BaseParser parser):
*/
- __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1899, __pyx_L1_error)
+ __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1902, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_7 = 0;
__pyx_t_8 = 127;
__Pyx_GIVEREF(__pyx_kp_u_cannot_parse_from);
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_kp_u_cannot_parse_from);
__pyx_t_9 = _fqtypename(__pyx_v_source);
- __pyx_t_1 = __Pyx_decode_c_string(__pyx_t_9, 0, strlen(__pyx_t_9), NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1899, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_decode_c_string(__pyx_t_9, 0, strlen(__pyx_t_9), NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1902, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(__pyx_t_1);
__pyx_t_8 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) > __pyx_t_8) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_1) : __pyx_t_8;
__pyx_t_7 += 1;
__Pyx_GIVEREF(__pyx_kp_u__22);
PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_kp_u__22);
- __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_3, 3, __pyx_t_7, __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1899, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyUnicode_Join(__pyx_t_3, 3, __pyx_t_7, __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1902, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_Raise(__pyx_builtin_TypeError, __pyx_t_1, 0, 0);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __PYX_ERR(2, 1899, __pyx_L1_error)
+ __PYX_ERR(2, 1902, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1871
+ /* "src/lxml/parser.pxi":1874
* ############################################################
*
* cdef _Document _parseDocument(source, _BaseParser parser, base_url): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1901
+/* "src/lxml/parser.pxi":1904
* raise TypeError, f"cannot parse from '{python._fqtypename(source).decode('UTF-8')}'"
*
* cdef _Document _parseDocumentFromURL(url, _BaseParser parser): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_parseDocumentFromURL", 0);
- /* "src/lxml/parser.pxi":1902
+ /* "src/lxml/parser.pxi":1905
*
* cdef _Document _parseDocumentFromURL(url, _BaseParser parser):
* c_doc = _parseDocFromFile(url, parser) # <<<<<<<<<<<<<<
* return _documentFactory(c_doc, parser)
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__parseDocFromFile(__pyx_v_url, __pyx_v_parser); if (unlikely(__pyx_t_1 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1902, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__parseDocFromFile(__pyx_v_url, __pyx_v_parser); if (unlikely(__pyx_t_1 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1905, __pyx_L1_error)
__pyx_v_c_doc = __pyx_t_1;
- /* "src/lxml/parser.pxi":1903
+ /* "src/lxml/parser.pxi":1906
* cdef _Document _parseDocumentFromURL(url, _BaseParser parser):
* c_doc = _parseDocFromFile(url, parser)
* return _documentFactory(c_doc, parser) # <<<<<<<<<<<<<<
* cdef _Document _parseMemoryDocument(text, url, _BaseParser parser):
*/
__Pyx_XDECREF(((PyObject *)__pyx_r));
- __pyx_t_2 = ((PyObject *)__pyx_f_4lxml_5etree__documentFactory(__pyx_v_c_doc, __pyx_v_parser)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1903, __pyx_L1_error)
+ __pyx_t_2 = ((PyObject *)__pyx_f_4lxml_5etree__documentFactory(__pyx_v_c_doc, __pyx_v_parser)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1906, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = ((struct LxmlDocument *)__pyx_t_2);
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1901
+ /* "src/lxml/parser.pxi":1904
* raise TypeError, f"cannot parse from '{python._fqtypename(source).decode('UTF-8')}'"
*
* cdef _Document _parseDocumentFromURL(url, _BaseParser parser): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1905
+/* "src/lxml/parser.pxi":1908
* return _documentFactory(c_doc, parser)
*
* cdef _Document _parseMemoryDocument(text, url, _BaseParser parser): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_parseMemoryDocument", 0);
- /* "src/lxml/parser.pxi":1906
+ /* "src/lxml/parser.pxi":1909
*
* cdef _Document _parseMemoryDocument(text, url, _BaseParser parser):
* if isinstance(text, unicode): # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "src/lxml/parser.pxi":1907
+ /* "src/lxml/parser.pxi":1910
* cdef _Document _parseMemoryDocument(text, url, _BaseParser parser):
* if isinstance(text, unicode):
* if _hasEncodingDeclaration(text): # <<<<<<<<<<<<<<
* raise ValueError(
* u"Unicode strings with encoding declaration are not supported. "
*/
- __pyx_t_2 = __pyx_f_4lxml_5etree__hasEncodingDeclaration(__pyx_v_text); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(2, 1907, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__hasEncodingDeclaration(__pyx_v_text); if (unlikely(__pyx_t_2 == ((int)-1))) __PYX_ERR(2, 1910, __pyx_L1_error)
__pyx_t_1 = (__pyx_t_2 != 0);
if (unlikely(__pyx_t_1)) {
- /* "src/lxml/parser.pxi":1908
+ /* "src/lxml/parser.pxi":1911
* if isinstance(text, unicode):
* if _hasEncodingDeclaration(text):
* raise ValueError( # <<<<<<<<<<<<<<
* u"Unicode strings with encoding declaration are not supported. "
* u"Please use bytes input or XML fragments without declaration.")
*/
- __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__58, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1908, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__58, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1911, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_Raise(__pyx_t_3, 0, 0, 0);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- __PYX_ERR(2, 1908, __pyx_L1_error)
+ __PYX_ERR(2, 1911, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1907
+ /* "src/lxml/parser.pxi":1910
* cdef _Document _parseMemoryDocument(text, url, _BaseParser parser):
* if isinstance(text, unicode):
* if _hasEncodingDeclaration(text): # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/parser.pxi":1906
+ /* "src/lxml/parser.pxi":1909
*
* cdef _Document _parseMemoryDocument(text, url, _BaseParser parser):
* if isinstance(text, unicode): # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "src/lxml/parser.pxi":1911
+ /* "src/lxml/parser.pxi":1914
* u"Unicode strings with encoding declaration are not supported. "
* u"Please use bytes input or XML fragments without declaration.")
* elif not isinstance(text, bytes): # <<<<<<<<<<<<<<
__pyx_t_2 = ((!(__pyx_t_1 != 0)) != 0);
if (unlikely(__pyx_t_2)) {
- /* "src/lxml/parser.pxi":1912
+ /* "src/lxml/parser.pxi":1915
* u"Please use bytes input or XML fragments without declaration.")
* elif not isinstance(text, bytes):
* raise ValueError, u"can only parse strings" # <<<<<<<<<<<<<<
* return _documentFactory(c_doc, parser)
*/
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_can_only_parse_strings, 0, 0);
- __PYX_ERR(2, 1912, __pyx_L1_error)
+ __PYX_ERR(2, 1915, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1911
+ /* "src/lxml/parser.pxi":1914
* u"Unicode strings with encoding declaration are not supported. "
* u"Please use bytes input or XML fragments without declaration.")
* elif not isinstance(text, bytes): # <<<<<<<<<<<<<<
}
__pyx_L3:;
- /* "src/lxml/parser.pxi":1913
+ /* "src/lxml/parser.pxi":1916
* elif not isinstance(text, bytes):
* raise ValueError, u"can only parse strings"
* c_doc = _parseDoc(text, url, parser) # <<<<<<<<<<<<<<
* return _documentFactory(c_doc, parser)
*
*/
- __pyx_t_4 = __pyx_f_4lxml_5etree__parseDoc(__pyx_v_text, __pyx_v_url, __pyx_v_parser); if (unlikely(__pyx_t_4 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1913, __pyx_L1_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree__parseDoc(__pyx_v_text, __pyx_v_url, __pyx_v_parser); if (unlikely(__pyx_t_4 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1916, __pyx_L1_error)
__pyx_v_c_doc = __pyx_t_4;
- /* "src/lxml/parser.pxi":1914
+ /* "src/lxml/parser.pxi":1917
* raise ValueError, u"can only parse strings"
* c_doc = _parseDoc(text, url, parser)
* return _documentFactory(c_doc, parser) # <<<<<<<<<<<<<<
* cdef _Document _parseFilelikeDocument(source, url, _BaseParser parser):
*/
__Pyx_XDECREF(((PyObject *)__pyx_r));
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__documentFactory(__pyx_v_c_doc, __pyx_v_parser)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1914, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__documentFactory(__pyx_v_c_doc, __pyx_v_parser)); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 1917, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_r = ((struct LxmlDocument *)__pyx_t_3);
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1905
+ /* "src/lxml/parser.pxi":1908
* return _documentFactory(c_doc, parser)
*
* cdef _Document _parseMemoryDocument(text, url, _BaseParser parser): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/parser.pxi":1916
+/* "src/lxml/parser.pxi":1919
* return _documentFactory(c_doc, parser)
*
* cdef _Document _parseFilelikeDocument(source, url, _BaseParser parser): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_parseFilelikeDocument", 0);
- /* "src/lxml/parser.pxi":1917
+ /* "src/lxml/parser.pxi":1920
*
* cdef _Document _parseFilelikeDocument(source, url, _BaseParser parser):
* c_doc = _parseDocFromFilelike(source, url, parser) # <<<<<<<<<<<<<<
* return _documentFactory(c_doc, parser)
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__parseDocFromFilelike(__pyx_v_source, __pyx_v_url, __pyx_v_parser); if (unlikely(__pyx_t_1 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1917, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__parseDocFromFilelike(__pyx_v_source, __pyx_v_url, __pyx_v_parser); if (unlikely(__pyx_t_1 == ((xmlDoc *)NULL))) __PYX_ERR(2, 1920, __pyx_L1_error)
__pyx_v_c_doc = __pyx_t_1;
- /* "src/lxml/parser.pxi":1918
+ /* "src/lxml/parser.pxi":1921
* cdef _Document _parseFilelikeDocument(source, url, _BaseParser parser):
* c_doc = _parseDocFromFilelike(source, url, parser)
* return _documentFactory(c_doc, parser) # <<<<<<<<<<<<<<
*/
__Pyx_XDECREF(((PyObject *)__pyx_r));
- __pyx_t_2 = ((PyObject *)__pyx_f_4lxml_5etree__documentFactory(__pyx_v_c_doc, __pyx_v_parser)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1918, __pyx_L1_error)
+ __pyx_t_2 = ((PyObject *)__pyx_f_4lxml_5etree__documentFactory(__pyx_v_c_doc, __pyx_v_parser)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1921, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = ((struct LxmlDocument *)__pyx_t_2);
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "src/lxml/parser.pxi":1916
+ /* "src/lxml/parser.pxi":1919
* return _documentFactory(c_doc, parser)
*
* cdef _Document _parseFilelikeDocument(source, url, _BaseParser parser): # <<<<<<<<<<<<<<
* if context._event_filter & PARSE_EVENT_FILTER_START:
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
__pyx_t_1 = (((PyObject *)__pyx_v_context->__pyx_base._doc) != Py_None);
if (unlikely(!(__pyx_t_1 != 0))) {
PyErr_SetNone(PyExc_AssertionError);
}
__pyx_t_4 = __Pyx_PyList_Pop(__pyx_v_context->_ns_stack); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 535, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
- if (!(likely(PyList_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(3, 535, __pyx_L1_error)
+ if (!(likely(PyList_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(3, 535, __pyx_L1_error)
__pyx_v_declared_namespaces = ((PyObject*)__pyx_t_4);
__pyx_t_4 = 0;
__pyx_t_6 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5--; if (unlikely(!__pyx_t_6)) __PYX_ERR(3, 540, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
#endif
- if (!(likely(PyTuple_CheckExact(__pyx_t_6))||((__pyx_t_6) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_t_6)->tp_name), 0))) __PYX_ERR(3, 540, __pyx_L1_error)
+ if (!(likely(PyTuple_CheckExact(__pyx_t_6))||((__pyx_t_6) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_t_6)->tp_name), 0))) __PYX_ERR(3, 540, __pyx_L1_error)
__Pyx_XDECREF_SET(__pyx_v_prefix_uri, ((PyObject*)__pyx_t_6));
__pyx_t_6 = 0;
* else:
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->_last), __pyx_n_s_tail); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 751, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_2 = (__pyx_t_4 == Py_None);
*/
/*else*/ {
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->_last), __pyx_n_s_text); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 754, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_2 = (__pyx_t_4 == Py_None);
* return element
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->_last), __pyx_n_s_tag); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 849, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_2 = PyObject_RichCompare(__pyx_t_1, __pyx_v_tag, Py_EQ); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 849, __pyx_L1_error)
*/
__pyx_t_2 = __pyx_f_4lxml_5etree__encodeFilename(__pyx_v_f); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 794, __pyx_L4_error)
__Pyx_GOTREF(__pyx_t_2);
- if (!(likely(PyBytes_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(9, 794, __pyx_L4_error)
+ if (!(likely(PyBytes_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(9, 794, __pyx_L4_error)
__pyx_v_filename8 = ((PyObject*)__pyx_t_2);
__pyx_t_2 = 0;
*/
__pyx_t_2 = __Pyx_CallUnboundCMethod2(&__pyx_umethod_PyBytes_Type_replace, __pyx_v_filename8, __pyx_kp_b__62, __pyx_kp_b_25); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 801, __pyx_L4_error)
__Pyx_GOTREF(__pyx_t_2);
- if (!(likely(PyBytes_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(9, 801, __pyx_L4_error)
+ if (!(likely(PyBytes_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(9, 801, __pyx_L4_error)
__Pyx_DECREF_SET(__pyx_v_filename8, ((PyObject*)__pyx_t_2));
__pyx_t_2 = 0;
* self.output_file, self.encoding, self.compresslevel,
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
__pyx_t_1 = (__pyx_v_self->output_file != Py_None);
if (unlikely(!(__pyx_t_1 != 0))) {
PyErr_SetNone(PyExc_AssertionError);
* raise TypeError("Cannot asynchronously write to a plain file")
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
__pyx_t_1 = (__pyx_cur_scope->__pyx_v_self->output_file != Py_None);
if (unlikely(!(__pyx_t_1 != 0))) {
PyErr_SetNone(PyExc_AssertionError);
* cdef int c_standalone
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_self->_c_out != NULL) != 0))) {
PyErr_SetNone(PyExc_AssertionError);
__PYX_ERR(9, 1436, __pyx_L1_error)
* return
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_self->_c_out != NULL) != 0))) {
PyErr_SetNone(PyExc_AssertionError);
__PYX_ERR(9, 1465, __pyx_L1_error)
* return _MethodChanger(self, c_method)
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_self->_c_out != NULL) != 0))) {
PyErr_SetNone(PyExc_AssertionError);
__PYX_ERR(9, 1483, __pyx_L1_error)
* if attrib is not None:
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_self->_c_out != NULL) != 0))) {
PyErr_SetNone(PyExc_AssertionError);
__PYX_ERR(9, 1493, __pyx_L1_error)
* prefix = self._find_prefix(ns, flat_namespace_map, new_namespaces)
* tree.xmlOutputBufferWrite(self._c_out, 1, '<')
*/
- if (!(likely(PyDict_CheckExact(__pyx_v_nsmap))||((__pyx_v_nsmap) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "dict", Py_TYPE(__pyx_v_nsmap)->tp_name), 0))) __PYX_ERR(9, 1527, __pyx_L1_error)
+ if (!(likely(PyDict_CheckExact(__pyx_v_nsmap))||((__pyx_v_nsmap) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "dict", Py_TYPE(__pyx_v_nsmap)->tp_name), 0))) __PYX_ERR(9, 1527, __pyx_L1_error)
__pyx_t_5 = __pyx_f_4lxml_5etree_22_IncrementalFileWriter__collect_namespaces(__pyx_v_self, ((PyObject*)__pyx_v_nsmap)); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 1527, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
if ((likely(PyTuple_CheckExact(__pyx_t_5))) || (PyList_CheckExact(__pyx_t_5))) {
* tree.xmlOutputBufferWrite(self._c_out, 1, '<')
* self._write_qname(name, prefix)
*/
- if (!(likely(PyBytes_CheckExact(__pyx_v_ns))||((__pyx_v_ns) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_ns)->tp_name), 0))) __PYX_ERR(9, 1528, __pyx_L1_error)
- if (!(likely(PyDict_CheckExact(__pyx_v_flat_namespace_map))||((__pyx_v_flat_namespace_map) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "dict", Py_TYPE(__pyx_v_flat_namespace_map)->tp_name), 0))) __PYX_ERR(9, 1528, __pyx_L1_error)
- if (!(likely(PyList_CheckExact(__pyx_v_new_namespaces))||((__pyx_v_new_namespaces) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_new_namespaces)->tp_name), 0))) __PYX_ERR(9, 1528, __pyx_L1_error)
+ if (!(likely(PyBytes_CheckExact(__pyx_v_ns))||((__pyx_v_ns) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_ns)->tp_name), 0))) __PYX_ERR(9, 1528, __pyx_L1_error)
+ if (!(likely(PyDict_CheckExact(__pyx_v_flat_namespace_map))||((__pyx_v_flat_namespace_map) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "dict", Py_TYPE(__pyx_v_flat_namespace_map)->tp_name), 0))) __PYX_ERR(9, 1528, __pyx_L1_error)
+ if (!(likely(PyList_CheckExact(__pyx_v_new_namespaces))||((__pyx_v_new_namespaces) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_new_namespaces)->tp_name), 0))) __PYX_ERR(9, 1528, __pyx_L1_error)
__pyx_t_5 = __pyx_f_4lxml_5etree_22_IncrementalFileWriter__find_prefix(__pyx_v_self, ((PyObject*)__pyx_v_ns), ((PyObject*)__pyx_v_flat_namespace_map), ((PyObject*)__pyx_v_new_namespaces)); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 1528, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__pyx_v_prefix = __pyx_t_5;
*
* self._write_attributes_and_namespaces(
*/
- if (!(likely(PyBytes_CheckExact(__pyx_v_name))||((__pyx_v_name) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_name)->tp_name), 0))) __PYX_ERR(9, 1530, __pyx_L1_error)
- if (!(likely(PyBytes_CheckExact(__pyx_v_prefix))||((__pyx_v_prefix) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_prefix)->tp_name), 0))) __PYX_ERR(9, 1530, __pyx_L1_error)
+ if (!(likely(PyBytes_CheckExact(__pyx_v_name))||((__pyx_v_name) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_name)->tp_name), 0))) __PYX_ERR(9, 1530, __pyx_L1_error)
+ if (!(likely(PyBytes_CheckExact(__pyx_v_prefix))||((__pyx_v_prefix) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_prefix)->tp_name), 0))) __PYX_ERR(9, 1530, __pyx_L1_error)
__pyx_t_5 = __pyx_f_4lxml_5etree_22_IncrementalFileWriter__write_qname(__pyx_v_self, ((PyObject*)__pyx_v_name), ((PyObject*)__pyx_v_prefix)); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 1530, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
*
* tree.xmlOutputBufferWrite(self._c_out, 1, '>')
*/
- if (!(likely(PyList_CheckExact(__pyx_v_attributes))||((__pyx_v_attributes) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_attributes)->tp_name), 0))) __PYX_ERR(9, 1533, __pyx_L1_error)
- if (!(likely(PyDict_CheckExact(__pyx_v_flat_namespace_map))||((__pyx_v_flat_namespace_map) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "dict", Py_TYPE(__pyx_v_flat_namespace_map)->tp_name), 0))) __PYX_ERR(9, 1533, __pyx_L1_error)
- if (!(likely(PyList_CheckExact(__pyx_v_new_namespaces))||((__pyx_v_new_namespaces) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_new_namespaces)->tp_name), 0))) __PYX_ERR(9, 1533, __pyx_L1_error)
+ if (!(likely(PyList_CheckExact(__pyx_v_attributes))||((__pyx_v_attributes) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_attributes)->tp_name), 0))) __PYX_ERR(9, 1533, __pyx_L1_error)
+ if (!(likely(PyDict_CheckExact(__pyx_v_flat_namespace_map))||((__pyx_v_flat_namespace_map) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "dict", Py_TYPE(__pyx_v_flat_namespace_map)->tp_name), 0))) __PYX_ERR(9, 1533, __pyx_L1_error)
+ if (!(likely(PyList_CheckExact(__pyx_v_new_namespaces))||((__pyx_v_new_namespaces) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_new_namespaces)->tp_name), 0))) __PYX_ERR(9, 1533, __pyx_L1_error)
/* "src/lxml/serializer.pxi":1532
* self._write_qname(name, prefix)
* for ns, name, value in attributes ]
* if new_namespaces:
*/
- if (!(likely(PyBytes_CheckExact(__pyx_v_ns))||((__pyx_v_ns) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_ns)->tp_name), 0))) __PYX_ERR(9, 1549, __pyx_L1_error)
+ if (!(likely(PyBytes_CheckExact(__pyx_v_ns))||((__pyx_v_ns) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_ns)->tp_name), 0))) __PYX_ERR(9, 1549, __pyx_L1_error)
__pyx_t_5 = __pyx_f_4lxml_5etree_22_IncrementalFileWriter__find_prefix(__pyx_v_self, ((PyObject*)__pyx_v_ns), __pyx_v_flat_namespace_map, __pyx_v_new_namespaces); if (unlikely(!__pyx_t_5)) __PYX_ERR(9, 1549, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_8 = PyTuple_New(3); if (unlikely(!__pyx_t_8)) __PYX_ERR(9, 1549, __pyx_L1_error)
* tree.xmlOutputBufferWrite(self._c_out, 2, '="')
* _write_attr_string(self._c_out, _cstr(value))
*/
- if (!(likely(PyBytes_CheckExact(__pyx_v_name))||((__pyx_v_name) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_name)->tp_name), 0))) __PYX_ERR(9, 1560, __pyx_L1_error)
- if (!(likely(PyBytes_CheckExact(__pyx_v_prefix))||((__pyx_v_prefix) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_prefix)->tp_name), 0))) __PYX_ERR(9, 1560, __pyx_L1_error)
+ if (!(likely(PyBytes_CheckExact(__pyx_v_name))||((__pyx_v_name) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_name)->tp_name), 0))) __PYX_ERR(9, 1560, __pyx_L1_error)
+ if (!(likely(PyBytes_CheckExact(__pyx_v_prefix))||((__pyx_v_prefix) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_prefix)->tp_name), 0))) __PYX_ERR(9, 1560, __pyx_L1_error)
__pyx_t_3 = __pyx_f_4lxml_5etree_22_IncrementalFileWriter__write_qname(__pyx_v_self, ((PyObject*)__pyx_v_name), ((PyObject*)__pyx_v_prefix)); if (unlikely(!__pyx_t_3)) __PYX_ERR(9, 1560, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
* tree.xmlOutputBufferWrite(self._c_out, 1, '>')
*
*/
- if (!(likely(PyBytes_CheckExact(__pyx_v_name))||((__pyx_v_name) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_name)->tp_name), 0))) __PYX_ERR(9, 1580, __pyx_L1_error)
- if (!(likely(PyBytes_CheckExact(__pyx_v_prefix))||((__pyx_v_prefix) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_prefix)->tp_name), 0))) __PYX_ERR(9, 1580, __pyx_L1_error)
+ if (!(likely(PyBytes_CheckExact(__pyx_v_name))||((__pyx_v_name) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_name)->tp_name), 0))) __PYX_ERR(9, 1580, __pyx_L1_error)
+ if (!(likely(PyBytes_CheckExact(__pyx_v_prefix))||((__pyx_v_prefix) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_prefix)->tp_name), 0))) __PYX_ERR(9, 1580, __pyx_L1_error)
__pyx_t_2 = __pyx_f_4lxml_5etree_22_IncrementalFileWriter__write_qname(__pyx_v_self, ((PyObject*)__pyx_v_name), ((PyObject*)__pyx_v_prefix)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1580, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
*
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_self->_c_out != NULL) != 0))) {
PyErr_SetNone(PyExc_AssertionError);
__PYX_ERR(9, 1632, __pyx_L1_error)
* self._handle_error(self._c_out.error)
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_self->_c_out != NULL) != 0))) {
PyErr_SetNone(PyExc_AssertionError);
__PYX_ERR(9, 1676, __pyx_L1_error)
* def write(self, data):
*/
__Pyx_XDECREF(__pyx_r);
- if (!(likely(PyBytes_CheckExact(__pyx_v_data))||((__pyx_v_data) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_data)->tp_name), 0))) __PYX_ERR(9, 1716, __pyx_L1_error)
+ if (!(likely(PyBytes_CheckExact(__pyx_v_data))||((__pyx_v_data) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_data)->tp_name), 0))) __PYX_ERR(9, 1716, __pyx_L1_error)
__Pyx_INCREF(__pyx_v_data);
__pyx_r = ((PyObject*)__pyx_v_data);
goto __pyx_L0;
} else {
__Pyx_RaiseNoneNotIterableError(); __PYX_ERR(15, 171, __pyx_L1_error)
}
- if (!(likely(PyList_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(15, 171, __pyx_L1_error)
+ if (!(likely(PyList_CheckExact(__pyx_t_4))||((__pyx_t_4) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_t_4)->tp_name), 0))) __PYX_ERR(15, 171, __pyx_L1_error)
__pyx_v_lst = ((PyObject*)__pyx_t_4);
__pyx_t_4 = 0;
__pyx_v_doc = __pyx_t_5;
*
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
__pyx_t_1 = (((PyObject *)__pyx_v_self->_error_log) != Py_None);
if (unlikely(!(__pyx_t_1 != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_XInclude_instance_not_initialise);
* parse_options = node._doc._parser._parse_options
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
__pyx_t_2 = (((PyObject *)__pyx_v_self->_error_log) != Py_None);
if (unlikely(!(__pyx_t_2 != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_XInclude_processor_not_initialis);
*
*
*/
- if (!(likely(PySet_CheckExact(__pyx_v_keep_ns_prefixes))||((__pyx_v_keep_ns_prefixes) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "set", Py_TYPE(__pyx_v_keep_ns_prefixes)->tp_name), 0))) __PYX_ERR(17, 30, __pyx_L1_error)
+ if (!(likely(PySet_CheckExact(__pyx_v_keep_ns_prefixes))||((__pyx_v_keep_ns_prefixes) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "set", Py_TYPE(__pyx_v_keep_ns_prefixes)->tp_name), 0))) __PYX_ERR(17, 30, __pyx_L1_error)
__pyx_t_4 = __pyx_f_4lxml_5etree__removeUnusedNamespaceDeclarations(__pyx_v_c_element, ((PyObject*)__pyx_v_keep_ns_prefixes)); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(17, 30, __pyx_L1_error)
/* "src/lxml/cleanup.pxi":3
* self._namespaces = namespaces
* self._temp_refs = _TempStore()
*/
- if (!(likely(PyDict_CheckExact(__pyx_v_extensions))||((__pyx_v_extensions) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "dict", Py_TYPE(__pyx_v_extensions)->tp_name), 0))) __PYX_ERR(10, 95, __pyx_L1_error)
+ if (!(likely(PyDict_CheckExact(__pyx_v_extensions))||((__pyx_v_extensions) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "dict", Py_TYPE(__pyx_v_extensions)->tp_name), 0))) __PYX_ERR(10, 95, __pyx_L1_error)
__pyx_t_1 = __pyx_v_extensions;
__Pyx_INCREF(__pyx_t_1);
__Pyx_GIVEREF(__pyx_t_1);
* self._temp_refs = _TempStore()
* self._temp_documents = set()
*/
- if (!(likely(PyList_CheckExact(__pyx_v_namespaces))||((__pyx_v_namespaces) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_namespaces)->tp_name), 0))) __PYX_ERR(10, 96, __pyx_L1_error)
+ if (!(likely(PyList_CheckExact(__pyx_v_namespaces))||((__pyx_v_namespaces) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_namespaces)->tp_name), 0))) __PYX_ERR(10, 96, __pyx_L1_error)
__pyx_t_1 = __pyx_v_namespaces;
__Pyx_INCREF(__pyx_t_1);
__Pyx_GIVEREF(__pyx_t_1);
*
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
__pyx_t_1 = (((PyObject *)__pyx_v_self->_error_log) != Py_None);
if (unlikely(!(__pyx_t_1 != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_XPath_evaluator_not_initialised);
*
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_self->__pyx_base._xpathCtxt != NULL) != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_XPath_context_not_initialised);
__PYX_ERR(18, 269, __pyx_L1_error)
* self._context.addNamespace(prefix, uri)
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_self->__pyx_base._xpathCtxt != NULL) != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_XPath_context_not_initialised);
__PYX_ERR(18, 275, __pyx_L1_error)
* doc = self._element._doc
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_self->__pyx_base._xpathCtxt != NULL) != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_XPath_context_not_initialised);
__PYX_ERR(18, 292, __pyx_L1_error)
* doc = self._element._doc
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_self->__pyx_base.__pyx_base._xpathCtxt != NULL) != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_XPath_context_not_initialised);
__PYX_ERR(18, 341, __pyx_L1_error)
* element = _rootNodeOrRaise(_etree_or_element)
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_self->__pyx_base._xpathCtxt != NULL) != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_XPath_context_not_initialised);
__PYX_ERR(18, 429, __pyx_L1_error)
return __pyx_r;
}
-/* "src/lxml/xslt.pxi":367
+/* "src/lxml/xslt.pxi":368
* cdef _ErrorLog _error_log
*
* def __cinit__(self): # <<<<<<<<<<<<<<
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__cinit__", 0);
- /* "src/lxml/xslt.pxi":368
+ /* "src/lxml/xslt.pxi":369
*
* def __cinit__(self):
* self._c_style = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_self->_c_style = NULL;
- /* "src/lxml/xslt.pxi":367
+ /* "src/lxml/xslt.pxi":368
* cdef _ErrorLog _error_log
*
* def __cinit__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/xslt.pxi":370
+/* "src/lxml/xslt.pxi":371
* self._c_style = NULL
*
* def __init__(self, xslt_input, *, extensions=None, regexp=True, # <<<<<<<<<<<<<<
values[1] = ((PyObject *)Py_None);
values[2] = ((PyObject *)Py_True);
- /* "src/lxml/xslt.pxi":371
+ /* "src/lxml/xslt.pxi":372
*
* def __init__(self, xslt_input, *, extensions=None, regexp=True,
* access_control=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(4, 370, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(4, 371, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(4, 370, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(4, 371, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.XSLT.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
__pyx_L4_argument_unpacking_done:;
__pyx_r = __pyx_pf_4lxml_5etree_4XSLT_2__init__(((struct __pyx_obj_4lxml_5etree_XSLT *)__pyx_v_self), __pyx_v_xslt_input, __pyx_v_extensions, __pyx_v_regexp, __pyx_v_access_control);
- /* "src/lxml/xslt.pxi":370
+ /* "src/lxml/xslt.pxi":371
* self._c_style = NULL
*
* def __init__(self, xslt_input, *, extensions=None, regexp=True, # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__init__", 0);
- /* "src/lxml/xslt.pxi":372
+ /* "src/lxml/xslt.pxi":373
* def __init__(self, xslt_input, *, extensions=None, regexp=True,
* access_control=None):
* cdef xslt.xsltStylesheet* c_style = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_c_style = NULL;
- /* "src/lxml/xslt.pxi":377
+ /* "src/lxml/xslt.pxi":378
* cdef _Element root_node
*
* doc = _documentOrRaise(xslt_input) # <<<<<<<<<<<<<<
* root_node = _rootNodeOrRaise(xslt_input)
*
*/
- __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__documentOrRaise(__pyx_v_xslt_input)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 377, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__documentOrRaise(__pyx_v_xslt_input)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 378, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_v_doc = ((struct LxmlDocument *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/xslt.pxi":378
+ /* "src/lxml/xslt.pxi":379
*
* doc = _documentOrRaise(xslt_input)
* root_node = _rootNodeOrRaise(xslt_input) # <<<<<<<<<<<<<<
*
* # set access control or raise TypeError
*/
- __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__rootNodeOrRaise(__pyx_v_xslt_input)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 378, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__rootNodeOrRaise(__pyx_v_xslt_input)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 379, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_v_root_node = ((struct LxmlElement *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/xslt.pxi":381
+ /* "src/lxml/xslt.pxi":382
*
* # set access control or raise TypeError
* self._access_control = access_control # <<<<<<<<<<<<<<
*
* # make a copy of the document as stylesheet parsing modifies it
*/
- if (!(likely(((__pyx_v_access_control) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_access_control, __pyx_ptype_4lxml_5etree_XSLTAccessControl))))) __PYX_ERR(4, 381, __pyx_L1_error)
+ if (!(likely(((__pyx_v_access_control) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_access_control, __pyx_ptype_4lxml_5etree_XSLTAccessControl))))) __PYX_ERR(4, 382, __pyx_L1_error)
__pyx_t_1 = __pyx_v_access_control;
__Pyx_INCREF(__pyx_t_1);
__Pyx_GIVEREF(__pyx_t_1);
__pyx_v_self->_access_control = ((struct __pyx_obj_4lxml_5etree_XSLTAccessControl *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/xslt.pxi":384
+ /* "src/lxml/xslt.pxi":385
*
* # make a copy of the document as stylesheet parsing modifies it
* c_doc = _copyDocRoot(doc._c_doc, root_node._c_node) # <<<<<<<<<<<<<<
*
* # make sure we always have a stylesheet URL
*/
- __pyx_t_2 = __pyx_f_4lxml_5etree__copyDocRoot(__pyx_v_doc->_c_doc, __pyx_v_root_node->_c_node); if (unlikely(__pyx_t_2 == ((xmlDoc *)NULL))) __PYX_ERR(4, 384, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__copyDocRoot(__pyx_v_doc->_c_doc, __pyx_v_root_node->_c_node); if (unlikely(__pyx_t_2 == ((xmlDoc *)NULL))) __PYX_ERR(4, 385, __pyx_L1_error)
__pyx_v_c_doc = __pyx_t_2;
- /* "src/lxml/xslt.pxi":387
+ /* "src/lxml/xslt.pxi":388
*
* # make sure we always have a stylesheet URL
* if c_doc.URL is NULL: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_doc->URL == NULL) != 0);
if (__pyx_t_3) {
- /* "src/lxml/xslt.pxi":389
+ /* "src/lxml/xslt.pxi":390
* if c_doc.URL is NULL:
* doc_url_utf = python.PyUnicode_AsASCIIString(
* f"string://__STRING__XSLT__/{id(self)}.xslt") # <<<<<<<<<<<<<<
* c_doc.URL = tree.xmlStrdup(_xcstr(doc_url_utf))
*
*/
- __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 389, __pyx_L1_error)
+ __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 390, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_4 = 0;
__pyx_t_5 = 127;
__pyx_t_4 += 26;
__Pyx_GIVEREF(__pyx_kp_u_string___STRING__XSLT);
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_string___STRING__XSLT);
- __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_id, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 389, __pyx_L1_error)
+ __pyx_t_6 = __Pyx_PyObject_CallOneArg(__pyx_builtin_id, ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 390, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
- __pyx_t_7 = __Pyx_PyObject_FormatSimple(__pyx_t_6, __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 389, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyObject_FormatSimple(__pyx_t_6, __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 390, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__pyx_t_5 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) > __pyx_t_5) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) : __pyx_t_5;
__pyx_t_4 += 5;
__Pyx_GIVEREF(__pyx_kp_u_xslt_2);
PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u_xslt_2);
- __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_1, 3, __pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 389, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_1, 3, __pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 390, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "src/lxml/xslt.pxi":388
+ /* "src/lxml/xslt.pxi":389
* # make sure we always have a stylesheet URL
* if c_doc.URL is NULL:
* doc_url_utf = python.PyUnicode_AsASCIIString( # <<<<<<<<<<<<<<
* f"string://__STRING__XSLT__/{id(self)}.xslt")
* c_doc.URL = tree.xmlStrdup(_xcstr(doc_url_utf))
*/
- __pyx_t_1 = PyUnicode_AsASCIIString(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 388, __pyx_L1_error)
+ __pyx_t_1 = PyUnicode_AsASCIIString(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 389, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__pyx_v_doc_url_utf = ((PyObject*)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/xslt.pxi":390
+ /* "src/lxml/xslt.pxi":391
* doc_url_utf = python.PyUnicode_AsASCIIString(
* f"string://__STRING__XSLT__/{id(self)}.xslt")
* c_doc.URL = tree.xmlStrdup(_xcstr(doc_url_utf)) # <<<<<<<<<<<<<<
*/
__pyx_v_c_doc->URL = xmlStrdup((const xmlChar*)PyBytes_AS_STRING(__pyx_v_doc_url_utf));
- /* "src/lxml/xslt.pxi":387
+ /* "src/lxml/xslt.pxi":388
*
* # make sure we always have a stylesheet URL
* if c_doc.URL is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":392
+ /* "src/lxml/xslt.pxi":393
* c_doc.URL = tree.xmlStrdup(_xcstr(doc_url_utf))
*
* self._error_log = _ErrorLog() # <<<<<<<<<<<<<<
* self._xslt_resolver_context = _XSLTResolverContext()
* _initXSLTResolverContext(self._xslt_resolver_context, doc._parser)
*/
- __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree__ErrorLog)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 392, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree__ErrorLog)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 393, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_GIVEREF(__pyx_t_1);
__Pyx_GOTREF(__pyx_v_self->_error_log);
__pyx_v_self->_error_log = ((struct __pyx_obj_4lxml_5etree__ErrorLog *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/xslt.pxi":393
+ /* "src/lxml/xslt.pxi":394
*
* self._error_log = _ErrorLog()
* self._xslt_resolver_context = _XSLTResolverContext() # <<<<<<<<<<<<<<
* _initXSLTResolverContext(self._xslt_resolver_context, doc._parser)
* # keep a copy in case we need to access the stylesheet via 'document()'
*/
- __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree__XSLTResolverContext)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 393, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree__XSLTResolverContext)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 394, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_GIVEREF(__pyx_t_1);
__Pyx_GOTREF(__pyx_v_self->_xslt_resolver_context);
__pyx_v_self->_xslt_resolver_context = ((struct __pyx_obj_4lxml_5etree__XSLTResolverContext *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/xslt.pxi":394
+ /* "src/lxml/xslt.pxi":395
* self._error_log = _ErrorLog()
* self._xslt_resolver_context = _XSLTResolverContext()
* _initXSLTResolverContext(self._xslt_resolver_context, doc._parser) # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_t_1);
__pyx_t_7 = ((PyObject *)__pyx_v_doc->_parser);
__Pyx_INCREF(__pyx_t_7);
- __pyx_t_6 = __pyx_f_4lxml_5etree__initXSLTResolverContext(((struct __pyx_obj_4lxml_5etree__XSLTResolverContext *)__pyx_t_1), ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_t_7)); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 394, __pyx_L1_error)
+ __pyx_t_6 = __pyx_f_4lxml_5etree__initXSLTResolverContext(((struct __pyx_obj_4lxml_5etree__XSLTResolverContext *)__pyx_t_1), ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_t_7)); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 395, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
- /* "src/lxml/xslt.pxi":396
+ /* "src/lxml/xslt.pxi":397
* _initXSLTResolverContext(self._xslt_resolver_context, doc._parser)
* # keep a copy in case we need to access the stylesheet via 'document()'
* self._xslt_resolver_context._c_style_doc = _copyDoc(c_doc, 1) # <<<<<<<<<<<<<<
* c_doc._private = <python.PyObject*>self._xslt_resolver_context
*
*/
- __pyx_t_2 = __pyx_f_4lxml_5etree__copyDoc(__pyx_v_c_doc, 1); if (unlikely(__pyx_t_2 == ((xmlDoc *)NULL))) __PYX_ERR(4, 396, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__copyDoc(__pyx_v_c_doc, 1); if (unlikely(__pyx_t_2 == ((xmlDoc *)NULL))) __PYX_ERR(4, 397, __pyx_L1_error)
__pyx_v_self->_xslt_resolver_context->_c_style_doc = __pyx_t_2;
- /* "src/lxml/xslt.pxi":397
+ /* "src/lxml/xslt.pxi":398
* # keep a copy in case we need to access the stylesheet via 'document()'
* self._xslt_resolver_context._c_style_doc = _copyDoc(c_doc, 1)
* c_doc._private = <python.PyObject*>self._xslt_resolver_context # <<<<<<<<<<<<<<
*/
__pyx_v_c_doc->_private = ((PyObject *)__pyx_v_self->_xslt_resolver_context);
- /* "src/lxml/xslt.pxi":399
+ /* "src/lxml/xslt.pxi":400
* c_doc._private = <python.PyObject*>self._xslt_resolver_context
*
* with self._error_log: # <<<<<<<<<<<<<<
* c_style = xslt.xsltParseStylesheetDoc(c_doc)
*/
/*with:*/ {
- __pyx_t_8 = __Pyx_PyObject_LookupSpecial(((PyObject *)__pyx_v_self->_error_log), __pyx_n_s_exit); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 399, __pyx_L1_error)
+ __pyx_t_8 = __Pyx_PyObject_LookupSpecial(((PyObject *)__pyx_v_self->_error_log), __pyx_n_s_exit); if (unlikely(!__pyx_t_8)) __PYX_ERR(4, 400, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_8);
- __pyx_t_9 = __pyx_f_4lxml_5etree_9_ErrorLog___enter__(__pyx_v_self->_error_log); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(4, 399, __pyx_L4_error)
+ __pyx_t_9 = __pyx_f_4lxml_5etree_9_ErrorLog___enter__(__pyx_v_self->_error_log); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(4, 400, __pyx_L4_error)
/*try:*/ {
{
(void)__pyx_t_10; (void)__pyx_t_11; (void)__pyx_t_12; /* mark used */
/*try:*/ {
- /* "src/lxml/xslt.pxi":400
+ /* "src/lxml/xslt.pxi":401
*
* with self._error_log:
* orig_loader = _register_document_loader() # <<<<<<<<<<<<<<
*/
__pyx_v_orig_loader = __pyx_f_4lxml_5etree__register_document_loader();
- /* "src/lxml/xslt.pxi":401
+ /* "src/lxml/xslt.pxi":402
* with self._error_log:
* orig_loader = _register_document_loader()
* c_style = xslt.xsltParseStylesheetDoc(c_doc) # <<<<<<<<<<<<<<
*/
__pyx_v_c_style = xsltParseStylesheetDoc(__pyx_v_c_doc);
- /* "src/lxml/xslt.pxi":402
+ /* "src/lxml/xslt.pxi":403
* orig_loader = _register_document_loader()
* c_style = xslt.xsltParseStylesheetDoc(c_doc)
* _reset_document_loader(orig_loader) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree__reset_document_loader(__pyx_v_orig_loader);
- /* "src/lxml/xslt.pxi":399
+ /* "src/lxml/xslt.pxi":400
* c_doc._private = <python.PyObject*>self._xslt_resolver_context
*
* with self._error_log: # <<<<<<<<<<<<<<
if (__pyx_t_8) {
__pyx_t_12 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_tuple__35, NULL);
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
- if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 399, __pyx_L1_error)
+ if (unlikely(!__pyx_t_12)) __PYX_ERR(4, 400, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_12);
__Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
}
__pyx_L14:;
}
- /* "src/lxml/xslt.pxi":404
+ /* "src/lxml/xslt.pxi":405
* _reset_document_loader(orig_loader)
*
* if c_style is NULL or c_style.errors: # <<<<<<<<<<<<<<
__pyx_L16_bool_binop_done:;
if (__pyx_t_3) {
- /* "src/lxml/xslt.pxi":405
+ /* "src/lxml/xslt.pxi":406
*
* if c_style is NULL or c_style.errors:
* tree.xmlFreeDoc(c_doc) # <<<<<<<<<<<<<<
*/
xmlFreeDoc(__pyx_v_c_doc);
- /* "src/lxml/xslt.pxi":406
+ /* "src/lxml/xslt.pxi":407
* if c_style is NULL or c_style.errors:
* tree.xmlFreeDoc(c_doc)
* if c_style is not NULL: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_style != NULL) != 0);
if (__pyx_t_3) {
- /* "src/lxml/xslt.pxi":407
+ /* "src/lxml/xslt.pxi":408
* tree.xmlFreeDoc(c_doc)
* if c_style is not NULL:
* xslt.xsltFreeStylesheet(c_style) # <<<<<<<<<<<<<<
*/
xsltFreeStylesheet(__pyx_v_c_style);
- /* "src/lxml/xslt.pxi":406
+ /* "src/lxml/xslt.pxi":407
* if c_style is NULL or c_style.errors:
* tree.xmlFreeDoc(c_doc)
* if c_style is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":408
+ /* "src/lxml/xslt.pxi":409
* if c_style is not NULL:
* xslt.xsltFreeStylesheet(c_style)
* self._xslt_resolver_context._raise_if_stored() # <<<<<<<<<<<<<<
* # last error seems to be the most accurate here
* if self._error_log.last_error is not None and \
*/
- __pyx_t_9 = ((struct __pyx_vtabstruct_4lxml_5etree__XSLTResolverContext *)__pyx_v_self->_xslt_resolver_context->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base._raise_if_stored(((struct __pyx_obj_4lxml_5etree__ExceptionContext *)__pyx_v_self->_xslt_resolver_context)); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(4, 408, __pyx_L1_error)
+ __pyx_t_9 = ((struct __pyx_vtabstruct_4lxml_5etree__XSLTResolverContext *)__pyx_v_self->_xslt_resolver_context->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base._raise_if_stored(((struct __pyx_obj_4lxml_5etree__ExceptionContext *)__pyx_v_self->_xslt_resolver_context)); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(4, 409, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":410
+ /* "src/lxml/xslt.pxi":411
* self._xslt_resolver_context._raise_if_stored()
* # last error seems to be the most accurate here
* if self._error_log.last_error is not None and \ # <<<<<<<<<<<<<<
goto __pyx_L20_bool_binop_done;
}
- /* "src/lxml/xslt.pxi":411
+ /* "src/lxml/xslt.pxi":412
* # last error seems to be the most accurate here
* if self._error_log.last_error is not None and \
* self._error_log.last_error.message: # <<<<<<<<<<<<<<
* raise XSLTParseError(self._error_log.last_error.message,
* self._error_log)
*/
- __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_error_log->__pyx_base.__pyx_base.last_error, __pyx_n_s_message); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 411, __pyx_L1_error)
+ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_error_log->__pyx_base.__pyx_base.last_error, __pyx_n_s_message); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 412, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
- __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_14 < 0)) __PYX_ERR(4, 411, __pyx_L1_error)
+ __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_14 < 0)) __PYX_ERR(4, 412, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__pyx_t_3 = __pyx_t_14;
__pyx_L20_bool_binop_done:;
- /* "src/lxml/xslt.pxi":410
+ /* "src/lxml/xslt.pxi":411
* self._xslt_resolver_context._raise_if_stored()
* # last error seems to be the most accurate here
* if self._error_log.last_error is not None and \ # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_t_3)) {
- /* "src/lxml/xslt.pxi":412
+ /* "src/lxml/xslt.pxi":413
* if self._error_log.last_error is not None and \
* self._error_log.last_error.message:
* raise XSLTParseError(self._error_log.last_error.message, # <<<<<<<<<<<<<<
* self._error_log)
* else:
*/
- __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_error_log->__pyx_base.__pyx_base.last_error, __pyx_n_s_message); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 412, __pyx_L1_error)
+ __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->_error_log->__pyx_base.__pyx_base.last_error, __pyx_n_s_message); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 413, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
- /* "src/lxml/xslt.pxi":413
+ /* "src/lxml/xslt.pxi":414
* self._error_log.last_error.message:
* raise XSLTParseError(self._error_log.last_error.message,
* self._error_log) # <<<<<<<<<<<<<<
* else:
* raise XSLTParseError(
*/
- __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 412, __pyx_L1_error)
+ __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 413, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_GIVEREF(__pyx_t_6);
PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6);
PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_self->_error_log));
__pyx_t_6 = 0;
- /* "src/lxml/xslt.pxi":412
+ /* "src/lxml/xslt.pxi":413
* if self._error_log.last_error is not None and \
* self._error_log.last_error.message:
* raise XSLTParseError(self._error_log.last_error.message, # <<<<<<<<<<<<<<
* self._error_log)
* else:
*/
- __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_XSLTParseError), __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 412, __pyx_L1_error)
+ __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_XSLTParseError), __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 413, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__Pyx_Raise(__pyx_t_6, 0, 0, 0);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
- __PYX_ERR(4, 412, __pyx_L1_error)
+ __PYX_ERR(4, 413, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":410
+ /* "src/lxml/xslt.pxi":411
* self._xslt_resolver_context._raise_if_stored()
* # last error seems to be the most accurate here
* if self._error_log.last_error is not None and \ # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":415
+ /* "src/lxml/xslt.pxi":416
* self._error_log)
* else:
* raise XSLTParseError( # <<<<<<<<<<<<<<
*/
/*else*/ {
- /* "src/lxml/xslt.pxi":416
+ /* "src/lxml/xslt.pxi":417
* else:
* raise XSLTParseError(
* self._error_log._buildExceptionMessage( # <<<<<<<<<<<<<<
* u"Cannot parse stylesheet"),
* self._error_log)
*/
- __pyx_t_6 = __pyx_f_4lxml_5etree_13_BaseErrorLog__buildExceptionMessage(((struct __pyx_obj_4lxml_5etree__BaseErrorLog *)__pyx_v_self->_error_log), __pyx_kp_u_Cannot_parse_stylesheet); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 416, __pyx_L1_error)
+ __pyx_t_6 = __pyx_f_4lxml_5etree_13_BaseErrorLog__buildExceptionMessage(((struct __pyx_obj_4lxml_5etree__BaseErrorLog *)__pyx_v_self->_error_log), __pyx_kp_u_Cannot_parse_stylesheet); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 417, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
- /* "src/lxml/xslt.pxi":415
+ /* "src/lxml/xslt.pxi":416
* self._error_log)
* else:
* raise XSLTParseError( # <<<<<<<<<<<<<<
* self._error_log._buildExceptionMessage(
* u"Cannot parse stylesheet"),
*/
- __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 415, __pyx_L1_error)
+ __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 416, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_GIVEREF(__pyx_t_6);
PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6);
__Pyx_GIVEREF(((PyObject *)__pyx_v_self->_error_log));
PyTuple_SET_ITEM(__pyx_t_7, 1, ((PyObject *)__pyx_v_self->_error_log));
__pyx_t_6 = 0;
- __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_XSLTParseError), __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 415, __pyx_L1_error)
+ __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_XSLTParseError), __pyx_t_7, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 416, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__Pyx_Raise(__pyx_t_6, 0, 0, 0);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
- __PYX_ERR(4, 415, __pyx_L1_error)
+ __PYX_ERR(4, 416, __pyx_L1_error)
}
- /* "src/lxml/xslt.pxi":404
+ /* "src/lxml/xslt.pxi":405
* _reset_document_loader(orig_loader)
*
* if c_style is NULL or c_style.errors: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":420
+ /* "src/lxml/xslt.pxi":421
* self._error_log)
*
* c_doc._private = NULL # no longer used! # <<<<<<<<<<<<<<
*/
__pyx_v_c_doc->_private = NULL;
- /* "src/lxml/xslt.pxi":421
+ /* "src/lxml/xslt.pxi":422
*
* c_doc._private = NULL # no longer used!
* self._c_style = c_style # <<<<<<<<<<<<<<
*/
__pyx_v_self->_c_style = __pyx_v_c_style;
- /* "src/lxml/xslt.pxi":422
+ /* "src/lxml/xslt.pxi":423
* c_doc._private = NULL # no longer used!
* self._c_style = c_style
* self._context = _XSLTContext(None, extensions, self._error_log, regexp, True) # <<<<<<<<<<<<<<
*
* def __dealloc__(self):
*/
- __pyx_t_6 = PyTuple_New(5); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 422, __pyx_L1_error)
+ __pyx_t_6 = PyTuple_New(5); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 423, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_INCREF(Py_None);
__Pyx_GIVEREF(Py_None);
__Pyx_INCREF(Py_True);
__Pyx_GIVEREF(Py_True);
PyTuple_SET_ITEM(__pyx_t_6, 4, Py_True);
- __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree__XSLTContext), __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 422, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree__XSLTContext), __pyx_t_6, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 423, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__Pyx_GIVEREF(__pyx_t_7);
__pyx_v_self->_context = ((struct __pyx_obj_4lxml_5etree__XSLTContext *)__pyx_t_7);
__pyx_t_7 = 0;
- /* "src/lxml/xslt.pxi":370
+ /* "src/lxml/xslt.pxi":371
* self._c_style = NULL
*
* def __init__(self, xslt_input, *, extensions=None, regexp=True, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/xslt.pxi":424
+/* "src/lxml/xslt.pxi":425
* self._context = _XSLTContext(None, extensions, self._error_log, regexp, True)
*
* def __dealloc__(self): # <<<<<<<<<<<<<<
int __pyx_t_3;
__Pyx_RefNannySetupContext("__dealloc__", 0);
- /* "src/lxml/xslt.pxi":425
+ /* "src/lxml/xslt.pxi":426
*
* def __dealloc__(self):
* if self._xslt_resolver_context is not None and \ # <<<<<<<<<<<<<<
goto __pyx_L4_bool_binop_done;
}
- /* "src/lxml/xslt.pxi":426
+ /* "src/lxml/xslt.pxi":427
* def __dealloc__(self):
* if self._xslt_resolver_context is not None and \
* self._xslt_resolver_context._c_style_doc is not NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = __pyx_t_3;
__pyx_L4_bool_binop_done:;
- /* "src/lxml/xslt.pxi":425
+ /* "src/lxml/xslt.pxi":426
*
* def __dealloc__(self):
* if self._xslt_resolver_context is not None and \ # <<<<<<<<<<<<<<
*/
if (__pyx_t_1) {
- /* "src/lxml/xslt.pxi":427
+ /* "src/lxml/xslt.pxi":428
* if self._xslt_resolver_context is not None and \
* self._xslt_resolver_context._c_style_doc is not NULL:
* tree.xmlFreeDoc(self._xslt_resolver_context._c_style_doc) # <<<<<<<<<<<<<<
*/
xmlFreeDoc(__pyx_v_self->_xslt_resolver_context->_c_style_doc);
- /* "src/lxml/xslt.pxi":425
+ /* "src/lxml/xslt.pxi":426
*
* def __dealloc__(self):
* if self._xslt_resolver_context is not None and \ # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":429
+ /* "src/lxml/xslt.pxi":430
* tree.xmlFreeDoc(self._xslt_resolver_context._c_style_doc)
* # this cleans up the doc copy as well
* if self._c_style is not NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_self->_c_style != NULL) != 0);
if (__pyx_t_1) {
- /* "src/lxml/xslt.pxi":430
+ /* "src/lxml/xslt.pxi":431
* # this cleans up the doc copy as well
* if self._c_style is not NULL:
* xslt.xsltFreeStylesheet(self._c_style) # <<<<<<<<<<<<<<
*/
xsltFreeStylesheet(__pyx_v_self->_c_style);
- /* "src/lxml/xslt.pxi":429
+ /* "src/lxml/xslt.pxi":430
* tree.xmlFreeDoc(self._xslt_resolver_context._c_style_doc)
* # this cleans up the doc copy as well
* if self._c_style is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":424
+ /* "src/lxml/xslt.pxi":425
* self._context = _XSLTContext(None, extensions, self._error_log, regexp, True)
*
* def __dealloc__(self): # <<<<<<<<<<<<<<
__Pyx_RefNannyFinishContext();
}
-/* "src/lxml/xslt.pxi":433
+/* "src/lxml/xslt.pxi":434
*
* @property
* def error_log(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "src/lxml/xslt.pxi":435
+ /* "src/lxml/xslt.pxi":436
* def error_log(self):
* """The log of errors and warnings of an XSLT execution."""
* return self._error_log.copy() # <<<<<<<<<<<<<<
* @staticmethod
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = ((struct __pyx_vtabstruct_4lxml_5etree__ErrorLog *)__pyx_v_self->_error_log->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.copy(((struct __pyx_obj_4lxml_5etree__BaseErrorLog *)__pyx_v_self->_error_log), 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 435, __pyx_L1_error)
+ __pyx_t_1 = ((struct __pyx_vtabstruct_4lxml_5etree__ErrorLog *)__pyx_v_self->_error_log->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.copy(((struct __pyx_obj_4lxml_5etree__BaseErrorLog *)__pyx_v_self->_error_log), 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 436, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":433
+ /* "src/lxml/xslt.pxi":434
*
* @property
* def error_log(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/xslt.pxi":438
+/* "src/lxml/xslt.pxi":439
*
* @staticmethod
* def strparam(strval): # <<<<<<<<<<<<<<
else goto __pyx_L5_argtuple_error;
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "strparam") < 0)) __PYX_ERR(4, 438, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "strparam") < 0)) __PYX_ERR(4, 439, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("strparam", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(4, 438, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("strparam", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(4, 439, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.XSLT.strparam", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("strparam", 0);
- /* "src/lxml/xslt.pxi":449
+ /* "src/lxml/xslt.pxi":450
* Escaped string parameters can be reused without restriction.
* """
* return _XSLTQuotedStringParam(strval) # <<<<<<<<<<<<<<
* @staticmethod
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4lxml_5etree__XSLTQuotedStringParam), __pyx_v_strval); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 449, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_4lxml_5etree__XSLTQuotedStringParam), __pyx_v_strval); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 450, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":438
+ /* "src/lxml/xslt.pxi":439
*
* @staticmethod
* def strparam(strval): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/xslt.pxi":452
+/* "src/lxml/xslt.pxi":453
*
* @staticmethod
* def set_global_max_depth(int max_depth): # <<<<<<<<<<<<<<
else goto __pyx_L5_argtuple_error;
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_global_max_depth") < 0)) __PYX_ERR(4, 452, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_global_max_depth") < 0)) __PYX_ERR(4, 453, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
goto __pyx_L5_argtuple_error;
} else {
values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
}
- __pyx_v_max_depth = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_max_depth == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 452, __pyx_L3_error)
+ __pyx_v_max_depth = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_max_depth == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 453, __pyx_L3_error)
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("set_global_max_depth", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(4, 452, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("set_global_max_depth", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(4, 453, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree.XSLT.set_global_max_depth", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("set_global_max_depth", 0);
- /* "src/lxml/xslt.pxi":467
+ /* "src/lxml/xslt.pxi":468
* libxslt does not support it at a per-stylesheet level.
* """
* if max_depth < 0: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_max_depth < 0) != 0);
if (unlikely(__pyx_t_1)) {
- /* "src/lxml/xslt.pxi":468
+ /* "src/lxml/xslt.pxi":469
* """
* if max_depth < 0:
* raise ValueError("cannot set a maximum stylesheet traversal depth < 0") # <<<<<<<<<<<<<<
* xslt.xsltMaxDepth = max_depth
*
*/
- __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__101, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 468, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__101, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 469, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_Raise(__pyx_t_2, 0, 0, 0);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __PYX_ERR(4, 468, __pyx_L1_error)
+ __PYX_ERR(4, 469, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":467
+ /* "src/lxml/xslt.pxi":468
* libxslt does not support it at a per-stylesheet level.
* """
* if max_depth < 0: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":469
+ /* "src/lxml/xslt.pxi":470
* if max_depth < 0:
* raise ValueError("cannot set a maximum stylesheet traversal depth < 0")
* xslt.xsltMaxDepth = max_depth # <<<<<<<<<<<<<<
*/
xsltMaxDepth = __pyx_v_max_depth;
- /* "src/lxml/xslt.pxi":452
+ /* "src/lxml/xslt.pxi":453
*
* @staticmethod
* def set_global_max_depth(int max_depth): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/xslt.pxi":471
+/* "src/lxml/xslt.pxi":472
* xslt.xsltMaxDepth = max_depth
*
* def apply(self, _input, *, profile_run=False, **kw): # <<<<<<<<<<<<<<
if (value) { values[index] = value; kw_args--; }
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kw, values, pos_args, "apply") < 0)) __PYX_ERR(4, 471, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kw, values, pos_args, "apply") < 0)) __PYX_ERR(4, 472, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("apply", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(4, 471, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("apply", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(4, 472, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_DECREF(__pyx_v_kw); __pyx_v_kw = 0;
__Pyx_AddTraceback("lxml.etree.XSLT.apply", __pyx_clineno, __pyx_lineno, __pyx_filename);
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("apply", 0);
- /* "src/lxml/xslt.pxi":475
+ /* "src/lxml/xslt.pxi":476
*
* :deprecated: call the object, not this method."""
* return self(_input, profile_run=profile_run, **kw) # <<<<<<<<<<<<<<
* def tostring(self, _ElementTree result_tree):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 475, __pyx_L1_error)
+ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 476, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(__pyx_v__input);
__Pyx_GIVEREF(__pyx_v__input);
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v__input);
- __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 475, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 476, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_profile_run, __pyx_v_profile_run) < 0) __PYX_ERR(4, 475, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_profile_run, __pyx_v_profile_run) < 0) __PYX_ERR(4, 476, __pyx_L1_error)
__pyx_t_2 = __pyx_t_3;
__pyx_t_3 = 0;
- if (__Pyx_MergeKeywords(__pyx_t_2, __pyx_v_kw) < 0) __PYX_ERR(4, 475, __pyx_L1_error)
- __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_v_self), __pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 475, __pyx_L1_error)
+ if (__Pyx_MergeKeywords(__pyx_t_2, __pyx_v_kw) < 0) __PYX_ERR(4, 476, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_v_self), __pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 476, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":471
+ /* "src/lxml/xslt.pxi":472
* xslt.xsltMaxDepth = max_depth
*
* def apply(self, _input, *, profile_run=False, **kw): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/xslt.pxi":477
+/* "src/lxml/xslt.pxi":478
* return self(_input, profile_run=profile_run, **kw)
*
* def tostring(self, _ElementTree result_tree): # <<<<<<<<<<<<<<
PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("tostring (wrapper)", 0);
- if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_result_tree), __pyx_ptype_4lxml_5etree__ElementTree, 1, "result_tree", 0))) __PYX_ERR(4, 477, __pyx_L1_error)
+ if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_result_tree), __pyx_ptype_4lxml_5etree__ElementTree, 1, "result_tree", 0))) __PYX_ERR(4, 478, __pyx_L1_error)
__pyx_r = __pyx_pf_4lxml_5etree_4XSLT_12tostring(((struct __pyx_obj_4lxml_5etree_XSLT *)__pyx_v_self), ((struct LxmlElementTree *)__pyx_v_result_tree));
/* function exit code */
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("tostring", 0);
- /* "src/lxml/xslt.pxi":484
+ /* "src/lxml/xslt.pxi":485
* :deprecated: use str(result_tree) instead.
* """
* return str(result_tree) # <<<<<<<<<<<<<<
* def __deepcopy__(self, memo):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyString_Type)), ((PyObject *)__pyx_v_result_tree)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 484, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyString_Type)), ((PyObject *)__pyx_v_result_tree)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 485, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":477
+ /* "src/lxml/xslt.pxi":478
* return self(_input, profile_run=profile_run, **kw)
*
* def tostring(self, _ElementTree result_tree): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/xslt.pxi":486
+/* "src/lxml/xslt.pxi":487
* return str(result_tree)
*
* def __deepcopy__(self, memo): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__deepcopy__", 0);
- /* "src/lxml/xslt.pxi":487
+ /* "src/lxml/xslt.pxi":488
*
* def __deepcopy__(self, memo):
* return self.__copy__() # <<<<<<<<<<<<<<
* def __copy__(self):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_copy_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 487, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_copy_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 488, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
}
__pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
- if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 487, __pyx_L1_error)
+ if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 488, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":486
+ /* "src/lxml/xslt.pxi":487
* return str(result_tree)
*
* def __deepcopy__(self, memo): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/xslt.pxi":489
+/* "src/lxml/xslt.pxi":490
* return self.__copy__()
*
* def __copy__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__copy__", 0);
- /* "src/lxml/xslt.pxi":490
+ /* "src/lxml/xslt.pxi":491
*
* def __copy__(self):
* return _copyXSLT(self) # <<<<<<<<<<<<<<
* def __call__(self, _input, *, profile_run=False, **kw):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__copyXSLT(__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 490, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__copyXSLT(__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 491, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":489
+ /* "src/lxml/xslt.pxi":490
* return self.__copy__()
*
* def __copy__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/xslt.pxi":492
+/* "src/lxml/xslt.pxi":493
* return _copyXSLT(self)
*
* def __call__(self, _input, *, profile_run=False, **kw): # <<<<<<<<<<<<<<
if (value) { values[index] = value; kw_args--; }
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kw, values, pos_args, "__call__") < 0)) __PYX_ERR(4, 492, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kw, values, pos_args, "__call__") < 0)) __PYX_ERR(4, 493, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("__call__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(4, 492, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("__call__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(4, 493, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_DECREF(__pyx_v_kw); __pyx_v_kw = 0;
__Pyx_AddTraceback("lxml.etree.XSLT.__call__", __pyx_clineno, __pyx_lineno, __pyx_filename);
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__call__", 0);
- /* "src/lxml/xslt.pxi":501
+ /* "src/lxml/xslt.pxi":502
* xslt_profile that holds an XML tree with profiling data.
* """
* cdef _XSLTContext context = None # <<<<<<<<<<<<<<
__Pyx_INCREF(Py_None);
__pyx_v_context = ((struct __pyx_obj_4lxml_5etree__XSLTContext *)Py_None);
- /* "src/lxml/xslt.pxi":506
+ /* "src/lxml/xslt.pxi":507
* cdef _Element root_node
* cdef _Document result_doc
* cdef _Document profile_doc = None # <<<<<<<<<<<<<<
__Pyx_INCREF(Py_None);
__pyx_v_profile_doc = ((struct LxmlDocument *)Py_None);
- /* "src/lxml/xslt.pxi":509
+ /* "src/lxml/xslt.pxi":510
* cdef xmlDoc* c_profile_doc
* cdef xslt.xsltTransformContext* transform_ctxt
* cdef xmlDoc* c_result = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_c_result = NULL;
- /* "src/lxml/xslt.pxi":512
+ /* "src/lxml/xslt.pxi":513
* cdef xmlDoc* c_doc
* cdef tree.xmlDict* c_dict
* cdef const_char** params = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_params = NULL;
- /* "src/lxml/xslt.pxi":514
+ /* "src/lxml/xslt.pxi":515
* cdef const_char** params = NULL
*
* assert self._c_style is not NULL, "XSLT stylesheet not initialised" # <<<<<<<<<<<<<<
* root_node = _rootNodeOrRaise(_input)
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_self->_c_style != NULL) != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_XSLT_stylesheet_not_initialised);
- __PYX_ERR(4, 514, __pyx_L1_error)
+ __PYX_ERR(4, 515, __pyx_L1_error)
}
}
#endif
- /* "src/lxml/xslt.pxi":515
+ /* "src/lxml/xslt.pxi":516
*
* assert self._c_style is not NULL, "XSLT stylesheet not initialised"
* input_doc = _documentOrRaise(_input) # <<<<<<<<<<<<<<
* root_node = _rootNodeOrRaise(_input)
*
*/
- __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__documentOrRaise(__pyx_v__input)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 515, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__documentOrRaise(__pyx_v__input)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 516, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_v_input_doc = ((struct LxmlDocument *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/xslt.pxi":516
+ /* "src/lxml/xslt.pxi":517
* assert self._c_style is not NULL, "XSLT stylesheet not initialised"
* input_doc = _documentOrRaise(_input)
* root_node = _rootNodeOrRaise(_input) # <<<<<<<<<<<<<<
*
* c_doc = _fakeRootDoc(input_doc._c_doc, root_node._c_node)
*/
- __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__rootNodeOrRaise(__pyx_v__input)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 516, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__rootNodeOrRaise(__pyx_v__input)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 517, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_v_root_node = ((struct LxmlElement *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/xslt.pxi":518
+ /* "src/lxml/xslt.pxi":519
* root_node = _rootNodeOrRaise(_input)
*
* c_doc = _fakeRootDoc(input_doc._c_doc, root_node._c_node) # <<<<<<<<<<<<<<
*
* transform_ctxt = xslt.xsltNewTransformContext(self._c_style, c_doc)
*/
- __pyx_t_2 = __pyx_f_4lxml_5etree__fakeRootDoc(__pyx_v_input_doc->_c_doc, __pyx_v_root_node->_c_node); if (unlikely(__pyx_t_2 == ((xmlDoc *)NULL))) __PYX_ERR(4, 518, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__fakeRootDoc(__pyx_v_input_doc->_c_doc, __pyx_v_root_node->_c_node); if (unlikely(__pyx_t_2 == ((xmlDoc *)NULL))) __PYX_ERR(4, 519, __pyx_L1_error)
__pyx_v_c_doc = __pyx_t_2;
- /* "src/lxml/xslt.pxi":520
+ /* "src/lxml/xslt.pxi":521
* c_doc = _fakeRootDoc(input_doc._c_doc, root_node._c_node)
*
* transform_ctxt = xslt.xsltNewTransformContext(self._c_style, c_doc) # <<<<<<<<<<<<<<
*/
__pyx_v_transform_ctxt = xsltNewTransformContext(__pyx_v_self->_c_style, __pyx_v_c_doc);
- /* "src/lxml/xslt.pxi":521
+ /* "src/lxml/xslt.pxi":522
*
* transform_ctxt = xslt.xsltNewTransformContext(self._c_style, c_doc)
* if transform_ctxt is NULL: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_transform_ctxt == NULL) != 0);
if (unlikely(__pyx_t_3)) {
- /* "src/lxml/xslt.pxi":522
+ /* "src/lxml/xslt.pxi":523
* transform_ctxt = xslt.xsltNewTransformContext(self._c_style, c_doc)
* if transform_ctxt is NULL:
* _destroyFakeDoc(input_doc._c_doc, c_doc) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree__destroyFakeDoc(__pyx_v_input_doc->_c_doc, __pyx_v_c_doc);
- /* "src/lxml/xslt.pxi":523
+ /* "src/lxml/xslt.pxi":524
* if transform_ctxt is NULL:
* _destroyFakeDoc(input_doc._c_doc, c_doc)
* raise MemoryError() # <<<<<<<<<<<<<<
*
* # using the stylesheet dict is safer than using a possibly
*/
- PyErr_NoMemory(); __PYX_ERR(4, 523, __pyx_L1_error)
+ PyErr_NoMemory(); __PYX_ERR(4, 524, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":521
+ /* "src/lxml/xslt.pxi":522
*
* transform_ctxt = xslt.xsltNewTransformContext(self._c_style, c_doc)
* if transform_ctxt is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":529
+ /* "src/lxml/xslt.pxi":530
* # non-input tag/attr names will come from the stylesheet
* # anyway.
* if transform_ctxt.dict is not NULL: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_transform_ctxt->dict != NULL) != 0);
if (__pyx_t_3) {
- /* "src/lxml/xslt.pxi":530
+ /* "src/lxml/xslt.pxi":531
* # anyway.
* if transform_ctxt.dict is not NULL:
* xmlparser.xmlDictFree(transform_ctxt.dict) # <<<<<<<<<<<<<<
*/
xmlDictFree(__pyx_v_transform_ctxt->dict);
- /* "src/lxml/xslt.pxi":529
+ /* "src/lxml/xslt.pxi":530
* # non-input tag/attr names will come from the stylesheet
* # anyway.
* if transform_ctxt.dict is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":531
+ /* "src/lxml/xslt.pxi":532
* if transform_ctxt.dict is not NULL:
* xmlparser.xmlDictFree(transform_ctxt.dict)
* if kw: # <<<<<<<<<<<<<<
* # parameter values are stored in the dict
* # => avoid unnecessarily cluttering the global dict
*/
- __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_kw); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(4, 531, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_kw); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(4, 532, __pyx_L1_error)
if (__pyx_t_3) {
- /* "src/lxml/xslt.pxi":534
+ /* "src/lxml/xslt.pxi":535
* # parameter values are stored in the dict
* # => avoid unnecessarily cluttering the global dict
* transform_ctxt.dict = xmlparser.xmlDictCreateSub(self._c_style.doc.dict) # <<<<<<<<<<<<<<
*/
__pyx_v_transform_ctxt->dict = xmlDictCreateSub(__pyx_v_self->_c_style->doc->dict);
- /* "src/lxml/xslt.pxi":535
+ /* "src/lxml/xslt.pxi":536
* # => avoid unnecessarily cluttering the global dict
* transform_ctxt.dict = xmlparser.xmlDictCreateSub(self._c_style.doc.dict)
* if transform_ctxt.dict is NULL: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_transform_ctxt->dict == NULL) != 0);
if (unlikely(__pyx_t_3)) {
- /* "src/lxml/xslt.pxi":536
+ /* "src/lxml/xslt.pxi":537
* transform_ctxt.dict = xmlparser.xmlDictCreateSub(self._c_style.doc.dict)
* if transform_ctxt.dict is NULL:
* xslt.xsltFreeTransformContext(transform_ctxt) # <<<<<<<<<<<<<<
*/
xsltFreeTransformContext(__pyx_v_transform_ctxt);
- /* "src/lxml/xslt.pxi":537
+ /* "src/lxml/xslt.pxi":538
* if transform_ctxt.dict is NULL:
* xslt.xsltFreeTransformContext(transform_ctxt)
* raise MemoryError() # <<<<<<<<<<<<<<
* else:
* transform_ctxt.dict = self._c_style.doc.dict
*/
- PyErr_NoMemory(); __PYX_ERR(4, 537, __pyx_L1_error)
+ PyErr_NoMemory(); __PYX_ERR(4, 538, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":535
+ /* "src/lxml/xslt.pxi":536
* # => avoid unnecessarily cluttering the global dict
* transform_ctxt.dict = xmlparser.xmlDictCreateSub(self._c_style.doc.dict)
* if transform_ctxt.dict is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":531
+ /* "src/lxml/xslt.pxi":532
* if transform_ctxt.dict is not NULL:
* xmlparser.xmlDictFree(transform_ctxt.dict)
* if kw: # <<<<<<<<<<<<<<
goto __pyx_L5;
}
- /* "src/lxml/xslt.pxi":539
+ /* "src/lxml/xslt.pxi":540
* raise MemoryError()
* else:
* transform_ctxt.dict = self._c_style.doc.dict # <<<<<<<<<<<<<<
__pyx_t_4 = __pyx_v_self->_c_style->doc->dict;
__pyx_v_transform_ctxt->dict = __pyx_t_4;
- /* "src/lxml/xslt.pxi":540
+ /* "src/lxml/xslt.pxi":541
* else:
* transform_ctxt.dict = self._c_style.doc.dict
* xmlparser.xmlDictReference(transform_ctxt.dict) # <<<<<<<<<<<<<<
}
__pyx_L5:;
- /* "src/lxml/xslt.pxi":542
+ /* "src/lxml/xslt.pxi":543
* xmlparser.xmlDictReference(transform_ctxt.dict)
*
* xslt.xsltSetCtxtParseOptions( # <<<<<<<<<<<<<<
*/
xsltSetCtxtParseOptions(__pyx_v_transform_ctxt, __pyx_v_input_doc->_parser->_parse_options);
- /* "src/lxml/xslt.pxi":545
+ /* "src/lxml/xslt.pxi":546
* transform_ctxt, input_doc._parser._parse_options)
*
* if profile_run: # <<<<<<<<<<<<<<
* transform_ctxt.profile = 1
*
*/
- __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_profile_run); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(4, 545, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_profile_run); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(4, 546, __pyx_L1_error)
if (__pyx_t_3) {
- /* "src/lxml/xslt.pxi":546
+ /* "src/lxml/xslt.pxi":547
*
* if profile_run:
* transform_ctxt.profile = 1 # <<<<<<<<<<<<<<
*/
__pyx_v_transform_ctxt->profile = 1;
- /* "src/lxml/xslt.pxi":545
+ /* "src/lxml/xslt.pxi":546
* transform_ctxt, input_doc._parser._parse_options)
*
* if profile_run: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":548
+ /* "src/lxml/xslt.pxi":549
* transform_ctxt.profile = 1
*
* try: # <<<<<<<<<<<<<<
*/
/*try:*/ {
- /* "src/lxml/xslt.pxi":549
+ /* "src/lxml/xslt.pxi":550
*
* try:
* context = self._context._copy() # <<<<<<<<<<<<<<
* context.register_context(transform_ctxt, input_doc)
*
*/
- __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy(((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_self->_context))); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 549, __pyx_L9_error)
+ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy(((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_self->_context))); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 550, __pyx_L9_error)
__Pyx_GOTREF(__pyx_t_1);
- if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_4lxml_5etree__XSLTContext))))) __PYX_ERR(4, 549, __pyx_L9_error)
+ if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_4lxml_5etree__XSLTContext))))) __PYX_ERR(4, 550, __pyx_L9_error)
__Pyx_DECREF_SET(__pyx_v_context, ((struct __pyx_obj_4lxml_5etree__XSLTContext *)__pyx_t_1));
__pyx_t_1 = 0;
- /* "src/lxml/xslt.pxi":550
+ /* "src/lxml/xslt.pxi":551
* try:
* context = self._context._copy()
* context.register_context(transform_ctxt, input_doc) # <<<<<<<<<<<<<<
*
* resolver_context = self._xslt_resolver_context._copy()
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_12_XSLTContext_register_context(__pyx_v_context, __pyx_v_transform_ctxt, __pyx_v_input_doc); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 550, __pyx_L9_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_12_XSLTContext_register_context(__pyx_v_context, __pyx_v_transform_ctxt, __pyx_v_input_doc); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 551, __pyx_L9_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "src/lxml/xslt.pxi":552
+ /* "src/lxml/xslt.pxi":553
* context.register_context(transform_ctxt, input_doc)
*
* resolver_context = self._xslt_resolver_context._copy() # <<<<<<<<<<<<<<
* transform_ctxt._private = <python.PyObject*>resolver_context
*
*/
- __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_20_XSLTResolverContext__copy(__pyx_v_self->_xslt_resolver_context)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 552, __pyx_L9_error)
+ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_20_XSLTResolverContext__copy(__pyx_v_self->_xslt_resolver_context)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 553, __pyx_L9_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_v_resolver_context = ((struct __pyx_obj_4lxml_5etree__XSLTResolverContext *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/xslt.pxi":553
+ /* "src/lxml/xslt.pxi":554
*
* resolver_context = self._xslt_resolver_context._copy()
* transform_ctxt._private = <python.PyObject*>resolver_context # <<<<<<<<<<<<<<
*/
__pyx_v_transform_ctxt->_private = ((PyObject *)__pyx_v_resolver_context);
- /* "src/lxml/xslt.pxi":555
+ /* "src/lxml/xslt.pxi":556
* transform_ctxt._private = <python.PyObject*>resolver_context
*
* _convert_xslt_parameters(transform_ctxt, kw, ¶ms) # <<<<<<<<<<<<<<
* c_result = self._run_transform(
* c_doc, params, context, transform_ctxt)
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__convert_xslt_parameters(__pyx_v_transform_ctxt, __pyx_v_kw, (&__pyx_v_params)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 555, __pyx_L9_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__convert_xslt_parameters(__pyx_v_transform_ctxt, __pyx_v_kw, (&__pyx_v_params)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 556, __pyx_L9_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "src/lxml/xslt.pxi":556
+ /* "src/lxml/xslt.pxi":557
*
* _convert_xslt_parameters(transform_ctxt, kw, ¶ms)
* c_result = self._run_transform( # <<<<<<<<<<<<<<
*/
__pyx_v_c_result = ((struct __pyx_vtabstruct_4lxml_5etree_XSLT *)__pyx_v_self->__pyx_vtab)->_run_transform(__pyx_v_self, __pyx_v_c_doc, __pyx_v_params, __pyx_v_context, __pyx_v_transform_ctxt);
- /* "src/lxml/xslt.pxi":558
+ /* "src/lxml/xslt.pxi":559
* c_result = self._run_transform(
* c_doc, params, context, transform_ctxt)
* if params is not NULL: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_params != NULL) != 0);
if (__pyx_t_3) {
- /* "src/lxml/xslt.pxi":560
+ /* "src/lxml/xslt.pxi":561
* if params is not NULL:
* # deallocate space for parameters
* python.lxml_free(params) # <<<<<<<<<<<<<<
*/
lxml_free(__pyx_v_params);
- /* "src/lxml/xslt.pxi":558
+ /* "src/lxml/xslt.pxi":559
* c_result = self._run_transform(
* c_doc, params, context, transform_ctxt)
* if params is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":562
+ /* "src/lxml/xslt.pxi":563
* python.lxml_free(params)
*
* if transform_ctxt.state != xslt.XSLT_STATE_OK: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_transform_ctxt->state != XSLT_STATE_OK) != 0);
if (__pyx_t_3) {
- /* "src/lxml/xslt.pxi":563
+ /* "src/lxml/xslt.pxi":564
*
* if transform_ctxt.state != xslt.XSLT_STATE_OK:
* if c_result is not NULL: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_result != NULL) != 0);
if (__pyx_t_3) {
- /* "src/lxml/xslt.pxi":564
+ /* "src/lxml/xslt.pxi":565
* if transform_ctxt.state != xslt.XSLT_STATE_OK:
* if c_result is not NULL:
* tree.xmlFreeDoc(c_result) # <<<<<<<<<<<<<<
*/
xmlFreeDoc(__pyx_v_c_result);
- /* "src/lxml/xslt.pxi":565
+ /* "src/lxml/xslt.pxi":566
* if c_result is not NULL:
* tree.xmlFreeDoc(c_result)
* c_result = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_c_result = NULL;
- /* "src/lxml/xslt.pxi":563
+ /* "src/lxml/xslt.pxi":564
*
* if transform_ctxt.state != xslt.XSLT_STATE_OK:
* if c_result is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":562
+ /* "src/lxml/xslt.pxi":563
* python.lxml_free(params)
*
* if transform_ctxt.state != xslt.XSLT_STATE_OK: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":567
+ /* "src/lxml/xslt.pxi":568
* c_result = NULL
*
* if transform_ctxt.profile: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_v_transform_ctxt->profile != 0);
if (__pyx_t_3) {
- /* "src/lxml/xslt.pxi":568
+ /* "src/lxml/xslt.pxi":569
*
* if transform_ctxt.profile:
* c_profile_doc = xslt.xsltGetProfileInformation(transform_ctxt) # <<<<<<<<<<<<<<
*/
__pyx_v_c_profile_doc = xsltGetProfileInformation(__pyx_v_transform_ctxt);
- /* "src/lxml/xslt.pxi":569
+ /* "src/lxml/xslt.pxi":570
* if transform_ctxt.profile:
* c_profile_doc = xslt.xsltGetProfileInformation(transform_ctxt)
* if c_profile_doc is not NULL: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_profile_doc != NULL) != 0);
if (__pyx_t_3) {
- /* "src/lxml/xslt.pxi":571
+ /* "src/lxml/xslt.pxi":572
* if c_profile_doc is not NULL:
* profile_doc = _documentFactory(
* c_profile_doc, input_doc._parser) # <<<<<<<<<<<<<<
__pyx_t_1 = ((PyObject *)__pyx_v_input_doc->_parser);
__Pyx_INCREF(__pyx_t_1);
- /* "src/lxml/xslt.pxi":570
+ /* "src/lxml/xslt.pxi":571
* c_profile_doc = xslt.xsltGetProfileInformation(transform_ctxt)
* if c_profile_doc is not NULL:
* profile_doc = _documentFactory( # <<<<<<<<<<<<<<
* c_profile_doc, input_doc._parser)
* finally:
*/
- __pyx_t_5 = ((PyObject *)__pyx_f_4lxml_5etree__documentFactory(__pyx_v_c_profile_doc, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_t_1))); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 570, __pyx_L9_error)
+ __pyx_t_5 = ((PyObject *)__pyx_f_4lxml_5etree__documentFactory(__pyx_v_c_profile_doc, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_t_1))); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 571, __pyx_L9_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF_SET(__pyx_v_profile_doc, ((struct LxmlDocument *)__pyx_t_5));
__pyx_t_5 = 0;
- /* "src/lxml/xslt.pxi":569
+ /* "src/lxml/xslt.pxi":570
* if transform_ctxt.profile:
* c_profile_doc = xslt.xsltGetProfileInformation(transform_ctxt)
* if c_profile_doc is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":567
+ /* "src/lxml/xslt.pxi":568
* c_result = NULL
*
* if transform_ctxt.profile: # <<<<<<<<<<<<<<
}
}
- /* "src/lxml/xslt.pxi":573
+ /* "src/lxml/xslt.pxi":574
* c_profile_doc, input_doc._parser)
* finally:
* if context is not None: # <<<<<<<<<<<<<<
__pyx_t_6 = (__pyx_t_3 != 0);
if (__pyx_t_6) {
- /* "src/lxml/xslt.pxi":574
+ /* "src/lxml/xslt.pxi":575
* finally:
* if context is not None:
* context.free_context() # <<<<<<<<<<<<<<
* _destroyFakeDoc(input_doc._c_doc, c_doc)
*
*/
- __pyx_t_5 = __pyx_f_4lxml_5etree_12_XSLTContext_free_context(__pyx_v_context); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 574, __pyx_L1_error)
+ __pyx_t_5 = __pyx_f_4lxml_5etree_12_XSLTContext_free_context(__pyx_v_context); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 575, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- /* "src/lxml/xslt.pxi":573
+ /* "src/lxml/xslt.pxi":574
* c_profile_doc, input_doc._parser)
* finally:
* if context is not None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":575
+ /* "src/lxml/xslt.pxi":576
* if context is not None:
* context.free_context()
* _destroyFakeDoc(input_doc._c_doc, c_doc) # <<<<<<<<<<<<<<
__pyx_t_7 = __pyx_lineno; __pyx_t_8 = __pyx_clineno; __pyx_t_9 = __pyx_filename;
{
- /* "src/lxml/xslt.pxi":573
+ /* "src/lxml/xslt.pxi":574
* c_profile_doc, input_doc._parser)
* finally:
* if context is not None: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_6 != 0);
if (__pyx_t_3) {
- /* "src/lxml/xslt.pxi":574
+ /* "src/lxml/xslt.pxi":575
* finally:
* if context is not None:
* context.free_context() # <<<<<<<<<<<<<<
* _destroyFakeDoc(input_doc._c_doc, c_doc)
*
*/
- __pyx_t_5 = __pyx_f_4lxml_5etree_12_XSLTContext_free_context(__pyx_v_context); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 574, __pyx_L18_error)
+ __pyx_t_5 = __pyx_f_4lxml_5etree_12_XSLTContext_free_context(__pyx_v_context); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 575, __pyx_L18_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- /* "src/lxml/xslt.pxi":573
+ /* "src/lxml/xslt.pxi":574
* c_profile_doc, input_doc._parser)
* finally:
* if context is not None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":575
+ /* "src/lxml/xslt.pxi":576
* if context is not None:
* context.free_context()
* _destroyFakeDoc(input_doc._c_doc, c_doc) # <<<<<<<<<<<<<<
__pyx_L10:;
}
- /* "src/lxml/xslt.pxi":577
+ /* "src/lxml/xslt.pxi":578
* _destroyFakeDoc(input_doc._c_doc, c_doc)
*
* try: # <<<<<<<<<<<<<<
*/
/*try:*/ {
- /* "src/lxml/xslt.pxi":578
+ /* "src/lxml/xslt.pxi":579
*
* try:
* if resolver_context is not None and resolver_context._has_raised(): # <<<<<<<<<<<<<<
__pyx_t_3 = __pyx_t_16;
goto __pyx_L24_bool_binop_done;
}
- __pyx_t_16 = ((struct __pyx_vtabstruct_4lxml_5etree__XSLTResolverContext *)__pyx_v_resolver_context->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base._has_raised(((struct __pyx_obj_4lxml_5etree__ExceptionContext *)__pyx_v_resolver_context)); if (unlikely(__pyx_t_16 == ((int)-1))) __PYX_ERR(4, 578, __pyx_L21_error)
+ __pyx_t_16 = ((struct __pyx_vtabstruct_4lxml_5etree__XSLTResolverContext *)__pyx_v_resolver_context->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base._has_raised(((struct __pyx_obj_4lxml_5etree__ExceptionContext *)__pyx_v_resolver_context)); if (unlikely(__pyx_t_16 == ((int)-1))) __PYX_ERR(4, 579, __pyx_L21_error)
__pyx_t_6 = (__pyx_t_16 != 0);
__pyx_t_3 = __pyx_t_6;
__pyx_L24_bool_binop_done:;
if (__pyx_t_3) {
- /* "src/lxml/xslt.pxi":579
+ /* "src/lxml/xslt.pxi":580
* try:
* if resolver_context is not None and resolver_context._has_raised():
* if c_result is not NULL: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_c_result != NULL) != 0);
if (__pyx_t_3) {
- /* "src/lxml/xslt.pxi":580
+ /* "src/lxml/xslt.pxi":581
* if resolver_context is not None and resolver_context._has_raised():
* if c_result is not NULL:
* tree.xmlFreeDoc(c_result) # <<<<<<<<<<<<<<
*/
xmlFreeDoc(__pyx_v_c_result);
- /* "src/lxml/xslt.pxi":581
+ /* "src/lxml/xslt.pxi":582
* if c_result is not NULL:
* tree.xmlFreeDoc(c_result)
* c_result = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_c_result = NULL;
- /* "src/lxml/xslt.pxi":579
+ /* "src/lxml/xslt.pxi":580
* try:
* if resolver_context is not None and resolver_context._has_raised():
* if c_result is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":582
+ /* "src/lxml/xslt.pxi":583
* tree.xmlFreeDoc(c_result)
* c_result = NULL
* resolver_context._raise_if_stored() # <<<<<<<<<<<<<<
*
* if context._exc._has_raised():
*/
- __pyx_t_8 = ((struct __pyx_vtabstruct_4lxml_5etree__XSLTResolverContext *)__pyx_v_resolver_context->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base._raise_if_stored(((struct __pyx_obj_4lxml_5etree__ExceptionContext *)__pyx_v_resolver_context)); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(4, 582, __pyx_L21_error)
+ __pyx_t_8 = ((struct __pyx_vtabstruct_4lxml_5etree__XSLTResolverContext *)__pyx_v_resolver_context->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base._raise_if_stored(((struct __pyx_obj_4lxml_5etree__ExceptionContext *)__pyx_v_resolver_context)); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(4, 583, __pyx_L21_error)
- /* "src/lxml/xslt.pxi":578
+ /* "src/lxml/xslt.pxi":579
*
* try:
* if resolver_context is not None and resolver_context._has_raised(): # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":584
+ /* "src/lxml/xslt.pxi":585
* resolver_context._raise_if_stored()
*
* if context._exc._has_raised(): # <<<<<<<<<<<<<<
* if c_result is not NULL:
* tree.xmlFreeDoc(c_result)
*/
- __pyx_t_3 = ((struct __pyx_vtabstruct_4lxml_5etree__ExceptionContext *)__pyx_v_context->__pyx_base._exc->__pyx_vtab)->_has_raised(__pyx_v_context->__pyx_base._exc); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(4, 584, __pyx_L21_error)
+ __pyx_t_3 = ((struct __pyx_vtabstruct_4lxml_5etree__ExceptionContext *)__pyx_v_context->__pyx_base._exc->__pyx_vtab)->_has_raised(__pyx_v_context->__pyx_base._exc); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(4, 585, __pyx_L21_error)
__pyx_t_6 = (__pyx_t_3 != 0);
if (__pyx_t_6) {
- /* "src/lxml/xslt.pxi":585
+ /* "src/lxml/xslt.pxi":586
*
* if context._exc._has_raised():
* if c_result is not NULL: # <<<<<<<<<<<<<<
__pyx_t_6 = ((__pyx_v_c_result != NULL) != 0);
if (__pyx_t_6) {
- /* "src/lxml/xslt.pxi":586
+ /* "src/lxml/xslt.pxi":587
* if context._exc._has_raised():
* if c_result is not NULL:
* tree.xmlFreeDoc(c_result) # <<<<<<<<<<<<<<
*/
xmlFreeDoc(__pyx_v_c_result);
- /* "src/lxml/xslt.pxi":587
+ /* "src/lxml/xslt.pxi":588
* if c_result is not NULL:
* tree.xmlFreeDoc(c_result)
* c_result = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_c_result = NULL;
- /* "src/lxml/xslt.pxi":585
+ /* "src/lxml/xslt.pxi":586
*
* if context._exc._has_raised():
* if c_result is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":588
+ /* "src/lxml/xslt.pxi":589
* tree.xmlFreeDoc(c_result)
* c_result = NULL
* context._exc._raise_if_stored() # <<<<<<<<<<<<<<
*
* if c_result is NULL:
*/
- __pyx_t_8 = ((struct __pyx_vtabstruct_4lxml_5etree__ExceptionContext *)__pyx_v_context->__pyx_base._exc->__pyx_vtab)->_raise_if_stored(__pyx_v_context->__pyx_base._exc); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(4, 588, __pyx_L21_error)
+ __pyx_t_8 = ((struct __pyx_vtabstruct_4lxml_5etree__ExceptionContext *)__pyx_v_context->__pyx_base._exc->__pyx_vtab)->_raise_if_stored(__pyx_v_context->__pyx_base._exc); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(4, 589, __pyx_L21_error)
- /* "src/lxml/xslt.pxi":584
+ /* "src/lxml/xslt.pxi":585
* resolver_context._raise_if_stored()
*
* if context._exc._has_raised(): # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":590
+ /* "src/lxml/xslt.pxi":591
* context._exc._raise_if_stored()
*
* if c_result is NULL: # <<<<<<<<<<<<<<
__pyx_t_6 = ((__pyx_v_c_result == NULL) != 0);
if (__pyx_t_6) {
- /* "src/lxml/xslt.pxi":592
+ /* "src/lxml/xslt.pxi":593
* if c_result is NULL:
* # last error seems to be the most accurate here
* error = self._error_log.last_error # <<<<<<<<<<<<<<
__pyx_v_error = __pyx_t_5;
__pyx_t_5 = 0;
- /* "src/lxml/xslt.pxi":593
+ /* "src/lxml/xslt.pxi":594
* # last error seems to be the most accurate here
* error = self._error_log.last_error
* if error is not None and error.message: # <<<<<<<<<<<<<<
__pyx_t_6 = __pyx_t_16;
goto __pyx_L31_bool_binop_done;
}
- __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_error, __pyx_n_s_message); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 593, __pyx_L21_error)
+ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_error, __pyx_n_s_message); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 594, __pyx_L21_error)
__Pyx_GOTREF(__pyx_t_5);
- __pyx_t_16 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_16 < 0)) __PYX_ERR(4, 593, __pyx_L21_error)
+ __pyx_t_16 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_16 < 0)) __PYX_ERR(4, 594, __pyx_L21_error)
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_t_6 = __pyx_t_16;
__pyx_L31_bool_binop_done:;
if (__pyx_t_6) {
- /* "src/lxml/xslt.pxi":594
+ /* "src/lxml/xslt.pxi":595
* error = self._error_log.last_error
* if error is not None and error.message:
* if error.line > 0: # <<<<<<<<<<<<<<
* message = f"{error.message}, line {error.line}"
* else:
*/
- __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_error, __pyx_n_s_line_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 594, __pyx_L21_error)
+ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_error, __pyx_n_s_line_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 595, __pyx_L21_error)
__Pyx_GOTREF(__pyx_t_5);
- __pyx_t_1 = PyObject_RichCompare(__pyx_t_5, __pyx_int_0, Py_GT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 594, __pyx_L21_error)
+ __pyx_t_1 = PyObject_RichCompare(__pyx_t_5, __pyx_int_0, Py_GT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 595, __pyx_L21_error)
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(4, 594, __pyx_L21_error)
+ __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(4, 595, __pyx_L21_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
if (__pyx_t_6) {
- /* "src/lxml/xslt.pxi":595
+ /* "src/lxml/xslt.pxi":596
* if error is not None and error.message:
* if error.line > 0:
* message = f"{error.message}, line {error.line}" # <<<<<<<<<<<<<<
* else:
* message = error.message
*/
- __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 595, __pyx_L21_error)
+ __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 596, __pyx_L21_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_17 = 0;
__pyx_t_18 = 127;
- __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_error, __pyx_n_s_message); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 595, __pyx_L21_error)
+ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_error, __pyx_n_s_message); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 596, __pyx_L21_error)
__Pyx_GOTREF(__pyx_t_5);
- __pyx_t_19 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_19)) __PYX_ERR(4, 595, __pyx_L21_error)
+ __pyx_t_19 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_19)) __PYX_ERR(4, 596, __pyx_L21_error)
__Pyx_GOTREF(__pyx_t_19);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_t_18 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_19) > __pyx_t_18) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_19) : __pyx_t_18;
__pyx_t_17 += 7;
__Pyx_GIVEREF(__pyx_kp_u_line);
PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_kp_u_line);
- __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_v_error, __pyx_n_s_line_2); if (unlikely(!__pyx_t_19)) __PYX_ERR(4, 595, __pyx_L21_error)
+ __pyx_t_19 = __Pyx_PyObject_GetAttrStr(__pyx_v_error, __pyx_n_s_line_2); if (unlikely(!__pyx_t_19)) __PYX_ERR(4, 596, __pyx_L21_error)
__Pyx_GOTREF(__pyx_t_19);
- __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_19, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 595, __pyx_L21_error)
+ __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_19, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 596, __pyx_L21_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_19); __pyx_t_19 = 0;
__pyx_t_18 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_18) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_18;
__Pyx_GIVEREF(__pyx_t_5);
PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_5);
__pyx_t_5 = 0;
- __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_1, 3, __pyx_t_17, __pyx_t_18); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 595, __pyx_L21_error)
+ __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_1, 3, __pyx_t_17, __pyx_t_18); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 596, __pyx_L21_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_v_message = __pyx_t_5;
__pyx_t_5 = 0;
- /* "src/lxml/xslt.pxi":594
+ /* "src/lxml/xslt.pxi":595
* error = self._error_log.last_error
* if error is not None and error.message:
* if error.line > 0: # <<<<<<<<<<<<<<
goto __pyx_L33;
}
- /* "src/lxml/xslt.pxi":597
+ /* "src/lxml/xslt.pxi":598
* message = f"{error.message}, line {error.line}"
* else:
* message = error.message # <<<<<<<<<<<<<<
* message = f"Error applying stylesheet, line {error.line}"
*/
/*else*/ {
- __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_error, __pyx_n_s_message); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 597, __pyx_L21_error)
+ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_error, __pyx_n_s_message); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 598, __pyx_L21_error)
__Pyx_GOTREF(__pyx_t_5);
__pyx_v_message = __pyx_t_5;
__pyx_t_5 = 0;
}
__pyx_L33:;
- /* "src/lxml/xslt.pxi":593
+ /* "src/lxml/xslt.pxi":594
* # last error seems to be the most accurate here
* error = self._error_log.last_error
* if error is not None and error.message: # <<<<<<<<<<<<<<
goto __pyx_L30;
}
- /* "src/lxml/xslt.pxi":598
+ /* "src/lxml/xslt.pxi":599
* else:
* message = error.message
* elif error is not None and error.line > 0: # <<<<<<<<<<<<<<
__pyx_t_6 = __pyx_t_3;
goto __pyx_L34_bool_binop_done;
}
- __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_error, __pyx_n_s_line_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 598, __pyx_L21_error)
+ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_error, __pyx_n_s_line_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 599, __pyx_L21_error)
__Pyx_GOTREF(__pyx_t_5);
- __pyx_t_1 = PyObject_RichCompare(__pyx_t_5, __pyx_int_0, Py_GT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 598, __pyx_L21_error)
+ __pyx_t_1 = PyObject_RichCompare(__pyx_t_5, __pyx_int_0, Py_GT); __Pyx_XGOTREF(__pyx_t_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 599, __pyx_L21_error)
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(4, 598, __pyx_L21_error)
+ __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(4, 599, __pyx_L21_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_6 = __pyx_t_3;
__pyx_L34_bool_binop_done:;
if (__pyx_t_6) {
- /* "src/lxml/xslt.pxi":599
+ /* "src/lxml/xslt.pxi":600
* message = error.message
* elif error is not None and error.line > 0:
* message = f"Error applying stylesheet, line {error.line}" # <<<<<<<<<<<<<<
* else:
* message = u"Error applying stylesheet"
*/
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_error, __pyx_n_s_line_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 599, __pyx_L21_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_error, __pyx_n_s_line_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 600, __pyx_L21_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_1, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 599, __pyx_L21_error)
+ __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_1, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 600, __pyx_L21_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Error_applying_stylesheet_line, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 599, __pyx_L21_error)
+ __pyx_t_1 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Error_applying_stylesheet_line, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 600, __pyx_L21_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_v_message = __pyx_t_1;
__pyx_t_1 = 0;
- /* "src/lxml/xslt.pxi":598
+ /* "src/lxml/xslt.pxi":599
* else:
* message = error.message
* elif error is not None and error.line > 0: # <<<<<<<<<<<<<<
goto __pyx_L30;
}
- /* "src/lxml/xslt.pxi":601
+ /* "src/lxml/xslt.pxi":602
* message = f"Error applying stylesheet, line {error.line}"
* else:
* message = u"Error applying stylesheet" # <<<<<<<<<<<<<<
}
__pyx_L30:;
- /* "src/lxml/xslt.pxi":602
+ /* "src/lxml/xslt.pxi":603
* else:
* message = u"Error applying stylesheet"
* raise XSLTApplyError(message, self._error_log) # <<<<<<<<<<<<<<
* finally:
* if resolver_context is not None:
*/
- __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 602, __pyx_L21_error)
+ __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 603, __pyx_L21_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(__pyx_v_message);
__Pyx_GIVEREF(__pyx_v_message);
__Pyx_INCREF(((PyObject *)__pyx_v_self->_error_log));
__Pyx_GIVEREF(((PyObject *)__pyx_v_self->_error_log));
PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_v_self->_error_log));
- __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_XSLTApplyError), __pyx_t_1, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 602, __pyx_L21_error)
+ __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_XSLTApplyError), __pyx_t_1, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 603, __pyx_L21_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_Raise(__pyx_t_5, 0, 0, 0);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- __PYX_ERR(4, 602, __pyx_L21_error)
+ __PYX_ERR(4, 603, __pyx_L21_error)
- /* "src/lxml/xslt.pxi":590
+ /* "src/lxml/xslt.pxi":591
* context._exc._raise_if_stored()
*
* if c_result is NULL: # <<<<<<<<<<<<<<
}
}
- /* "src/lxml/xslt.pxi":604
+ /* "src/lxml/xslt.pxi":605
* raise XSLTApplyError(message, self._error_log)
* finally:
* if resolver_context is not None: # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_6 != 0);
if (__pyx_t_3) {
- /* "src/lxml/xslt.pxi":605
+ /* "src/lxml/xslt.pxi":606
* finally:
* if resolver_context is not None:
* resolver_context.clear() # <<<<<<<<<<<<<<
*
* result_doc = _documentFactory(c_result, input_doc._parser)
*/
- __pyx_t_8 = ((struct __pyx_vtabstruct_4lxml_5etree__XSLTResolverContext *)__pyx_v_resolver_context->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.clear(((struct __pyx_obj_4lxml_5etree__ExceptionContext *)__pyx_v_resolver_context)); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(4, 605, __pyx_L1_error)
+ __pyx_t_8 = ((struct __pyx_vtabstruct_4lxml_5etree__XSLTResolverContext *)__pyx_v_resolver_context->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.clear(((struct __pyx_obj_4lxml_5etree__ExceptionContext *)__pyx_v_resolver_context)); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(4, 606, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":604
+ /* "src/lxml/xslt.pxi":605
* raise XSLTApplyError(message, self._error_log)
* finally:
* if resolver_context is not None: # <<<<<<<<<<<<<<
__pyx_t_6 = (__pyx_t_3 != 0);
if (__pyx_t_6) {
- /* "src/lxml/xslt.pxi":605
+ /* "src/lxml/xslt.pxi":606
* finally:
* if resolver_context is not None:
* resolver_context.clear() # <<<<<<<<<<<<<<
*
* result_doc = _documentFactory(c_result, input_doc._parser)
*/
- __pyx_t_21 = ((struct __pyx_vtabstruct_4lxml_5etree__XSLTResolverContext *)__pyx_v_resolver_context->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.clear(((struct __pyx_obj_4lxml_5etree__ExceptionContext *)__pyx_v_resolver_context)); if (unlikely(__pyx_t_21 == ((int)-1))) __PYX_ERR(4, 605, __pyx_L38_error)
+ __pyx_t_21 = ((struct __pyx_vtabstruct_4lxml_5etree__XSLTResolverContext *)__pyx_v_resolver_context->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.clear(((struct __pyx_obj_4lxml_5etree__ExceptionContext *)__pyx_v_resolver_context)); if (unlikely(__pyx_t_21 == ((int)-1))) __PYX_ERR(4, 606, __pyx_L38_error)
- /* "src/lxml/xslt.pxi":604
+ /* "src/lxml/xslt.pxi":605
* raise XSLTApplyError(message, self._error_log)
* finally:
* if resolver_context is not None: # <<<<<<<<<<<<<<
__pyx_L22:;
}
- /* "src/lxml/xslt.pxi":607
+ /* "src/lxml/xslt.pxi":608
* resolver_context.clear()
*
* result_doc = _documentFactory(c_result, input_doc._parser) # <<<<<<<<<<<<<<
*/
__pyx_t_5 = ((PyObject *)__pyx_v_input_doc->_parser);
__Pyx_INCREF(__pyx_t_5);
- __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__documentFactory(__pyx_v_c_result, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_t_5))); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 607, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__documentFactory(__pyx_v_c_result, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_t_5))); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 608, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_v_result_doc = ((struct LxmlDocument *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/xslt.pxi":609
+ /* "src/lxml/xslt.pxi":610
* result_doc = _documentFactory(c_result, input_doc._parser)
*
* c_dict = c_result.dict # <<<<<<<<<<<<<<
__pyx_t_4 = __pyx_v_c_result->dict;
__pyx_v_c_dict = __pyx_t_4;
- /* "src/lxml/xslt.pxi":610
+ /* "src/lxml/xslt.pxi":611
*
* c_dict = c_result.dict
* xmlparser.xmlDictReference(c_dict) # <<<<<<<<<<<<<<
*/
(void)(xmlDictReference(__pyx_v_c_dict));
- /* "src/lxml/xslt.pxi":611
+ /* "src/lxml/xslt.pxi":612
* c_dict = c_result.dict
* xmlparser.xmlDictReference(c_dict)
* __GLOBAL_PARSER_CONTEXT.initThreadDictRef(&c_result.dict) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree_24_ParserDictionaryContext_initThreadDictRef(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT, (&__pyx_v_c_result->dict));
- /* "src/lxml/xslt.pxi":612
+ /* "src/lxml/xslt.pxi":613
* xmlparser.xmlDictReference(c_dict)
* __GLOBAL_PARSER_CONTEXT.initThreadDictRef(&c_result.dict)
* if c_dict is not c_result.dict or \ # <<<<<<<<<<<<<<
goto __pyx_L41_bool_binop_done;
}
- /* "src/lxml/xslt.pxi":613
+ /* "src/lxml/xslt.pxi":614
* __GLOBAL_PARSER_CONTEXT.initThreadDictRef(&c_result.dict)
* if c_dict is not c_result.dict or \
* self._c_style.doc.dict is not c_result.dict or \ # <<<<<<<<<<<<<<
goto __pyx_L41_bool_binop_done;
}
- /* "src/lxml/xslt.pxi":614
+ /* "src/lxml/xslt.pxi":615
* if c_dict is not c_result.dict or \
* self._c_style.doc.dict is not c_result.dict or \
* input_doc._c_doc.dict is not c_result.dict: # <<<<<<<<<<<<<<
__pyx_t_6 = __pyx_t_3;
__pyx_L41_bool_binop_done:;
- /* "src/lxml/xslt.pxi":612
+ /* "src/lxml/xslt.pxi":613
* xmlparser.xmlDictReference(c_dict)
* __GLOBAL_PARSER_CONTEXT.initThreadDictRef(&c_result.dict)
* if c_dict is not c_result.dict or \ # <<<<<<<<<<<<<<
*/
if (__pyx_t_6) {
- /* "src/lxml/xslt.pxi":615
+ /* "src/lxml/xslt.pxi":616
* self._c_style.doc.dict is not c_result.dict or \
* input_doc._c_doc.dict is not c_result.dict:
* with nogil: # <<<<<<<<<<<<<<
#endif
/*try:*/ {
- /* "src/lxml/xslt.pxi":616
+ /* "src/lxml/xslt.pxi":617
* input_doc._c_doc.dict is not c_result.dict:
* with nogil:
* if c_dict is not c_result.dict: # <<<<<<<<<<<<<<
__pyx_t_6 = ((__pyx_v_c_dict != __pyx_v_c_result->dict) != 0);
if (__pyx_t_6) {
- /* "src/lxml/xslt.pxi":617
+ /* "src/lxml/xslt.pxi":618
* with nogil:
* if c_dict is not c_result.dict:
* fixThreadDictNames(<xmlNode*>c_result, # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree_fixThreadDictNames(((xmlNode *)__pyx_v_c_result), __pyx_v_c_dict, __pyx_v_c_result->dict);
- /* "src/lxml/xslt.pxi":616
+ /* "src/lxml/xslt.pxi":617
* input_doc._c_doc.dict is not c_result.dict:
* with nogil:
* if c_dict is not c_result.dict: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":619
+ /* "src/lxml/xslt.pxi":620
* fixThreadDictNames(<xmlNode*>c_result,
* c_dict, c_result.dict)
* if self._c_style.doc.dict is not c_result.dict: # <<<<<<<<<<<<<<
__pyx_t_6 = ((__pyx_v_self->_c_style->doc->dict != __pyx_v_c_result->dict) != 0);
if (__pyx_t_6) {
- /* "src/lxml/xslt.pxi":620
+ /* "src/lxml/xslt.pxi":621
* c_dict, c_result.dict)
* if self._c_style.doc.dict is not c_result.dict:
* fixThreadDictNames(<xmlNode*>c_result, # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree_fixThreadDictNames(((xmlNode *)__pyx_v_c_result), __pyx_v_self->_c_style->doc->dict, __pyx_v_c_result->dict);
- /* "src/lxml/xslt.pxi":619
+ /* "src/lxml/xslt.pxi":620
* fixThreadDictNames(<xmlNode*>c_result,
* c_dict, c_result.dict)
* if self._c_style.doc.dict is not c_result.dict: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":622
+ /* "src/lxml/xslt.pxi":623
* fixThreadDictNames(<xmlNode*>c_result,
* self._c_style.doc.dict, c_result.dict)
* if input_doc._c_doc.dict is not c_result.dict: # <<<<<<<<<<<<<<
__pyx_t_6 = ((__pyx_v_input_doc->_c_doc->dict != __pyx_v_c_result->dict) != 0);
if (__pyx_t_6) {
- /* "src/lxml/xslt.pxi":623
+ /* "src/lxml/xslt.pxi":624
* self._c_style.doc.dict, c_result.dict)
* if input_doc._c_doc.dict is not c_result.dict:
* fixThreadDictNames(<xmlNode*>c_result, # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree_fixThreadDictNames(((xmlNode *)__pyx_v_c_result), __pyx_v_input_doc->_c_doc->dict, __pyx_v_c_result->dict);
- /* "src/lxml/xslt.pxi":622
+ /* "src/lxml/xslt.pxi":623
* fixThreadDictNames(<xmlNode*>c_result,
* self._c_style.doc.dict, c_result.dict)
* if input_doc._c_doc.dict is not c_result.dict: # <<<<<<<<<<<<<<
}
}
- /* "src/lxml/xslt.pxi":615
+ /* "src/lxml/xslt.pxi":616
* self._c_style.doc.dict is not c_result.dict or \
* input_doc._c_doc.dict is not c_result.dict:
* with nogil: # <<<<<<<<<<<<<<
}
}
- /* "src/lxml/xslt.pxi":612
+ /* "src/lxml/xslt.pxi":613
* xmlparser.xmlDictReference(c_dict)
* __GLOBAL_PARSER_CONTEXT.initThreadDictRef(&c_result.dict)
* if c_dict is not c_result.dict or \ # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":625
+ /* "src/lxml/xslt.pxi":626
* fixThreadDictNames(<xmlNode*>c_result,
* input_doc._c_doc.dict, c_result.dict)
* xmlparser.xmlDictFree(c_dict) # <<<<<<<<<<<<<<
*/
xmlDictFree(__pyx_v_c_dict);
- /* "src/lxml/xslt.pxi":627
+ /* "src/lxml/xslt.pxi":628
* xmlparser.xmlDictFree(c_dict)
*
* return _xsltResultTreeFactory(result_doc, self, profile_doc) # <<<<<<<<<<<<<<
* cdef xmlDoc* _run_transform(self, xmlDoc* c_input_doc,
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __pyx_f_4lxml_5etree__xsltResultTreeFactory(__pyx_v_result_doc, __pyx_v_self, __pyx_v_profile_doc); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 627, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__xsltResultTreeFactory(__pyx_v_result_doc, __pyx_v_self, __pyx_v_profile_doc); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 628, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":492
+ /* "src/lxml/xslt.pxi":493
* return _copyXSLT(self)
*
* def __call__(self, _input, *, profile_run=False, **kw): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/xslt.pxi":629
+/* "src/lxml/xslt.pxi":630
* return _xsltResultTreeFactory(result_doc, self, profile_doc)
*
* cdef xmlDoc* _run_transform(self, xmlDoc* c_input_doc, # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_run_transform", 0);
- /* "src/lxml/xslt.pxi":633
+ /* "src/lxml/xslt.pxi":634
* xslt.xsltTransformContext* transform_ctxt):
* cdef xmlDoc* c_result
* xslt.xsltSetTransformErrorFunc(transform_ctxt, <void*>self._error_log, # <<<<<<<<<<<<<<
*/
xsltSetTransformErrorFunc(__pyx_v_transform_ctxt, ((void *)__pyx_v_self->_error_log), ((xmlGenericErrorFunc)__pyx_f_4lxml_5etree__receiveXSLTError));
- /* "src/lxml/xslt.pxi":635
+ /* "src/lxml/xslt.pxi":636
* xslt.xsltSetTransformErrorFunc(transform_ctxt, <void*>self._error_log,
* <xmlerror.xmlGenericErrorFunc>_receiveXSLTError)
* if self._access_control is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "src/lxml/xslt.pxi":636
+ /* "src/lxml/xslt.pxi":637
* <xmlerror.xmlGenericErrorFunc>_receiveXSLTError)
* if self._access_control is not None:
* self._access_control._register_in_context(transform_ctxt) # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree_17XSLTAccessControl__register_in_context(__pyx_v_self->_access_control, __pyx_v_transform_ctxt);
- /* "src/lxml/xslt.pxi":635
+ /* "src/lxml/xslt.pxi":636
* xslt.xsltSetTransformErrorFunc(transform_ctxt, <void*>self._error_log,
* <xmlerror.xmlGenericErrorFunc>_receiveXSLTError)
* if self._access_control is not None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":637
+ /* "src/lxml/xslt.pxi":638
* if self._access_control is not None:
* self._access_control._register_in_context(transform_ctxt)
* with self._error_log, nogil: # <<<<<<<<<<<<<<
* c_result = xslt.xsltApplyStylesheetUser(
*/
/*with:*/ {
- __pyx_t_3 = __Pyx_PyObject_LookupSpecial(((PyObject *)__pyx_v_self->_error_log), __pyx_n_s_exit); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 637, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_LookupSpecial(((PyObject *)__pyx_v_self->_error_log), __pyx_n_s_exit); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 638, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_4 = __pyx_f_4lxml_5etree_9_ErrorLog___enter__(__pyx_v_self->_error_log); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(4, 637, __pyx_L4_error)
+ __pyx_t_4 = __pyx_f_4lxml_5etree_9_ErrorLog___enter__(__pyx_v_self->_error_log); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(4, 638, __pyx_L4_error)
/*try:*/ {
{
(void)__pyx_t_5; (void)__pyx_t_6; (void)__pyx_t_7; /* mark used */
#endif
/*try:*/ {
- /* "src/lxml/xslt.pxi":638
+ /* "src/lxml/xslt.pxi":639
* self._access_control._register_in_context(transform_ctxt)
* with self._error_log, nogil:
* orig_loader = _register_document_loader() # <<<<<<<<<<<<<<
*/
__pyx_v_orig_loader = __pyx_f_4lxml_5etree__register_document_loader();
- /* "src/lxml/xslt.pxi":639
+ /* "src/lxml/xslt.pxi":640
* with self._error_log, nogil:
* orig_loader = _register_document_loader()
* c_result = xslt.xsltApplyStylesheetUser( # <<<<<<<<<<<<<<
*/
__pyx_v_c_result = xsltApplyStylesheetUser(__pyx_v_self->_c_style, __pyx_v_c_input_doc, __pyx_v_params, NULL, NULL, __pyx_v_transform_ctxt);
- /* "src/lxml/xslt.pxi":641
+ /* "src/lxml/xslt.pxi":642
* c_result = xslt.xsltApplyStylesheetUser(
* self._c_style, c_input_doc, params, NULL, NULL, transform_ctxt)
* _reset_document_loader(orig_loader) # <<<<<<<<<<<<<<
__pyx_f_4lxml_5etree__reset_document_loader(__pyx_v_orig_loader);
}
- /* "src/lxml/xslt.pxi":637
+ /* "src/lxml/xslt.pxi":638
* if self._access_control is not None:
* self._access_control._register_in_context(transform_ctxt)
* with self._error_log, nogil: # <<<<<<<<<<<<<<
if (__pyx_t_3) {
__pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_tuple__35, NULL);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 637, __pyx_L1_error)
+ if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 638, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
}
__pyx_L17:;
}
- /* "src/lxml/xslt.pxi":642
+ /* "src/lxml/xslt.pxi":643
* self._c_style, c_input_doc, params, NULL, NULL, transform_ctxt)
* _reset_document_loader(orig_loader)
* return c_result # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_c_result;
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":629
+ /* "src/lxml/xslt.pxi":630
* return _xsltResultTreeFactory(result_doc, self, profile_doc)
*
* cdef xmlDoc* _run_transform(self, xmlDoc* c_input_doc, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/xslt.pxi":645
+/* "src/lxml/xslt.pxi":646
*
*
* cdef _convert_xslt_parameters(xslt.xsltTransformContext* transform_ctxt, # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_convert_xslt_parameters", 0);
- /* "src/lxml/xslt.pxi":649
+ /* "src/lxml/xslt.pxi":650
* cdef Py_ssize_t i, parameter_count
* cdef const_char** params
* cdef tree.xmlDict* c_dict = transform_ctxt.dict # <<<<<<<<<<<<<<
__pyx_t_1 = __pyx_v_transform_ctxt->dict;
__pyx_v_c_dict = __pyx_t_1;
- /* "src/lxml/xslt.pxi":650
+ /* "src/lxml/xslt.pxi":651
* cdef const_char** params
* cdef tree.xmlDict* c_dict = transform_ctxt.dict
* params_ptr[0] = NULL # <<<<<<<<<<<<<<
*/
(__pyx_v_params_ptr[0]) = NULL;
- /* "src/lxml/xslt.pxi":651
+ /* "src/lxml/xslt.pxi":652
* cdef tree.xmlDict* c_dict = transform_ctxt.dict
* params_ptr[0] = NULL
* parameter_count = len(parameters) # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_v_parameters == Py_None)) {
PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
- __PYX_ERR(4, 651, __pyx_L1_error)
+ __PYX_ERR(4, 652, __pyx_L1_error)
}
- __pyx_t_2 = PyDict_Size(__pyx_v_parameters); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(4, 651, __pyx_L1_error)
+ __pyx_t_2 = PyDict_Size(__pyx_v_parameters); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(4, 652, __pyx_L1_error)
__pyx_v_parameter_count = __pyx_t_2;
- /* "src/lxml/xslt.pxi":652
+ /* "src/lxml/xslt.pxi":653
* params_ptr[0] = NULL
* parameter_count = len(parameters)
* if parameter_count == 0: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_parameter_count == 0) != 0);
if (__pyx_t_3) {
- /* "src/lxml/xslt.pxi":653
+ /* "src/lxml/xslt.pxi":654
* parameter_count = len(parameters)
* if parameter_count == 0:
* return # <<<<<<<<<<<<<<
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":652
+ /* "src/lxml/xslt.pxi":653
* params_ptr[0] = NULL
* parameter_count = len(parameters)
* if parameter_count == 0: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":657
+ /* "src/lxml/xslt.pxi":658
* # * 2 as we want an entry for both key and value,
* # and + 1 as array is NULL terminated
* params = <const_char**>python.lxml_malloc(parameter_count * 2 + 1, sizeof(const_char*)) # <<<<<<<<<<<<<<
*/
__pyx_v_params = ((const char **)lxml_malloc(((__pyx_v_parameter_count * 2) + 1), (sizeof(const char *))));
- /* "src/lxml/xslt.pxi":658
+ /* "src/lxml/xslt.pxi":659
* # and + 1 as array is NULL terminated
* params = <const_char**>python.lxml_malloc(parameter_count * 2 + 1, sizeof(const_char*))
* if not params: # <<<<<<<<<<<<<<
__pyx_t_3 = ((!(__pyx_v_params != 0)) != 0);
if (unlikely(__pyx_t_3)) {
- /* "src/lxml/xslt.pxi":659
+ /* "src/lxml/xslt.pxi":660
* params = <const_char**>python.lxml_malloc(parameter_count * 2 + 1, sizeof(const_char*))
* if not params:
* raise MemoryError() # <<<<<<<<<<<<<<
* try:
* i = 0
*/
- PyErr_NoMemory(); __PYX_ERR(4, 659, __pyx_L1_error)
+ PyErr_NoMemory(); __PYX_ERR(4, 660, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":658
+ /* "src/lxml/xslt.pxi":659
* # and + 1 as array is NULL terminated
* params = <const_char**>python.lxml_malloc(parameter_count * 2 + 1, sizeof(const_char*))
* if not params: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":660
+ /* "src/lxml/xslt.pxi":661
* if not params:
* raise MemoryError()
* try: # <<<<<<<<<<<<<<
__Pyx_XGOTREF(__pyx_t_6);
/*try:*/ {
- /* "src/lxml/xslt.pxi":661
+ /* "src/lxml/xslt.pxi":662
* raise MemoryError()
* try:
* i = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_i = 0;
- /* "src/lxml/xslt.pxi":662
+ /* "src/lxml/xslt.pxi":663
* try:
* i = 0
* for key, value in parameters.iteritems(): # <<<<<<<<<<<<<<
__pyx_t_2 = 0;
if (unlikely(__pyx_v_parameters == Py_None)) {
PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "iteritems");
- __PYX_ERR(4, 662, __pyx_L5_error)
+ __PYX_ERR(4, 663, __pyx_L5_error)
}
- __pyx_t_10 = __Pyx_dict_iterator(__pyx_v_parameters, 1, __pyx_n_s_iteritems, (&__pyx_t_8), (&__pyx_t_9)); if (unlikely(!__pyx_t_10)) __PYX_ERR(4, 662, __pyx_L5_error)
+ __pyx_t_10 = __Pyx_dict_iterator(__pyx_v_parameters, 1, __pyx_n_s_iteritems, (&__pyx_t_8), (&__pyx_t_9)); if (unlikely(!__pyx_t_10)) __PYX_ERR(4, 663, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_10);
__Pyx_XDECREF(__pyx_t_7);
__pyx_t_7 = __pyx_t_10;
while (1) {
__pyx_t_12 = __Pyx_dict_iter_next(__pyx_t_7, __pyx_t_8, &__pyx_t_2, &__pyx_t_10, &__pyx_t_11, NULL, __pyx_t_9);
if (unlikely(__pyx_t_12 == 0)) break;
- if (unlikely(__pyx_t_12 == -1)) __PYX_ERR(4, 662, __pyx_L5_error)
+ if (unlikely(__pyx_t_12 == -1)) __PYX_ERR(4, 663, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_10);
__Pyx_GOTREF(__pyx_t_11);
__Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_10);
__Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_11);
__pyx_t_11 = 0;
- /* "src/lxml/xslt.pxi":663
+ /* "src/lxml/xslt.pxi":664
* i = 0
* for key, value in parameters.iteritems():
* k = _utf8(key) # <<<<<<<<<<<<<<
* if isinstance(value, _XSLTQuotedStringParam):
* v = (<_XSLTQuotedStringParam>value).strval
*/
- __pyx_t_11 = __pyx_f_4lxml_5etree__utf8(__pyx_v_key); if (unlikely(!__pyx_t_11)) __PYX_ERR(4, 663, __pyx_L5_error)
+ __pyx_t_11 = __pyx_f_4lxml_5etree__utf8(__pyx_v_key); if (unlikely(!__pyx_t_11)) __PYX_ERR(4, 664, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_11);
__Pyx_XDECREF_SET(__pyx_v_k, ((PyObject*)__pyx_t_11));
__pyx_t_11 = 0;
- /* "src/lxml/xslt.pxi":664
+ /* "src/lxml/xslt.pxi":665
* for key, value in parameters.iteritems():
* k = _utf8(key)
* if isinstance(value, _XSLTQuotedStringParam): # <<<<<<<<<<<<<<
__pyx_t_13 = (__pyx_t_3 != 0);
if (__pyx_t_13) {
- /* "src/lxml/xslt.pxi":665
+ /* "src/lxml/xslt.pxi":666
* k = _utf8(key)
* if isinstance(value, _XSLTQuotedStringParam):
* v = (<_XSLTQuotedStringParam>value).strval # <<<<<<<<<<<<<<
__Pyx_XDECREF_SET(__pyx_v_v, ((PyObject*)__pyx_t_11));
__pyx_t_11 = 0;
- /* "src/lxml/xslt.pxi":666
+ /* "src/lxml/xslt.pxi":667
* if isinstance(value, _XSLTQuotedStringParam):
* v = (<_XSLTQuotedStringParam>value).strval
* xslt.xsltQuoteOneUserParam( # <<<<<<<<<<<<<<
*/
(void)(xsltQuoteOneUserParam(__pyx_v_transform_ctxt, (const xmlChar*)PyBytes_AS_STRING(__pyx_v_k), (const xmlChar*)PyBytes_AS_STRING(__pyx_v_v)));
- /* "src/lxml/xslt.pxi":664
+ /* "src/lxml/xslt.pxi":665
* for key, value in parameters.iteritems():
* k = _utf8(key)
* if isinstance(value, _XSLTQuotedStringParam): # <<<<<<<<<<<<<<
goto __pyx_L13;
}
- /* "src/lxml/xslt.pxi":669
+ /* "src/lxml/xslt.pxi":670
* transform_ctxt, _xcstr(k), _xcstr(v))
* else:
* if isinstance(value, XPath): # <<<<<<<<<<<<<<
__pyx_t_3 = (__pyx_t_13 != 0);
if (__pyx_t_3) {
- /* "src/lxml/xslt.pxi":670
+ /* "src/lxml/xslt.pxi":671
* else:
* if isinstance(value, XPath):
* v = (<XPath>value)._path # <<<<<<<<<<<<<<
__Pyx_XDECREF_SET(__pyx_v_v, ((PyObject*)__pyx_t_11));
__pyx_t_11 = 0;
- /* "src/lxml/xslt.pxi":669
+ /* "src/lxml/xslt.pxi":670
* transform_ctxt, _xcstr(k), _xcstr(v))
* else:
* if isinstance(value, XPath): # <<<<<<<<<<<<<<
goto __pyx_L14;
}
- /* "src/lxml/xslt.pxi":672
+ /* "src/lxml/xslt.pxi":673
* v = (<XPath>value)._path
* else:
* v = _utf8(value) # <<<<<<<<<<<<<<
* i += 1
*/
/*else*/ {
- __pyx_t_11 = __pyx_f_4lxml_5etree__utf8(__pyx_v_value); if (unlikely(!__pyx_t_11)) __PYX_ERR(4, 672, __pyx_L5_error)
+ __pyx_t_11 = __pyx_f_4lxml_5etree__utf8(__pyx_v_value); if (unlikely(!__pyx_t_11)) __PYX_ERR(4, 673, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_11);
__Pyx_XDECREF_SET(__pyx_v_v, ((PyObject*)__pyx_t_11));
__pyx_t_11 = 0;
}
__pyx_L14:;
- /* "src/lxml/xslt.pxi":673
+ /* "src/lxml/xslt.pxi":674
* else:
* v = _utf8(value)
* params[i] = <const_char*>tree.xmlDictLookup(c_dict, _xcstr(k), len(k)) # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_v_k == Py_None)) {
PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
- __PYX_ERR(4, 673, __pyx_L5_error)
+ __PYX_ERR(4, 674, __pyx_L5_error)
}
- __pyx_t_14 = PyBytes_GET_SIZE(__pyx_v_k); if (unlikely(__pyx_t_14 == ((Py_ssize_t)-1))) __PYX_ERR(4, 673, __pyx_L5_error)
+ __pyx_t_14 = PyBytes_GET_SIZE(__pyx_v_k); if (unlikely(__pyx_t_14 == ((Py_ssize_t)-1))) __PYX_ERR(4, 674, __pyx_L5_error)
(__pyx_v_params[__pyx_v_i]) = ((const char *)xmlDictLookup(__pyx_v_c_dict, (const xmlChar*)PyBytes_AS_STRING(__pyx_v_k), __pyx_t_14));
- /* "src/lxml/xslt.pxi":674
+ /* "src/lxml/xslt.pxi":675
* v = _utf8(value)
* params[i] = <const_char*>tree.xmlDictLookup(c_dict, _xcstr(k), len(k))
* i += 1 # <<<<<<<<<<<<<<
*/
__pyx_v_i = (__pyx_v_i + 1);
- /* "src/lxml/xslt.pxi":675
+ /* "src/lxml/xslt.pxi":676
* params[i] = <const_char*>tree.xmlDictLookup(c_dict, _xcstr(k), len(k))
* i += 1
* params[i] = <const_char*>tree.xmlDictLookup(c_dict, _xcstr(v), len(v)) # <<<<<<<<<<<<<<
*/
if (unlikely(__pyx_v_v == Py_None)) {
PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
- __PYX_ERR(4, 675, __pyx_L5_error)
+ __PYX_ERR(4, 676, __pyx_L5_error)
}
- __pyx_t_14 = PyBytes_GET_SIZE(__pyx_v_v); if (unlikely(__pyx_t_14 == ((Py_ssize_t)-1))) __PYX_ERR(4, 675, __pyx_L5_error)
+ __pyx_t_14 = PyBytes_GET_SIZE(__pyx_v_v); if (unlikely(__pyx_t_14 == ((Py_ssize_t)-1))) __PYX_ERR(4, 676, __pyx_L5_error)
(__pyx_v_params[__pyx_v_i]) = ((const char *)xmlDictLookup(__pyx_v_c_dict, (const xmlChar*)PyBytes_AS_STRING(__pyx_v_v), __pyx_t_14));
- /* "src/lxml/xslt.pxi":676
+ /* "src/lxml/xslt.pxi":677
* i += 1
* params[i] = <const_char*>tree.xmlDictLookup(c_dict, _xcstr(v), len(v))
* i += 1 # <<<<<<<<<<<<<<
}
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- /* "src/lxml/xslt.pxi":660
+ /* "src/lxml/xslt.pxi":661
* if not params:
* raise MemoryError()
* try: # <<<<<<<<<<<<<<
__Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0;
__Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
- /* "src/lxml/xslt.pxi":677
+ /* "src/lxml/xslt.pxi":678
* params[i] = <const_char*>tree.xmlDictLookup(c_dict, _xcstr(v), len(v))
* i += 1
* except: # <<<<<<<<<<<<<<
*/
/*except:*/ {
__Pyx_AddTraceback("lxml.etree._convert_xslt_parameters", __pyx_clineno, __pyx_lineno, __pyx_filename);
- if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_11, &__pyx_t_10) < 0) __PYX_ERR(4, 677, __pyx_L7_except_error)
+ if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_11, &__pyx_t_10) < 0) __PYX_ERR(4, 678, __pyx_L7_except_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_GOTREF(__pyx_t_11);
__Pyx_GOTREF(__pyx_t_10);
- /* "src/lxml/xslt.pxi":678
+ /* "src/lxml/xslt.pxi":679
* i += 1
* except:
* python.lxml_free(params) # <<<<<<<<<<<<<<
*/
lxml_free(__pyx_v_params);
- /* "src/lxml/xslt.pxi":679
+ /* "src/lxml/xslt.pxi":680
* except:
* python.lxml_free(params)
* raise # <<<<<<<<<<<<<<
__Pyx_XGIVEREF(__pyx_t_10);
__Pyx_ErrRestoreWithState(__pyx_t_7, __pyx_t_11, __pyx_t_10);
__pyx_t_7 = 0; __pyx_t_11 = 0; __pyx_t_10 = 0;
- __PYX_ERR(4, 679, __pyx_L7_except_error)
+ __PYX_ERR(4, 680, __pyx_L7_except_error)
}
__pyx_L7_except_error:;
- /* "src/lxml/xslt.pxi":660
+ /* "src/lxml/xslt.pxi":661
* if not params:
* raise MemoryError()
* try: # <<<<<<<<<<<<<<
__pyx_L10_try_end:;
}
- /* "src/lxml/xslt.pxi":680
+ /* "src/lxml/xslt.pxi":681
* python.lxml_free(params)
* raise
* params[i] = NULL # <<<<<<<<<<<<<<
*/
(__pyx_v_params[__pyx_v_i]) = NULL;
- /* "src/lxml/xslt.pxi":681
+ /* "src/lxml/xslt.pxi":682
* raise
* params[i] = NULL
* params_ptr[0] = params # <<<<<<<<<<<<<<
*/
(__pyx_v_params_ptr[0]) = __pyx_v_params;
- /* "src/lxml/xslt.pxi":645
+ /* "src/lxml/xslt.pxi":646
*
*
* cdef _convert_xslt_parameters(xslt.xsltTransformContext* transform_ctxt, # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/xslt.pxi":683
+/* "src/lxml/xslt.pxi":684
* params_ptr[0] = params
*
* cdef XSLT _copyXSLT(XSLT stylesheet): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_copyXSLT", 0);
- /* "src/lxml/xslt.pxi":686
+ /* "src/lxml/xslt.pxi":687
* cdef XSLT new_xslt
* cdef xmlDoc* c_doc
* assert stylesheet._c_style is not NULL, "XSLT stylesheet not initialised" # <<<<<<<<<<<<<<
* new_xslt._access_control = stylesheet._access_control
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_stylesheet->_c_style != NULL) != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_XSLT_stylesheet_not_initialised);
- __PYX_ERR(4, 686, __pyx_L1_error)
+ __PYX_ERR(4, 687, __pyx_L1_error)
}
}
#endif
- /* "src/lxml/xslt.pxi":687
+ /* "src/lxml/xslt.pxi":688
* cdef xmlDoc* c_doc
* assert stylesheet._c_style is not NULL, "XSLT stylesheet not initialised"
* new_xslt = XSLT.__new__(XSLT) # <<<<<<<<<<<<<<
* new_xslt._access_control = stylesheet._access_control
* new_xslt._error_log = _ErrorLog()
*/
- __pyx_t_1 = ((PyObject *)__pyx_tp_new_4lxml_5etree_XSLT(((PyTypeObject *)__pyx_ptype_4lxml_5etree_XSLT), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 687, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)__pyx_tp_new_4lxml_5etree_XSLT(((PyTypeObject *)__pyx_ptype_4lxml_5etree_XSLT), __pyx_empty_tuple, NULL)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 688, __pyx_L1_error)
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
__pyx_v_new_xslt = ((struct __pyx_obj_4lxml_5etree_XSLT *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/xslt.pxi":688
+ /* "src/lxml/xslt.pxi":689
* assert stylesheet._c_style is not NULL, "XSLT stylesheet not initialised"
* new_xslt = XSLT.__new__(XSLT)
* new_xslt._access_control = stylesheet._access_control # <<<<<<<<<<<<<<
__pyx_v_new_xslt->_access_control = ((struct __pyx_obj_4lxml_5etree_XSLTAccessControl *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/xslt.pxi":689
+ /* "src/lxml/xslt.pxi":690
* new_xslt = XSLT.__new__(XSLT)
* new_xslt._access_control = stylesheet._access_control
* new_xslt._error_log = _ErrorLog() # <<<<<<<<<<<<<<
* new_xslt._context = stylesheet._context._copy()
*
*/
- __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree__ErrorLog)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 689, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree__ErrorLog)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 690, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_GIVEREF(__pyx_t_1);
__Pyx_GOTREF(__pyx_v_new_xslt->_error_log);
__pyx_v_new_xslt->_error_log = ((struct __pyx_obj_4lxml_5etree__ErrorLog *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/xslt.pxi":690
+ /* "src/lxml/xslt.pxi":691
* new_xslt._access_control = stylesheet._access_control
* new_xslt._error_log = _ErrorLog()
* new_xslt._context = stylesheet._context._copy() # <<<<<<<<<<<<<<
*
* new_xslt._xslt_resolver_context = stylesheet._xslt_resolver_context._copy()
*/
- __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy(((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_stylesheet->_context))); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 690, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_12_XSLTContext__copy(((struct __pyx_obj_4lxml_5etree__BaseContext *)__pyx_v_stylesheet->_context))); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 691, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_4lxml_5etree__XSLTContext))))) __PYX_ERR(4, 690, __pyx_L1_error)
+ if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_4lxml_5etree__XSLTContext))))) __PYX_ERR(4, 691, __pyx_L1_error)
__Pyx_GIVEREF(__pyx_t_1);
__Pyx_GOTREF(__pyx_v_new_xslt->_context);
__Pyx_DECREF(((PyObject *)__pyx_v_new_xslt->_context));
__pyx_v_new_xslt->_context = ((struct __pyx_obj_4lxml_5etree__XSLTContext *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/xslt.pxi":692
+ /* "src/lxml/xslt.pxi":693
* new_xslt._context = stylesheet._context._copy()
*
* new_xslt._xslt_resolver_context = stylesheet._xslt_resolver_context._copy() # <<<<<<<<<<<<<<
* new_xslt._xslt_resolver_context._c_style_doc = _copyDoc(
* stylesheet._xslt_resolver_context._c_style_doc, 1)
*/
- __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_20_XSLTResolverContext__copy(__pyx_v_stylesheet->_xslt_resolver_context)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 692, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree_20_XSLTResolverContext__copy(__pyx_v_stylesheet->_xslt_resolver_context)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 693, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_GIVEREF(__pyx_t_1);
__Pyx_GOTREF(__pyx_v_new_xslt->_xslt_resolver_context);
__pyx_v_new_xslt->_xslt_resolver_context = ((struct __pyx_obj_4lxml_5etree__XSLTResolverContext *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "src/lxml/xslt.pxi":693
+ /* "src/lxml/xslt.pxi":694
*
* new_xslt._xslt_resolver_context = stylesheet._xslt_resolver_context._copy()
* new_xslt._xslt_resolver_context._c_style_doc = _copyDoc( # <<<<<<<<<<<<<<
* stylesheet._xslt_resolver_context._c_style_doc, 1)
*
*/
- __pyx_t_2 = __pyx_f_4lxml_5etree__copyDoc(__pyx_v_stylesheet->_xslt_resolver_context->_c_style_doc, 1); if (unlikely(__pyx_t_2 == ((xmlDoc *)NULL))) __PYX_ERR(4, 693, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__copyDoc(__pyx_v_stylesheet->_xslt_resolver_context->_c_style_doc, 1); if (unlikely(__pyx_t_2 == ((xmlDoc *)NULL))) __PYX_ERR(4, 694, __pyx_L1_error)
__pyx_v_new_xslt->_xslt_resolver_context->_c_style_doc = __pyx_t_2;
- /* "src/lxml/xslt.pxi":696
+ /* "src/lxml/xslt.pxi":697
* stylesheet._xslt_resolver_context._c_style_doc, 1)
*
* c_doc = _copyDoc(stylesheet._c_style.doc, 1) # <<<<<<<<<<<<<<
* new_xslt._c_style = xslt.xsltParseStylesheetDoc(c_doc)
* if new_xslt._c_style is NULL:
*/
- __pyx_t_2 = __pyx_f_4lxml_5etree__copyDoc(__pyx_v_stylesheet->_c_style->doc, 1); if (unlikely(__pyx_t_2 == ((xmlDoc *)NULL))) __PYX_ERR(4, 696, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree__copyDoc(__pyx_v_stylesheet->_c_style->doc, 1); if (unlikely(__pyx_t_2 == ((xmlDoc *)NULL))) __PYX_ERR(4, 697, __pyx_L1_error)
__pyx_v_c_doc = __pyx_t_2;
- /* "src/lxml/xslt.pxi":697
+ /* "src/lxml/xslt.pxi":698
*
* c_doc = _copyDoc(stylesheet._c_style.doc, 1)
* new_xslt._c_style = xslt.xsltParseStylesheetDoc(c_doc) # <<<<<<<<<<<<<<
*/
__pyx_v_new_xslt->_c_style = xsltParseStylesheetDoc(__pyx_v_c_doc);
- /* "src/lxml/xslt.pxi":698
+ /* "src/lxml/xslt.pxi":699
* c_doc = _copyDoc(stylesheet._c_style.doc, 1)
* new_xslt._c_style = xslt.xsltParseStylesheetDoc(c_doc)
* if new_xslt._c_style is NULL: # <<<<<<<<<<<<<<
__pyx_t_3 = ((__pyx_v_new_xslt->_c_style == NULL) != 0);
if (unlikely(__pyx_t_3)) {
- /* "src/lxml/xslt.pxi":699
+ /* "src/lxml/xslt.pxi":700
* new_xslt._c_style = xslt.xsltParseStylesheetDoc(c_doc)
* if new_xslt._c_style is NULL:
* tree.xmlFreeDoc(c_doc) # <<<<<<<<<<<<<<
*/
xmlFreeDoc(__pyx_v_c_doc);
- /* "src/lxml/xslt.pxi":700
+ /* "src/lxml/xslt.pxi":701
* if new_xslt._c_style is NULL:
* tree.xmlFreeDoc(c_doc)
* raise MemoryError() # <<<<<<<<<<<<<<
*
* return new_xslt
*/
- PyErr_NoMemory(); __PYX_ERR(4, 700, __pyx_L1_error)
+ PyErr_NoMemory(); __PYX_ERR(4, 701, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":698
+ /* "src/lxml/xslt.pxi":699
* c_doc = _copyDoc(stylesheet._c_style.doc, 1)
* new_xslt._c_style = xslt.xsltParseStylesheetDoc(c_doc)
* if new_xslt._c_style is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":702
+ /* "src/lxml/xslt.pxi":703
* raise MemoryError()
*
* return new_xslt # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_new_xslt;
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":683
+ /* "src/lxml/xslt.pxi":684
* params_ptr[0] = params
*
* cdef XSLT _copyXSLT(XSLT stylesheet): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/xslt.pxi":717
+/* "src/lxml/xslt.pxi":718
* cdef Py_ssize_t _buffer_refcnt
*
* def write_output(self, file, *, compression=0): # <<<<<<<<<<<<<<
if (value) { values[index] = value; kw_args--; }
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "write_output") < 0)) __PYX_ERR(4, 717, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "write_output") < 0)) __PYX_ERR(4, 718, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("write_output", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(4, 717, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("write_output", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(4, 718, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._XSLTResultTree.write_output", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("write_output", 0);
- /* "src/lxml/xslt.pxi":725
+ /* "src/lxml/xslt.pxi":726
* the result as defined by the ``<xsl:output>`` tag.
* """
* cdef _FilelikeWriter writer = None # <<<<<<<<<<<<<<
__Pyx_INCREF(Py_None);
__pyx_v_writer = ((struct __pyx_obj_4lxml_5etree__FilelikeWriter *)Py_None);
- /* "src/lxml/xslt.pxi":728
+ /* "src/lxml/xslt.pxi":729
* cdef _Document doc
* cdef int r, rclose, c_compression
* cdef const_xmlChar* c_encoding = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_c_encoding = NULL;
- /* "src/lxml/xslt.pxi":731
+ /* "src/lxml/xslt.pxi":732
* cdef tree.xmlOutputBuffer* c_buffer
*
* if self._context_node is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "src/lxml/xslt.pxi":732
+ /* "src/lxml/xslt.pxi":733
*
* if self._context_node is not None:
* doc = self._context_node._doc # <<<<<<<<<<<<<<
__pyx_v_doc = ((struct LxmlDocument *)__pyx_t_3);
__pyx_t_3 = 0;
- /* "src/lxml/xslt.pxi":731
+ /* "src/lxml/xslt.pxi":732
* cdef tree.xmlOutputBuffer* c_buffer
*
* if self._context_node is not None: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "src/lxml/xslt.pxi":734
+ /* "src/lxml/xslt.pxi":735
* doc = self._context_node._doc
* else:
* doc = None # <<<<<<<<<<<<<<
}
__pyx_L3:;
- /* "src/lxml/xslt.pxi":735
+ /* "src/lxml/xslt.pxi":736
* else:
* doc = None
* if doc is None: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_t_2 != 0);
if (__pyx_t_1) {
- /* "src/lxml/xslt.pxi":736
+ /* "src/lxml/xslt.pxi":737
* doc = None
* if doc is None:
* doc = self._doc # <<<<<<<<<<<<<<
__Pyx_DECREF_SET(__pyx_v_doc, ((struct LxmlDocument *)__pyx_t_3));
__pyx_t_3 = 0;
- /* "src/lxml/xslt.pxi":737
+ /* "src/lxml/xslt.pxi":738
* if doc is None:
* doc = self._doc
* if doc is None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (unlikely(__pyx_t_2)) {
- /* "src/lxml/xslt.pxi":738
+ /* "src/lxml/xslt.pxi":739
* doc = self._doc
* if doc is None:
* raise XSLTSaveError("No document to serialise") # <<<<<<<<<<<<<<
* c_compression = compression or 0
* xslt.LXML_GET_XSLT_ENCODING(c_encoding, self._xslt._c_style)
*/
- __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_XSLTSaveError); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 738, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_XSLTSaveError); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 739, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_5 = NULL;
if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
}
__pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_kp_s_No_document_to_serialise) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_kp_s_No_document_to_serialise);
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
- if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 738, __pyx_L1_error)
+ if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 739, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_Raise(__pyx_t_3, 0, 0, 0);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- __PYX_ERR(4, 738, __pyx_L1_error)
+ __PYX_ERR(4, 739, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":737
+ /* "src/lxml/xslt.pxi":738
* if doc is None:
* doc = self._doc
* if doc is None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":735
+ /* "src/lxml/xslt.pxi":736
* else:
* doc = None
* if doc is None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":739
+ /* "src/lxml/xslt.pxi":740
* if doc is None:
* raise XSLTSaveError("No document to serialise")
* c_compression = compression or 0 # <<<<<<<<<<<<<<
* xslt.LXML_GET_XSLT_ENCODING(c_encoding, self._xslt._c_style)
* writer = _create_output_buffer(file, <const_char*>c_encoding, compression, &c_buffer, close=False)
*/
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_compression); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(4, 739, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_compression); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(4, 740, __pyx_L1_error)
if (!__pyx_t_2) {
} else {
- __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_v_compression); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 739, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyInt_As_int(__pyx_v_compression); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 740, __pyx_L1_error)
__pyx_t_6 = __pyx_t_7;
goto __pyx_L6_bool_binop_done;
}
__pyx_L6_bool_binop_done:;
__pyx_v_c_compression = __pyx_t_6;
- /* "src/lxml/xslt.pxi":740
+ /* "src/lxml/xslt.pxi":741
* raise XSLTSaveError("No document to serialise")
* c_compression = compression or 0
* xslt.LXML_GET_XSLT_ENCODING(c_encoding, self._xslt._c_style) # <<<<<<<<<<<<<<
*/
LXML_GET_XSLT_ENCODING(__pyx_v_c_encoding, __pyx_v_self->_xslt->_c_style);
- /* "src/lxml/xslt.pxi":741
+ /* "src/lxml/xslt.pxi":742
* c_compression = compression or 0
* xslt.LXML_GET_XSLT_ENCODING(c_encoding, self._xslt._c_style)
* writer = _create_output_buffer(file, <const_char*>c_encoding, compression, &c_buffer, close=False) # <<<<<<<<<<<<<<
* if writer is None:
* with nogil:
*/
- __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_v_compression); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 741, __pyx_L1_error)
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__create_output_buffer(__pyx_v_file, ((const char *)__pyx_v_c_encoding), __pyx_t_6, (&__pyx_v_c_buffer), 0)); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 741, __pyx_L1_error)
+ __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_v_compression); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(4, 742, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__create_output_buffer(__pyx_v_file, ((const char *)__pyx_v_c_encoding), __pyx_t_6, (&__pyx_v_c_buffer), 0)); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 742, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF_SET(__pyx_v_writer, ((struct __pyx_obj_4lxml_5etree__FilelikeWriter *)__pyx_t_3));
__pyx_t_3 = 0;
- /* "src/lxml/xslt.pxi":742
+ /* "src/lxml/xslt.pxi":743
* xslt.LXML_GET_XSLT_ENCODING(c_encoding, self._xslt._c_style)
* writer = _create_output_buffer(file, <const_char*>c_encoding, compression, &c_buffer, close=False)
* if writer is None: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_t_2 != 0);
if (__pyx_t_1) {
- /* "src/lxml/xslt.pxi":743
+ /* "src/lxml/xslt.pxi":744
* writer = _create_output_buffer(file, <const_char*>c_encoding, compression, &c_buffer, close=False)
* if writer is None:
* with nogil: # <<<<<<<<<<<<<<
#endif
/*try:*/ {
- /* "src/lxml/xslt.pxi":744
+ /* "src/lxml/xslt.pxi":745
* if writer is None:
* with nogil:
* r = xslt.xsltSaveResultTo(c_buffer, doc._c_doc, self._xslt._c_style) # <<<<<<<<<<<<<<
*/
__pyx_v_r = xsltSaveResultTo(__pyx_v_c_buffer, __pyx_v_doc->_c_doc, __pyx_v_self->_xslt->_c_style);
- /* "src/lxml/xslt.pxi":745
+ /* "src/lxml/xslt.pxi":746
* with nogil:
* r = xslt.xsltSaveResultTo(c_buffer, doc._c_doc, self._xslt._c_style)
* rclose = tree.xmlOutputBufferClose(c_buffer) # <<<<<<<<<<<<<<
__pyx_v_rclose = xmlOutputBufferClose(__pyx_v_c_buffer);
}
- /* "src/lxml/xslt.pxi":743
+ /* "src/lxml/xslt.pxi":744
* writer = _create_output_buffer(file, <const_char*>c_encoding, compression, &c_buffer, close=False)
* if writer is None:
* with nogil: # <<<<<<<<<<<<<<
}
}
- /* "src/lxml/xslt.pxi":742
+ /* "src/lxml/xslt.pxi":743
* xslt.LXML_GET_XSLT_ENCODING(c_encoding, self._xslt._c_style)
* writer = _create_output_buffer(file, <const_char*>c_encoding, compression, &c_buffer, close=False)
* if writer is None: # <<<<<<<<<<<<<<
goto __pyx_L8;
}
- /* "src/lxml/xslt.pxi":747
+ /* "src/lxml/xslt.pxi":748
* rclose = tree.xmlOutputBufferClose(c_buffer)
* else:
* r = xslt.xsltSaveResultTo(c_buffer, doc._c_doc, self._xslt._c_style) # <<<<<<<<<<<<<<
/*else*/ {
__pyx_v_r = xsltSaveResultTo(__pyx_v_c_buffer, __pyx_v_doc->_c_doc, __pyx_v_self->_xslt->_c_style);
- /* "src/lxml/xslt.pxi":748
+ /* "src/lxml/xslt.pxi":749
* else:
* r = xslt.xsltSaveResultTo(c_buffer, doc._c_doc, self._xslt._c_style)
* rclose = tree.xmlOutputBufferClose(c_buffer) # <<<<<<<<<<<<<<
}
__pyx_L8:;
- /* "src/lxml/xslt.pxi":749
+ /* "src/lxml/xslt.pxi":750
* r = xslt.xsltSaveResultTo(c_buffer, doc._c_doc, self._xslt._c_style)
* rclose = tree.xmlOutputBufferClose(c_buffer)
* if writer is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "src/lxml/xslt.pxi":750
+ /* "src/lxml/xslt.pxi":751
* rclose = tree.xmlOutputBufferClose(c_buffer)
* if writer is not None:
* writer._exc_context._raise_if_stored() # <<<<<<<<<<<<<<
* if r < 0 or rclose == -1:
* python.PyErr_SetFromErrno(IOError) # raises IOError
*/
- __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__ExceptionContext *)__pyx_v_writer->_exc_context->__pyx_vtab)->_raise_if_stored(__pyx_v_writer->_exc_context); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(4, 750, __pyx_L1_error)
+ __pyx_t_6 = ((struct __pyx_vtabstruct_4lxml_5etree__ExceptionContext *)__pyx_v_writer->_exc_context->__pyx_vtab)->_raise_if_stored(__pyx_v_writer->_exc_context); if (unlikely(__pyx_t_6 == ((int)-1))) __PYX_ERR(4, 751, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":749
+ /* "src/lxml/xslt.pxi":750
* r = xslt.xsltSaveResultTo(c_buffer, doc._c_doc, self._xslt._c_style)
* rclose = tree.xmlOutputBufferClose(c_buffer)
* if writer is not None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":751
+ /* "src/lxml/xslt.pxi":752
* if writer is not None:
* writer._exc_context._raise_if_stored()
* if r < 0 or rclose == -1: # <<<<<<<<<<<<<<
__pyx_L14_bool_binop_done:;
if (__pyx_t_2) {
- /* "src/lxml/xslt.pxi":752
+ /* "src/lxml/xslt.pxi":753
* writer._exc_context._raise_if_stored()
* if r < 0 or rclose == -1:
* python.PyErr_SetFromErrno(IOError) # raises IOError # <<<<<<<<<<<<<<
*
* cdef _saveToStringAndSize(self, xmlChar** s, int* l):
*/
- __pyx_t_3 = PyErr_SetFromErrno(__pyx_builtin_IOError); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 752, __pyx_L1_error)
+ __pyx_t_3 = PyErr_SetFromErrno(__pyx_builtin_IOError); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 753, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- /* "src/lxml/xslt.pxi":751
+ /* "src/lxml/xslt.pxi":752
* if writer is not None:
* writer._exc_context._raise_if_stored()
* if r < 0 or rclose == -1: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":717
+ /* "src/lxml/xslt.pxi":718
* cdef Py_ssize_t _buffer_refcnt
*
* def write_output(self, file, *, compression=0): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/xslt.pxi":754
+/* "src/lxml/xslt.pxi":755
* python.PyErr_SetFromErrno(IOError) # raises IOError
*
* cdef _saveToStringAndSize(self, xmlChar** s, int* l): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_saveToStringAndSize", 0);
- /* "src/lxml/xslt.pxi":757
+ /* "src/lxml/xslt.pxi":758
* cdef _Document doc
* cdef int r
* if self._context_node is not None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "src/lxml/xslt.pxi":758
+ /* "src/lxml/xslt.pxi":759
* cdef int r
* if self._context_node is not None:
* doc = self._context_node._doc # <<<<<<<<<<<<<<
__pyx_v_doc = ((struct LxmlDocument *)__pyx_t_3);
__pyx_t_3 = 0;
- /* "src/lxml/xslt.pxi":757
+ /* "src/lxml/xslt.pxi":758
* cdef _Document doc
* cdef int r
* if self._context_node is not None: # <<<<<<<<<<<<<<
goto __pyx_L3;
}
- /* "src/lxml/xslt.pxi":760
+ /* "src/lxml/xslt.pxi":761
* doc = self._context_node._doc
* else:
* doc = None # <<<<<<<<<<<<<<
}
__pyx_L3:;
- /* "src/lxml/xslt.pxi":761
+ /* "src/lxml/xslt.pxi":762
* else:
* doc = None
* if doc is None: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_t_2 != 0);
if (__pyx_t_1) {
- /* "src/lxml/xslt.pxi":762
+ /* "src/lxml/xslt.pxi":763
* doc = None
* if doc is None:
* doc = self._doc # <<<<<<<<<<<<<<
__Pyx_DECREF_SET(__pyx_v_doc, ((struct LxmlDocument *)__pyx_t_3));
__pyx_t_3 = 0;
- /* "src/lxml/xslt.pxi":763
+ /* "src/lxml/xslt.pxi":764
* if doc is None:
* doc = self._doc
* if doc is None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "src/lxml/xslt.pxi":764
+ /* "src/lxml/xslt.pxi":765
* doc = self._doc
* if doc is None:
* s[0] = NULL # <<<<<<<<<<<<<<
*/
(__pyx_v_s[0]) = NULL;
- /* "src/lxml/xslt.pxi":765
+ /* "src/lxml/xslt.pxi":766
* if doc is None:
* s[0] = NULL
* return # <<<<<<<<<<<<<<
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":763
+ /* "src/lxml/xslt.pxi":764
* if doc is None:
* doc = self._doc
* if doc is None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":761
+ /* "src/lxml/xslt.pxi":762
* else:
* doc = None
* if doc is None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":766
+ /* "src/lxml/xslt.pxi":767
* s[0] = NULL
* return
* with nogil: # <<<<<<<<<<<<<<
#endif
/*try:*/ {
- /* "src/lxml/xslt.pxi":767
+ /* "src/lxml/xslt.pxi":768
* return
* with nogil:
* r = xslt.xsltSaveResultToString(s, l, doc._c_doc, # <<<<<<<<<<<<<<
__pyx_v_r = xsltSaveResultToString(__pyx_v_s, __pyx_v_l, __pyx_v_doc->_c_doc, __pyx_v_self->_xslt->_c_style);
}
- /* "src/lxml/xslt.pxi":766
+ /* "src/lxml/xslt.pxi":767
* s[0] = NULL
* return
* with nogil: # <<<<<<<<<<<<<<
}
}
- /* "src/lxml/xslt.pxi":769
+ /* "src/lxml/xslt.pxi":770
* r = xslt.xsltSaveResultToString(s, l, doc._c_doc,
* self._xslt._c_style)
* if r == -1: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_r == -1L) != 0);
if (unlikely(__pyx_t_2)) {
- /* "src/lxml/xslt.pxi":770
+ /* "src/lxml/xslt.pxi":771
* self._xslt._c_style)
* if r == -1:
* raise MemoryError() # <<<<<<<<<<<<<<
*
* def __str__(self):
*/
- PyErr_NoMemory(); __PYX_ERR(4, 770, __pyx_L1_error)
+ PyErr_NoMemory(); __PYX_ERR(4, 771, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":769
+ /* "src/lxml/xslt.pxi":770
* r = xslt.xsltSaveResultToString(s, l, doc._c_doc,
* self._xslt._c_style)
* if r == -1: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":754
+ /* "src/lxml/xslt.pxi":755
* python.PyErr_SetFromErrno(IOError) # raises IOError
*
* cdef _saveToStringAndSize(self, xmlChar** s, int* l): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/xslt.pxi":772
+/* "src/lxml/xslt.pxi":773
* raise MemoryError()
*
* def __str__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__str__", 0);
- /* "src/lxml/xslt.pxi":773
+ /* "src/lxml/xslt.pxi":774
*
* def __str__(self):
* cdef xmlChar* s = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_s = NULL;
- /* "src/lxml/xslt.pxi":774
+ /* "src/lxml/xslt.pxi":775
* def __str__(self):
* cdef xmlChar* s = NULL
* cdef int l = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_l = 0;
- /* "src/lxml/xslt.pxi":775
+ /* "src/lxml/xslt.pxi":776
* cdef xmlChar* s = NULL
* cdef int l = 0
* if not python.IS_PYTHON2: # <<<<<<<<<<<<<<
__pyx_t_1 = ((!(IS_PYTHON2 != 0)) != 0);
if (__pyx_t_1) {
- /* "src/lxml/xslt.pxi":776
+ /* "src/lxml/xslt.pxi":777
* cdef int l = 0
* if not python.IS_PYTHON2:
* return self.__unicode__() # <<<<<<<<<<<<<<
* if s is NULL:
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_unicode_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 776, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_unicode_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 777, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
}
__pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
- if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 776, __pyx_L1_error)
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 777, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":775
+ /* "src/lxml/xslt.pxi":776
* cdef xmlChar* s = NULL
* cdef int l = 0
* if not python.IS_PYTHON2: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":777
+ /* "src/lxml/xslt.pxi":778
* if not python.IS_PYTHON2:
* return self.__unicode__()
* self._saveToStringAndSize(&s, &l) # <<<<<<<<<<<<<<
* if s is NULL:
* return ''
*/
- __pyx_t_2 = __pyx_f_4lxml_5etree_15_XSLTResultTree__saveToStringAndSize(__pyx_v_self, (&__pyx_v_s), (&__pyx_v_l)); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 777, __pyx_L1_error)
+ __pyx_t_2 = __pyx_f_4lxml_5etree_15_XSLTResultTree__saveToStringAndSize(__pyx_v_self, (&__pyx_v_s), (&__pyx_v_l)); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 778, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "src/lxml/xslt.pxi":778
+ /* "src/lxml/xslt.pxi":779
* return self.__unicode__()
* self._saveToStringAndSize(&s, &l)
* if s is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_s == NULL) != 0);
if (__pyx_t_1) {
- /* "src/lxml/xslt.pxi":779
+ /* "src/lxml/xslt.pxi":780
* self._saveToStringAndSize(&s, &l)
* if s is NULL:
* return '' # <<<<<<<<<<<<<<
__pyx_r = __pyx_kp_s__12;
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":778
+ /* "src/lxml/xslt.pxi":779
* return self.__unicode__()
* self._saveToStringAndSize(&s, &l)
* if s is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":781
+ /* "src/lxml/xslt.pxi":782
* return ''
* # we must not use 'funicode()' here as this is not always UTF-8
* try: # <<<<<<<<<<<<<<
*/
/*try:*/ {
- /* "src/lxml/xslt.pxi":782
+ /* "src/lxml/xslt.pxi":783
* # we must not use 'funicode()' here as this is not always UTF-8
* try:
* result = <bytes>s[:l] # <<<<<<<<<<<<<<
* finally:
* tree.xmlFree(s)
*/
- __pyx_t_2 = __Pyx_PyBytes_FromStringAndSize(((const char*)__pyx_v_s) + 0, __pyx_v_l - 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 782, __pyx_L6_error)
+ __pyx_t_2 = __Pyx_PyBytes_FromStringAndSize(((const char*)__pyx_v_s) + 0, __pyx_v_l - 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 783, __pyx_L6_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = __pyx_t_2;
__Pyx_INCREF(__pyx_t_3);
__pyx_t_3 = 0;
}
- /* "src/lxml/xslt.pxi":784
+ /* "src/lxml/xslt.pxi":785
* result = <bytes>s[:l]
* finally:
* tree.xmlFree(s) # <<<<<<<<<<<<<<
__pyx_L7:;
}
- /* "src/lxml/xslt.pxi":785
+ /* "src/lxml/xslt.pxi":786
* finally:
* tree.xmlFree(s)
* return result # <<<<<<<<<<<<<<
__pyx_r = __pyx_v_result;
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":772
+ /* "src/lxml/xslt.pxi":773
* raise MemoryError()
*
* def __str__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/xslt.pxi":787
+/* "src/lxml/xslt.pxi":788
* return result
*
* def __unicode__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__unicode__", 0);
- /* "src/lxml/xslt.pxi":789
+ /* "src/lxml/xslt.pxi":790
* def __unicode__(self):
* cdef xmlChar* encoding
* cdef xmlChar* s = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_s = NULL;
- /* "src/lxml/xslt.pxi":790
+ /* "src/lxml/xslt.pxi":791
* cdef xmlChar* encoding
* cdef xmlChar* s = NULL
* cdef int l = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_l = 0;
- /* "src/lxml/xslt.pxi":791
+ /* "src/lxml/xslt.pxi":792
* cdef xmlChar* s = NULL
* cdef int l = 0
* self._saveToStringAndSize(&s, &l) # <<<<<<<<<<<<<<
* if s is NULL:
* return u''
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_15_XSLTResultTree__saveToStringAndSize(__pyx_v_self, (&__pyx_v_s), (&__pyx_v_l)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 791, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_15_XSLTResultTree__saveToStringAndSize(__pyx_v_self, (&__pyx_v_s), (&__pyx_v_l)); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 792, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "src/lxml/xslt.pxi":792
+ /* "src/lxml/xslt.pxi":793
* cdef int l = 0
* self._saveToStringAndSize(&s, &l)
* if s is NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_s == NULL) != 0);
if (__pyx_t_2) {
- /* "src/lxml/xslt.pxi":793
+ /* "src/lxml/xslt.pxi":794
* self._saveToStringAndSize(&s, &l)
* if s is NULL:
* return u'' # <<<<<<<<<<<<<<
__pyx_r = __pyx_kp_u__12;
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":792
+ /* "src/lxml/xslt.pxi":793
* cdef int l = 0
* self._saveToStringAndSize(&s, &l)
* if s is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":794
+ /* "src/lxml/xslt.pxi":795
* if s is NULL:
* return u''
* encoding = self._xslt._c_style.encoding # <<<<<<<<<<<<<<
__pyx_t_3 = __pyx_v_self->_xslt->_c_style->encoding;
__pyx_v_encoding = __pyx_t_3;
- /* "src/lxml/xslt.pxi":795
+ /* "src/lxml/xslt.pxi":796
* return u''
* encoding = self._xslt._c_style.encoding
* try: # <<<<<<<<<<<<<<
*/
/*try:*/ {
- /* "src/lxml/xslt.pxi":796
+ /* "src/lxml/xslt.pxi":797
* encoding = self._xslt._c_style.encoding
* try:
* if encoding is NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_encoding == NULL) != 0);
if (__pyx_t_2) {
- /* "src/lxml/xslt.pxi":797
+ /* "src/lxml/xslt.pxi":798
* try:
* if encoding is NULL:
* result = s[:l].decode('UTF-8') # <<<<<<<<<<<<<<
* else:
* result = s[:l].decode(encoding)
*/
- __pyx_t_1 = __Pyx_decode_c_string(((char const *)__pyx_v_s), 0, __pyx_v_l, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 797, __pyx_L5_error)
+ __pyx_t_1 = __Pyx_decode_c_string(((char const *)__pyx_v_s), 0, __pyx_v_l, NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 798, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_v_result = __pyx_t_1;
__pyx_t_1 = 0;
- /* "src/lxml/xslt.pxi":796
+ /* "src/lxml/xslt.pxi":797
* encoding = self._xslt._c_style.encoding
* try:
* if encoding is NULL: # <<<<<<<<<<<<<<
goto __pyx_L7;
}
- /* "src/lxml/xslt.pxi":799
+ /* "src/lxml/xslt.pxi":800
* result = s[:l].decode('UTF-8')
* else:
* result = s[:l].decode(encoding) # <<<<<<<<<<<<<<
* tree.xmlFree(s)
*/
/*else*/ {
- __pyx_t_1 = __Pyx_decode_c_string(((char const *)__pyx_v_s), 0, __pyx_v_l, ((char const *)__pyx_v_encoding), NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 799, __pyx_L5_error)
+ __pyx_t_1 = __Pyx_decode_c_string(((char const *)__pyx_v_s), 0, __pyx_v_l, ((char const *)__pyx_v_encoding), NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 800, __pyx_L5_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_v_result = __pyx_t_1;
__pyx_t_1 = 0;
__pyx_L7:;
}
- /* "src/lxml/xslt.pxi":801
+ /* "src/lxml/xslt.pxi":802
* result = s[:l].decode(encoding)
* finally:
* tree.xmlFree(s) # <<<<<<<<<<<<<<
__pyx_L6:;
}
- /* "src/lxml/xslt.pxi":802
+ /* "src/lxml/xslt.pxi":803
* finally:
* tree.xmlFree(s)
* return _stripEncodingDeclaration(result) # <<<<<<<<<<<<<<
* def __getbuffer__(self, Py_buffer* buffer, int flags):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __pyx_f_4lxml_5etree__stripEncodingDeclaration(__pyx_v_result); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 802, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__stripEncodingDeclaration(__pyx_v_result); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 803, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":787
+ /* "src/lxml/xslt.pxi":788
* return result
*
* def __unicode__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/xslt.pxi":804
+/* "src/lxml/xslt.pxi":805
* return _stripEncodingDeclaration(result)
*
* def __getbuffer__(self, Py_buffer* buffer, int flags): # <<<<<<<<<<<<<<
__pyx_v_buffer->obj = Py_None; __Pyx_INCREF(Py_None);
__Pyx_GIVEREF(__pyx_v_buffer->obj);
- /* "src/lxml/xslt.pxi":805
+ /* "src/lxml/xslt.pxi":806
*
* def __getbuffer__(self, Py_buffer* buffer, int flags):
* cdef int l = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_l = 0;
- /* "src/lxml/xslt.pxi":806
+ /* "src/lxml/xslt.pxi":807
* def __getbuffer__(self, Py_buffer* buffer, int flags):
* cdef int l = 0
* if buffer is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_buffer == NULL) != 0);
if (__pyx_t_1) {
- /* "src/lxml/xslt.pxi":807
+ /* "src/lxml/xslt.pxi":808
* cdef int l = 0
* if buffer is NULL:
* return # <<<<<<<<<<<<<<
__pyx_r = 0;
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":806
+ /* "src/lxml/xslt.pxi":807
* def __getbuffer__(self, Py_buffer* buffer, int flags):
* cdef int l = 0
* if buffer is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":808
+ /* "src/lxml/xslt.pxi":809
* if buffer is NULL:
* return
* if self._buffer is NULL or flags & python.PyBUF_WRITABLE: # <<<<<<<<<<<<<<
__pyx_L5_bool_binop_done:;
if (__pyx_t_1) {
- /* "src/lxml/xslt.pxi":809
+ /* "src/lxml/xslt.pxi":810
* return
* if self._buffer is NULL or flags & python.PyBUF_WRITABLE:
* self._saveToStringAndSize(<xmlChar**>&buffer.buf, &l) # <<<<<<<<<<<<<<
* buffer.len = l
* if self._buffer is NULL and not flags & python.PyBUF_WRITABLE:
*/
- __pyx_t_3 = __pyx_f_4lxml_5etree_15_XSLTResultTree__saveToStringAndSize(__pyx_v_self, ((xmlChar **)(&__pyx_v_buffer->buf)), (&__pyx_v_l)); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 809, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree_15_XSLTResultTree__saveToStringAndSize(__pyx_v_self, ((xmlChar **)(&__pyx_v_buffer->buf)), (&__pyx_v_l)); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 810, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
- /* "src/lxml/xslt.pxi":810
+ /* "src/lxml/xslt.pxi":811
* if self._buffer is NULL or flags & python.PyBUF_WRITABLE:
* self._saveToStringAndSize(<xmlChar**>&buffer.buf, &l)
* buffer.len = l # <<<<<<<<<<<<<<
*/
__pyx_v_buffer->len = __pyx_v_l;
- /* "src/lxml/xslt.pxi":811
+ /* "src/lxml/xslt.pxi":812
* self._saveToStringAndSize(<xmlChar**>&buffer.buf, &l)
* buffer.len = l
* if self._buffer is NULL and not flags & python.PyBUF_WRITABLE: # <<<<<<<<<<<<<<
__pyx_L8_bool_binop_done:;
if (__pyx_t_1) {
- /* "src/lxml/xslt.pxi":812
+ /* "src/lxml/xslt.pxi":813
* buffer.len = l
* if self._buffer is NULL and not flags & python.PyBUF_WRITABLE:
* self._buffer = <xmlChar*>buffer.buf # <<<<<<<<<<<<<<
*/
__pyx_v_self->_buffer = ((xmlChar *)__pyx_v_buffer->buf);
- /* "src/lxml/xslt.pxi":813
+ /* "src/lxml/xslt.pxi":814
* if self._buffer is NULL and not flags & python.PyBUF_WRITABLE:
* self._buffer = <xmlChar*>buffer.buf
* self._buffer_len = l # <<<<<<<<<<<<<<
*/
__pyx_v_self->_buffer_len = __pyx_v_l;
- /* "src/lxml/xslt.pxi":814
+ /* "src/lxml/xslt.pxi":815
* self._buffer = <xmlChar*>buffer.buf
* self._buffer_len = l
* self._buffer_refcnt = 1 # <<<<<<<<<<<<<<
*/
__pyx_v_self->_buffer_refcnt = 1;
- /* "src/lxml/xslt.pxi":811
+ /* "src/lxml/xslt.pxi":812
* self._saveToStringAndSize(<xmlChar**>&buffer.buf, &l)
* buffer.len = l
* if self._buffer is NULL and not flags & python.PyBUF_WRITABLE: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":808
+ /* "src/lxml/xslt.pxi":809
* if buffer is NULL:
* return
* if self._buffer is NULL or flags & python.PyBUF_WRITABLE: # <<<<<<<<<<<<<<
goto __pyx_L4;
}
- /* "src/lxml/xslt.pxi":816
+ /* "src/lxml/xslt.pxi":817
* self._buffer_refcnt = 1
* else:
* buffer.buf = self._buffer # <<<<<<<<<<<<<<
__pyx_t_4 = __pyx_v_self->_buffer;
__pyx_v_buffer->buf = __pyx_t_4;
- /* "src/lxml/xslt.pxi":817
+ /* "src/lxml/xslt.pxi":818
* else:
* buffer.buf = self._buffer
* buffer.len = self._buffer_len # <<<<<<<<<<<<<<
__pyx_t_5 = __pyx_v_self->_buffer_len;
__pyx_v_buffer->len = __pyx_t_5;
- /* "src/lxml/xslt.pxi":818
+ /* "src/lxml/xslt.pxi":819
* buffer.buf = self._buffer
* buffer.len = self._buffer_len
* self._buffer_refcnt += 1 # <<<<<<<<<<<<<<
}
__pyx_L4:;
- /* "src/lxml/xslt.pxi":819
+ /* "src/lxml/xslt.pxi":820
* buffer.len = self._buffer_len
* self._buffer_refcnt += 1
* if flags & python.PyBUF_WRITABLE: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_flags & PyBUF_WRITABLE) != 0);
if (__pyx_t_1) {
- /* "src/lxml/xslt.pxi":820
+ /* "src/lxml/xslt.pxi":821
* self._buffer_refcnt += 1
* if flags & python.PyBUF_WRITABLE:
* buffer.readonly = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_buffer->readonly = 0;
- /* "src/lxml/xslt.pxi":819
+ /* "src/lxml/xslt.pxi":820
* buffer.len = self._buffer_len
* self._buffer_refcnt += 1
* if flags & python.PyBUF_WRITABLE: # <<<<<<<<<<<<<<
goto __pyx_L10;
}
- /* "src/lxml/xslt.pxi":822
+ /* "src/lxml/xslt.pxi":823
* buffer.readonly = 0
* else:
* buffer.readonly = 1 # <<<<<<<<<<<<<<
}
__pyx_L10:;
- /* "src/lxml/xslt.pxi":823
+ /* "src/lxml/xslt.pxi":824
* else:
* buffer.readonly = 1
* if flags & python.PyBUF_FORMAT: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_flags & PyBUF_FORMAT) != 0);
if (__pyx_t_1) {
- /* "src/lxml/xslt.pxi":824
+ /* "src/lxml/xslt.pxi":825
* buffer.readonly = 1
* if flags & python.PyBUF_FORMAT:
* buffer.format = "B" # <<<<<<<<<<<<<<
*/
__pyx_v_buffer->format = ((char *)"B");
- /* "src/lxml/xslt.pxi":823
+ /* "src/lxml/xslt.pxi":824
* else:
* buffer.readonly = 1
* if flags & python.PyBUF_FORMAT: # <<<<<<<<<<<<<<
goto __pyx_L11;
}
- /* "src/lxml/xslt.pxi":826
+ /* "src/lxml/xslt.pxi":827
* buffer.format = "B"
* else:
* buffer.format = NULL # <<<<<<<<<<<<<<
}
__pyx_L11:;
- /* "src/lxml/xslt.pxi":827
+ /* "src/lxml/xslt.pxi":828
* else:
* buffer.format = NULL
* buffer.ndim = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_buffer->ndim = 0;
- /* "src/lxml/xslt.pxi":828
+ /* "src/lxml/xslt.pxi":829
* buffer.format = NULL
* buffer.ndim = 0
* buffer.shape = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_buffer->shape = NULL;
- /* "src/lxml/xslt.pxi":829
+ /* "src/lxml/xslt.pxi":830
* buffer.ndim = 0
* buffer.shape = NULL
* buffer.strides = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_buffer->strides = NULL;
- /* "src/lxml/xslt.pxi":830
+ /* "src/lxml/xslt.pxi":831
* buffer.shape = NULL
* buffer.strides = NULL
* buffer.suboffsets = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_buffer->suboffsets = NULL;
- /* "src/lxml/xslt.pxi":831
+ /* "src/lxml/xslt.pxi":832
* buffer.strides = NULL
* buffer.suboffsets = NULL
* buffer.itemsize = 1 # <<<<<<<<<<<<<<
*/
__pyx_v_buffer->itemsize = 1;
- /* "src/lxml/xslt.pxi":832
+ /* "src/lxml/xslt.pxi":833
* buffer.suboffsets = NULL
* buffer.itemsize = 1
* buffer.internal = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_buffer->internal = NULL;
- /* "src/lxml/xslt.pxi":833
+ /* "src/lxml/xslt.pxi":834
* buffer.itemsize = 1
* buffer.internal = NULL
* if buffer.obj is not self: # set by Cython? # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "src/lxml/xslt.pxi":834
+ /* "src/lxml/xslt.pxi":835
* buffer.internal = NULL
* if buffer.obj is not self: # set by Cython?
* buffer.obj = self # <<<<<<<<<<<<<<
__Pyx_DECREF(__pyx_v_buffer->obj);
__pyx_v_buffer->obj = ((PyObject *)__pyx_v_self);
- /* "src/lxml/xslt.pxi":833
+ /* "src/lxml/xslt.pxi":834
* buffer.itemsize = 1
* buffer.internal = NULL
* if buffer.obj is not self: # set by Cython? # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":804
+ /* "src/lxml/xslt.pxi":805
* return _stripEncodingDeclaration(result)
*
* def __getbuffer__(self, Py_buffer* buffer, int flags): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/xslt.pxi":836
+/* "src/lxml/xslt.pxi":837
* buffer.obj = self
*
* def __releasebuffer__(self, Py_buffer* buffer): # <<<<<<<<<<<<<<
int __pyx_t_1;
__Pyx_RefNannySetupContext("__releasebuffer__", 0);
- /* "src/lxml/xslt.pxi":837
+ /* "src/lxml/xslt.pxi":838
*
* def __releasebuffer__(self, Py_buffer* buffer):
* if buffer is NULL: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_buffer == NULL) != 0);
if (__pyx_t_1) {
- /* "src/lxml/xslt.pxi":838
+ /* "src/lxml/xslt.pxi":839
* def __releasebuffer__(self, Py_buffer* buffer):
* if buffer is NULL:
* return # <<<<<<<<<<<<<<
*/
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":837
+ /* "src/lxml/xslt.pxi":838
*
* def __releasebuffer__(self, Py_buffer* buffer):
* if buffer is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":839
+ /* "src/lxml/xslt.pxi":840
* if buffer is NULL:
* return
* if <xmlChar*>buffer.buf is self._buffer: # <<<<<<<<<<<<<<
__pyx_t_1 = ((((xmlChar *)__pyx_v_buffer->buf) == __pyx_v_self->_buffer) != 0);
if (__pyx_t_1) {
- /* "src/lxml/xslt.pxi":840
+ /* "src/lxml/xslt.pxi":841
* return
* if <xmlChar*>buffer.buf is self._buffer:
* self._buffer_refcnt -= 1 # <<<<<<<<<<<<<<
*/
__pyx_v_self->_buffer_refcnt = (__pyx_v_self->_buffer_refcnt - 1);
- /* "src/lxml/xslt.pxi":841
+ /* "src/lxml/xslt.pxi":842
* if <xmlChar*>buffer.buf is self._buffer:
* self._buffer_refcnt -= 1
* if self._buffer_refcnt == 0: # <<<<<<<<<<<<<<
__pyx_t_1 = ((__pyx_v_self->_buffer_refcnt == 0) != 0);
if (__pyx_t_1) {
- /* "src/lxml/xslt.pxi":842
+ /* "src/lxml/xslt.pxi":843
* self._buffer_refcnt -= 1
* if self._buffer_refcnt == 0:
* tree.xmlFree(<char*>self._buffer) # <<<<<<<<<<<<<<
*/
xmlFree(((char *)__pyx_v_self->_buffer));
- /* "src/lxml/xslt.pxi":843
+ /* "src/lxml/xslt.pxi":844
* if self._buffer_refcnt == 0:
* tree.xmlFree(<char*>self._buffer)
* self._buffer = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_self->_buffer = NULL;
- /* "src/lxml/xslt.pxi":841
+ /* "src/lxml/xslt.pxi":842
* if <xmlChar*>buffer.buf is self._buffer:
* self._buffer_refcnt -= 1
* if self._buffer_refcnt == 0: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":839
+ /* "src/lxml/xslt.pxi":840
* if buffer is NULL:
* return
* if <xmlChar*>buffer.buf is self._buffer: # <<<<<<<<<<<<<<
goto __pyx_L4;
}
- /* "src/lxml/xslt.pxi":845
+ /* "src/lxml/xslt.pxi":846
* self._buffer = NULL
* else:
* tree.xmlFree(<char*>buffer.buf) # <<<<<<<<<<<<<<
}
__pyx_L4:;
- /* "src/lxml/xslt.pxi":846
+ /* "src/lxml/xslt.pxi":847
* else:
* tree.xmlFree(<char*>buffer.buf)
* buffer.buf = NULL # <<<<<<<<<<<<<<
*/
__pyx_v_buffer->buf = NULL;
- /* "src/lxml/xslt.pxi":836
+ /* "src/lxml/xslt.pxi":837
* buffer.obj = self
*
* def __releasebuffer__(self, Py_buffer* buffer): # <<<<<<<<<<<<<<
__Pyx_RefNannyFinishContext();
}
-/* "src/lxml/xslt.pxi":851
+/* "src/lxml/xslt.pxi":852
* """Return an ElementTree with profiling data for the stylesheet run.
* """
* def __get__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "src/lxml/xslt.pxi":853
+ /* "src/lxml/xslt.pxi":854
* def __get__(self):
* cdef object root
* if self._profile is None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "src/lxml/xslt.pxi":854
+ /* "src/lxml/xslt.pxi":855
* cdef object root
* if self._profile is None:
* return None # <<<<<<<<<<<<<<
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":853
+ /* "src/lxml/xslt.pxi":854
* def __get__(self):
* cdef object root
* if self._profile is None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":855
+ /* "src/lxml/xslt.pxi":856
* if self._profile is None:
* return None
* root = self._profile.getroot() # <<<<<<<<<<<<<<
* if root is None:
* return None
*/
- __pyx_t_3 = __pyx_f_4lxml_5etree_9_Document_getroot(__pyx_v_self->_profile); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 855, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree_9_Document_getroot(__pyx_v_self->_profile); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 856, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_v_root = __pyx_t_3;
__pyx_t_3 = 0;
- /* "src/lxml/xslt.pxi":856
+ /* "src/lxml/xslt.pxi":857
* return None
* root = self._profile.getroot()
* if root is None: # <<<<<<<<<<<<<<
__pyx_t_1 = (__pyx_t_2 != 0);
if (__pyx_t_1) {
- /* "src/lxml/xslt.pxi":857
+ /* "src/lxml/xslt.pxi":858
* root = self._profile.getroot()
* if root is None:
* return None # <<<<<<<<<<<<<<
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":856
+ /* "src/lxml/xslt.pxi":857
* return None
* root = self._profile.getroot()
* if root is None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":858
+ /* "src/lxml/xslt.pxi":859
* if root is None:
* return None
* return ElementTree(root) # <<<<<<<<<<<<<<
* def __del__(self):
*/
__Pyx_XDECREF(__pyx_r);
- __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_ElementTree); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 858, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_ElementTree); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 859, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_5 = NULL;
if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
}
__pyx_t_3 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_root) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_root);
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
- if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 858, __pyx_L1_error)
+ if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 859, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":851
+ /* "src/lxml/xslt.pxi":852
* """Return an ElementTree with profiling data for the stylesheet run.
* """
* def __get__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/xslt.pxi":860
+/* "src/lxml/xslt.pxi":861
* return ElementTree(root)
*
* def __del__(self): # <<<<<<<<<<<<<<
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__del__", 0);
- /* "src/lxml/xslt.pxi":861
+ /* "src/lxml/xslt.pxi":862
*
* def __del__(self):
* self._profile = None # <<<<<<<<<<<<<<
__Pyx_DECREF(((PyObject *)__pyx_v_self->_profile));
__pyx_v_self->_profile = ((struct LxmlDocument *)Py_None);
- /* "src/lxml/xslt.pxi":860
+ /* "src/lxml/xslt.pxi":861
* return ElementTree(root)
*
* def __del__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/xslt.pxi":863
+/* "src/lxml/xslt.pxi":864
* self._profile = None
*
* cdef _xsltResultTreeFactory(_Document doc, XSLT xslt, _Document profile): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_xsltResultTreeFactory", 0);
- /* "src/lxml/xslt.pxi":865
+ /* "src/lxml/xslt.pxi":866
* cdef _xsltResultTreeFactory(_Document doc, XSLT xslt, _Document profile):
* cdef _XSLTResultTree result
* result = <_XSLTResultTree>_newElementTree(doc, None, _XSLTResultTree) # <<<<<<<<<<<<<<
* result._xslt = xslt
* result._profile = profile
*/
- __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__newElementTree(__pyx_v_doc, ((struct LxmlElement *)Py_None), ((PyObject *)__pyx_ptype_4lxml_5etree__XSLTResultTree))); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 865, __pyx_L1_error)
+ __pyx_t_1 = ((PyObject *)__pyx_f_4lxml_5etree__newElementTree(__pyx_v_doc, ((struct LxmlElement *)Py_None), ((PyObject *)__pyx_ptype_4lxml_5etree__XSLTResultTree))); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 866, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_2 = __pyx_t_1;
__Pyx_INCREF(__pyx_t_2);
__pyx_v_result = ((struct __pyx_obj_4lxml_5etree__XSLTResultTree *)__pyx_t_2);
__pyx_t_2 = 0;
- /* "src/lxml/xslt.pxi":866
+ /* "src/lxml/xslt.pxi":867
* cdef _XSLTResultTree result
* result = <_XSLTResultTree>_newElementTree(doc, None, _XSLTResultTree)
* result._xslt = xslt # <<<<<<<<<<<<<<
__Pyx_DECREF(((PyObject *)__pyx_v_result->_xslt));
__pyx_v_result->_xslt = __pyx_v_xslt;
- /* "src/lxml/xslt.pxi":867
+ /* "src/lxml/xslt.pxi":868
* result = <_XSLTResultTree>_newElementTree(doc, None, _XSLTResultTree)
* result._xslt = xslt
* result._profile = profile # <<<<<<<<<<<<<<
__Pyx_DECREF(((PyObject *)__pyx_v_result->_profile));
__pyx_v_result->_profile = __pyx_v_profile;
- /* "src/lxml/xslt.pxi":868
+ /* "src/lxml/xslt.pxi":869
* result._xslt = xslt
* result._profile = profile
* return result # <<<<<<<<<<<<<<
__pyx_r = ((PyObject *)__pyx_v_result);
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":863
+ /* "src/lxml/xslt.pxi":864
* self._profile = None
*
* cdef _xsltResultTreeFactory(_Document doc, XSLT xslt, _Document profile): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/xslt.pxi":886
+/* "src/lxml/xslt.pxi":887
* cdef XPath __findStylesheetByID = None
*
* cdef _findStylesheetByID(_Document doc, id): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_findStylesheetByID", 0);
- /* "src/lxml/xslt.pxi":888
+ /* "src/lxml/xslt.pxi":889
* cdef _findStylesheetByID(_Document doc, id):
* global __findStylesheetByID
* if __findStylesheetByID is None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "src/lxml/xslt.pxi":891
+ /* "src/lxml/xslt.pxi":892
* __findStylesheetByID = XPath(
* u"//xsl:stylesheet[@xml:id = $id]",
* namespaces={u"xsl" : u"http://www.w3.org/1999/XSL/Transform"}) # <<<<<<<<<<<<<<
* return __findStylesheetByID(doc, id=id)
*
*/
- __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 891, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 892, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 891, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 892, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
- if (PyDict_SetItem(__pyx_t_4, __pyx_n_u_xsl, __pyx_kp_u_http_www_w3_org_1999_XSL_Transfo) < 0) __PYX_ERR(4, 891, __pyx_L1_error)
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_namespaces, __pyx_t_4) < 0) __PYX_ERR(4, 891, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_4, __pyx_n_u_xsl, __pyx_kp_u_http_www_w3_org_1999_XSL_Transfo) < 0) __PYX_ERR(4, 892, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_namespaces, __pyx_t_4) < 0) __PYX_ERR(4, 892, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "src/lxml/xslt.pxi":889
+ /* "src/lxml/xslt.pxi":890
* global __findStylesheetByID
* if __findStylesheetByID is None:
* __findStylesheetByID = XPath( # <<<<<<<<<<<<<<
* u"//xsl:stylesheet[@xml:id = $id]",
* namespaces={u"xsl" : u"http://www.w3.org/1999/XSL/Transform"})
*/
- __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_XPath), __pyx_tuple__102, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 889, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_XPath), __pyx_tuple__102, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 890, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_XGOTREF(((PyObject *)__pyx_v_4lxml_5etree___findStylesheetByID));
__Pyx_GIVEREF(__pyx_t_4);
__pyx_t_4 = 0;
- /* "src/lxml/xslt.pxi":888
+ /* "src/lxml/xslt.pxi":889
* cdef _findStylesheetByID(_Document doc, id):
* global __findStylesheetByID
* if __findStylesheetByID is None: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":892
+ /* "src/lxml/xslt.pxi":893
* u"//xsl:stylesheet[@xml:id = $id]",
* namespaces={u"xsl" : u"http://www.w3.org/1999/XSL/Transform"})
* return __findStylesheetByID(doc, id=id) # <<<<<<<<<<<<<<
* cdef class _XSLTProcessingInstruction(PIBase):
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 892, __pyx_L1_error)
+ __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 893, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_INCREF(((PyObject *)__pyx_v_doc));
__Pyx_GIVEREF(((PyObject *)__pyx_v_doc));
PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_v_doc));
- __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 892, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 893, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_id, __pyx_v_id) < 0) __PYX_ERR(4, 892, __pyx_L1_error)
- __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_v_4lxml_5etree___findStylesheetByID), __pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 892, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_id, __pyx_v_id) < 0) __PYX_ERR(4, 893, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_v_4lxml_5etree___findStylesheetByID), __pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 893, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_5 = 0;
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":886
+ /* "src/lxml/xslt.pxi":887
* cdef XPath __findStylesheetByID = None
*
* cdef _findStylesheetByID(_Document doc, id): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/xslt.pxi":895
+/* "src/lxml/xslt.pxi":896
*
* cdef class _XSLTProcessingInstruction(PIBase):
* def parseXSL(self, parser=None): # <<<<<<<<<<<<<<
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "parseXSL") < 0)) __PYX_ERR(4, 895, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "parseXSL") < 0)) __PYX_ERR(4, 896, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("parseXSL", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(4, 895, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("parseXSL", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(4, 896, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._XSLTProcessingInstruction.parseXSL", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("parseXSL", 0);
- /* "src/lxml/xslt.pxi":911
+ /* "src/lxml/xslt.pxi":912
* cdef const_xmlChar* c_href
* cdef xmlAttr* c_attr
* _assertValidNode(self) # <<<<<<<<<<<<<<
* if self._c_node.content is NULL:
* raise ValueError, u"PI lacks content"
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_v_self)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(4, 911, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree__assertValidNode(((struct LxmlElement *)__pyx_v_self)); if (unlikely(__pyx_t_1 == ((int)-1))) __PYX_ERR(4, 912, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":912
+ /* "src/lxml/xslt.pxi":913
* cdef xmlAttr* c_attr
* _assertValidNode(self)
* if self._c_node.content is NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node->content == NULL) != 0);
if (unlikely(__pyx_t_2)) {
- /* "src/lxml/xslt.pxi":913
+ /* "src/lxml/xslt.pxi":914
* _assertValidNode(self)
* if self._c_node.content is NULL:
* raise ValueError, u"PI lacks content" # <<<<<<<<<<<<<<
* if len(hrefs) != 1:
*/
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_PI_lacks_content, 0, 0);
- __PYX_ERR(4, 913, __pyx_L1_error)
+ __PYX_ERR(4, 914, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":912
+ /* "src/lxml/xslt.pxi":913
* cdef xmlAttr* c_attr
* _assertValidNode(self)
* if self._c_node.content is NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":914
+ /* "src/lxml/xslt.pxi":915
* if self._c_node.content is NULL:
* raise ValueError, u"PI lacks content"
* hrefs = _FIND_PI_HREF(u' ' + (<unsigned char*>self._c_node.content).decode('UTF-8')) # <<<<<<<<<<<<<<
* raise ValueError, u"malformed PI attributes"
*/
__pyx_t_4 = ((unsigned char *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node->content);
- __pyx_t_5 = __Pyx_decode_c_string(((char const *)__pyx_t_4), 0, strlen(((char const *)__pyx_t_4)), NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 914, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_decode_c_string(((char const *)__pyx_t_4), 0, strlen(((char const *)__pyx_t_4)), NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 915, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
- __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u__11, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 914, __pyx_L1_error)
+ __pyx_t_6 = __Pyx_PyUnicode_Concat(__pyx_kp_u__11, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 915, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_INCREF(__pyx_v_4lxml_5etree__FIND_PI_HREF);
__pyx_t_3 = (__pyx_t_7) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_7, __pyx_t_6) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_6);
__Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
- if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 914, __pyx_L1_error)
+ if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 915, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_v_hrefs = __pyx_t_3;
__pyx_t_3 = 0;
- /* "src/lxml/xslt.pxi":915
+ /* "src/lxml/xslt.pxi":916
* raise ValueError, u"PI lacks content"
* hrefs = _FIND_PI_HREF(u' ' + (<unsigned char*>self._c_node.content).decode('UTF-8'))
* if len(hrefs) != 1: # <<<<<<<<<<<<<<
* raise ValueError, u"malformed PI attributes"
* hrefs = hrefs[0]
*/
- __pyx_t_8 = PyObject_Length(__pyx_v_hrefs); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(4, 915, __pyx_L1_error)
+ __pyx_t_8 = PyObject_Length(__pyx_v_hrefs); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(4, 916, __pyx_L1_error)
__pyx_t_2 = ((__pyx_t_8 != 1) != 0);
if (unlikely(__pyx_t_2)) {
- /* "src/lxml/xslt.pxi":916
+ /* "src/lxml/xslt.pxi":917
* hrefs = _FIND_PI_HREF(u' ' + (<unsigned char*>self._c_node.content).decode('UTF-8'))
* if len(hrefs) != 1:
* raise ValueError, u"malformed PI attributes" # <<<<<<<<<<<<<<
* href_utf = utf8(hrefs[0] or hrefs[1])
*/
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_malformed_PI_attributes, 0, 0);
- __PYX_ERR(4, 916, __pyx_L1_error)
+ __PYX_ERR(4, 917, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":915
+ /* "src/lxml/xslt.pxi":916
* raise ValueError, u"PI lacks content"
* hrefs = _FIND_PI_HREF(u' ' + (<unsigned char*>self._c_node.content).decode('UTF-8'))
* if len(hrefs) != 1: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":917
+ /* "src/lxml/xslt.pxi":918
* if len(hrefs) != 1:
* raise ValueError, u"malformed PI attributes"
* hrefs = hrefs[0] # <<<<<<<<<<<<<<
* href_utf = utf8(hrefs[0] or hrefs[1])
* c_href = _xcstr(href_utf)
*/
- __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_hrefs, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 917, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_hrefs, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 918, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF_SET(__pyx_v_hrefs, __pyx_t_3);
__pyx_t_3 = 0;
- /* "src/lxml/xslt.pxi":918
+ /* "src/lxml/xslt.pxi":919
* raise ValueError, u"malformed PI attributes"
* hrefs = hrefs[0]
* href_utf = utf8(hrefs[0] or hrefs[1]) # <<<<<<<<<<<<<<
* c_href = _xcstr(href_utf)
*
*/
- __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_hrefs, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 918, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_hrefs, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 919, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(4, 918, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(4, 919, __pyx_L1_error)
if (!__pyx_t_2) {
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
} else {
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
goto __pyx_L5_bool_binop_done;
}
- __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_hrefs, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 918, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_hrefs, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 919, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_INCREF(__pyx_t_5);
__pyx_t_3 = __pyx_t_5;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_L5_bool_binop_done:;
- __pyx_t_5 = utf8(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 918, __pyx_L1_error)
+ __pyx_t_5 = utf8(__pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 919, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_v_href_utf = ((PyObject*)__pyx_t_5);
__pyx_t_5 = 0;
- /* "src/lxml/xslt.pxi":919
+ /* "src/lxml/xslt.pxi":920
* hrefs = hrefs[0]
* href_utf = utf8(hrefs[0] or hrefs[1])
* c_href = _xcstr(href_utf) # <<<<<<<<<<<<<<
*/
__pyx_v_c_href = (const xmlChar*)PyBytes_AS_STRING(__pyx_v_href_utf);
- /* "src/lxml/xslt.pxi":921
+ /* "src/lxml/xslt.pxi":922
* c_href = _xcstr(href_utf)
*
* if c_href[0] != c'#': # <<<<<<<<<<<<<<
__pyx_t_2 = (((__pyx_v_c_href[0]) != '#') != 0);
if (__pyx_t_2) {
- /* "src/lxml/xslt.pxi":923
+ /* "src/lxml/xslt.pxi":924
* if c_href[0] != c'#':
* # normal URL, try to parse from it
* c_href = tree.xmlBuildURI( # <<<<<<<<<<<<<<
*/
__pyx_v_c_href = xmlBuildURI(__pyx_v_c_href, xmlNodeGetBase(__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node->doc, __pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node));
- /* "src/lxml/xslt.pxi":926
+ /* "src/lxml/xslt.pxi":927
* c_href,
* tree.xmlNodeGetBase(self._c_node.doc, self._c_node))
* if c_href is not NULL: # <<<<<<<<<<<<<<
__pyx_t_2 = ((__pyx_v_c_href != NULL) != 0);
if (__pyx_t_2) {
- /* "src/lxml/xslt.pxi":927
+ /* "src/lxml/xslt.pxi":928
* tree.xmlNodeGetBase(self._c_node.doc, self._c_node))
* if c_href is not NULL:
* try: # <<<<<<<<<<<<<<
*/
/*try:*/ {
- /* "src/lxml/xslt.pxi":928
+ /* "src/lxml/xslt.pxi":929
* if c_href is not NULL:
* try:
* href_utf = <unsigned char*>c_href # <<<<<<<<<<<<<<
* finally:
* tree.xmlFree(<char*>c_href)
*/
- __pyx_t_5 = __Pyx_PyBytes_FromCString(((unsigned char *)__pyx_v_c_href)); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 928, __pyx_L10_error)
+ __pyx_t_5 = __Pyx_PyBytes_FromCString(((unsigned char *)__pyx_v_c_href)); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 929, __pyx_L10_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF_SET(__pyx_v_href_utf, ((PyObject*)__pyx_t_5));
__pyx_t_5 = 0;
}
- /* "src/lxml/xslt.pxi":930
+ /* "src/lxml/xslt.pxi":931
* href_utf = <unsigned char*>c_href
* finally:
* tree.xmlFree(<char*>c_href) # <<<<<<<<<<<<<<
__pyx_L11:;
}
- /* "src/lxml/xslt.pxi":926
+ /* "src/lxml/xslt.pxi":927
* c_href,
* tree.xmlNodeGetBase(self._c_node.doc, self._c_node))
* if c_href is not NULL: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":931
+ /* "src/lxml/xslt.pxi":932
* finally:
* tree.xmlFree(<char*>c_href)
* result_doc = _parseDocumentFromURL(href_utf, parser) # <<<<<<<<<<<<<<
* return _elementTreeFactory(result_doc, None)
*
*/
- if (!(likely(((__pyx_v_parser) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_parser, __pyx_ptype_4lxml_5etree__BaseParser))))) __PYX_ERR(4, 931, __pyx_L1_error)
- __pyx_t_5 = ((PyObject *)__pyx_f_4lxml_5etree__parseDocumentFromURL(__pyx_v_href_utf, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser))); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 931, __pyx_L1_error)
+ if (!(likely(((__pyx_v_parser) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_parser, __pyx_ptype_4lxml_5etree__BaseParser))))) __PYX_ERR(4, 932, __pyx_L1_error)
+ __pyx_t_5 = ((PyObject *)__pyx_f_4lxml_5etree__parseDocumentFromURL(__pyx_v_href_utf, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_v_parser))); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 932, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__pyx_v_result_doc = ((struct LxmlDocument *)__pyx_t_5);
__pyx_t_5 = 0;
- /* "src/lxml/xslt.pxi":932
+ /* "src/lxml/xslt.pxi":933
* tree.xmlFree(<char*>c_href)
* result_doc = _parseDocumentFromURL(href_utf, parser)
* return _elementTreeFactory(result_doc, None) # <<<<<<<<<<<<<<
* # ID reference to embedded stylesheet
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_5 = ((PyObject *)__pyx_f_4lxml_5etree__elementTreeFactory(__pyx_v_result_doc, ((struct LxmlElement *)Py_None))); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 932, __pyx_L1_error)
+ __pyx_t_5 = ((PyObject *)__pyx_f_4lxml_5etree__elementTreeFactory(__pyx_v_result_doc, ((struct LxmlElement *)Py_None))); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 933, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__pyx_r = __pyx_t_5;
__pyx_t_5 = 0;
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":921
+ /* "src/lxml/xslt.pxi":922
* c_href = _xcstr(href_utf)
*
* if c_href[0] != c'#': # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":936
+ /* "src/lxml/xslt.pxi":937
* # ID reference to embedded stylesheet
* # try XML:ID lookup
* _assertValidDoc(self._doc) # <<<<<<<<<<<<<<
*/
__pyx_t_5 = ((PyObject *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base._doc);
__Pyx_INCREF(__pyx_t_5);
- __pyx_t_9 = __pyx_f_4lxml_5etree__assertValidDoc(((struct LxmlDocument *)__pyx_t_5)); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(4, 936, __pyx_L1_error)
+ __pyx_t_9 = __pyx_f_4lxml_5etree__assertValidDoc(((struct LxmlDocument *)__pyx_t_5)); if (unlikely(__pyx_t_9 == ((int)-1))) __PYX_ERR(4, 937, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
- /* "src/lxml/xslt.pxi":937
+ /* "src/lxml/xslt.pxi":938
* # try XML:ID lookup
* _assertValidDoc(self._doc)
* c_href += 1 # skip leading '#' # <<<<<<<<<<<<<<
*/
__pyx_v_c_href = (__pyx_v_c_href + 1);
- /* "src/lxml/xslt.pxi":938
+ /* "src/lxml/xslt.pxi":939
* _assertValidDoc(self._doc)
* c_href += 1 # skip leading '#'
* c_attr = tree.xmlGetID(self._c_node.doc, c_href) # <<<<<<<<<<<<<<
*/
__pyx_v_c_attr = xmlGetID(__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base._c_node->doc, __pyx_v_c_href);
- /* "src/lxml/xslt.pxi":939
+ /* "src/lxml/xslt.pxi":940
* c_href += 1 # skip leading '#'
* c_attr = tree.xmlGetID(self._c_node.doc, c_href)
* if c_attr is not NULL and c_attr.doc is self._c_node.doc: # <<<<<<<<<<<<<<
__pyx_L15_bool_binop_done:;
if (__pyx_t_2) {
- /* "src/lxml/xslt.pxi":940
+ /* "src/lxml/xslt.pxi":941
* c_attr = tree.xmlGetID(self._c_node.doc, c_href)
* if c_attr is not NULL and c_attr.doc is self._c_node.doc:
* result_node = _elementFactory(self._doc, c_attr.parent) # <<<<<<<<<<<<<<
*/
__pyx_t_5 = ((PyObject *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base._doc);
__Pyx_INCREF(__pyx_t_5);
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(((struct LxmlDocument *)__pyx_t_5), __pyx_v_c_attr->parent)); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 940, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__elementFactory(((struct LxmlDocument *)__pyx_t_5), __pyx_v_c_attr->parent)); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 941, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_v_result_node = ((struct LxmlElement *)__pyx_t_3);
__pyx_t_3 = 0;
- /* "src/lxml/xslt.pxi":941
+ /* "src/lxml/xslt.pxi":942
* if c_attr is not NULL and c_attr.doc is self._c_node.doc:
* result_node = _elementFactory(self._doc, c_attr.parent)
* return _elementTreeFactory(result_node._doc, result_node) # <<<<<<<<<<<<<<
__Pyx_XDECREF(__pyx_r);
__pyx_t_3 = ((PyObject *)__pyx_v_result_node->_doc);
__Pyx_INCREF(__pyx_t_3);
- __pyx_t_5 = ((PyObject *)__pyx_f_4lxml_5etree__elementTreeFactory(((struct LxmlDocument *)__pyx_t_3), __pyx_v_result_node)); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 941, __pyx_L1_error)
+ __pyx_t_5 = ((PyObject *)__pyx_f_4lxml_5etree__elementTreeFactory(((struct LxmlDocument *)__pyx_t_3), __pyx_v_result_node)); if (unlikely(!__pyx_t_5)) __PYX_ERR(4, 942, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_r = __pyx_t_5;
__pyx_t_5 = 0;
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":939
+ /* "src/lxml/xslt.pxi":940
* c_href += 1 # skip leading '#'
* c_attr = tree.xmlGetID(self._c_node.doc, c_href)
* if c_attr is not NULL and c_attr.doc is self._c_node.doc: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":944
+ /* "src/lxml/xslt.pxi":945
*
* # try XPath search
* root = _findStylesheetByID(self._doc, funicode(c_href)) # <<<<<<<<<<<<<<
*/
__pyx_t_5 = ((PyObject *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_base._doc);
__Pyx_INCREF(__pyx_t_5);
- __pyx_t_3 = __pyx_f_4lxml_5etree_funicode(__pyx_v_c_href); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 944, __pyx_L1_error)
+ __pyx_t_3 = __pyx_f_4lxml_5etree_funicode(__pyx_v_c_href); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 945, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_6 = __pyx_f_4lxml_5etree__findStylesheetByID(((struct LxmlDocument *)__pyx_t_5), __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 944, __pyx_L1_error)
+ __pyx_t_6 = __pyx_f_4lxml_5etree__findStylesheetByID(((struct LxmlDocument *)__pyx_t_5), __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 945, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_v_root = __pyx_t_6;
__pyx_t_6 = 0;
- /* "src/lxml/xslt.pxi":945
+ /* "src/lxml/xslt.pxi":946
* # try XPath search
* root = _findStylesheetByID(self._doc, funicode(c_href))
* if not root: # <<<<<<<<<<<<<<
* raise ValueError, u"reference to non-existing embedded stylesheet"
* elif len(root) > 1:
*/
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_root); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(4, 945, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_root); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(4, 946, __pyx_L1_error)
__pyx_t_17 = ((!__pyx_t_2) != 0);
if (unlikely(__pyx_t_17)) {
- /* "src/lxml/xslt.pxi":946
+ /* "src/lxml/xslt.pxi":947
* root = _findStylesheetByID(self._doc, funicode(c_href))
* if not root:
* raise ValueError, u"reference to non-existing embedded stylesheet" # <<<<<<<<<<<<<<
* raise ValueError, u"ambiguous reference to embedded stylesheet"
*/
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_reference_to_non_existing_embedd, 0, 0);
- __PYX_ERR(4, 946, __pyx_L1_error)
+ __PYX_ERR(4, 947, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":945
+ /* "src/lxml/xslt.pxi":946
* # try XPath search
* root = _findStylesheetByID(self._doc, funicode(c_href))
* if not root: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":947
+ /* "src/lxml/xslt.pxi":948
* if not root:
* raise ValueError, u"reference to non-existing embedded stylesheet"
* elif len(root) > 1: # <<<<<<<<<<<<<<
* raise ValueError, u"ambiguous reference to embedded stylesheet"
* result_node = root[0]
*/
- __pyx_t_8 = PyObject_Length(__pyx_v_root); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(4, 947, __pyx_L1_error)
+ __pyx_t_8 = PyObject_Length(__pyx_v_root); if (unlikely(__pyx_t_8 == ((Py_ssize_t)-1))) __PYX_ERR(4, 948, __pyx_L1_error)
__pyx_t_17 = ((__pyx_t_8 > 1) != 0);
if (unlikely(__pyx_t_17)) {
- /* "src/lxml/xslt.pxi":948
+ /* "src/lxml/xslt.pxi":949
* raise ValueError, u"reference to non-existing embedded stylesheet"
* elif len(root) > 1:
* raise ValueError, u"ambiguous reference to embedded stylesheet" # <<<<<<<<<<<<<<
* return _elementTreeFactory(result_node._doc, result_node)
*/
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_ambiguous_reference_to_embedded, 0, 0);
- __PYX_ERR(4, 948, __pyx_L1_error)
+ __PYX_ERR(4, 949, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":947
+ /* "src/lxml/xslt.pxi":948
* if not root:
* raise ValueError, u"reference to non-existing embedded stylesheet"
* elif len(root) > 1: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":949
+ /* "src/lxml/xslt.pxi":950
* elif len(root) > 1:
* raise ValueError, u"ambiguous reference to embedded stylesheet"
* result_node = root[0] # <<<<<<<<<<<<<<
* return _elementTreeFactory(result_node._doc, result_node)
*
*/
- __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_root, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 949, __pyx_L1_error)
+ __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_root, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(4, 950, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
- if (!(likely(((__pyx_t_6) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_6, __pyx_ptype_4lxml_5etree__Element))))) __PYX_ERR(4, 949, __pyx_L1_error)
+ if (!(likely(((__pyx_t_6) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_6, __pyx_ptype_4lxml_5etree__Element))))) __PYX_ERR(4, 950, __pyx_L1_error)
__pyx_v_result_node = ((struct LxmlElement *)__pyx_t_6);
__pyx_t_6 = 0;
- /* "src/lxml/xslt.pxi":950
+ /* "src/lxml/xslt.pxi":951
* raise ValueError, u"ambiguous reference to embedded stylesheet"
* result_node = root[0]
* return _elementTreeFactory(result_node._doc, result_node) # <<<<<<<<<<<<<<
__Pyx_XDECREF(__pyx_r);
__pyx_t_6 = ((PyObject *)__pyx_v_result_node->_doc);
__Pyx_INCREF(__pyx_t_6);
- __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__elementTreeFactory(((struct LxmlDocument *)__pyx_t_6), __pyx_v_result_node)); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 950, __pyx_L1_error)
+ __pyx_t_3 = ((PyObject *)__pyx_f_4lxml_5etree__elementTreeFactory(((struct LxmlDocument *)__pyx_t_6), __pyx_v_result_node)); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 951, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
- /* "src/lxml/xslt.pxi":895
+ /* "src/lxml/xslt.pxi":896
*
* cdef class _XSLTProcessingInstruction(PIBase):
* def parseXSL(self, parser=None): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "src/lxml/xslt.pxi":952
+/* "src/lxml/xslt.pxi":953
* return _elementTreeFactory(result_node._doc, result_node)
*
* def set(self, key, value): # <<<<<<<<<<<<<<
case 1:
if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_value)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("set", 1, 2, 2, 1); __PYX_ERR(4, 952, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("set", 1, 2, 2, 1); __PYX_ERR(4, 953, __pyx_L3_error)
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set") < 0)) __PYX_ERR(4, 952, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set") < 0)) __PYX_ERR(4, 953, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
goto __pyx_L5_argtuple_error;
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("set", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(4, 952, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("set", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(4, 953, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._XSLTProcessingInstruction.set", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("set", 0);
- /* "src/lxml/xslt.pxi":958
+ /* "src/lxml/xslt.pxi":959
* the processing instruction.
* """
* if key != u"href": # <<<<<<<<<<<<<<
* raise AttributeError, \
* u"only setting the 'href' attribute is supported on XSLT-PIs"
*/
- __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_key, __pyx_n_u_href, Py_NE)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(4, 958, __pyx_L1_error)
+ __pyx_t_1 = (__Pyx_PyUnicode_Equals(__pyx_v_key, __pyx_n_u_href, Py_NE)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(4, 959, __pyx_L1_error)
if (unlikely(__pyx_t_1)) {
- /* "src/lxml/xslt.pxi":959
+ /* "src/lxml/xslt.pxi":960
* """
* if key != u"href":
* raise AttributeError, \ # <<<<<<<<<<<<<<
* if value is None:
*/
__Pyx_Raise(__pyx_builtin_AttributeError, __pyx_kp_u_only_setting_the_href_attribute, 0, 0);
- __PYX_ERR(4, 959, __pyx_L1_error)
+ __PYX_ERR(4, 960, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":958
+ /* "src/lxml/xslt.pxi":959
* the processing instruction.
* """
* if key != u"href": # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":961
+ /* "src/lxml/xslt.pxi":962
* raise AttributeError, \
* u"only setting the 'href' attribute is supported on XSLT-PIs"
* if value is None: # <<<<<<<<<<<<<<
__pyx_t_2 = (__pyx_t_1 != 0);
if (__pyx_t_2) {
- /* "src/lxml/xslt.pxi":962
+ /* "src/lxml/xslt.pxi":963
* u"only setting the 'href' attribute is supported on XSLT-PIs"
* if value is None:
* attrib = u"" # <<<<<<<<<<<<<<
__Pyx_INCREF(__pyx_kp_u__12);
__pyx_v_attrib = __pyx_kp_u__12;
- /* "src/lxml/xslt.pxi":961
+ /* "src/lxml/xslt.pxi":962
* raise AttributeError, \
* u"only setting the 'href' attribute is supported on XSLT-PIs"
* if value is None: # <<<<<<<<<<<<<<
goto __pyx_L4;
}
- /* "src/lxml/xslt.pxi":963
+ /* "src/lxml/xslt.pxi":964
* if value is None:
* attrib = u""
* elif u'"' in value or u'>' in value: # <<<<<<<<<<<<<<
* raise ValueError, u"Invalid URL, must not contain '\"' or '>'"
* else:
*/
- __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u__23, __pyx_v_value, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(4, 963, __pyx_L1_error)
+ __pyx_t_1 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u__23, __pyx_v_value, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(4, 964, __pyx_L1_error)
__pyx_t_3 = (__pyx_t_1 != 0);
if (!__pyx_t_3) {
} else {
__pyx_t_2 = __pyx_t_3;
goto __pyx_L5_bool_binop_done;
}
- __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u__26, __pyx_v_value, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(4, 963, __pyx_L1_error)
+ __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_kp_u__26, __pyx_v_value, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(4, 964, __pyx_L1_error)
__pyx_t_1 = (__pyx_t_3 != 0);
__pyx_t_2 = __pyx_t_1;
__pyx_L5_bool_binop_done:;
if (unlikely(__pyx_t_2)) {
- /* "src/lxml/xslt.pxi":964
+ /* "src/lxml/xslt.pxi":965
* attrib = u""
* elif u'"' in value or u'>' in value:
* raise ValueError, u"Invalid URL, must not contain '\"' or '>'" # <<<<<<<<<<<<<<
* attrib = f' href="{value}"'
*/
__Pyx_Raise(__pyx_builtin_ValueError, __pyx_kp_u_Invalid_URL_must_not_contain_or, 0, 0);
- __PYX_ERR(4, 964, __pyx_L1_error)
+ __PYX_ERR(4, 965, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":963
+ /* "src/lxml/xslt.pxi":964
* if value is None:
* attrib = u""
* elif u'"' in value or u'>' in value: # <<<<<<<<<<<<<<
*/
}
- /* "src/lxml/xslt.pxi":966
+ /* "src/lxml/xslt.pxi":967
* raise ValueError, u"Invalid URL, must not contain '\"' or '>'"
* else:
* attrib = f' href="{value}"' # <<<<<<<<<<<<<<
* if _FIND_PI_HREF(text):
*/
/*else*/ {
- __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 966, __pyx_L1_error)
+ __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 967, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_5 = 0;
__pyx_t_6 = 127;
__pyx_t_5 += 7;
__Pyx_GIVEREF(__pyx_kp_u_href_2);
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_kp_u_href_2);
- __pyx_t_7 = __Pyx_PyObject_FormatSimple(__pyx_v_value, __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 966, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyObject_FormatSimple(__pyx_v_value, __pyx_empty_unicode); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 967, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__pyx_t_6 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) > __pyx_t_6) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_7) : __pyx_t_6;
__pyx_t_5 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_7);
__pyx_t_5 += 1;
__Pyx_GIVEREF(__pyx_kp_u__23);
PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_kp_u__23);
- __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_4, 3, __pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 966, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyUnicode_Join(__pyx_t_4, 3, __pyx_t_5, __pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 967, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_v_attrib = ((PyObject*)__pyx_t_7);
}
__pyx_L4:;
- /* "src/lxml/xslt.pxi":967
+ /* "src/lxml/xslt.pxi":968
* else:
* attrib = f' href="{value}"'
* text = u' ' + self.text # <<<<<<<<<<<<<<
* if _FIND_PI_HREF(text):
* self.text = _REPLACE_PI_HREF(attrib, text)
*/
- __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_text); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 967, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_text); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 968, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
- __pyx_t_4 = PyNumber_Add(__pyx_kp_u__11, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 967, __pyx_L1_error)
+ __pyx_t_4 = PyNumber_Add(__pyx_kp_u__11, __pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 968, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__pyx_v_text = __pyx_t_4;
__pyx_t_4 = 0;
- /* "src/lxml/xslt.pxi":968
+ /* "src/lxml/xslt.pxi":969
* attrib = f' href="{value}"'
* text = u' ' + self.text
* if _FIND_PI_HREF(text): # <<<<<<<<<<<<<<
}
__pyx_t_4 = (__pyx_t_8) ? __Pyx_PyObject_Call2Args(__pyx_t_7, __pyx_t_8, __pyx_v_text) : __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_text);
__Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
- if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 968, __pyx_L1_error)
+ if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 969, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(4, 968, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(4, 969, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
if (__pyx_t_2) {
- /* "src/lxml/xslt.pxi":969
+ /* "src/lxml/xslt.pxi":970
* text = u' ' + self.text
* if _FIND_PI_HREF(text):
* self.text = _REPLACE_PI_HREF(attrib, text) # <<<<<<<<<<<<<<
#if CYTHON_FAST_PYCALL
if (PyFunction_Check(__pyx_t_7)) {
PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_v_attrib, __pyx_v_text};
- __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 969, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 970, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
__Pyx_GOTREF(__pyx_t_4);
} else
#if CYTHON_FAST_PYCCALL
if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) {
PyObject *__pyx_temp[3] = {__pyx_t_8, __pyx_v_attrib, __pyx_v_text};
- __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 969, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_9, 2+__pyx_t_9); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 970, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
__Pyx_GOTREF(__pyx_t_4);
} else
#endif
{
- __pyx_t_10 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(4, 969, __pyx_L1_error)
+ __pyx_t_10 = PyTuple_New(2+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(4, 970, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_10);
if (__pyx_t_8) {
__Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); __pyx_t_8 = NULL;
__Pyx_INCREF(__pyx_v_text);
__Pyx_GIVEREF(__pyx_v_text);
PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_v_text);
- __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_10, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 969, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_10, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 970, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
}
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_text, __pyx_t_4) < 0) __PYX_ERR(4, 969, __pyx_L1_error)
+ if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_text, __pyx_t_4) < 0) __PYX_ERR(4, 970, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
- /* "src/lxml/xslt.pxi":968
+ /* "src/lxml/xslt.pxi":969
* attrib = f' href="{value}"'
* text = u' ' + self.text
* if _FIND_PI_HREF(text): # <<<<<<<<<<<<<<
goto __pyx_L7;
}
- /* "src/lxml/xslt.pxi":971
+ /* "src/lxml/xslt.pxi":972
* self.text = _REPLACE_PI_HREF(attrib, text)
* else:
* self.text = text + attrib # <<<<<<<<<<<<<<
*/
/*else*/ {
- __pyx_t_4 = PyNumber_Add(__pyx_v_text, __pyx_v_attrib); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 971, __pyx_L1_error)
+ __pyx_t_4 = PyNumber_Add(__pyx_v_text, __pyx_v_attrib); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 972, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
- if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_text, __pyx_t_4) < 0) __PYX_ERR(4, 971, __pyx_L1_error)
+ if (__Pyx_PyObject_SetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_text, __pyx_t_4) < 0) __PYX_ERR(4, 972, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
}
__pyx_L7:;
- /* "src/lxml/xslt.pxi":952
+ /* "src/lxml/xslt.pxi":953
* return _elementTreeFactory(result_node._doc, result_node)
*
* def set(self, key, value): # <<<<<<<<<<<<<<
* #assert c_context_node.doc is context._xsltContext.node.doc, \
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_context->_xsltCtxt != NULL) != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_XSLT_context_not_initialised);
__PYX_ERR(19, 47, __pyx_L1_error)
* # output_parent node is used for adding results instead of
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_context->_xsltCtxt != NULL) != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_XSLT_context_not_initialised);
__PYX_ERR(19, 99, __pyx_L1_error)
#endif
}
-/* "lxml/etree.pyx":3622
+/* "lxml/etree.pyx":3625
* u"Base class for XML validators."
* cdef _ErrorLog _error_log
* def __cinit__(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__cinit__", 0);
- /* "lxml/etree.pyx":3623
+ /* "lxml/etree.pyx":3626
* cdef _ErrorLog _error_log
* def __cinit__(self):
* self._error_log = _ErrorLog() # <<<<<<<<<<<<<<
*
* def validate(self, etree):
*/
- __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree__ErrorLog)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3623, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree__ErrorLog)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3626, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_GIVEREF(__pyx_t_1);
__Pyx_GOTREF(__pyx_v_self->_error_log);
__pyx_v_self->_error_log = ((struct __pyx_obj_4lxml_5etree__ErrorLog *)__pyx_t_1);
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":3622
+ /* "lxml/etree.pyx":3625
* u"Base class for XML validators."
* cdef _ErrorLog _error_log
* def __cinit__(self): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3625
+/* "lxml/etree.pyx":3628
* self._error_log = _ErrorLog()
*
* def validate(self, etree): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("validate", 0);
- /* "lxml/etree.pyx":3632
+ /* "lxml/etree.pyx":3635
* Returns true if document is valid, false if not.
* """
* return self(etree) # <<<<<<<<<<<<<<
}
__pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_v_etree) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_etree);
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
- if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3632, __pyx_L1_error)
+ if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3635, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":3625
+ /* "lxml/etree.pyx":3628
* self._error_log = _ErrorLog()
*
* def validate(self, etree): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3634
+/* "lxml/etree.pyx":3637
* return self(etree)
*
* def assertValid(self, etree): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("assertValid", 0);
- /* "lxml/etree.pyx":3639
+ /* "lxml/etree.pyx":3642
* Raises `DocumentInvalid` if the document does not comply with the schema.
* """
* if not self(etree): # <<<<<<<<<<<<<<
}
__pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_v_etree) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_etree);
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
- if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3639, __pyx_L1_error)
+ if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3642, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 3639, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 3642, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_5 = ((!__pyx_t_4) != 0);
if (unlikely(__pyx_t_5)) {
- /* "lxml/etree.pyx":3640
+ /* "lxml/etree.pyx":3643
* """
* if not self(etree):
* raise DocumentInvalid(self._error_log._buildExceptionMessage( # <<<<<<<<<<<<<<
* u"Document does not comply with schema"),
* self._error_log)
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_13_BaseErrorLog__buildExceptionMessage(((struct __pyx_obj_4lxml_5etree__BaseErrorLog *)__pyx_v_self->_error_log), __pyx_kp_u_Document_does_not_comply_with_sc); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3640, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_13_BaseErrorLog__buildExceptionMessage(((struct __pyx_obj_4lxml_5etree__BaseErrorLog *)__pyx_v_self->_error_log), __pyx_kp_u_Document_does_not_comply_with_sc); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3643, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- /* "lxml/etree.pyx":3642
+ /* "lxml/etree.pyx":3645
* raise DocumentInvalid(self._error_log._buildExceptionMessage(
* u"Document does not comply with schema"),
* self._error_log) # <<<<<<<<<<<<<<
*
* def assert_(self, etree):
*/
- __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3640, __pyx_L1_error)
+ __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3643, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_GIVEREF(__pyx_t_1);
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_self->_error_log));
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":3640
+ /* "lxml/etree.pyx":3643
* """
* if not self(etree):
* raise DocumentInvalid(self._error_log._buildExceptionMessage( # <<<<<<<<<<<<<<
* u"Document does not comply with schema"),
* self._error_log)
*/
- __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_DocumentInvalid), __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3640, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_DocumentInvalid), __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3643, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_Raise(__pyx_t_1, 0, 0, 0);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __PYX_ERR(0, 3640, __pyx_L1_error)
+ __PYX_ERR(0, 3643, __pyx_L1_error)
- /* "lxml/etree.pyx":3639
+ /* "lxml/etree.pyx":3642
* Raises `DocumentInvalid` if the document does not comply with the schema.
* """
* if not self(etree): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3634
+ /* "lxml/etree.pyx":3637
* return self(etree)
*
* def assertValid(self, etree): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3644
+/* "lxml/etree.pyx":3647
* self._error_log)
*
* def assert_(self, etree): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("assert_", 0);
- /* "lxml/etree.pyx":3649
+ /* "lxml/etree.pyx":3652
* Raises `AssertionError` if the document does not comply with the schema.
* """
* if not self(etree): # <<<<<<<<<<<<<<
}
__pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_v_etree) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_etree);
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
- if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3649, __pyx_L1_error)
+ if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3652, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 3649, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) __PYX_ERR(0, 3652, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_5 = ((!__pyx_t_4) != 0);
if (unlikely(__pyx_t_5)) {
- /* "lxml/etree.pyx":3650
+ /* "lxml/etree.pyx":3653
* """
* if not self(etree):
* raise AssertionError, self._error_log._buildExceptionMessage( # <<<<<<<<<<<<<<
* u"Document does not comply with schema")
*
*/
- __pyx_t_1 = __pyx_f_4lxml_5etree_13_BaseErrorLog__buildExceptionMessage(((struct __pyx_obj_4lxml_5etree__BaseErrorLog *)__pyx_v_self->_error_log), __pyx_kp_u_Document_does_not_comply_with_sc); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3650, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_13_BaseErrorLog__buildExceptionMessage(((struct __pyx_obj_4lxml_5etree__BaseErrorLog *)__pyx_v_self->_error_log), __pyx_kp_u_Document_does_not_comply_with_sc); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3653, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_Raise(__pyx_builtin_AssertionError, __pyx_t_1, 0, 0);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __PYX_ERR(0, 3650, __pyx_L1_error)
+ __PYX_ERR(0, 3653, __pyx_L1_error)
- /* "lxml/etree.pyx":3649
+ /* "lxml/etree.pyx":3652
* Raises `AssertionError` if the document does not comply with the schema.
* """
* if not self(etree): # <<<<<<<<<<<<<<
*/
}
- /* "lxml/etree.pyx":3644
+ /* "lxml/etree.pyx":3647
* self._error_log)
*
* def assert_(self, etree): # <<<<<<<<<<<<<<
return __pyx_r;
}
-/* "lxml/etree.pyx":3653
+/* "lxml/etree.pyx":3656
* u"Document does not comply with schema")
*
* cpdef _append_log_message(self, int domain, int type, int level, int line, # <<<<<<<<<<<<<<
if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
#endif
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_append_log_message); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3653, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_append_log_message); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3656, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_4lxml_5etree_10_Validator_9_append_log_message)) {
__Pyx_XDECREF(__pyx_r);
- __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_domain); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3653, __pyx_L1_error)
+ __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_domain); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3656, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
- __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3653, __pyx_L1_error)
+ __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 3656, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
- __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_level); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3653, __pyx_L1_error)
+ __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_level); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 3656, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
- __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3653, __pyx_L1_error)
+ __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_line); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 3656, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__Pyx_INCREF(__pyx_t_1);
__pyx_t_7 = __pyx_t_1; __pyx_t_8 = NULL;
#if CYTHON_FAST_PYCALL
if (PyFunction_Check(__pyx_t_7)) {
PyObject *__pyx_temp[7] = {__pyx_t_8, __pyx_t_3, __pyx_t_4, __pyx_t_5, __pyx_t_6, __pyx_v_message, __pyx_v_filename};
- __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_9, 6+__pyx_t_9); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3653, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_9, 6+__pyx_t_9); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3656, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
#if CYTHON_FAST_PYCCALL
if (__Pyx_PyFastCFunction_Check(__pyx_t_7)) {
PyObject *__pyx_temp[7] = {__pyx_t_8, __pyx_t_3, __pyx_t_4, __pyx_t_5, __pyx_t_6, __pyx_v_message, __pyx_v_filename};
- __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_9, 6+__pyx_t_9); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3653, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_7, __pyx_temp+1-__pyx_t_9, 6+__pyx_t_9); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3656, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
} else
#endif
{
- __pyx_t_10 = PyTuple_New(6+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 3653, __pyx_L1_error)
+ __pyx_t_10 = PyTuple_New(6+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 3656, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_10);
if (__pyx_t_8) {
__Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); __pyx_t_8 = NULL;
__pyx_t_4 = 0;
__pyx_t_5 = 0;
__pyx_t_6 = 0;
- __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_10, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3653, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_10, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3656, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
}
#endif
}
- /* "lxml/etree.pyx":3655
+ /* "lxml/etree.pyx":3658
* cpdef _append_log_message(self, int domain, int type, int level, int line,
* message, filename):
* self._error_log._receiveGeneric(domain, type, level, line, message, # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree_13_BaseErrorLog__receiveGeneric(((struct __pyx_obj_4lxml_5etree__BaseErrorLog *)__pyx_v_self->_error_log), __pyx_v_domain, __pyx_v_type, __pyx_v_level, __pyx_v_line, __pyx_v_message, __pyx_v_filename);
- /* "lxml/etree.pyx":3653
+ /* "lxml/etree.pyx":3656
* u"Document does not comply with schema")
*
* cpdef _append_log_message(self, int domain, int type, int level, int line, # <<<<<<<<<<<<<<
case 1:
if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_type)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("_append_log_message", 1, 6, 6, 1); __PYX_ERR(0, 3653, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("_append_log_message", 1, 6, 6, 1); __PYX_ERR(0, 3656, __pyx_L3_error)
}
CYTHON_FALLTHROUGH;
case 2:
if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_level)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("_append_log_message", 1, 6, 6, 2); __PYX_ERR(0, 3653, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("_append_log_message", 1, 6, 6, 2); __PYX_ERR(0, 3656, __pyx_L3_error)
}
CYTHON_FALLTHROUGH;
case 3:
if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_line_2)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("_append_log_message", 1, 6, 6, 3); __PYX_ERR(0, 3653, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("_append_log_message", 1, 6, 6, 3); __PYX_ERR(0, 3656, __pyx_L3_error)
}
CYTHON_FALLTHROUGH;
case 4:
if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_message)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("_append_log_message", 1, 6, 6, 4); __PYX_ERR(0, 3653, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("_append_log_message", 1, 6, 6, 4); __PYX_ERR(0, 3656, __pyx_L3_error)
}
CYTHON_FALLTHROUGH;
case 5:
if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_filename)) != 0)) kw_args--;
else {
- __Pyx_RaiseArgtupleInvalid("_append_log_message", 1, 6, 6, 5); __PYX_ERR(0, 3653, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("_append_log_message", 1, 6, 6, 5); __PYX_ERR(0, 3656, __pyx_L3_error)
}
}
if (unlikely(kw_args > 0)) {
- if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_append_log_message") < 0)) __PYX_ERR(0, 3653, __pyx_L3_error)
+ if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_append_log_message") < 0)) __PYX_ERR(0, 3656, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
goto __pyx_L5_argtuple_error;
values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
}
- __pyx_v_domain = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_domain == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3653, __pyx_L3_error)
- __pyx_v_type = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_type == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3653, __pyx_L3_error)
- __pyx_v_level = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_level == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3653, __pyx_L3_error)
- __pyx_v_line = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_line == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3653, __pyx_L3_error)
+ __pyx_v_domain = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_domain == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3656, __pyx_L3_error)
+ __pyx_v_type = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_type == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3656, __pyx_L3_error)
+ __pyx_v_level = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_level == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3656, __pyx_L3_error)
+ __pyx_v_line = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_line == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 3656, __pyx_L3_error)
__pyx_v_message = values[4];
__pyx_v_filename = values[5];
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
- __Pyx_RaiseArgtupleInvalid("_append_log_message", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3653, __pyx_L3_error)
+ __Pyx_RaiseArgtupleInvalid("_append_log_message", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3656, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("lxml.etree._Validator._append_log_message", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_append_log_message", 0);
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __pyx_f_4lxml_5etree_10_Validator__append_log_message(__pyx_v_self, __pyx_v_domain, __pyx_v_type, __pyx_v_level, __pyx_v_line, __pyx_v_message, __pyx_v_filename, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3653, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_10_Validator__append_log_message(__pyx_v_self, __pyx_v_domain, __pyx_v_type, __pyx_v_level, __pyx_v_line, __pyx_v_message, __pyx_v_filename, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3656, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
return __pyx_r;
}
-/* "lxml/etree.pyx":3658
+/* "lxml/etree.pyx":3661
* filename)
*
* cpdef _clear_error_log(self): # <<<<<<<<<<<<<<
if (unlikely(!__Pyx_object_dict_version_matches(((PyObject *)__pyx_v_self), __pyx_tp_dict_version, __pyx_obj_dict_version))) {
PY_UINT64_T __pyx_type_dict_guard = __Pyx_get_tp_dict_version(((PyObject *)__pyx_v_self));
#endif
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_clear_error_log); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3658, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_clear_error_log); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3661, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)(void*)__pyx_pw_4lxml_5etree_10_Validator_11_clear_error_log)) {
__Pyx_XDECREF(__pyx_r);
}
__pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
- if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3658, __pyx_L1_error)
+ if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3661, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_r = __pyx_t_2;
#endif
}
- /* "lxml/etree.pyx":3659
+ /* "lxml/etree.pyx":3662
*
* cpdef _clear_error_log(self):
* self._error_log.clear() # <<<<<<<<<<<<<<
*
* @property
*/
- __pyx_t_1 = ((struct __pyx_vtabstruct_4lxml_5etree__ErrorLog *)__pyx_v_self->_error_log->__pyx_base.__pyx_base.__pyx_vtab)->clear(__pyx_v_self->_error_log, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3659, __pyx_L1_error)
+ __pyx_t_1 = ((struct __pyx_vtabstruct_4lxml_5etree__ErrorLog *)__pyx_v_self->_error_log->__pyx_base.__pyx_base.__pyx_vtab)->clear(__pyx_v_self->_error_log, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3662, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":3658
+ /* "lxml/etree.pyx":3661
* filename)
*
* cpdef _clear_error_log(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("_clear_error_log", 0);
__Pyx_XDECREF(__pyx_r);
- __pyx_t_1 = __pyx_f_4lxml_5etree_10_Validator__clear_error_log(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3658, __pyx_L1_error)
+ __pyx_t_1 = __pyx_f_4lxml_5etree_10_Validator__clear_error_log(__pyx_v_self, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3661, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
return __pyx_r;
}
-/* "lxml/etree.pyx":3662
+/* "lxml/etree.pyx":3665
*
* @property
* def error_log(self): # <<<<<<<<<<<<<<
int __pyx_clineno = 0;
__Pyx_RefNannySetupContext("__get__", 0);
- /* "lxml/etree.pyx":3664
+ /* "lxml/etree.pyx":3667
* def error_log(self):
* """The log of validation errors and warnings."""
* assert self._error_log is not None, "XPath evaluator not initialised" # <<<<<<<<<<<<<<
*
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
__pyx_t_1 = (((PyObject *)__pyx_v_self->_error_log) != Py_None);
if (unlikely(!(__pyx_t_1 != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_XPath_evaluator_not_initialised);
- __PYX_ERR(0, 3664, __pyx_L1_error)
+ __PYX_ERR(0, 3667, __pyx_L1_error)
}
}
#endif
- /* "lxml/etree.pyx":3665
+ /* "lxml/etree.pyx":3668
* """The log of validation errors and warnings."""
* assert self._error_log is not None, "XPath evaluator not initialised"
* return self._error_log.copy() # <<<<<<<<<<<<<<
* include "dtd.pxi" # DTD
*/
__Pyx_XDECREF(__pyx_r);
- __pyx_t_2 = ((struct __pyx_vtabstruct_4lxml_5etree__ErrorLog *)__pyx_v_self->_error_log->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.copy(((struct __pyx_obj_4lxml_5etree__BaseErrorLog *)__pyx_v_self->_error_log), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3665, __pyx_L1_error)
+ __pyx_t_2 = ((struct __pyx_vtabstruct_4lxml_5etree__ErrorLog *)__pyx_v_self->_error_log->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.copy(((struct __pyx_obj_4lxml_5etree__BaseErrorLog *)__pyx_v_self->_error_log), 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3668, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2;
__pyx_t_2 = 0;
goto __pyx_L0;
- /* "lxml/etree.pyx":3662
+ /* "lxml/etree.pyx":3665
*
* @property
* def error_log(self): # <<<<<<<<<<<<<<
*
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_c_node != NULL) != 0))) {
__pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_builtin_id, __pyx_v_node); if (unlikely(!__pyx_t_1)) __PYX_ERR(20, 18, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
* root_node = _rootNodeOrRaise(etree)
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_self->_c_dtd != NULL) != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_DTD_not_initialised);
__PYX_ERR(20, 368, __pyx_L1_error)
* root_node = _rootNodeOrRaise(etree)
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_self->_c_schema != NULL) != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_RelaxNG_instance_not_initialised);
__PYX_ERR(21, 122, __pyx_L1_error)
* root_node = _rootNodeOrRaise(etree)
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_self->_c_schema != NULL) != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_Schema_instance_not_initialised);
__PYX_ERR(22, 114, __pyx_L1_error)
* self._add_default_attributes)
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
__pyx_t_1 = (((PyObject *)__pyx_v_self->_schema) != Py_None);
if (unlikely(!(__pyx_t_1 != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_ParserSchemaValidationContext_n);
* root_node = _rootNodeOrRaise(etree)
*/
#ifndef CYTHON_WITHOUT_ASSERTIONS
- if (unlikely(!Py_OptimizeFlag)) {
+ if (unlikely(__pyx_assertions_enabled())) {
if (unlikely(!((__pyx_v_self->_c_schema != NULL) != 0))) {
PyErr_SetObject(PyExc_AssertionError, __pyx_kp_s_Schematron_instance_not_initiali);
__PYX_ERR(23, 140, __pyx_L1_error)
static void __pyx_tp_dealloc_4lxml_5etree_Error(PyObject *o) {
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree__ExceptionContext(PyObject *o) {
struct __pyx_obj_4lxml_5etree__ExceptionContext *p = (struct __pyx_obj_4lxml_5etree__ExceptionContext *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree__BaseErrorLog(PyObject *o) {
struct __pyx_obj_4lxml_5etree__BaseErrorLog *p = (struct __pyx_obj_4lxml_5etree__BaseErrorLog *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree__ListErrorLog(PyObject *o) {
struct __pyx_obj_4lxml_5etree__ListErrorLog *p = (struct __pyx_obj_4lxml_5etree__ListErrorLog *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree__ErrorLog(PyObject *o) {
struct __pyx_obj_4lxml_5etree__ErrorLog *p = (struct __pyx_obj_4lxml_5etree__ErrorLog *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_PyErrorLog(PyObject *o) {
struct __pyx_obj_4lxml_5etree_PyErrorLog *p = (struct __pyx_obj_4lxml_5etree_PyErrorLog *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_DocInfo(PyObject *o) {
struct __pyx_obj_4lxml_5etree_DocInfo *p = (struct __pyx_obj_4lxml_5etree_DocInfo *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree__Element(PyObject *o) {
struct LxmlElement *p = (struct LxmlElement *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_QName(PyObject *o) {
struct __pyx_obj_4lxml_5etree_QName *p = (struct __pyx_obj_4lxml_5etree_QName *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree__ElementTree(PyObject *o) {
struct LxmlElementTree *p = (struct LxmlElementTree *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree__ElementTagMatcher(PyObject *o) {
struct LxmlElementTagMatcher *p = (struct LxmlElementTagMatcher *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree__ElementIterator(PyObject *o) {
struct LxmlElementIterator *p = (struct LxmlElementIterator *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree__ElementMatchIterator(PyObject *o) {
struct __pyx_obj_4lxml_5etree__ElementMatchIterator *p = (struct __pyx_obj_4lxml_5etree__ElementMatchIterator *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_ElementDepthFirstIterator(PyObject *o) {
struct __pyx_obj_4lxml_5etree_ElementDepthFirstIterator *p = (struct __pyx_obj_4lxml_5etree_ElementDepthFirstIterator *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_ElementTextIterator(PyObject *o) {
struct __pyx_obj_4lxml_5etree_ElementTextIterator *p = (struct __pyx_obj_4lxml_5etree_ElementTextIterator *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_CDATA(PyObject *o) {
struct __pyx_obj_4lxml_5etree_CDATA *p = (struct __pyx_obj_4lxml_5etree_CDATA *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree__ReadOnlyProxy(PyObject *o) {
struct __pyx_obj_4lxml_5etree__ReadOnlyProxy *p = (struct __pyx_obj_4lxml_5etree__ReadOnlyProxy *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree__OpaqueNodeWrapper(PyObject *o) {
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_ElementClassLookup(PyObject *o) {
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_FallbackElementClassLookup(PyObject *o) {
struct LxmlFallbackElementClassLookup *p = (struct LxmlFallbackElementClassLookup *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
PyObject_GC_UnTrack(o);
Py_CLEAR(p->fallback);
- #if CYTHON_USE_TYPE_SLOTS
- if (PyType_IS_GC(Py_TYPE(o)->tp_base))
- #endif
- PyObject_GC_Track(o);
+ if (PyType_IS_GC(__pyx_ptype_4lxml_5etree_ElementClassLookup)) PyObject_GC_Track(o);
__pyx_tp_dealloc_4lxml_5etree_ElementClassLookup(o);
}
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_ElementDefaultClassLookup(PyObject *o) {
struct __pyx_obj_4lxml_5etree_ElementDefaultClassLookup *p = (struct __pyx_obj_4lxml_5etree_ElementDefaultClassLookup *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
Py_CLEAR(p->comment_class);
Py_CLEAR(p->pi_class);
Py_CLEAR(p->entity_class);
- #if CYTHON_USE_TYPE_SLOTS
- if (PyType_IS_GC(Py_TYPE(o)->tp_base))
- #endif
- PyObject_GC_Track(o);
+ if (PyType_IS_GC(__pyx_ptype_4lxml_5etree_ElementClassLookup)) PyObject_GC_Track(o);
__pyx_tp_dealloc_4lxml_5etree_ElementClassLookup(o);
}
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_AttributeBasedElementClassLookup(PyObject *o) {
struct __pyx_obj_4lxml_5etree_AttributeBasedElementClassLookup *p = (struct __pyx_obj_4lxml_5etree_AttributeBasedElementClassLookup *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree__NamespaceRegistry(PyObject *o) {
struct __pyx_obj_4lxml_5etree__NamespaceRegistry *p = (struct __pyx_obj_4lxml_5etree__NamespaceRegistry *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_ElementNamespaceClassLookup(PyObject *o) {
struct __pyx_obj_4lxml_5etree_ElementNamespaceClassLookup *p = (struct __pyx_obj_4lxml_5etree_ElementNamespaceClassLookup *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_Resolver(PyObject *o) {
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree__ResolverContext(PyObject *o) {
struct __pyx_obj_4lxml_5etree__ResolverContext *p = (struct __pyx_obj_4lxml_5etree__ResolverContext *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree__ParserContext(PyObject *o) {
struct __pyx_obj_4lxml_5etree__ParserContext *p = (struct __pyx_obj_4lxml_5etree__ParserContext *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree__BaseParser(PyObject *o) {
struct __pyx_obj_4lxml_5etree__BaseParser *p = (struct __pyx_obj_4lxml_5etree__BaseParser *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree__SaxParserTarget(PyObject *o) {
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree__SaxParserContext(PyObject *o) {
struct __pyx_obj_4lxml_5etree__SaxParserContext *p = (struct __pyx_obj_4lxml_5etree__SaxParserContext *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_TreeBuilder(PyObject *o) {
struct __pyx_obj_4lxml_5etree_TreeBuilder *p = (struct __pyx_obj_4lxml_5etree_TreeBuilder *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
Py_CLEAR(p->_element_stack);
Py_CLEAR(p->_element_stack_pop);
Py_CLEAR(p->_last);
- #if CYTHON_USE_TYPE_SLOTS
- if (PyType_IS_GC(Py_TYPE(o)->tp_base))
- #endif
- PyObject_GC_Track(o);
+ if (PyType_IS_GC(__pyx_ptype_4lxml_5etree__SaxParserTarget)) PyObject_GC_Track(o);
__pyx_tp_dealloc_4lxml_5etree__SaxParserTarget(o);
}
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
Py_CLEAR(p->_target_doctype);
Py_CLEAR(p->_target_pi);
Py_CLEAR(p->_target_comment);
- #if CYTHON_USE_TYPE_SLOTS
- if (PyType_IS_GC(Py_TYPE(o)->tp_base))
- #endif
- PyObject_GC_Track(o);
+ if (PyType_IS_GC(__pyx_ptype_4lxml_5etree__SaxParserTarget)) PyObject_GC_Track(o);
__pyx_tp_dealloc_4lxml_5etree__SaxParserTarget(o);
}
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_C14NWriterTarget(PyObject *o) {
struct __pyx_obj_4lxml_5etree_C14NWriterTarget *p = (struct __pyx_obj_4lxml_5etree_C14NWriterTarget *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_xmlfile(PyObject *o) {
struct __pyx_obj_4lxml_5etree_xmlfile *p = (struct __pyx_obj_4lxml_5etree_xmlfile *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_iterparse(PyObject *o) {
struct __pyx_obj_4lxml_5etree_iterparse *p = (struct __pyx_obj_4lxml_5etree_iterparse *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_iterwalk(PyObject *o) {
struct __pyx_obj_4lxml_5etree_iterwalk *p = (struct __pyx_obj_4lxml_5etree_iterwalk *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree__IDDict(PyObject *o) {
struct __pyx_obj_4lxml_5etree__IDDict *p = (struct __pyx_obj_4lxml_5etree__IDDict *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_XInclude(PyObject *o) {
struct __pyx_obj_4lxml_5etree_XInclude *p = (struct __pyx_obj_4lxml_5etree_XInclude *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree__BaseContext(PyObject *o) {
struct __pyx_obj_4lxml_5etree__BaseContext *p = (struct __pyx_obj_4lxml_5etree__BaseContext *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
PyObject_GC_UnTrack(o);
Py_CLEAR(p->_parent);
Py_CLEAR(p->attrname);
- #if CYTHON_USE_TYPE_SLOTS
- if (PyType_IS_GC(Py_TYPE(o)->tp_base))
- #endif
- PyObject_GC_Track(o);
+ if (PyType_IS_GC((&PyUnicode_Type))) PyObject_GC_Track(o);
(&PyUnicode_Type)->tp_dealloc(o);
}
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree__XPathEvaluatorBase(PyObject *o) {
struct __pyx_obj_4lxml_5etree__XPathEvaluatorBase *p = (struct __pyx_obj_4lxml_5etree__XPathEvaluatorBase *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_XPathElementEvaluator(PyObject *o) {
struct __pyx_obj_4lxml_5etree_XPathElementEvaluator *p = (struct __pyx_obj_4lxml_5etree_XPathElementEvaluator *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_XPath(PyObject *o) {
struct __pyx_obj_4lxml_5etree_XPath *p = (struct __pyx_obj_4lxml_5etree_XPath *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_XSLTAccessControl(PyObject *o) {
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_XSLT(PyObject *o) {
struct __pyx_obj_4lxml_5etree_XSLT *p = (struct __pyx_obj_4lxml_5etree_XSLT *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
0, /*tp_setattro*/
0, /*tp_as_buffer*/
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
- "XSLT(self, xslt_input, extensions=None, regexp=True, access_control=None)\n\n Turn an XSL document into an XSLT object.\n\n Calling this object on a tree or Element will execute the XSLT::\n\n transform = etree.XSLT(xsl_tree)\n result = transform(xml_tree)\n\n Keyword arguments of the constructor:\n\n - extensions: a dict mapping ``(namespace, name)`` pairs to\n extension functions or extension elements\n - regexp: enable exslt regular expression support in XPath\n (default: True)\n - access_control: access restrictions for network or file\n system (see `XSLTAccessControl`)\n\n Keyword arguments of the XSLT call:\n\n - profile_run: enable XSLT profiling (default: False)\n\n Other keyword arguments of the call are passed to the stylesheet\n as parameters.\n ", /*tp_doc*/
+ "XSLT(self, xslt_input, extensions=None, regexp=True, access_control=None)\n\n Turn an XSL document into an XSLT object.\n\n Calling this object on a tree or Element will execute the XSLT::\n\n transform = etree.XSLT(xsl_tree)\n result = transform(xml_tree)\n\n Keyword arguments of the constructor:\n\n - extensions: a dict mapping ``(namespace, name)`` pairs to\n extension functions or extension elements\n - regexp: enable exslt regular expression support in XPath\n (default: True)\n - access_control: access restrictions for network or file\n system (see `XSLTAccessControl`)\n\n Keyword arguments of the XSLT call:\n\n - profile_run: enable XSLT profiling and make the profile available\n as XML document in ``result.xslt_profile`` (default: False)\n\n Other keyword arguments of the call are passed to the stylesheet\n as parameters.\n ", /*tp_doc*/
__pyx_tp_traverse_4lxml_5etree_XSLT, /*tp_traverse*/
0, /*tp_clear*/
0, /*tp_richcompare*/
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_XSLTExtension(PyObject *o) {
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !__Pyx_PyObject_GC_IsFinalized(o))) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree__Validator(PyObject *o) {
struct __pyx_obj_4lxml_5etree__Validator *p = (struct __pyx_obj_4lxml_5etree__Validator *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_DTD(PyObject *o) {
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_RelaxNG(PyObject *o) {
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_XMLSchema(PyObject *o) {
struct __pyx_obj_4lxml_5etree_XMLSchema *p = (struct __pyx_obj_4lxml_5etree_XMLSchema *)o;
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
static void __pyx_tp_dealloc_4lxml_5etree_Schematron(PyObject *o) {
#if CYTHON_USE_TP_FINALIZE
- if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
+ if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !__Pyx_PyObject_GC_IsFinalized(o)) {
if (PyObject_CallFinalizerFromDealloc(o)) return;
}
#endif
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0, /*tp_print*/
#endif
- #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+ #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0, /*tp_pypy_flags*/
#endif
};
{&__pyx_n_s_XMLSyntaxError, __pyx_k_XMLSyntaxError, sizeof(__pyx_k_XMLSyntaxError), 0, 0, 1, 1},
{&__pyx_n_s_XMLTreeBuilder, __pyx_k_XMLTreeBuilder, sizeof(__pyx_k_XMLTreeBuilder), 0, 0, 1, 1},
{&__pyx_kp_s_XML_declaration_already_written, __pyx_k_XML_declaration_already_written, sizeof(__pyx_k_XML_declaration_already_written), 0, 0, 1, 0},
- {&__pyx_kp_u_XML_line_3208, __pyx_k_XML_line_3208, sizeof(__pyx_k_XML_line_3208), 0, 1, 0, 0},
+ {&__pyx_kp_u_XML_line_3211, __pyx_k_XML_line_3211, sizeof(__pyx_k_XML_line_3211), 0, 1, 0, 0},
{&__pyx_kp_u_XML_text_parser_None_base_url_No, __pyx_k_XML_text_parser_None_base_url_No, sizeof(__pyx_k_XML_text_parser_None_base_url_No), 0, 1, 0, 0},
{&__pyx_n_u_XPATH_LOCATIONSET, __pyx_k_XPATH_LOCATIONSET, sizeof(__pyx_k_XPATH_LOCATIONSET), 0, 1, 0, 1},
{&__pyx_n_u_XPATH_POINT, __pyx_k_XPATH_POINT, sizeof(__pyx_k_XPATH_POINT), 0, 1, 0, 1},
{&__pyx_n_s_recover, __pyx_k_recover, sizeof(__pyx_k_recover), 0, 0, 1, 1},
{&__pyx_kp_u_reference_to_non_existing_embedd, __pyx_k_reference_to_non_existing_embedd, sizeof(__pyx_k_reference_to_non_existing_embedd), 0, 1, 0, 0},
{&__pyx_n_s_regexp, __pyx_k_regexp, sizeof(__pyx_k_regexp), 0, 0, 1, 1},
+ {&__pyx_n_s_register, __pyx_k_register, sizeof(__pyx_k_register), 0, 0, 1, 1},
{&__pyx_n_s_register_namespace, __pyx_k_register_namespace, sizeof(__pyx_k_register_namespace), 0, 0, 1, 1},
{&__pyx_n_s_register_namespaces, __pyx_k_register_namespaces, sizeof(__pyx_k_register_namespaces), 0, 0, 1, 1},
{&__pyx_n_s_registry, __pyx_k_registry, sizeof(__pyx_k_registry), 0, 0, 1, 1},
{0, 0, 0, 0, 0, 0, 0}
};
static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) {
- __pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError); if (!__pyx_builtin_ImportError) __PYX_ERR(0, 92, __pyx_L1_error)
- __pyx_builtin_SyntaxError = __Pyx_GetBuiltinName(__pyx_n_s_SyntaxError); if (!__pyx_builtin_SyntaxError) __PYX_ERR(0, 230, __pyx_L1_error)
+ __pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError); if (!__pyx_builtin_ImportError) __PYX_ERR(0, 93, __pyx_L1_error)
+ __pyx_builtin_SyntaxError = __Pyx_GetBuiltinName(__pyx_n_s_SyntaxError); if (!__pyx_builtin_SyntaxError) __PYX_ERR(0, 231, __pyx_L1_error)
__pyx_builtin_object = __Pyx_GetBuiltinName(__pyx_n_s_object); if (!__pyx_builtin_object) __PYX_ERR(1, 1586, __pyx_L1_error)
__pyx_builtin_property = __Pyx_GetBuiltinName(__pyx_n_s_property); if (!__pyx_builtin_property) __PYX_ERR(2, 18, __pyx_L1_error)
__pyx_builtin_AssertionError = __Pyx_GetBuiltinName(__pyx_n_s_AssertionError); if (!__pyx_builtin_AssertionError) __PYX_ERR(3, 3, __pyx_L1_error)
- __pyx_builtin_staticmethod = __Pyx_GetBuiltinName(__pyx_n_s_staticmethod); if (!__pyx_builtin_staticmethod) __PYX_ERR(4, 437, __pyx_L1_error)
- __pyx_builtin_KeyError = __Pyx_GetBuiltinName(__pyx_n_s_KeyError); if (!__pyx_builtin_KeyError) __PYX_ERR(0, 97, __pyx_L1_error)
- __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) __PYX_ERR(0, 197, __pyx_L1_error)
- __pyx_builtin_super = __Pyx_GetBuiltinName(__pyx_n_s_super); if (!__pyx_builtin_super) __PYX_ERR(0, 220, __pyx_L1_error)
- __pyx_builtin_BaseException = __Pyx_GetBuiltinName(__pyx_n_s_BaseException); if (!__pyx_builtin_BaseException) __PYX_ERR(0, 313, __pyx_L1_error)
+ __pyx_builtin_staticmethod = __Pyx_GetBuiltinName(__pyx_n_s_staticmethod); if (!__pyx_builtin_staticmethod) __PYX_ERR(4, 438, __pyx_L1_error)
+ __pyx_builtin_KeyError = __Pyx_GetBuiltinName(__pyx_n_s_KeyError); if (!__pyx_builtin_KeyError) __PYX_ERR(0, 98, __pyx_L1_error)
+ __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) __PYX_ERR(0, 198, __pyx_L1_error)
+ __pyx_builtin_super = __Pyx_GetBuiltinName(__pyx_n_s_super); if (!__pyx_builtin_super) __PYX_ERR(0, 221, __pyx_L1_error)
+ __pyx_builtin_BaseException = __Pyx_GetBuiltinName(__pyx_n_s_BaseException); if (!__pyx_builtin_BaseException) __PYX_ERR(0, 314, __pyx_L1_error)
__pyx_builtin_MemoryError = __Pyx_GetBuiltinName(__pyx_n_s_MemoryError); if (!__pyx_builtin_MemoryError) __PYX_ERR(5, 238, __pyx_L1_error)
__pyx_builtin_id = __Pyx_GetBuiltinName(__pyx_n_s_id); if (!__pyx_builtin_id) __PYX_ERR(1, 19, __pyx_L1_error)
__pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError); if (!__pyx_builtin_TypeError) __PYX_ERR(1, 41, __pyx_L1_error)
__pyx_builtin_UnicodeEncodeError = __Pyx_GetBuiltinName(__pyx_n_s_UnicodeEncodeError); if (!__pyx_builtin_UnicodeEncodeError) __PYX_ERR(1, 1618, __pyx_L1_error)
__pyx_builtin_UnicodeDecodeError = __Pyx_GetBuiltinName(__pyx_n_s_UnicodeDecodeError); if (!__pyx_builtin_UnicodeDecodeError) __PYX_ERR(1, 1636, __pyx_L1_error)
__pyx_builtin_enumerate = __Pyx_GetBuiltinName(__pyx_n_s_enumerate); if (!__pyx_builtin_enumerate) __PYX_ERR(6, 315, __pyx_L1_error)
- __pyx_builtin_IndexError = __Pyx_GetBuiltinName(__pyx_n_s_IndexError); if (!__pyx_builtin_IndexError) __PYX_ERR(0, 762, __pyx_L1_error)
- __pyx_builtin_FutureWarning = __Pyx_GetBuiltinName(__pyx_n_s_FutureWarning); if (!__pyx_builtin_FutureWarning) __PYX_ERR(0, 1195, __pyx_L1_error)
- __pyx_builtin_NotImplemented = __Pyx_GetBuiltinName(__pyx_n_s_NotImplemented); if (!__pyx_builtin_NotImplemented) __PYX_ERR(0, 1867, __pyx_L1_error)
- __pyx_builtin_DeprecationWarning = __Pyx_GetBuiltinName(__pyx_n_s_DeprecationWarning); if (!__pyx_builtin_DeprecationWarning) __PYX_ERR(0, 2071, __pyx_L1_error)
- __pyx_builtin_StopIteration = __Pyx_GetBuiltinName(__pyx_n_s_StopIteration); if (!__pyx_builtin_StopIteration) __PYX_ERR(0, 2587, __pyx_L1_error)
+ __pyx_builtin_IndexError = __Pyx_GetBuiltinName(__pyx_n_s_IndexError); if (!__pyx_builtin_IndexError) __PYX_ERR(0, 763, __pyx_L1_error)
+ __pyx_builtin_FutureWarning = __Pyx_GetBuiltinName(__pyx_n_s_FutureWarning); if (!__pyx_builtin_FutureWarning) __PYX_ERR(0, 1196, __pyx_L1_error)
+ __pyx_builtin_NotImplemented = __Pyx_GetBuiltinName(__pyx_n_s_NotImplemented); if (!__pyx_builtin_NotImplemented) __PYX_ERR(0, 1868, __pyx_L1_error)
+ __pyx_builtin_DeprecationWarning = __Pyx_GetBuiltinName(__pyx_n_s_DeprecationWarning); if (!__pyx_builtin_DeprecationWarning) __PYX_ERR(0, 2072, __pyx_L1_error)
+ __pyx_builtin_StopIteration = __Pyx_GetBuiltinName(__pyx_n_s_StopIteration); if (!__pyx_builtin_StopIteration) __PYX_ERR(0, 2590, __pyx_L1_error)
__pyx_builtin_ReferenceError = __Pyx_GetBuiltinName(__pyx_n_s_ReferenceError); if (!__pyx_builtin_ReferenceError) __PYX_ERR(7, 18, __pyx_L1_error)
__pyx_builtin_AttributeError = __Pyx_GetBuiltinName(__pyx_n_s_AttributeError); if (!__pyx_builtin_AttributeError) __PYX_ERR(8, 52, __pyx_L1_error)
- __pyx_builtin_IOError = __Pyx_GetBuiltinName(__pyx_n_s_IOError); if (!__pyx_builtin_IOError) __PYX_ERR(2, 652, __pyx_L1_error)
- __pyx_builtin_LookupError = __Pyx_GetBuiltinName(__pyx_n_s_LookupError); if (!__pyx_builtin_LookupError) __PYX_ERR(2, 837, __pyx_L1_error)
+ __pyx_builtin_IOError = __Pyx_GetBuiltinName(__pyx_n_s_IOError); if (!__pyx_builtin_IOError) __PYX_ERR(2, 655, __pyx_L1_error)
+ __pyx_builtin_LookupError = __Pyx_GetBuiltinName(__pyx_n_s_LookupError); if (!__pyx_builtin_LookupError) __PYX_ERR(2, 840, __pyx_L1_error)
__pyx_builtin_reversed = __Pyx_GetBuiltinName(__pyx_n_s_reversed); if (!__pyx_builtin_reversed) __PYX_ERR(3, 540, __pyx_L1_error)
__pyx_builtin_sorted = __Pyx_GetBuiltinName(__pyx_n_s_sorted); if (!__pyx_builtin_sorted) __PYX_ERR(9, 1161, __pyx_L1_error)
__pyx_builtin_NotImplementedError = __Pyx_GetBuiltinName(__pyx_n_s_NotImplementedError); if (!__pyx_builtin_NotImplementedError) __PYX_ERR(10, 632, __pyx_L1_error)
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);
- /* "lxml/etree.pyx":197
+ /* "lxml/etree.pyx":198
* prefix_utf, uri_utf = _utf8(prefix), _utf8(uri)
* if _check_internal_prefix(prefix_utf):
* raise ValueError("Prefix format reserved for internal use") # <<<<<<<<<<<<<<
* _tagValidOrRaise(prefix_utf)
* _uriValidOrRaise(uri_utf)
*/
- __pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_s_Prefix_format_reserved_for_inter); if (unlikely(!__pyx_tuple_)) __PYX_ERR(0, 197, __pyx_L1_error)
+ __pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_s_Prefix_format_reserved_for_inter); if (unlikely(!__pyx_tuple_)) __PYX_ERR(0, 198, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple_);
__Pyx_GIVEREF(__pyx_tuple_);
- /* "lxml/etree.pyx":202
+ /* "lxml/etree.pyx":203
* if (uri_utf == b"http://www.w3.org/XML/1998/namespace" and prefix_utf != b'xml'
* or prefix_utf == b'xml' and uri_utf != b"http://www.w3.org/XML/1998/namespace"):
* raise ValueError("Cannot change the 'xml' prefix of the XML namespace") # <<<<<<<<<<<<<<
* for k, v in list(_DEFAULT_NAMESPACE_PREFIXES.items()):
* if k == uri_utf or v == prefix_utf:
*/
- __pyx_tuple__2 = PyTuple_Pack(1, __pyx_kp_s_Cannot_change_the_xml_prefix_of); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(0, 202, __pyx_L1_error)
+ __pyx_tuple__2 = PyTuple_Pack(1, __pyx_kp_s_Cannot_change_the_xml_prefix_of); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(0, 203, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__2);
__Pyx_GIVEREF(__pyx_tuple__2);
- /* "lxml/etree.pyx":241
+ /* "lxml/etree.pyx":242
* cdef __unpackDottedVersion(version):
* version_list = []
* l = (version.decode("ascii").replace(u'-', u'.').split(u'.') + [0]*4)[:4] # <<<<<<<<<<<<<<
* for item in l:
* try:
*/
- __pyx_tuple__5 = PyTuple_Pack(2, __pyx_kp_u__3, __pyx_kp_u__4); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(0, 241, __pyx_L1_error)
+ __pyx_tuple__5 = PyTuple_Pack(2, __pyx_kp_u__3, __pyx_kp_u__4); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(0, 242, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__5);
__Pyx_GIVEREF(__pyx_tuple__5);
- __pyx_slice__6 = PySlice_New(Py_None, __pyx_int_4, Py_None); if (unlikely(!__pyx_slice__6)) __PYX_ERR(0, 241, __pyx_L1_error)
+ __pyx_slice__6 = PySlice_New(Py_None, __pyx_int_4, Py_None); if (unlikely(!__pyx_slice__6)) __PYX_ERR(0, 242, __pyx_L1_error)
__Pyx_GOTREF(__pyx_slice__6);
__Pyx_GIVEREF(__pyx_slice__6);
- /* "lxml/etree.pyx":247
+ /* "lxml/etree.pyx":248
* except ValueError:
* if item.startswith(u'dev'):
* count = item[3:] # <<<<<<<<<<<<<<
* item = -300
* elif item.startswith(u'alpha'):
*/
- __pyx_slice__7 = PySlice_New(__pyx_int_3, Py_None, Py_None); if (unlikely(!__pyx_slice__7)) __PYX_ERR(0, 247, __pyx_L1_error)
+ __pyx_slice__7 = PySlice_New(__pyx_int_3, Py_None, Py_None); if (unlikely(!__pyx_slice__7)) __PYX_ERR(0, 248, __pyx_L1_error)
__Pyx_GOTREF(__pyx_slice__7);
__Pyx_GIVEREF(__pyx_slice__7);
- /* "lxml/etree.pyx":250
+ /* "lxml/etree.pyx":251
* item = -300
* elif item.startswith(u'alpha'):
* count = item[5:] # <<<<<<<<<<<<<<
* item = -200
* elif item.startswith(u'beta'):
*/
- __pyx_slice__8 = PySlice_New(__pyx_int_5, Py_None, Py_None); if (unlikely(!__pyx_slice__8)) __PYX_ERR(0, 250, __pyx_L1_error)
+ __pyx_slice__8 = PySlice_New(__pyx_int_5, Py_None, Py_None); if (unlikely(!__pyx_slice__8)) __PYX_ERR(0, 251, __pyx_L1_error)
__Pyx_GOTREF(__pyx_slice__8);
__Pyx_GIVEREF(__pyx_slice__8);
- /* "lxml/etree.pyx":253
+ /* "lxml/etree.pyx":254
* item = -200
* elif item.startswith(u'beta'):
* count = item[4:] # <<<<<<<<<<<<<<
* item = -100
* else:
*/
- __pyx_slice__9 = PySlice_New(__pyx_int_4, Py_None, Py_None); if (unlikely(!__pyx_slice__9)) __PYX_ERR(0, 253, __pyx_L1_error)
+ __pyx_slice__9 = PySlice_New(__pyx_int_4, Py_None, Py_None); if (unlikely(!__pyx_slice__9)) __PYX_ERR(0, 254, __pyx_L1_error)
__Pyx_GOTREF(__pyx_slice__9);
__Pyx_GIVEREF(__pyx_slice__9);
__Pyx_GOTREF(__pyx_tuple__20);
__Pyx_GIVEREF(__pyx_tuple__20);
- /* "lxml/etree.pyx":612
+ /* "lxml/etree.pyx":613
* # enclosed in single quotes or quotes.
* if b"'" in bvalue and b'"' in bvalue:
* raise ValueError( # <<<<<<<<<<<<<<
* 'System URL may not contain both single (\') and double quotes (").')
* c_value = tree.xmlStrdup(_xcstr(bvalue))
*/
- __pyx_tuple__24 = PyTuple_Pack(1, __pyx_kp_s_System_URL_may_not_contain_both); if (unlikely(!__pyx_tuple__24)) __PYX_ERR(0, 612, __pyx_L1_error)
+ __pyx_tuple__24 = PyTuple_Pack(1, __pyx_kp_s_System_URL_may_not_contain_both); if (unlikely(!__pyx_tuple__24)) __PYX_ERR(0, 613, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__24);
__Pyx_GIVEREF(__pyx_tuple__24);
- /* "lxml/etree.pyx":1192
+ /* "lxml/etree.pyx":1193
* #u"__nonzero__(self)" # currently fails in Py3.1
* import warnings
* warnings.warn( # <<<<<<<<<<<<<<
* u"The behavior of this method will change in future versions. "
* u"Use specific 'len(elem)' or 'elem is not None' test instead.",
*/
- __pyx_tuple__28 = PyTuple_Pack(2, __pyx_kp_u_The_behavior_of_this_method_will, __pyx_builtin_FutureWarning); if (unlikely(!__pyx_tuple__28)) __PYX_ERR(0, 1192, __pyx_L1_error)
+ __pyx_tuple__28 = PyTuple_Pack(2, __pyx_kp_u_The_behavior_of_this_method_will, __pyx_builtin_FutureWarning); if (unlikely(!__pyx_tuple__28)) __PYX_ERR(0, 1193, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__28);
__Pyx_GIVEREF(__pyx_tuple__28);
- /* "lxml/etree.pyx":2028
+ /* "lxml/etree.pyx":2029
* if method in ('c14n', 'c14n2'):
* if encoding is not None:
* raise ValueError("Cannot specify encoding with C14N") # <<<<<<<<<<<<<<
* if xml_declaration:
* raise ValueError("Cannot enable XML declaration in C14N")
*/
- __pyx_tuple__33 = PyTuple_Pack(1, __pyx_kp_s_Cannot_specify_encoding_with_C14); if (unlikely(!__pyx_tuple__33)) __PYX_ERR(0, 2028, __pyx_L1_error)
+ __pyx_tuple__33 = PyTuple_Pack(1, __pyx_kp_s_Cannot_specify_encoding_with_C14); if (unlikely(!__pyx_tuple__33)) __PYX_ERR(0, 2029, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__33);
__Pyx_GIVEREF(__pyx_tuple__33);
- /* "lxml/etree.pyx":2030
+ /* "lxml/etree.pyx":2031
* raise ValueError("Cannot specify encoding with C14N")
* if xml_declaration:
* raise ValueError("Cannot enable XML declaration in C14N") # <<<<<<<<<<<<<<
*
* if method == 'c14n':
*/
- __pyx_tuple__34 = PyTuple_Pack(1, __pyx_kp_s_Cannot_enable_XML_declaration_in); if (unlikely(!__pyx_tuple__34)) __PYX_ERR(0, 2030, __pyx_L1_error)
+ __pyx_tuple__34 = PyTuple_Pack(1, __pyx_kp_s_Cannot_enable_XML_declaration_in); if (unlikely(!__pyx_tuple__34)) __PYX_ERR(0, 2031, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__34);
__Pyx_GIVEREF(__pyx_tuple__34);
- /* "lxml/etree.pyx":2036
+ /* "lxml/etree.pyx":2037
* compression, inclusive_ns_prefixes)
* else: # c14n2
* with _open_utf8_file(file, compression=compression) as f: # <<<<<<<<<<<<<<
* target = C14NWriterTarget(
* f.write, with_comments=with_comments, strip_text=strip_text)
*/
- __pyx_tuple__35 = PyTuple_Pack(3, Py_None, Py_None, Py_None); if (unlikely(!__pyx_tuple__35)) __PYX_ERR(0, 2036, __pyx_L1_error)
+ __pyx_tuple__35 = PyTuple_Pack(3, Py_None, Py_None, Py_None); if (unlikely(!__pyx_tuple__35)) __PYX_ERR(0, 2037, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__35);
__Pyx_GIVEREF(__pyx_tuple__35);
- /* "lxml/etree.pyx":2043
+ /* "lxml/etree.pyx":2044
*
* if not with_comments:
* raise ValueError("Can only discard comments in C14N serialisation") # <<<<<<<<<<<<<<
* # suppress decl. in default case (purely for ElementTree compatibility)
* if xml_declaration is not None:
*/
- __pyx_tuple__36 = PyTuple_Pack(1, __pyx_kp_s_Can_only_discard_comments_in_C14); if (unlikely(!__pyx_tuple__36)) __PYX_ERR(0, 2043, __pyx_L1_error)
+ __pyx_tuple__36 = PyTuple_Pack(1, __pyx_kp_s_Can_only_discard_comments_in_C14); if (unlikely(!__pyx_tuple__36)) __PYX_ERR(0, 2044, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__36);
__Pyx_GIVEREF(__pyx_tuple__36);
- /* "lxml/etree.pyx":2069
+ /* "lxml/etree.pyx":2070
* if docstring is not None and doctype is None:
* import warnings
* warnings.warn( # <<<<<<<<<<<<<<
* "The 'docstring' option is deprecated. Use 'doctype' instead.",
* DeprecationWarning)
*/
- __pyx_tuple__37 = PyTuple_Pack(2, __pyx_kp_s_The_docstring_option_is_deprecat, __pyx_builtin_DeprecationWarning); if (unlikely(!__pyx_tuple__37)) __PYX_ERR(0, 2069, __pyx_L1_error)
+ __pyx_tuple__37 = PyTuple_Pack(2, __pyx_kp_s_The_docstring_option_is_deprecat, __pyx_builtin_DeprecationWarning); if (unlikely(!__pyx_tuple__37)) __PYX_ERR(0, 2070, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__37);
__Pyx_GIVEREF(__pyx_tuple__37);
- /* "lxml/etree.pyx":2235
+ /* "lxml/etree.pyx":2236
* root = self.getroot()
* if _isString(path):
* if path[:1] == "/": # <<<<<<<<<<<<<<
* path = "." + path
* return root.find(path, namespaces)
*/
- __pyx_slice__41 = PySlice_New(Py_None, __pyx_int_1, Py_None); if (unlikely(!__pyx_slice__41)) __PYX_ERR(0, 2235, __pyx_L1_error)
+ __pyx_slice__41 = PySlice_New(Py_None, __pyx_int_1, Py_None); if (unlikely(!__pyx_slice__41)) __PYX_ERR(0, 2236, __pyx_L1_error)
__Pyx_GOTREF(__pyx_slice__41);
__Pyx_GIVEREF(__pyx_slice__41);
- /* "lxml/etree.pyx":2987
+ /* "lxml/etree.pyx":2990
* _assertValidNode(element)
* if with_tail:
* events = (u"start", u"comment", u"pi", u"end") # <<<<<<<<<<<<<<
* else:
* events = (u"start", u"comment", u"pi")
*/
- __pyx_tuple__44 = PyTuple_Pack(4, __pyx_n_u_start, __pyx_n_u_comment, __pyx_n_u_pi, __pyx_n_u_end); if (unlikely(!__pyx_tuple__44)) __PYX_ERR(0, 2987, __pyx_L1_error)
+ __pyx_tuple__44 = PyTuple_Pack(4, __pyx_n_u_start, __pyx_n_u_comment, __pyx_n_u_pi, __pyx_n_u_end); if (unlikely(!__pyx_tuple__44)) __PYX_ERR(0, 2990, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__44);
__Pyx_GIVEREF(__pyx_tuple__44);
- /* "lxml/etree.pyx":2989
+ /* "lxml/etree.pyx":2992
* events = (u"start", u"comment", u"pi", u"end")
* else:
* events = (u"start", u"comment", u"pi") # <<<<<<<<<<<<<<
* self._start_element = element
* self._events = iterwalk(element, events=events, tag=tag)
*/
- __pyx_tuple__45 = PyTuple_Pack(3, __pyx_n_u_start, __pyx_n_u_comment, __pyx_n_u_pi); if (unlikely(!__pyx_tuple__45)) __PYX_ERR(0, 2989, __pyx_L1_error)
+ __pyx_tuple__45 = PyTuple_Pack(3, __pyx_n_u_start, __pyx_n_u_comment, __pyx_n_u_pi); if (unlikely(!__pyx_tuple__45)) __PYX_ERR(0, 2992, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__45);
__Pyx_GIVEREF(__pyx_tuple__45);
- /* "lxml/etree.pyx":3058
+ /* "lxml/etree.pyx":3061
* text = _utf8(text)
* if b'--' in text or text.endswith(b'-'):
* raise ValueError("Comment may not contain '--' or end with '-'") # <<<<<<<<<<<<<<
*
* c_doc = _newXMLDoc()
*/
- __pyx_tuple__47 = PyTuple_Pack(1, __pyx_kp_s_Comment_may_not_contain_or_end_w); if (unlikely(!__pyx_tuple__47)) __PYX_ERR(0, 3058, __pyx_L1_error)
+ __pyx_tuple__47 = PyTuple_Pack(1, __pyx_kp_s_Comment_may_not_contain_or_end_w); if (unlikely(!__pyx_tuple__47)) __PYX_ERR(0, 3061, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__47);
__Pyx_GIVEREF(__pyx_tuple__47);
- /* "lxml/etree.pyx":3271
+ /* "lxml/etree.pyx":3274
* cdef _Document doc
* if isinstance(strings, (bytes, unicode)):
* raise ValueError("passing a single string into fromstringlist() is not" # <<<<<<<<<<<<<<
* " efficient, use fromstring() instead")
* if parser is None:
*/
- __pyx_tuple__50 = PyTuple_Pack(1, __pyx_kp_s_passing_a_single_string_into_fro); if (unlikely(!__pyx_tuple__50)) __PYX_ERR(0, 3271, __pyx_L1_error)
+ __pyx_tuple__50 = PyTuple_Pack(1, __pyx_kp_s_passing_a_single_string_into_fro); if (unlikely(!__pyx_tuple__50)) __PYX_ERR(0, 3274, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__50);
__Pyx_GIVEREF(__pyx_tuple__50);
- /* "lxml/etree.pyx":3429
+ /* "lxml/etree.pyx":3432
* raise ValueError("Can only discard comments in C14N serialisation")
* if strip_text:
* raise ValueError("Can only strip text in C14N 2.0 serialisation") # <<<<<<<<<<<<<<
* if encoding is unicode or (encoding is not None and encoding.lower() == 'unicode'):
* if xml_declaration:
*/
- __pyx_tuple__52 = PyTuple_Pack(1, __pyx_kp_s_Can_only_strip_text_in_C14N_2_0); if (unlikely(!__pyx_tuple__52)) __PYX_ERR(0, 3429, __pyx_L1_error)
+ __pyx_tuple__52 = PyTuple_Pack(1, __pyx_kp_s_Can_only_strip_text_in_C14N_2_0); if (unlikely(!__pyx_tuple__52)) __PYX_ERR(0, 3432, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__52);
__Pyx_GIVEREF(__pyx_tuple__52);
__Pyx_GOTREF(__pyx_slice__54);
__Pyx_GIVEREF(__pyx_slice__54);
- /* "src/lxml/parser.pxi":1582
+ /* "src/lxml/parser.pxi":1585
* XMLParser.__init__(self, **kwargs)
* if events is None:
* events = ('end',) # <<<<<<<<<<<<<<
* self._setBaseURL(base_url)
* self._collectEvents(events, tag)
*/
- __pyx_tuple__57 = PyTuple_Pack(1, __pyx_n_s_end); if (unlikely(!__pyx_tuple__57)) __PYX_ERR(2, 1582, __pyx_L1_error)
+ __pyx_tuple__57 = PyTuple_Pack(1, __pyx_n_s_end); if (unlikely(!__pyx_tuple__57)) __PYX_ERR(2, 1585, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__57);
__Pyx_GIVEREF(__pyx_tuple__57);
- /* "src/lxml/parser.pxi":1908
+ /* "src/lxml/parser.pxi":1911
* if isinstance(text, unicode):
* if _hasEncodingDeclaration(text):
* raise ValueError( # <<<<<<<<<<<<<<
* u"Unicode strings with encoding declaration are not supported. "
* u"Please use bytes input or XML fragments without declaration.")
*/
- __pyx_tuple__58 = PyTuple_Pack(1, __pyx_kp_u_Unicode_strings_with_encoding_de); if (unlikely(!__pyx_tuple__58)) __PYX_ERR(2, 1908, __pyx_L1_error)
+ __pyx_tuple__58 = PyTuple_Pack(1, __pyx_kp_u_Unicode_strings_with_encoding_de); if (unlikely(!__pyx_tuple__58)) __PYX_ERR(2, 1911, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__58);
__Pyx_GIVEREF(__pyx_tuple__58);
__Pyx_GOTREF(__pyx_slice__98);
__Pyx_GIVEREF(__pyx_slice__98);
- /* "src/lxml/xslt.pxi":468
+ /* "src/lxml/xslt.pxi":469
* """
* if max_depth < 0:
* raise ValueError("cannot set a maximum stylesheet traversal depth < 0") # <<<<<<<<<<<<<<
* xslt.xsltMaxDepth = max_depth
*
*/
- __pyx_tuple__101 = PyTuple_Pack(1, __pyx_kp_s_cannot_set_a_maximum_stylesheet); if (unlikely(!__pyx_tuple__101)) __PYX_ERR(4, 468, __pyx_L1_error)
+ __pyx_tuple__101 = PyTuple_Pack(1, __pyx_kp_s_cannot_set_a_maximum_stylesheet); if (unlikely(!__pyx_tuple__101)) __PYX_ERR(4, 469, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__101);
__Pyx_GIVEREF(__pyx_tuple__101);
- /* "src/lxml/xslt.pxi":889
+ /* "src/lxml/xslt.pxi":890
* global __findStylesheetByID
* if __findStylesheetByID is None:
* __findStylesheetByID = XPath( # <<<<<<<<<<<<<<
* u"//xsl:stylesheet[@xml:id = $id]",
* namespaces={u"xsl" : u"http://www.w3.org/1999/XSL/Transform"})
*/
- __pyx_tuple__102 = PyTuple_Pack(1, __pyx_kp_u_xsl_stylesheet_xml_id_id); if (unlikely(!__pyx_tuple__102)) __PYX_ERR(4, 889, __pyx_L1_error)
+ __pyx_tuple__102 = PyTuple_Pack(1, __pyx_kp_u_xsl_stylesheet_xml_id_id); if (unlikely(!__pyx_tuple__102)) __PYX_ERR(4, 890, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__102);
__Pyx_GIVEREF(__pyx_tuple__102);
__Pyx_GOTREF(__pyx_slice__109);
__Pyx_GIVEREF(__pyx_slice__109);
- /* "lxml/etree.pyx":96
+ /* "lxml/etree.pyx":97
*
* class _ImmutableMapping(MutableMapping):
* def __getitem__(self, key): # <<<<<<<<<<<<<<
* raise KeyError, key
*
*/
- __pyx_tuple__110 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_key); if (unlikely(!__pyx_tuple__110)) __PYX_ERR(0, 96, __pyx_L1_error)
+ __pyx_tuple__110 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_key); if (unlikely(!__pyx_tuple__110)) __PYX_ERR(0, 97, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__110);
__Pyx_GIVEREF(__pyx_tuple__110);
- __pyx_codeobj__111 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__110, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_getitem, 96, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__111)) __PYX_ERR(0, 96, __pyx_L1_error)
+ __pyx_codeobj__111 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__110, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_getitem, 97, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__111)) __PYX_ERR(0, 97, __pyx_L1_error)
- /* "lxml/etree.pyx":99
+ /* "lxml/etree.pyx":100
* raise KeyError, key
*
* def __setitem__(self, key, value): # <<<<<<<<<<<<<<
* raise KeyError, key
*
*/
- __pyx_tuple__112 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_key, __pyx_n_s_value); if (unlikely(!__pyx_tuple__112)) __PYX_ERR(0, 99, __pyx_L1_error)
+ __pyx_tuple__112 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_key, __pyx_n_s_value); if (unlikely(!__pyx_tuple__112)) __PYX_ERR(0, 100, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__112);
__Pyx_GIVEREF(__pyx_tuple__112);
- __pyx_codeobj__113 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__112, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_setitem, 99, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__113)) __PYX_ERR(0, 99, __pyx_L1_error)
+ __pyx_codeobj__113 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__112, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_setitem, 100, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__113)) __PYX_ERR(0, 100, __pyx_L1_error)
- /* "lxml/etree.pyx":102
+ /* "lxml/etree.pyx":103
* raise KeyError, key
*
* def __delitem__(self, key): # <<<<<<<<<<<<<<
* raise KeyError, key
*
*/
- __pyx_tuple__114 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_key); if (unlikely(!__pyx_tuple__114)) __PYX_ERR(0, 102, __pyx_L1_error)
+ __pyx_tuple__114 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_key); if (unlikely(!__pyx_tuple__114)) __PYX_ERR(0, 103, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__114);
__Pyx_GIVEREF(__pyx_tuple__114);
- __pyx_codeobj__115 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__114, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_delitem, 102, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__115)) __PYX_ERR(0, 102, __pyx_L1_error)
+ __pyx_codeobj__115 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__114, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_delitem, 103, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__115)) __PYX_ERR(0, 103, __pyx_L1_error)
- /* "lxml/etree.pyx":105
+ /* "lxml/etree.pyx":106
* raise KeyError, key
*
* def __contains__(self, key): # <<<<<<<<<<<<<<
* return False
*
*/
- __pyx_tuple__116 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_key); if (unlikely(!__pyx_tuple__116)) __PYX_ERR(0, 105, __pyx_L1_error)
+ __pyx_tuple__116 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_key); if (unlikely(!__pyx_tuple__116)) __PYX_ERR(0, 106, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__116);
__Pyx_GIVEREF(__pyx_tuple__116);
- __pyx_codeobj__117 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__116, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_contains, 105, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__117)) __PYX_ERR(0, 105, __pyx_L1_error)
+ __pyx_codeobj__117 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__116, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_contains, 106, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__117)) __PYX_ERR(0, 106, __pyx_L1_error)
- /* "lxml/etree.pyx":108
+ /* "lxml/etree.pyx":109
* return False
*
* def __len__(self): # <<<<<<<<<<<<<<
* return 0
*
*/
- __pyx_tuple__118 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__118)) __PYX_ERR(0, 108, __pyx_L1_error)
+ __pyx_tuple__118 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__118)) __PYX_ERR(0, 109, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__118);
__Pyx_GIVEREF(__pyx_tuple__118);
- __pyx_codeobj__119 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__118, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_len, 108, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__119)) __PYX_ERR(0, 108, __pyx_L1_error)
+ __pyx_codeobj__119 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__118, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_len, 109, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__119)) __PYX_ERR(0, 109, __pyx_L1_error)
- /* "lxml/etree.pyx":111
+ /* "lxml/etree.pyx":112
* return 0
*
* def __iter__(self): # <<<<<<<<<<<<<<
* return ITER_EMPTY
* iterkeys = itervalues = iteritems = __iter__
*/
- __pyx_tuple__120 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__120)) __PYX_ERR(0, 111, __pyx_L1_error)
+ __pyx_tuple__120 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__120)) __PYX_ERR(0, 112, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__120);
__Pyx_GIVEREF(__pyx_tuple__120);
- __pyx_codeobj__121 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__120, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_iter_2, 111, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__121)) __PYX_ERR(0, 111, __pyx_L1_error)
+ __pyx_codeobj__121 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__120, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_iter_2, 112, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__121)) __PYX_ERR(0, 112, __pyx_L1_error)
- /* "lxml/etree.pyx":154
+ /* "lxml/etree.pyx":155
*
* # filename encoding
* cdef bytes _FILENAME_ENCODING = (sys.getfilesystemencoding() or sys.getdefaultencoding() or 'ascii').encode("UTF-8") # <<<<<<<<<<<<<<
* cdef char* _C_FILENAME_ENCODING = _cstr(_FILENAME_ENCODING)
*
*/
- __pyx_tuple__122 = PyTuple_Pack(1, __pyx_kp_s_UTF_8); if (unlikely(!__pyx_tuple__122)) __PYX_ERR(0, 154, __pyx_L1_error)
+ __pyx_tuple__122 = PyTuple_Pack(1, __pyx_kp_s_UTF_8); if (unlikely(!__pyx_tuple__122)) __PYX_ERR(0, 155, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__122);
__Pyx_GIVEREF(__pyx_tuple__122);
- /* "lxml/etree.pyx":187
+ /* "lxml/etree.pyx":188
* _update_default_namespace_prefixes_items()
*
* cdef object _check_internal_prefix = re.compile(b"ns\d+$").match # <<<<<<<<<<<<<<
*
* def register_namespace(prefix, uri):
*/
- __pyx_tuple__123 = PyTuple_Pack(1, __pyx_kp_b_ns_d_2); if (unlikely(!__pyx_tuple__123)) __PYX_ERR(0, 187, __pyx_L1_error)
+ __pyx_tuple__123 = PyTuple_Pack(1, __pyx_kp_b_ns_d_2); if (unlikely(!__pyx_tuple__123)) __PYX_ERR(0, 188, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__123);
__Pyx_GIVEREF(__pyx_tuple__123);
- /* "lxml/etree.pyx":189
+ /* "lxml/etree.pyx":190
* cdef object _check_internal_prefix = re.compile(b"ns\d+$").match
*
* def register_namespace(prefix, uri): # <<<<<<<<<<<<<<
* u"""Registers a namespace prefix that newly created Elements in that
* namespace will use. The registry is global, and any existing
*/
- __pyx_tuple__124 = PyTuple_Pack(6, __pyx_n_s_prefix, __pyx_n_s_uri, __pyx_n_s_prefix_utf, __pyx_n_s_uri_utf, __pyx_n_s_k, __pyx_n_s_v); if (unlikely(!__pyx_tuple__124)) __PYX_ERR(0, 189, __pyx_L1_error)
+ __pyx_tuple__124 = PyTuple_Pack(6, __pyx_n_s_prefix, __pyx_n_s_uri, __pyx_n_s_prefix_utf, __pyx_n_s_uri_utf, __pyx_n_s_k, __pyx_n_s_v); if (unlikely(!__pyx_tuple__124)) __PYX_ERR(0, 190, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__124);
__Pyx_GIVEREF(__pyx_tuple__124);
- __pyx_codeobj__125 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__124, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_register_namespace, 189, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__125)) __PYX_ERR(0, 189, __pyx_L1_error)
+ __pyx_codeobj__125 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__124, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_register_namespace, 190, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__125)) __PYX_ERR(0, 190, __pyx_L1_error)
- /* "lxml/etree.pyx":272
+ /* "lxml/etree.pyx":273
* try:
* _LIBXML_VERSION_INT = int(
* re.match(u'[0-9]+', (<unsigned char*>tree.xmlParserVersion).decode("ascii")).group(0)) # <<<<<<<<<<<<<<
* except Exception:
* print u"Unknown libxml2 version: %s" % (<unsigned char*>tree.xmlParserVersion).decode("latin1")
*/
- __pyx_tuple__126 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__126)) __PYX_ERR(0, 272, __pyx_L1_error)
+ __pyx_tuple__126 = PyTuple_Pack(1, __pyx_int_0); if (unlikely(!__pyx_tuple__126)) __PYX_ERR(0, 273, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__126);
__Pyx_GIVEREF(__pyx_tuple__126);
__Pyx_GOTREF(__pyx_tuple__171);
__Pyx_GIVEREF(__pyx_tuple__171);
- /* "lxml/etree.pyx":523
+ /* "lxml/etree.pyx":524
*
*
* cdef object _find_invalid_public_id_characters = re.compile( # <<<<<<<<<<<<<<
* ur"[^\x20\x0D\x0Aa-zA-Z0-9'()+,./:=?;!*#@$_%-]+").search
*
*/
- __pyx_tuple__172 = PyTuple_Pack(1, __pyx_kp_u_x20_x0D_x0Aa_zA_Z0_9); if (unlikely(!__pyx_tuple__172)) __PYX_ERR(0, 523, __pyx_L1_error)
+ __pyx_tuple__172 = PyTuple_Pack(1, __pyx_kp_u_x20_x0D_x0Aa_zA_Z0_9); if (unlikely(!__pyx_tuple__172)) __PYX_ERR(0, 524, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__172);
__Pyx_GIVEREF(__pyx_tuple__172);
- /* "lxml/etree.pyx":557
+ /* "lxml/etree.pyx":558
* return tree.xmlCreateIntSubset(c_doc, c_name, NULL, NULL)
*
* def clear(self): # <<<<<<<<<<<<<<
* u"""Removes DOCTYPE and internal subset from the document."""
* cdef xmlDoc* c_doc = self._doc._c_doc
*/
- __pyx_tuple__173 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_c_doc, __pyx_n_s_c_dtd); if (unlikely(!__pyx_tuple__173)) __PYX_ERR(0, 557, __pyx_L1_error)
+ __pyx_tuple__173 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_c_doc, __pyx_n_s_c_dtd); if (unlikely(!__pyx_tuple__173)) __PYX_ERR(0, 558, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__173);
__Pyx_GIVEREF(__pyx_tuple__173);
- __pyx_codeobj__174 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__173, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_clear, 557, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__174)) __PYX_ERR(0, 557, __pyx_L1_error)
+ __pyx_codeobj__174 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__173, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_clear, 558, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__174)) __PYX_ERR(0, 558, __pyx_L1_error)
- /* "lxml/etree.pyx":714
+ /* "lxml/etree.pyx":715
* cdef object _tag
*
* def _init(self): # <<<<<<<<<<<<<<
* u"""_init(self)
*
*/
- __pyx_tuple__175 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__175)) __PYX_ERR(0, 714, __pyx_L1_error)
+ __pyx_tuple__175 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__175)) __PYX_ERR(0, 715, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__175);
__Pyx_GIVEREF(__pyx_tuple__175);
- __pyx_codeobj__176 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__175, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_init_2, 714, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__176)) __PYX_ERR(0, 714, __pyx_L1_error)
+ __pyx_codeobj__176 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__175, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_init_2, 715, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__176)) __PYX_ERR(0, 715, __pyx_L1_error)
- /* "lxml/etree.pyx":802
+ /* "lxml/etree.pyx":803
* _removeNode(self._doc, c_node)
*
* def __deepcopy__(self, memo): # <<<<<<<<<<<<<<
* u"__deepcopy__(self, memo)"
* return self.__copy__()
*/
- __pyx_tuple__177 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_memo); if (unlikely(!__pyx_tuple__177)) __PYX_ERR(0, 802, __pyx_L1_error)
+ __pyx_tuple__177 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_memo); if (unlikely(!__pyx_tuple__177)) __PYX_ERR(0, 803, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__177);
__Pyx_GIVEREF(__pyx_tuple__177);
- __pyx_codeobj__178 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__177, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_deepcopy, 802, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__178)) __PYX_ERR(0, 802, __pyx_L1_error)
+ __pyx_codeobj__178 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__177, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_deepcopy, 803, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__178)) __PYX_ERR(0, 803, __pyx_L1_error)
- /* "lxml/etree.pyx":806
+ /* "lxml/etree.pyx":807
* return self.__copy__()
*
* def __copy__(self): # <<<<<<<<<<<<<<
* u"__copy__(self)"
* cdef xmlDoc* c_doc
*/
- __pyx_tuple__179 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_c_doc, __pyx_n_s_c_node, __pyx_n_s_new_doc, __pyx_n_s_root); if (unlikely(!__pyx_tuple__179)) __PYX_ERR(0, 806, __pyx_L1_error)
+ __pyx_tuple__179 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_c_doc, __pyx_n_s_c_node, __pyx_n_s_new_doc, __pyx_n_s_root); if (unlikely(!__pyx_tuple__179)) __PYX_ERR(0, 807, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__179);
__Pyx_GIVEREF(__pyx_tuple__179);
- __pyx_codeobj__180 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__179, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_copy_2, 806, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__180)) __PYX_ERR(0, 806, __pyx_L1_error)
+ __pyx_codeobj__180 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__179, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_copy_2, 807, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__180)) __PYX_ERR(0, 807, __pyx_L1_error)
- /* "lxml/etree.pyx":825
+ /* "lxml/etree.pyx":826
* return _elementFactory(new_doc, c_node)
*
* def set(self, key, value): # <<<<<<<<<<<<<<
* u"""set(self, key, value)
*
*/
- __pyx_tuple__181 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_key, __pyx_n_s_value); if (unlikely(!__pyx_tuple__181)) __PYX_ERR(0, 825, __pyx_L1_error)
+ __pyx_tuple__181 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_key, __pyx_n_s_value); if (unlikely(!__pyx_tuple__181)) __PYX_ERR(0, 826, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__181);
__Pyx_GIVEREF(__pyx_tuple__181);
- __pyx_codeobj__182 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__181, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_set, 825, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__182)) __PYX_ERR(0, 825, __pyx_L1_error)
+ __pyx_codeobj__182 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__181, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_set, 826, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__182)) __PYX_ERR(0, 826, __pyx_L1_error)
- /* "lxml/etree.pyx":835
+ /* "lxml/etree.pyx":836
* _setAttributeValue(self, key, value)
*
* def append(self, _Element element not None): # <<<<<<<<<<<<<<
* u"""append(self, element)
*
*/
- __pyx_tuple__183 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_element); if (unlikely(!__pyx_tuple__183)) __PYX_ERR(0, 835, __pyx_L1_error)
+ __pyx_tuple__183 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_element); if (unlikely(!__pyx_tuple__183)) __PYX_ERR(0, 836, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__183);
__Pyx_GIVEREF(__pyx_tuple__183);
- __pyx_codeobj__184 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__183, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_append, 835, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__184)) __PYX_ERR(0, 835, __pyx_L1_error)
+ __pyx_codeobj__184 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__183, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_append, 836, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__184)) __PYX_ERR(0, 836, __pyx_L1_error)
- /* "lxml/etree.pyx":844
+ /* "lxml/etree.pyx":845
* _appendChild(self, element)
*
* def addnext(self, _Element element not None): # <<<<<<<<<<<<<<
* u"""addnext(self, element)
*
*/
- __pyx_tuple__185 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_element); if (unlikely(!__pyx_tuple__185)) __PYX_ERR(0, 844, __pyx_L1_error)
+ __pyx_tuple__185 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_element); if (unlikely(!__pyx_tuple__185)) __PYX_ERR(0, 845, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__185);
__Pyx_GIVEREF(__pyx_tuple__185);
- __pyx_codeobj__186 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__185, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_addnext, 844, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__186)) __PYX_ERR(0, 844, __pyx_L1_error)
+ __pyx_codeobj__186 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__185, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_addnext, 845, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__186)) __PYX_ERR(0, 845, __pyx_L1_error)
- /* "lxml/etree.pyx":863
+ /* "lxml/etree.pyx":864
* _appendSibling(self, element)
*
* def addprevious(self, _Element element not None): # <<<<<<<<<<<<<<
* u"""addprevious(self, element)
*
*/
- __pyx_tuple__187 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_element); if (unlikely(!__pyx_tuple__187)) __PYX_ERR(0, 863, __pyx_L1_error)
+ __pyx_tuple__187 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_element); if (unlikely(!__pyx_tuple__187)) __PYX_ERR(0, 864, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__187);
__Pyx_GIVEREF(__pyx_tuple__187);
- __pyx_codeobj__188 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__187, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_addprevious, 863, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__188)) __PYX_ERR(0, 863, __pyx_L1_error)
+ __pyx_codeobj__188 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__187, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_addprevious, 864, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__188)) __PYX_ERR(0, 864, __pyx_L1_error)
- /* "lxml/etree.pyx":882
+ /* "lxml/etree.pyx":883
* _prependSibling(self, element)
*
* def extend(self, elements): # <<<<<<<<<<<<<<
* u"""extend(self, elements)
*
*/
- __pyx_tuple__189 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_elements, __pyx_n_s_element); if (unlikely(!__pyx_tuple__189)) __PYX_ERR(0, 882, __pyx_L1_error)
+ __pyx_tuple__189 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_elements, __pyx_n_s_element); if (unlikely(!__pyx_tuple__189)) __PYX_ERR(0, 883, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__189);
__Pyx_GIVEREF(__pyx_tuple__189);
- __pyx_codeobj__190 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__189, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_extend, 882, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__190)) __PYX_ERR(0, 882, __pyx_L1_error)
+ __pyx_codeobj__190 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__189, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_extend, 883, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__190)) __PYX_ERR(0, 883, __pyx_L1_error)
- /* "lxml/etree.pyx":895
+ /* "lxml/etree.pyx":896
* _appendChild(self, element)
*
* def clear(self, bint keep_tail=False): # <<<<<<<<<<<<<<
* u"""clear(self, keep_tail=False)
*
*/
- __pyx_tuple__191 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_keep_tail, __pyx_n_s_c_attr, __pyx_n_s_c_attr_next, __pyx_n_s_c_node, __pyx_n_s_c_node_next); if (unlikely(!__pyx_tuple__191)) __PYX_ERR(0, 895, __pyx_L1_error)
+ __pyx_tuple__191 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_keep_tail, __pyx_n_s_c_attr, __pyx_n_s_c_attr_next, __pyx_n_s_c_node, __pyx_n_s_c_node_next); if (unlikely(!__pyx_tuple__191)) __PYX_ERR(0, 896, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__191);
__Pyx_GIVEREF(__pyx_tuple__191);
- __pyx_codeobj__192 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__191, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_clear, 895, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__192)) __PYX_ERR(0, 895, __pyx_L1_error)
+ __pyx_codeobj__192 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__191, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_clear, 896, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__192)) __PYX_ERR(0, 896, __pyx_L1_error)
- /* "lxml/etree.pyx":927
+ /* "lxml/etree.pyx":928
* c_node = c_node_next
*
* def insert(self, index: int, _Element element not None): # <<<<<<<<<<<<<<
* u"""insert(self, index, element)
*
*/
- __pyx_tuple__193 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_index, __pyx_n_s_element, __pyx_n_s_c_node, __pyx_n_s_c_next, __pyx_n_s_c_source_doc); if (unlikely(!__pyx_tuple__193)) __PYX_ERR(0, 927, __pyx_L1_error)
+ __pyx_tuple__193 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_index, __pyx_n_s_element, __pyx_n_s_c_node, __pyx_n_s_c_next, __pyx_n_s_c_source_doc); if (unlikely(!__pyx_tuple__193)) __PYX_ERR(0, 928, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__193);
__Pyx_GIVEREF(__pyx_tuple__193);
- __pyx_codeobj__194 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__193, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_insert, 927, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__194)) __PYX_ERR(0, 927, __pyx_L1_error)
+ __pyx_codeobj__194 = (PyObject*)__Pyx_PyCode_New(3, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__193, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_insert, 928, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__194)) __PYX_ERR(0, 928, __pyx_L1_error)
- /* "lxml/etree.pyx":947
+ /* "lxml/etree.pyx":948
* moveNodeToDocument(self._doc, c_source_doc, element._c_node)
*
* def remove(self, _Element element not None): # <<<<<<<<<<<<<<
* u"""remove(self, element)
*
*/
- __pyx_tuple__195 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_element, __pyx_n_s_c_node, __pyx_n_s_c_next); if (unlikely(!__pyx_tuple__195)) __PYX_ERR(0, 947, __pyx_L1_error)
+ __pyx_tuple__195 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_element, __pyx_n_s_c_node, __pyx_n_s_c_next); if (unlikely(!__pyx_tuple__195)) __PYX_ERR(0, 948, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__195);
__Pyx_GIVEREF(__pyx_tuple__195);
- __pyx_codeobj__196 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__195, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_remove, 947, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__196)) __PYX_ERR(0, 947, __pyx_L1_error)
+ __pyx_codeobj__196 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__195, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_remove, 948, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__196)) __PYX_ERR(0, 948, __pyx_L1_error)
- /* "lxml/etree.pyx":967
+ /* "lxml/etree.pyx":968
* moveNodeToDocument(self._doc, c_node.doc, c_node)
*
* def replace(self, _Element old_element not None, # <<<<<<<<<<<<<<
* _Element new_element not None):
* u"""replace(self, old_element, new_element)
*/
- __pyx_tuple__197 = PyTuple_Pack(8, __pyx_n_s_self, __pyx_n_s_old_element, __pyx_n_s_new_element, __pyx_n_s_c_old_node, __pyx_n_s_c_old_next, __pyx_n_s_c_new_node, __pyx_n_s_c_new_next, __pyx_n_s_c_source_doc); if (unlikely(!__pyx_tuple__197)) __PYX_ERR(0, 967, __pyx_L1_error)
+ __pyx_tuple__197 = PyTuple_Pack(8, __pyx_n_s_self, __pyx_n_s_old_element, __pyx_n_s_new_element, __pyx_n_s_c_old_node, __pyx_n_s_c_old_next, __pyx_n_s_c_new_node, __pyx_n_s_c_new_next, __pyx_n_s_c_source_doc); if (unlikely(!__pyx_tuple__197)) __PYX_ERR(0, 968, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__197);
__Pyx_GIVEREF(__pyx_tuple__197);
- __pyx_codeobj__198 = (PyObject*)__Pyx_PyCode_New(3, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__197, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_replace, 967, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__198)) __PYX_ERR(0, 967, __pyx_L1_error)
+ __pyx_codeobj__198 = (PyObject*)__Pyx_PyCode_New(3, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__197, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_replace, 968, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__198)) __PYX_ERR(0, 968, __pyx_L1_error)
- /* "lxml/etree.pyx":1214
+ /* "lxml/etree.pyx":1215
* return ElementChildIterator(self)
*
* def __reversed__(self): # <<<<<<<<<<<<<<
* u"__reversed__(self)"
* return ElementChildIterator(self, reversed=True)
*/
- __pyx_tuple__199 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__199)) __PYX_ERR(0, 1214, __pyx_L1_error)
+ __pyx_tuple__199 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__199)) __PYX_ERR(0, 1215, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__199);
__Pyx_GIVEREF(__pyx_tuple__199);
- __pyx_codeobj__200 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__199, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_reversed_2, 1214, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__200)) __PYX_ERR(0, 1214, __pyx_L1_error)
+ __pyx_codeobj__200 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__199, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_reversed_2, 1215, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__200)) __PYX_ERR(0, 1215, __pyx_L1_error)
- /* "lxml/etree.pyx":1218
+ /* "lxml/etree.pyx":1219
* return ElementChildIterator(self, reversed=True)
*
* def index(self, _Element child not None, start: int = None, stop: int = None): # <<<<<<<<<<<<<<
* u"""index(self, child, start=None, stop=None)
*
*/
- __pyx_tuple__201 = PyTuple_Pack(10, __pyx_n_s_self, __pyx_n_s_child, __pyx_n_s_start, __pyx_n_s_stop, __pyx_n_s_k, __pyx_n_s_l, __pyx_n_s_c_start, __pyx_n_s_c_stop, __pyx_n_s_c_child, __pyx_n_s_c_start_node); if (unlikely(!__pyx_tuple__201)) __PYX_ERR(0, 1218, __pyx_L1_error)
+ __pyx_tuple__201 = PyTuple_Pack(10, __pyx_n_s_self, __pyx_n_s_child, __pyx_n_s_start, __pyx_n_s_stop, __pyx_n_s_k, __pyx_n_s_l, __pyx_n_s_c_start, __pyx_n_s_c_stop, __pyx_n_s_c_child, __pyx_n_s_c_start_node); if (unlikely(!__pyx_tuple__201)) __PYX_ERR(0, 1219, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__201);
__Pyx_GIVEREF(__pyx_tuple__201);
- __pyx_codeobj__202 = (PyObject*)__Pyx_PyCode_New(4, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__201, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_index, 1218, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__202)) __PYX_ERR(0, 1218, __pyx_L1_error)
+ __pyx_codeobj__202 = (PyObject*)__Pyx_PyCode_New(4, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__201, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_index, 1219, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__202)) __PYX_ERR(0, 1219, __pyx_L1_error)
- /* "lxml/etree.pyx":1305
+ /* "lxml/etree.pyx":1306
* raise ValueError, u"list.index(x): x not in list"
*
* def get(self, key, default=None): # <<<<<<<<<<<<<<
* u"""get(self, key, default=None)
*
*/
- __pyx_tuple__203 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_key, __pyx_n_s_default); if (unlikely(!__pyx_tuple__203)) __PYX_ERR(0, 1305, __pyx_L1_error)
+ __pyx_tuple__203 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_key, __pyx_n_s_default); if (unlikely(!__pyx_tuple__203)) __PYX_ERR(0, 1306, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__203);
__Pyx_GIVEREF(__pyx_tuple__203);
- __pyx_codeobj__204 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__203, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_get, 1305, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__204)) __PYX_ERR(0, 1305, __pyx_L1_error)
+ __pyx_codeobj__204 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__203, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_get, 1306, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__204)) __PYX_ERR(0, 1306, __pyx_L1_error)
- /* "lxml/etree.pyx":1313
+ /* "lxml/etree.pyx":1314
* return _getAttributeValue(self, key, default)
*
* def keys(self): # <<<<<<<<<<<<<<
* u"""keys(self)
*
*/
- __pyx_tuple__205 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__205)) __PYX_ERR(0, 1313, __pyx_L1_error)
+ __pyx_tuple__205 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__205)) __PYX_ERR(0, 1314, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__205);
__Pyx_GIVEREF(__pyx_tuple__205);
- __pyx_codeobj__206 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__205, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_keys, 1313, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__206)) __PYX_ERR(0, 1313, __pyx_L1_error)
+ __pyx_codeobj__206 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__205, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_keys, 1314, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__206)) __PYX_ERR(0, 1314, __pyx_L1_error)
- /* "lxml/etree.pyx":1322
+ /* "lxml/etree.pyx":1323
* return _collectAttributes(self._c_node, 1)
*
* def values(self): # <<<<<<<<<<<<<<
* u"""values(self)
*
*/
- __pyx_tuple__207 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__207)) __PYX_ERR(0, 1322, __pyx_L1_error)
+ __pyx_tuple__207 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__207)) __PYX_ERR(0, 1323, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__207);
__Pyx_GIVEREF(__pyx_tuple__207);
- __pyx_codeobj__208 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__207, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_values, 1322, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__208)) __PYX_ERR(0, 1322, __pyx_L1_error)
+ __pyx_codeobj__208 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__207, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_values, 1323, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__208)) __PYX_ERR(0, 1323, __pyx_L1_error)
- /* "lxml/etree.pyx":1331
+ /* "lxml/etree.pyx":1332
* return _collectAttributes(self._c_node, 2)
*
* def items(self): # <<<<<<<<<<<<<<
* u"""items(self)
*
*/
- __pyx_tuple__209 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__209)) __PYX_ERR(0, 1331, __pyx_L1_error)
+ __pyx_tuple__209 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__209)) __PYX_ERR(0, 1332, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__209);
__Pyx_GIVEREF(__pyx_tuple__209);
- __pyx_codeobj__210 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__209, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_items, 1331, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__210)) __PYX_ERR(0, 1331, __pyx_L1_error)
+ __pyx_codeobj__210 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__209, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_items, 1332, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__210)) __PYX_ERR(0, 1332, __pyx_L1_error)
- /* "lxml/etree.pyx":1340
+ /* "lxml/etree.pyx":1341
* return _collectAttributes(self._c_node, 3)
*
* def getchildren(self): # <<<<<<<<<<<<<<
* u"""getchildren(self)
*
*/
- __pyx_tuple__211 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__211)) __PYX_ERR(0, 1340, __pyx_L1_error)
+ __pyx_tuple__211 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__211)) __PYX_ERR(0, 1341, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__211);
__Pyx_GIVEREF(__pyx_tuple__211);
- __pyx_codeobj__212 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__211, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_getchildren, 1340, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__212)) __PYX_ERR(0, 1340, __pyx_L1_error)
+ __pyx_codeobj__212 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__211, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_getchildren, 1341, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__212)) __PYX_ERR(0, 1341, __pyx_L1_error)
- /* "lxml/etree.pyx":1353
+ /* "lxml/etree.pyx":1354
* return _collectChildren(self)
*
* def getparent(self): # <<<<<<<<<<<<<<
* u"""getparent(self)
*
*/
- __pyx_tuple__213 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_c_node); if (unlikely(!__pyx_tuple__213)) __PYX_ERR(0, 1353, __pyx_L1_error)
+ __pyx_tuple__213 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_c_node); if (unlikely(!__pyx_tuple__213)) __PYX_ERR(0, 1354, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__213);
__Pyx_GIVEREF(__pyx_tuple__213);
- __pyx_codeobj__214 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__213, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_getparent, 1353, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__214)) __PYX_ERR(0, 1353, __pyx_L1_error)
+ __pyx_codeobj__214 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__213, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_getparent, 1354, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__214)) __PYX_ERR(0, 1354, __pyx_L1_error)
- /* "lxml/etree.pyx":1365
+ /* "lxml/etree.pyx":1366
* return _elementFactory(self._doc, c_node)
*
* def getnext(self): # <<<<<<<<<<<<<<
* u"""getnext(self)
*
*/
- __pyx_tuple__215 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_c_node); if (unlikely(!__pyx_tuple__215)) __PYX_ERR(0, 1365, __pyx_L1_error)
+ __pyx_tuple__215 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_c_node); if (unlikely(!__pyx_tuple__215)) __PYX_ERR(0, 1366, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__215);
__Pyx_GIVEREF(__pyx_tuple__215);
- __pyx_codeobj__216 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__215, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_getnext, 1365, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__216)) __PYX_ERR(0, 1365, __pyx_L1_error)
+ __pyx_codeobj__216 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__215, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_getnext, 1366, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__216)) __PYX_ERR(0, 1366, __pyx_L1_error)
- /* "lxml/etree.pyx":1377
+ /* "lxml/etree.pyx":1378
* return _elementFactory(self._doc, c_node)
*
* def getprevious(self): # <<<<<<<<<<<<<<
* u"""getprevious(self)
*
*/
- __pyx_tuple__217 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_c_node); if (unlikely(!__pyx_tuple__217)) __PYX_ERR(0, 1377, __pyx_L1_error)
+ __pyx_tuple__217 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_c_node); if (unlikely(!__pyx_tuple__217)) __PYX_ERR(0, 1378, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__217);
__Pyx_GIVEREF(__pyx_tuple__217);
- __pyx_codeobj__218 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__217, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_getprevious, 1377, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__218)) __PYX_ERR(0, 1377, __pyx_L1_error)
+ __pyx_codeobj__218 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__217, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_getprevious, 1378, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__218)) __PYX_ERR(0, 1378, __pyx_L1_error)
- /* "lxml/etree.pyx":1389
+ /* "lxml/etree.pyx":1390
* return _elementFactory(self._doc, c_node)
*
* def itersiblings(self, tag=None, *tags, preceding=False): # <<<<<<<<<<<<<<
* u"""itersiblings(self, tag=None, *tags, preceding=False)
*
*/
- __pyx_tuple__219 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_tag, __pyx_n_s_preceding, __pyx_n_s_tags); if (unlikely(!__pyx_tuple__219)) __PYX_ERR(0, 1389, __pyx_L1_error)
+ __pyx_tuple__219 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_tag, __pyx_n_s_preceding, __pyx_n_s_tags); if (unlikely(!__pyx_tuple__219)) __PYX_ERR(0, 1390, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__219);
__Pyx_GIVEREF(__pyx_tuple__219);
- __pyx_codeobj__220 = (PyObject*)__Pyx_PyCode_New(2, 1, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__219, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_itersiblings, 1389, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__220)) __PYX_ERR(0, 1389, __pyx_L1_error)
+ __pyx_codeobj__220 = (PyObject*)__Pyx_PyCode_New(2, 1, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__219, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_itersiblings, 1390, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__220)) __PYX_ERR(0, 1390, __pyx_L1_error)
- /* "lxml/etree.pyx":1412
+ /* "lxml/etree.pyx":1413
* return SiblingsIterator(self, tags, preceding=preceding)
*
* def iterancestors(self, tag=None, *tags): # <<<<<<<<<<<<<<
* u"""iterancestors(self, tag=None, *tags)
*
*/
- __pyx_tuple__221 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_tag, __pyx_n_s_tags); if (unlikely(!__pyx_tuple__221)) __PYX_ERR(0, 1412, __pyx_L1_error)
+ __pyx_tuple__221 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_tag, __pyx_n_s_tags); if (unlikely(!__pyx_tuple__221)) __PYX_ERR(0, 1413, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__221);
__Pyx_GIVEREF(__pyx_tuple__221);
- __pyx_codeobj__222 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__221, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_iterancestors, 1412, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__222)) __PYX_ERR(0, 1412, __pyx_L1_error)
+ __pyx_codeobj__222 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__221, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_iterancestors, 1413, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__222)) __PYX_ERR(0, 1413, __pyx_L1_error)
- /* "lxml/etree.pyx":1426
+ /* "lxml/etree.pyx":1427
* return AncestorsIterator(self, tags)
*
* def iterdescendants(self, tag=None, *tags): # <<<<<<<<<<<<<<
* u"""iterdescendants(self, tag=None, *tags)
*
*/
- __pyx_tuple__223 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_tag, __pyx_n_s_tags); if (unlikely(!__pyx_tuple__223)) __PYX_ERR(0, 1426, __pyx_L1_error)
+ __pyx_tuple__223 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_tag, __pyx_n_s_tags); if (unlikely(!__pyx_tuple__223)) __PYX_ERR(0, 1427, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__223);
__Pyx_GIVEREF(__pyx_tuple__223);
- __pyx_codeobj__224 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__223, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_iterdescendants, 1426, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__224)) __PYX_ERR(0, 1426, __pyx_L1_error)
+ __pyx_codeobj__224 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__223, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_iterdescendants, 1427, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__224)) __PYX_ERR(0, 1427, __pyx_L1_error)
- /* "lxml/etree.pyx":1441
+ /* "lxml/etree.pyx":1442
* return ElementDepthFirstIterator(self, tags, inclusive=False)
*
* def iterchildren(self, tag=None, *tags, reversed=False): # <<<<<<<<<<<<<<
* u"""iterchildren(self, tag=None, *tags, reversed=False)
*
*/
- __pyx_tuple__225 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_tag, __pyx_n_s_reversed, __pyx_n_s_tags); if (unlikely(!__pyx_tuple__225)) __PYX_ERR(0, 1441, __pyx_L1_error)
+ __pyx_tuple__225 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_tag, __pyx_n_s_reversed, __pyx_n_s_tags); if (unlikely(!__pyx_tuple__225)) __PYX_ERR(0, 1442, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__225);
__Pyx_GIVEREF(__pyx_tuple__225);
- __pyx_codeobj__226 = (PyObject*)__Pyx_PyCode_New(2, 1, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__225, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_iterchildren, 1441, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__226)) __PYX_ERR(0, 1441, __pyx_L1_error)
+ __pyx_codeobj__226 = (PyObject*)__Pyx_PyCode_New(2, 1, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__225, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_iterchildren, 1442, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__226)) __PYX_ERR(0, 1442, __pyx_L1_error)
- /* "lxml/etree.pyx":1456
+ /* "lxml/etree.pyx":1457
* return ElementChildIterator(self, tags, reversed=reversed)
*
* def getroottree(self): # <<<<<<<<<<<<<<
* u"""getroottree(self)
*
*/
- __pyx_tuple__227 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__227)) __PYX_ERR(0, 1456, __pyx_L1_error)
+ __pyx_tuple__227 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__227)) __PYX_ERR(0, 1457, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__227);
__Pyx_GIVEREF(__pyx_tuple__227);
- __pyx_codeobj__228 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__227, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_getroottree, 1456, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__228)) __PYX_ERR(0, 1456, __pyx_L1_error)
+ __pyx_codeobj__228 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__227, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_getroottree, 1457, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__228)) __PYX_ERR(0, 1457, __pyx_L1_error)
- /* "lxml/etree.pyx":1468
+ /* "lxml/etree.pyx":1469
* return _elementTreeFactory(self._doc, None)
*
* def getiterator(self, tag=None, *tags): # <<<<<<<<<<<<<<
* u"""getiterator(self, tag=None, *tags)
*
*/
- __pyx_tuple__229 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_tag, __pyx_n_s_tags); if (unlikely(!__pyx_tuple__229)) __PYX_ERR(0, 1468, __pyx_L1_error)
+ __pyx_tuple__229 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_tag, __pyx_n_s_tags); if (unlikely(!__pyx_tuple__229)) __PYX_ERR(0, 1469, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__229);
__Pyx_GIVEREF(__pyx_tuple__229);
- __pyx_codeobj__230 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__229, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_getiterator, 1468, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__230)) __PYX_ERR(0, 1468, __pyx_L1_error)
+ __pyx_codeobj__230 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__229, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_getiterator, 1469, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__230)) __PYX_ERR(0, 1469, __pyx_L1_error)
- /* "lxml/etree.pyx":1490
+ /* "lxml/etree.pyx":1491
* return ElementDepthFirstIterator(self, tags)
*
* def iter(self, tag=None, *tags): # <<<<<<<<<<<<<<
* u"""iter(self, tag=None, *tags)
*
*/
- __pyx_tuple__231 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_tag, __pyx_n_s_tags); if (unlikely(!__pyx_tuple__231)) __PYX_ERR(0, 1490, __pyx_L1_error)
+ __pyx_tuple__231 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_tag, __pyx_n_s_tags); if (unlikely(!__pyx_tuple__231)) __PYX_ERR(0, 1491, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__231);
__Pyx_GIVEREF(__pyx_tuple__231);
- __pyx_codeobj__232 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__231, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_iter, 1490, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__232)) __PYX_ERR(0, 1490, __pyx_L1_error)
+ __pyx_codeobj__232 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__231, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_iter, 1491, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__232)) __PYX_ERR(0, 1491, __pyx_L1_error)
- /* "lxml/etree.pyx":1514
+ /* "lxml/etree.pyx":1515
* return ElementDepthFirstIterator(self, tags)
*
* def itertext(self, tag=None, *tags, with_tail=True): # <<<<<<<<<<<<<<
* u"""itertext(self, tag=None, *tags, with_tail=True)
*
*/
- __pyx_tuple__233 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_tag, __pyx_n_s_with_tail, __pyx_n_s_tags); if (unlikely(!__pyx_tuple__233)) __PYX_ERR(0, 1514, __pyx_L1_error)
+ __pyx_tuple__233 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_tag, __pyx_n_s_with_tail, __pyx_n_s_tags); if (unlikely(!__pyx_tuple__233)) __PYX_ERR(0, 1515, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__233);
__Pyx_GIVEREF(__pyx_tuple__233);
- __pyx_codeobj__234 = (PyObject*)__Pyx_PyCode_New(2, 1, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__233, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_itertext, 1514, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__234)) __PYX_ERR(0, 1514, __pyx_L1_error)
+ __pyx_codeobj__234 = (PyObject*)__Pyx_PyCode_New(2, 1, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__233, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_itertext, 1515, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__234)) __PYX_ERR(0, 1515, __pyx_L1_error)
- /* "lxml/etree.pyx":1529
+ /* "lxml/etree.pyx":1530
* return ElementTextIterator(self, tags, with_tail=with_tail)
*
* def makeelement(self, _tag, attrib=None, nsmap=None, **_extra): # <<<<<<<<<<<<<<
* u"""makeelement(self, _tag, attrib=None, nsmap=None, **_extra)
*
*/
- __pyx_tuple__235 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_tag_2, __pyx_n_s_attrib, __pyx_n_s_nsmap, __pyx_n_s_extra); if (unlikely(!__pyx_tuple__235)) __PYX_ERR(0, 1529, __pyx_L1_error)
+ __pyx_tuple__235 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_tag_2, __pyx_n_s_attrib, __pyx_n_s_nsmap, __pyx_n_s_extra); if (unlikely(!__pyx_tuple__235)) __PYX_ERR(0, 1530, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__235);
__Pyx_GIVEREF(__pyx_tuple__235);
- __pyx_codeobj__236 = (PyObject*)__Pyx_PyCode_New(4, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__235, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_makeelement, 1529, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__236)) __PYX_ERR(0, 1529, __pyx_L1_error)
+ __pyx_codeobj__236 = (PyObject*)__Pyx_PyCode_New(4, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__235, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_makeelement, 1530, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__236)) __PYX_ERR(0, 1530, __pyx_L1_error)
- /* "lxml/etree.pyx":1538
+ /* "lxml/etree.pyx":1539
* attrib, nsmap, _extra)
*
* def find(self, path, namespaces=None): # <<<<<<<<<<<<<<
* u"""find(self, path, namespaces=None)
*
*/
- __pyx_tuple__237 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_path, __pyx_n_s_namespaces); if (unlikely(!__pyx_tuple__237)) __PYX_ERR(0, 1538, __pyx_L1_error)
+ __pyx_tuple__237 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_path, __pyx_n_s_namespaces); if (unlikely(!__pyx_tuple__237)) __PYX_ERR(0, 1539, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__237);
__Pyx_GIVEREF(__pyx_tuple__237);
- __pyx_codeobj__238 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__237, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_find, 1538, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__238)) __PYX_ERR(0, 1538, __pyx_L1_error)
+ __pyx_codeobj__238 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__237, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_find, 1539, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__238)) __PYX_ERR(0, 1539, __pyx_L1_error)
- /* "lxml/etree.pyx":1551
+ /* "lxml/etree.pyx":1552
* return _elementpath.find(self, path, namespaces)
*
* def findtext(self, path, default=None, namespaces=None): # <<<<<<<<<<<<<<
* u"""findtext(self, path, default=None, namespaces=None)
*
*/
- __pyx_tuple__239 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_path, __pyx_n_s_default, __pyx_n_s_namespaces); if (unlikely(!__pyx_tuple__239)) __PYX_ERR(0, 1551, __pyx_L1_error)
+ __pyx_tuple__239 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_path, __pyx_n_s_default, __pyx_n_s_namespaces); if (unlikely(!__pyx_tuple__239)) __PYX_ERR(0, 1552, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__239);
__Pyx_GIVEREF(__pyx_tuple__239);
- __pyx_codeobj__240 = (PyObject*)__Pyx_PyCode_New(4, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__239, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_findtext, 1551, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__240)) __PYX_ERR(0, 1551, __pyx_L1_error)
+ __pyx_codeobj__240 = (PyObject*)__Pyx_PyCode_New(4, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__239, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_findtext, 1552, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__240)) __PYX_ERR(0, 1552, __pyx_L1_error)
- /* "lxml/etree.pyx":1564
+ /* "lxml/etree.pyx":1565
* return _elementpath.findtext(self, path, default, namespaces)
*
* def findall(self, path, namespaces=None): # <<<<<<<<<<<<<<
* u"""findall(self, path, namespaces=None)
*
*/
- __pyx_tuple__241 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_path, __pyx_n_s_namespaces); if (unlikely(!__pyx_tuple__241)) __PYX_ERR(0, 1564, __pyx_L1_error)
+ __pyx_tuple__241 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_path, __pyx_n_s_namespaces); if (unlikely(!__pyx_tuple__241)) __PYX_ERR(0, 1565, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__241);
__Pyx_GIVEREF(__pyx_tuple__241);
- __pyx_codeobj__242 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__241, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_findall, 1564, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__242)) __PYX_ERR(0, 1564, __pyx_L1_error)
+ __pyx_codeobj__242 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__241, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_findall, 1565, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__242)) __PYX_ERR(0, 1565, __pyx_L1_error)
- /* "lxml/etree.pyx":1577
+ /* "lxml/etree.pyx":1578
* return _elementpath.findall(self, path, namespaces)
*
* def iterfind(self, path, namespaces=None): # <<<<<<<<<<<<<<
* u"""iterfind(self, path, namespaces=None)
*
*/
- __pyx_tuple__243 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_path, __pyx_n_s_namespaces); if (unlikely(!__pyx_tuple__243)) __PYX_ERR(0, 1577, __pyx_L1_error)
+ __pyx_tuple__243 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_path, __pyx_n_s_namespaces); if (unlikely(!__pyx_tuple__243)) __PYX_ERR(0, 1578, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__243);
__Pyx_GIVEREF(__pyx_tuple__243);
- __pyx_codeobj__244 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__243, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_iterfind, 1577, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__244)) __PYX_ERR(0, 1577, __pyx_L1_error)
+ __pyx_codeobj__244 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__243, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_iterfind, 1578, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__244)) __PYX_ERR(0, 1578, __pyx_L1_error)
- /* "lxml/etree.pyx":1590
+ /* "lxml/etree.pyx":1591
* return _elementpath.iterfind(self, path, namespaces)
*
* def xpath(self, _path, *, namespaces=None, extensions=None, # <<<<<<<<<<<<<<
* smart_strings=True, **_variables):
* u"""xpath(self, _path, namespaces=None, extensions=None, smart_strings=True, **_variables)
*/
- __pyx_tuple__245 = PyTuple_Pack(7, __pyx_n_s_self, __pyx_n_s_path_2, __pyx_n_s_namespaces, __pyx_n_s_extensions, __pyx_n_s_smart_strings, __pyx_n_s_variables_2, __pyx_n_s_evaluator); if (unlikely(!__pyx_tuple__245)) __PYX_ERR(0, 1590, __pyx_L1_error)
+ __pyx_tuple__245 = PyTuple_Pack(7, __pyx_n_s_self, __pyx_n_s_path_2, __pyx_n_s_namespaces, __pyx_n_s_extensions, __pyx_n_s_smart_strings, __pyx_n_s_variables_2, __pyx_n_s_evaluator); if (unlikely(!__pyx_tuple__245)) __PYX_ERR(0, 1591, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__245);
__Pyx_GIVEREF(__pyx_tuple__245);
- __pyx_codeobj__246 = (PyObject*)__Pyx_PyCode_New(2, 3, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__245, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_xpath, 1590, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__246)) __PYX_ERR(0, 1590, __pyx_L1_error)
+ __pyx_codeobj__246 = (PyObject*)__Pyx_PyCode_New(2, 3, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__245, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_xpath, 1591, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__246)) __PYX_ERR(0, 1591, __pyx_L1_error)
- /* "lxml/etree.pyx":1601
+ /* "lxml/etree.pyx":1602
* return evaluator(_path, **_variables)
*
* def cssselect(self, expr, *, translator='xml'): # <<<<<<<<<<<<<<
* """
* Run the CSS expression on this element and its children,
*/
- __pyx_tuple__247 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_expr, __pyx_n_s_translator, __pyx_n_s_CSSSelector); if (unlikely(!__pyx_tuple__247)) __PYX_ERR(0, 1601, __pyx_L1_error)
+ __pyx_tuple__247 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_expr, __pyx_n_s_translator, __pyx_n_s_CSSSelector); if (unlikely(!__pyx_tuple__247)) __PYX_ERR(0, 1602, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__247);
__Pyx_GIVEREF(__pyx_tuple__247);
- __pyx_codeobj__248 = (PyObject*)__Pyx_PyCode_New(2, 1, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__247, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_cssselect, 1601, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__248)) __PYX_ERR(0, 1601, __pyx_L1_error)
+ __pyx_codeobj__248 = (PyObject*)__Pyx_PyCode_New(2, 1, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__247, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_cssselect, 1602, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__248)) __PYX_ERR(0, 1602, __pyx_L1_error)
- /* "lxml/etree.pyx":1651
+ /* "lxml/etree.pyx":1652
* raise TypeError, u"this element does not have children or attributes"
*
* def set(self, key, value): # <<<<<<<<<<<<<<
* u"set(self, key, value)"
* self._raiseImmutable()
*/
- __pyx_tuple__249 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_key, __pyx_n_s_value); if (unlikely(!__pyx_tuple__249)) __PYX_ERR(0, 1651, __pyx_L1_error)
+ __pyx_tuple__249 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_key, __pyx_n_s_value); if (unlikely(!__pyx_tuple__249)) __PYX_ERR(0, 1652, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__249);
__Pyx_GIVEREF(__pyx_tuple__249);
- __pyx_codeobj__250 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__249, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_set, 1651, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__250)) __PYX_ERR(0, 1651, __pyx_L1_error)
+ __pyx_codeobj__250 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__249, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_set, 1652, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__250)) __PYX_ERR(0, 1652, __pyx_L1_error)
- /* "lxml/etree.pyx":1655
+ /* "lxml/etree.pyx":1656
* self._raiseImmutable()
*
* def append(self, value): # <<<<<<<<<<<<<<
* u"append(self, value)"
* self._raiseImmutable()
*/
- __pyx_tuple__251 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_value); if (unlikely(!__pyx_tuple__251)) __PYX_ERR(0, 1655, __pyx_L1_error)
+ __pyx_tuple__251 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_value); if (unlikely(!__pyx_tuple__251)) __PYX_ERR(0, 1656, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__251);
__Pyx_GIVEREF(__pyx_tuple__251);
- __pyx_codeobj__252 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__251, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_append, 1655, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__252)) __PYX_ERR(0, 1655, __pyx_L1_error)
+ __pyx_codeobj__252 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__251, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_append, 1656, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__252)) __PYX_ERR(0, 1656, __pyx_L1_error)
- /* "lxml/etree.pyx":1659
+ /* "lxml/etree.pyx":1660
* self._raiseImmutable()
*
* def insert(self, index, value): # <<<<<<<<<<<<<<
* u"insert(self, index, value)"
* self._raiseImmutable()
*/
- __pyx_tuple__253 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_index, __pyx_n_s_value); if (unlikely(!__pyx_tuple__253)) __PYX_ERR(0, 1659, __pyx_L1_error)
+ __pyx_tuple__253 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_index, __pyx_n_s_value); if (unlikely(!__pyx_tuple__253)) __PYX_ERR(0, 1660, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__253);
__Pyx_GIVEREF(__pyx_tuple__253);
- __pyx_codeobj__254 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__253, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_insert, 1659, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__254)) __PYX_ERR(0, 1659, __pyx_L1_error)
+ __pyx_codeobj__254 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__253, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_insert, 1660, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__254)) __PYX_ERR(0, 1660, __pyx_L1_error)
- /* "lxml/etree.pyx":1698
+ /* "lxml/etree.pyx":1699
* return 0
*
* def get(self, key, default=None): # <<<<<<<<<<<<<<
* u"get(self, key, default=None)"
* return None
*/
- __pyx_tuple__255 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_key, __pyx_n_s_default); if (unlikely(!__pyx_tuple__255)) __PYX_ERR(0, 1698, __pyx_L1_error)
+ __pyx_tuple__255 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_key, __pyx_n_s_default); if (unlikely(!__pyx_tuple__255)) __PYX_ERR(0, 1699, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__255);
__Pyx_GIVEREF(__pyx_tuple__255);
- __pyx_codeobj__256 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__255, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_get, 1698, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__256)) __PYX_ERR(0, 1698, __pyx_L1_error)
+ __pyx_codeobj__256 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__255, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_get, 1699, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__256)) __PYX_ERR(0, 1699, __pyx_L1_error)
- /* "lxml/etree.pyx":1702
+ /* "lxml/etree.pyx":1703
* return None
*
* def keys(self): # <<<<<<<<<<<<<<
* u"keys(self)"
* return []
*/
- __pyx_tuple__257 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__257)) __PYX_ERR(0, 1702, __pyx_L1_error)
+ __pyx_tuple__257 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__257)) __PYX_ERR(0, 1703, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__257);
__Pyx_GIVEREF(__pyx_tuple__257);
- __pyx_codeobj__258 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__257, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_keys, 1702, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__258)) __PYX_ERR(0, 1702, __pyx_L1_error)
+ __pyx_codeobj__258 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__257, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_keys, 1703, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__258)) __PYX_ERR(0, 1703, __pyx_L1_error)
- /* "lxml/etree.pyx":1706
+ /* "lxml/etree.pyx":1707
* return []
*
* def items(self): # <<<<<<<<<<<<<<
* u"items(self)"
* return []
*/
- __pyx_tuple__259 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__259)) __PYX_ERR(0, 1706, __pyx_L1_error)
+ __pyx_tuple__259 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__259)) __PYX_ERR(0, 1707, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__259);
__Pyx_GIVEREF(__pyx_tuple__259);
- __pyx_codeobj__260 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__259, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_items, 1706, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__260)) __PYX_ERR(0, 1706, __pyx_L1_error)
+ __pyx_codeobj__260 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__259, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_items, 1707, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__260)) __PYX_ERR(0, 1707, __pyx_L1_error)
- /* "lxml/etree.pyx":1710
+ /* "lxml/etree.pyx":1711
* return []
*
* def values(self): # <<<<<<<<<<<<<<
* u"values(self)"
* return []
*/
- __pyx_tuple__261 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__261)) __PYX_ERR(0, 1710, __pyx_L1_error)
+ __pyx_tuple__261 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__261)) __PYX_ERR(0, 1711, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__261);
__Pyx_GIVEREF(__pyx_tuple__261);
- __pyx_codeobj__262 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__261, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_values, 1710, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__262)) __PYX_ERR(0, 1710, __pyx_L1_error)
+ __pyx_codeobj__262 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__261, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_values, 1711, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__262)) __PYX_ERR(0, 1711, __pyx_L1_error)
- /* "lxml/etree.pyx":1747
+ /* "lxml/etree.pyx":1748
* return "<?%s?>" % strrepr(self.target)
*
* def get(self, key, default=None): # <<<<<<<<<<<<<<
* u"""get(self, key, default=None)
*
*/
- __pyx_tuple__263 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_key, __pyx_n_s_default); if (unlikely(!__pyx_tuple__263)) __PYX_ERR(0, 1747, __pyx_L1_error)
+ __pyx_tuple__263 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_key, __pyx_n_s_default); if (unlikely(!__pyx_tuple__263)) __PYX_ERR(0, 1748, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__263);
__Pyx_GIVEREF(__pyx_tuple__263);
- __pyx_codeobj__264 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__263, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_get, 1747, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__264)) __PYX_ERR(0, 1747, __pyx_L1_error)
+ __pyx_codeobj__264 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__263, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_get, 1748, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__264)) __PYX_ERR(0, 1748, __pyx_L1_error)
- /* "lxml/etree.pyx":1891
+ /* "lxml/etree.pyx":1892
* return 0
*
* def parse(self, source, _BaseParser parser=None, *, base_url=None): # <<<<<<<<<<<<<<
* u"""parse(self, source, parser=None, base_url=None)
*
*/
- __pyx_tuple__265 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_source, __pyx_n_s_parser, __pyx_n_s_base_url, __pyx_n_s_doc_2, __pyx_n_s_result_container); if (unlikely(!__pyx_tuple__265)) __PYX_ERR(0, 1891, __pyx_L1_error)
+ __pyx_tuple__265 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_source, __pyx_n_s_parser, __pyx_n_s_base_url, __pyx_n_s_doc_2, __pyx_n_s_result_container); if (unlikely(!__pyx_tuple__265)) __PYX_ERR(0, 1892, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__265);
__Pyx_GIVEREF(__pyx_tuple__265);
- __pyx_codeobj__266 = (PyObject*)__Pyx_PyCode_New(3, 1, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__265, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_parse, 1891, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__266)) __PYX_ERR(0, 1891, __pyx_L1_error)
+ __pyx_codeobj__266 = (PyObject*)__Pyx_PyCode_New(3, 1, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__265, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_parse, 1892, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__266)) __PYX_ERR(0, 1892, __pyx_L1_error)
- /* "lxml/etree.pyx":1907
+ /* "lxml/etree.pyx":1908
* return self._context_node
*
* def _setroot(self, _Element root not None): # <<<<<<<<<<<<<<
* u"""_setroot(self, root)
*
*/
- __pyx_tuple__267 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_root); if (unlikely(!__pyx_tuple__267)) __PYX_ERR(0, 1907, __pyx_L1_error)
+ __pyx_tuple__267 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_root); if (unlikely(!__pyx_tuple__267)) __PYX_ERR(0, 1908, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__267);
__Pyx_GIVEREF(__pyx_tuple__267);
- __pyx_codeobj__268 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__267, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_setroot, 1907, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__268)) __PYX_ERR(0, 1907, __pyx_L1_error)
+ __pyx_codeobj__268 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__267, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_setroot, 1908, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__268)) __PYX_ERR(0, 1908, __pyx_L1_error)
- /* "lxml/etree.pyx":1918
+ /* "lxml/etree.pyx":1919
* self._doc = None
*
* def getroot(self): # <<<<<<<<<<<<<<
* u"""getroot(self)
*
*/
- __pyx_tuple__269 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__269)) __PYX_ERR(0, 1918, __pyx_L1_error)
+ __pyx_tuple__269 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__269)) __PYX_ERR(0, 1919, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__269);
__Pyx_GIVEREF(__pyx_tuple__269);
- __pyx_codeobj__270 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__269, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_getroot, 1918, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__270)) __PYX_ERR(0, 1918, __pyx_L1_error)
+ __pyx_codeobj__270 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__269, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_getroot, 1919, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__270)) __PYX_ERR(0, 1919, __pyx_L1_error)
- /* "lxml/etree.pyx":1925
+ /* "lxml/etree.pyx":1926
* return self._context_node
*
* def __copy__(self): # <<<<<<<<<<<<<<
* return _elementTreeFactory(self._doc, self._context_node)
*
*/
- __pyx_tuple__271 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__271)) __PYX_ERR(0, 1925, __pyx_L1_error)
+ __pyx_tuple__271 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__271)) __PYX_ERR(0, 1926, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__271);
__Pyx_GIVEREF(__pyx_tuple__271);
- __pyx_codeobj__272 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__271, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_copy_2, 1925, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__272)) __PYX_ERR(0, 1925, __pyx_L1_error)
+ __pyx_codeobj__272 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__271, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_copy_2, 1926, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__272)) __PYX_ERR(0, 1926, __pyx_L1_error)
- /* "lxml/etree.pyx":1928
+ /* "lxml/etree.pyx":1929
* return _elementTreeFactory(self._doc, self._context_node)
*
* def __deepcopy__(self, memo): # <<<<<<<<<<<<<<
* cdef _Element root
* cdef _Document doc
*/
- __pyx_tuple__273 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_memo, __pyx_n_s_root, __pyx_n_s_doc_2, __pyx_n_s_c_doc); if (unlikely(!__pyx_tuple__273)) __PYX_ERR(0, 1928, __pyx_L1_error)
+ __pyx_tuple__273 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_memo, __pyx_n_s_root, __pyx_n_s_doc_2, __pyx_n_s_c_doc); if (unlikely(!__pyx_tuple__273)) __PYX_ERR(0, 1929, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__273);
__Pyx_GIVEREF(__pyx_tuple__273);
- __pyx_codeobj__274 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__273, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_deepcopy, 1928, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__274)) __PYX_ERR(0, 1928, __pyx_L1_error)
+ __pyx_codeobj__274 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__273, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_deepcopy, 1929, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__274)) __PYX_ERR(0, 1929, __pyx_L1_error)
- /* "lxml/etree.pyx":1968
+ /* "lxml/etree.pyx":1969
* return None
*
* def write(self, file, *, encoding=None, method="xml", # <<<<<<<<<<<<<<
* bint pretty_print=False, xml_declaration=None, bint with_tail=True,
* standalone=None, doctype=None, compression=0,
*/
- __pyx_tuple__275 = PyTuple_Pack(20, __pyx_n_s_self, __pyx_n_s_file, __pyx_n_s_encoding, __pyx_n_s_method, __pyx_n_s_pretty_print, __pyx_n_s_xml_declaration, __pyx_n_s_with_tail, __pyx_n_s_standalone, __pyx_n_s_doctype, __pyx_n_s_compression, __pyx_n_s_exclusive, __pyx_n_s_inclusive_ns_prefixes, __pyx_n_s_with_comments, __pyx_n_s_strip_text, __pyx_n_s_docstring, __pyx_n_s_write_declaration, __pyx_n_s_is_standalone, __pyx_n_s_f, __pyx_n_s_target, __pyx_n_s_warnings); if (unlikely(!__pyx_tuple__275)) __PYX_ERR(0, 1968, __pyx_L1_error)
+ __pyx_tuple__275 = PyTuple_Pack(20, __pyx_n_s_self, __pyx_n_s_file, __pyx_n_s_encoding, __pyx_n_s_method, __pyx_n_s_pretty_print, __pyx_n_s_xml_declaration, __pyx_n_s_with_tail, __pyx_n_s_standalone, __pyx_n_s_doctype, __pyx_n_s_compression, __pyx_n_s_exclusive, __pyx_n_s_inclusive_ns_prefixes, __pyx_n_s_with_comments, __pyx_n_s_strip_text, __pyx_n_s_docstring, __pyx_n_s_write_declaration, __pyx_n_s_is_standalone, __pyx_n_s_f, __pyx_n_s_target, __pyx_n_s_warnings); if (unlikely(!__pyx_tuple__275)) __PYX_ERR(0, 1969, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__275);
__Pyx_GIVEREF(__pyx_tuple__275);
- __pyx_codeobj__276 = (PyObject*)__Pyx_PyCode_New(2, 13, 20, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__275, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_write, 1968, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__276)) __PYX_ERR(0, 1968, __pyx_L1_error)
+ __pyx_codeobj__276 = (PyObject*)__Pyx_PyCode_New(2, 13, 20, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__275, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_write, 1969, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__276)) __PYX_ERR(0, 1969, __pyx_L1_error)
- /* "lxml/etree.pyx":2078
+ /* "lxml/etree.pyx":2079
* is_standalone, compression)
*
* def getpath(self, _Element element not None): # <<<<<<<<<<<<<<
* u"""getpath(self, element)
*
*/
- __pyx_tuple__277 = PyTuple_Pack(7, __pyx_n_s_self, __pyx_n_s_element, __pyx_n_s_doc_2, __pyx_n_s_root, __pyx_n_s_c_doc, __pyx_n_s_c_path, __pyx_n_s_path); if (unlikely(!__pyx_tuple__277)) __PYX_ERR(0, 2078, __pyx_L1_error)
+ __pyx_tuple__277 = PyTuple_Pack(7, __pyx_n_s_self, __pyx_n_s_element, __pyx_n_s_doc_2, __pyx_n_s_root, __pyx_n_s_c_doc, __pyx_n_s_c_path, __pyx_n_s_path); if (unlikely(!__pyx_tuple__277)) __PYX_ERR(0, 2079, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__277);
__Pyx_GIVEREF(__pyx_tuple__277);
- __pyx_codeobj__278 = (PyObject*)__Pyx_PyCode_New(2, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__277, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_getpath, 2078, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__278)) __PYX_ERR(0, 2078, __pyx_L1_error)
+ __pyx_codeobj__278 = (PyObject*)__Pyx_PyCode_New(2, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__277, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_getpath, 2079, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__278)) __PYX_ERR(0, 2079, __pyx_L1_error)
- /* "lxml/etree.pyx":2116
+ /* "lxml/etree.pyx":2117
* return path
*
* def getelementpath(self, _Element element not None): # <<<<<<<<<<<<<<
* u"""getelementpath(self, element)
*
*/
- __pyx_tuple__279 = PyTuple_Pack(10, __pyx_n_s_self, __pyx_n_s_element, __pyx_n_s_root, __pyx_n_s_count, __pyx_n_s_path, __pyx_n_s_c_element, __pyx_n_s_c_name, __pyx_n_s_c_href, __pyx_n_s_tag, __pyx_n_s_c_node); if (unlikely(!__pyx_tuple__279)) __PYX_ERR(0, 2116, __pyx_L1_error)
+ __pyx_tuple__279 = PyTuple_Pack(10, __pyx_n_s_self, __pyx_n_s_element, __pyx_n_s_root, __pyx_n_s_count, __pyx_n_s_path, __pyx_n_s_c_element, __pyx_n_s_c_name, __pyx_n_s_c_href, __pyx_n_s_tag, __pyx_n_s_c_node); if (unlikely(!__pyx_tuple__279)) __PYX_ERR(0, 2117, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__279);
__Pyx_GIVEREF(__pyx_tuple__279);
- __pyx_codeobj__280 = (PyObject*)__Pyx_PyCode_New(2, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__279, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_getelementpath, 2116, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__280)) __PYX_ERR(0, 2116, __pyx_L1_error)
+ __pyx_codeobj__280 = (PyObject*)__Pyx_PyCode_New(2, 0, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__279, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_getelementpath, 2117, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__280)) __PYX_ERR(0, 2117, __pyx_L1_error)
- /* "lxml/etree.pyx":2180
+ /* "lxml/etree.pyx":2181
* return '/'.join(path)
*
* def getiterator(self, tag=None, *tags): # <<<<<<<<<<<<<<
* u"""getiterator(self, *tags, tag=None)
*
*/
- __pyx_tuple__281 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_tag, __pyx_n_s_tags, __pyx_n_s_root); if (unlikely(!__pyx_tuple__281)) __PYX_ERR(0, 2180, __pyx_L1_error)
+ __pyx_tuple__281 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_tag, __pyx_n_s_tags, __pyx_n_s_root); if (unlikely(!__pyx_tuple__281)) __PYX_ERR(0, 2181, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__281);
__Pyx_GIVEREF(__pyx_tuple__281);
- __pyx_codeobj__282 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__281, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_getiterator, 2180, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__282)) __PYX_ERR(0, 2180, __pyx_L1_error)
+ __pyx_codeobj__282 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__281, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_getiterator, 2181, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__282)) __PYX_ERR(0, 2181, __pyx_L1_error)
- /* "lxml/etree.pyx":2204
+ /* "lxml/etree.pyx":2205
* return root.getiterator(*tags)
*
* def iter(self, tag=None, *tags): # <<<<<<<<<<<<<<
* u"""iter(self, tag=None, *tags)
*
*/
- __pyx_tuple__283 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_tag, __pyx_n_s_tags, __pyx_n_s_root); if (unlikely(!__pyx_tuple__283)) __PYX_ERR(0, 2204, __pyx_L1_error)
+ __pyx_tuple__283 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_tag, __pyx_n_s_tags, __pyx_n_s_root); if (unlikely(!__pyx_tuple__283)) __PYX_ERR(0, 2205, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__283);
__Pyx_GIVEREF(__pyx_tuple__283);
- __pyx_codeobj__284 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__283, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_iter, 2204, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__284)) __PYX_ERR(0, 2204, __pyx_L1_error)
+ __pyx_codeobj__284 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__283, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_iter, 2205, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__284)) __PYX_ERR(0, 2205, __pyx_L1_error)
- /* "lxml/etree.pyx":2222
+ /* "lxml/etree.pyx":2223
* return root.iter(*tags)
*
* def find(self, path, namespaces=None): # <<<<<<<<<<<<<<
* u"""find(self, path, namespaces=None)
*
*/
- __pyx_tuple__285 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_path, __pyx_n_s_namespaces, __pyx_n_s_root); if (unlikely(!__pyx_tuple__285)) __PYX_ERR(0, 2222, __pyx_L1_error)
+ __pyx_tuple__285 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_path, __pyx_n_s_namespaces, __pyx_n_s_root); if (unlikely(!__pyx_tuple__285)) __PYX_ERR(0, 2223, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__285);
__Pyx_GIVEREF(__pyx_tuple__285);
- __pyx_codeobj__286 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__285, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_find, 2222, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__286)) __PYX_ERR(0, 2222, __pyx_L1_error)
+ __pyx_codeobj__286 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__285, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_find, 2223, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__286)) __PYX_ERR(0, 2223, __pyx_L1_error)
- /* "lxml/etree.pyx":2239
+ /* "lxml/etree.pyx":2240
* return root.find(path, namespaces)
*
* def findtext(self, path, default=None, namespaces=None): # <<<<<<<<<<<<<<
* u"""findtext(self, path, default=None, namespaces=None)
*
*/
- __pyx_tuple__287 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_path, __pyx_n_s_default, __pyx_n_s_namespaces, __pyx_n_s_root); if (unlikely(!__pyx_tuple__287)) __PYX_ERR(0, 2239, __pyx_L1_error)
+ __pyx_tuple__287 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_path, __pyx_n_s_default, __pyx_n_s_namespaces, __pyx_n_s_root); if (unlikely(!__pyx_tuple__287)) __PYX_ERR(0, 2240, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__287);
__Pyx_GIVEREF(__pyx_tuple__287);
- __pyx_codeobj__288 = (PyObject*)__Pyx_PyCode_New(4, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__287, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_findtext, 2239, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__288)) __PYX_ERR(0, 2239, __pyx_L1_error)
+ __pyx_codeobj__288 = (PyObject*)__Pyx_PyCode_New(4, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__287, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_findtext, 2240, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__288)) __PYX_ERR(0, 2240, __pyx_L1_error)
- /* "lxml/etree.pyx":2256
+ /* "lxml/etree.pyx":2257
* return root.findtext(path, default, namespaces)
*
* def findall(self, path, namespaces=None): # <<<<<<<<<<<<<<
* u"""findall(self, path, namespaces=None)
*
*/
- __pyx_tuple__289 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_path, __pyx_n_s_namespaces, __pyx_n_s_root); if (unlikely(!__pyx_tuple__289)) __PYX_ERR(0, 2256, __pyx_L1_error)
+ __pyx_tuple__289 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_path, __pyx_n_s_namespaces, __pyx_n_s_root); if (unlikely(!__pyx_tuple__289)) __PYX_ERR(0, 2257, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__289);
__Pyx_GIVEREF(__pyx_tuple__289);
- __pyx_codeobj__290 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__289, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_findall, 2256, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__290)) __PYX_ERR(0, 2256, __pyx_L1_error)
+ __pyx_codeobj__290 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__289, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_findall, 2257, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__290)) __PYX_ERR(0, 2257, __pyx_L1_error)
- /* "lxml/etree.pyx":2273
+ /* "lxml/etree.pyx":2274
* return root.findall(path, namespaces)
*
* def iterfind(self, path, namespaces=None): # <<<<<<<<<<<<<<
* u"""iterfind(self, path, namespaces=None)
*
*/
- __pyx_tuple__291 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_path, __pyx_n_s_namespaces, __pyx_n_s_root); if (unlikely(!__pyx_tuple__291)) __PYX_ERR(0, 2273, __pyx_L1_error)
+ __pyx_tuple__291 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_path, __pyx_n_s_namespaces, __pyx_n_s_root); if (unlikely(!__pyx_tuple__291)) __PYX_ERR(0, 2274, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__291);
__Pyx_GIVEREF(__pyx_tuple__291);
- __pyx_codeobj__292 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__291, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_iterfind, 2273, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__292)) __PYX_ERR(0, 2273, __pyx_L1_error)
+ __pyx_codeobj__292 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__291, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_iterfind, 2274, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__292)) __PYX_ERR(0, 2274, __pyx_L1_error)
- /* "lxml/etree.pyx":2290
+ /* "lxml/etree.pyx":2291
* return root.iterfind(path, namespaces)
*
* def xpath(self, _path, *, namespaces=None, extensions=None, # <<<<<<<<<<<<<<
* smart_strings=True, **_variables):
* u"""xpath(self, _path, namespaces=None, extensions=None, smart_strings=True, **_variables)
*/
- __pyx_tuple__293 = PyTuple_Pack(7, __pyx_n_s_self, __pyx_n_s_path_2, __pyx_n_s_namespaces, __pyx_n_s_extensions, __pyx_n_s_smart_strings, __pyx_n_s_variables_2, __pyx_n_s_evaluator); if (unlikely(!__pyx_tuple__293)) __PYX_ERR(0, 2290, __pyx_L1_error)
+ __pyx_tuple__293 = PyTuple_Pack(7, __pyx_n_s_self, __pyx_n_s_path_2, __pyx_n_s_namespaces, __pyx_n_s_extensions, __pyx_n_s_smart_strings, __pyx_n_s_variables_2, __pyx_n_s_evaluator); if (unlikely(!__pyx_tuple__293)) __PYX_ERR(0, 2291, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__293);
__Pyx_GIVEREF(__pyx_tuple__293);
- __pyx_codeobj__294 = (PyObject*)__Pyx_PyCode_New(2, 3, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__293, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_xpath, 2290, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__294)) __PYX_ERR(0, 2290, __pyx_L1_error)
+ __pyx_codeobj__294 = (PyObject*)__Pyx_PyCode_New(2, 3, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__293, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_xpath, 2291, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__294)) __PYX_ERR(0, 2291, __pyx_L1_error)
- /* "lxml/etree.pyx":2315
+ /* "lxml/etree.pyx":2316
* return evaluator(_path, **_variables)
*
* def xslt(self, _xslt, extensions=None, access_control=None, **_kw): # <<<<<<<<<<<<<<
* u"""xslt(self, _xslt, extensions=None, access_control=None, **_kw)
*
*/
- __pyx_tuple__295 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_xslt, __pyx_n_s_extensions, __pyx_n_s_access_control, __pyx_n_s_kw, __pyx_n_s_style); if (unlikely(!__pyx_tuple__295)) __PYX_ERR(0, 2315, __pyx_L1_error)
+ __pyx_tuple__295 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_xslt, __pyx_n_s_extensions, __pyx_n_s_access_control, __pyx_n_s_kw, __pyx_n_s_style); if (unlikely(!__pyx_tuple__295)) __PYX_ERR(0, 2316, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__295);
__Pyx_GIVEREF(__pyx_tuple__295);
- __pyx_codeobj__296 = (PyObject*)__Pyx_PyCode_New(4, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__295, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_xslt_3, 2315, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__296)) __PYX_ERR(0, 2315, __pyx_L1_error)
+ __pyx_codeobj__296 = (PyObject*)__Pyx_PyCode_New(4, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__295, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_xslt_3, 2316, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__296)) __PYX_ERR(0, 2316, __pyx_L1_error)
- /* "lxml/etree.pyx":2334
+ /* "lxml/etree.pyx":2335
* return style(self, **_kw)
*
* def relaxng(self, relaxng): # <<<<<<<<<<<<<<
* u"""relaxng(self, relaxng)
*
*/
- __pyx_tuple__297 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_relaxng, __pyx_n_s_schema); if (unlikely(!__pyx_tuple__297)) __PYX_ERR(0, 2334, __pyx_L1_error)
+ __pyx_tuple__297 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_relaxng, __pyx_n_s_schema); if (unlikely(!__pyx_tuple__297)) __PYX_ERR(0, 2335, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__297);
__Pyx_GIVEREF(__pyx_tuple__297);
- __pyx_codeobj__298 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__297, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_relaxng, 2334, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__298)) __PYX_ERR(0, 2334, __pyx_L1_error)
+ __pyx_codeobj__298 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__297, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_relaxng, 2335, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__298)) __PYX_ERR(0, 2335, __pyx_L1_error)
- /* "lxml/etree.pyx":2352
+ /* "lxml/etree.pyx":2353
* return schema.validate(self)
*
* def xmlschema(self, xmlschema): # <<<<<<<<<<<<<<
* u"""xmlschema(self, xmlschema)
*
*/
- __pyx_tuple__299 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_xmlschema, __pyx_n_s_schema); if (unlikely(!__pyx_tuple__299)) __PYX_ERR(0, 2352, __pyx_L1_error)
+ __pyx_tuple__299 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_xmlschema, __pyx_n_s_schema); if (unlikely(!__pyx_tuple__299)) __PYX_ERR(0, 2353, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__299);
__Pyx_GIVEREF(__pyx_tuple__299);
- __pyx_codeobj__300 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__299, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_xmlschema, 2352, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__300)) __PYX_ERR(0, 2352, __pyx_L1_error)
+ __pyx_codeobj__300 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__299, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_xmlschema, 2353, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__300)) __PYX_ERR(0, 2353, __pyx_L1_error)
- /* "lxml/etree.pyx":2370
+ /* "lxml/etree.pyx":2371
* return schema.validate(self)
*
* def xinclude(self): # <<<<<<<<<<<<<<
* u"""xinclude(self)
*
*/
- __pyx_tuple__301 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__301)) __PYX_ERR(0, 2370, __pyx_L1_error)
+ __pyx_tuple__301 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__301)) __PYX_ERR(0, 2371, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__301);
__Pyx_GIVEREF(__pyx_tuple__301);
- __pyx_codeobj__302 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__301, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_xinclude, 2370, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__302)) __PYX_ERR(0, 2370, __pyx_L1_error)
+ __pyx_codeobj__302 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__301, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_xinclude, 2371, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__302)) __PYX_ERR(0, 2371, __pyx_L1_error)
- /* "lxml/etree.pyx":2385
+ /* "lxml/etree.pyx":2386
* XInclude()(self._context_node)
*
* def write_c14n(self, file, *, bint exclusive=False, bint with_comments=True, # <<<<<<<<<<<<<<
* compression=0, inclusive_ns_prefixes=None):
* u"""write_c14n(self, file, exclusive=False, with_comments=True,
*/
- __pyx_tuple__303 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_file, __pyx_n_s_exclusive, __pyx_n_s_with_comments, __pyx_n_s_compression, __pyx_n_s_inclusive_ns_prefixes); if (unlikely(!__pyx_tuple__303)) __PYX_ERR(0, 2385, __pyx_L1_error)
+ __pyx_tuple__303 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_file, __pyx_n_s_exclusive, __pyx_n_s_with_comments, __pyx_n_s_compression, __pyx_n_s_inclusive_ns_prefixes); if (unlikely(!__pyx_tuple__303)) __PYX_ERR(0, 2386, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__303);
__Pyx_GIVEREF(__pyx_tuple__303);
- __pyx_codeobj__304 = (PyObject*)__Pyx_PyCode_New(2, 4, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__303, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_write_c14n, 2385, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__304)) __PYX_ERR(0, 2385, __pyx_L1_error)
+ __pyx_codeobj__304 = (PyObject*)__Pyx_PyCode_New(2, 4, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__303, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_write_c14n, 2386, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__304)) __PYX_ERR(0, 2386, __pyx_L1_error)
- /* "lxml/etree.pyx":2452
+ /* "lxml/etree.pyx":2453
* _delAttribute(self._element, key)
*
* def update(self, sequence_or_dict): # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* if isinstance(sequence_or_dict, (dict, _Attrib)):
*/
- __pyx_tuple__305 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_sequence_or_dict, __pyx_n_s_key, __pyx_n_s_value); if (unlikely(!__pyx_tuple__305)) __PYX_ERR(0, 2452, __pyx_L1_error)
+ __pyx_tuple__305 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_sequence_or_dict, __pyx_n_s_key, __pyx_n_s_value); if (unlikely(!__pyx_tuple__305)) __PYX_ERR(0, 2453, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__305);
__Pyx_GIVEREF(__pyx_tuple__305);
- __pyx_codeobj__306 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__305, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_update, 2452, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__306)) __PYX_ERR(0, 2452, __pyx_L1_error)
+ __pyx_codeobj__306 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__305, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_update, 2453, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__306)) __PYX_ERR(0, 2453, __pyx_L1_error)
- /* "lxml/etree.pyx":2459
+ /* "lxml/etree.pyx":2460
* _setAttributeValue(self._element, key, value)
*
* def pop(self, key, *default): # <<<<<<<<<<<<<<
* if len(default) > 1:
* raise TypeError, f"pop expected at most 2 arguments, got {len(default)+1}"
*/
- __pyx_tuple__307 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_key, __pyx_n_s_default, __pyx_n_s_result); if (unlikely(!__pyx_tuple__307)) __PYX_ERR(0, 2459, __pyx_L1_error)
+ __pyx_tuple__307 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_key, __pyx_n_s_default, __pyx_n_s_result); if (unlikely(!__pyx_tuple__307)) __PYX_ERR(0, 2460, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__307);
__Pyx_GIVEREF(__pyx_tuple__307);
- __pyx_codeobj__308 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__307, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_pop, 2459, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__308)) __PYX_ERR(0, 2459, __pyx_L1_error)
+ __pyx_codeobj__308 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__307, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_pop, 2460, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__308)) __PYX_ERR(0, 2460, __pyx_L1_error)
- /* "lxml/etree.pyx":2472
+ /* "lxml/etree.pyx":2473
* return result
*
* def clear(self): # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* c_attrs = self._element._c_node.properties
*/
- __pyx_tuple__309 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_c_attrs); if (unlikely(!__pyx_tuple__309)) __PYX_ERR(0, 2472, __pyx_L1_error)
+ __pyx_tuple__309 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_c_attrs); if (unlikely(!__pyx_tuple__309)) __PYX_ERR(0, 2473, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__309);
__Pyx_GIVEREF(__pyx_tuple__309);
- __pyx_codeobj__310 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__309, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_clear, 2472, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__310)) __PYX_ERR(0, 2472, __pyx_L1_error)
+ __pyx_codeobj__310 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__309, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_clear, 2473, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__310)) __PYX_ERR(0, 2473, __pyx_L1_error)
- /* "lxml/etree.pyx":2484
+ /* "lxml/etree.pyx":2485
* return repr(dict( _collectAttributes(self._element._c_node, 3) ))
*
* def __copy__(self): # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* return dict(_collectAttributes(self._element._c_node, 3))
*/
- __pyx_tuple__311 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__311)) __PYX_ERR(0, 2484, __pyx_L1_error)
+ __pyx_tuple__311 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__311)) __PYX_ERR(0, 2485, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__311);
__Pyx_GIVEREF(__pyx_tuple__311);
- __pyx_codeobj__312 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__311, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_copy_2, 2484, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__312)) __PYX_ERR(0, 2484, __pyx_L1_error)
+ __pyx_codeobj__312 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__311, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_copy_2, 2485, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__312)) __PYX_ERR(0, 2485, __pyx_L1_error)
- /* "lxml/etree.pyx":2488
+ /* "lxml/etree.pyx":2489
* return dict(_collectAttributes(self._element._c_node, 3))
*
* def __deepcopy__(self, memo): # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* return dict(_collectAttributes(self._element._c_node, 3))
*/
- __pyx_tuple__313 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_memo); if (unlikely(!__pyx_tuple__313)) __PYX_ERR(0, 2488, __pyx_L1_error)
+ __pyx_tuple__313 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_memo); if (unlikely(!__pyx_tuple__313)) __PYX_ERR(0, 2489, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__313);
__Pyx_GIVEREF(__pyx_tuple__313);
- __pyx_codeobj__314 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__313, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_deepcopy, 2488, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__314)) __PYX_ERR(0, 2488, __pyx_L1_error)
+ __pyx_codeobj__314 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__313, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_deepcopy, 2489, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__314)) __PYX_ERR(0, 2489, __pyx_L1_error)
- /* "lxml/etree.pyx":2518
+ /* "lxml/etree.pyx":2519
* return c
*
* def get(self, key, default=None): # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* return _getAttributeValue(self._element, key, default)
*/
- __pyx_tuple__315 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_key, __pyx_n_s_default); if (unlikely(!__pyx_tuple__315)) __PYX_ERR(0, 2518, __pyx_L1_error)
+ __pyx_tuple__315 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_key, __pyx_n_s_default); if (unlikely(!__pyx_tuple__315)) __PYX_ERR(0, 2519, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__315);
__Pyx_GIVEREF(__pyx_tuple__315);
- __pyx_codeobj__316 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__315, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_get, 2518, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__316)) __PYX_ERR(0, 2518, __pyx_L1_error)
+ __pyx_codeobj__316 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__315, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_get, 2519, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__316)) __PYX_ERR(0, 2519, __pyx_L1_error)
- /* "lxml/etree.pyx":2522
+ /* "lxml/etree.pyx":2523
* return _getAttributeValue(self._element, key, default)
*
* def keys(self): # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* return _collectAttributes(self._element._c_node, 1)
*/
- __pyx_tuple__317 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__317)) __PYX_ERR(0, 2522, __pyx_L1_error)
+ __pyx_tuple__317 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__317)) __PYX_ERR(0, 2523, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__317);
__Pyx_GIVEREF(__pyx_tuple__317);
- __pyx_codeobj__318 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__317, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_keys, 2522, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__318)) __PYX_ERR(0, 2522, __pyx_L1_error)
+ __pyx_codeobj__318 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__317, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_keys, 2523, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__318)) __PYX_ERR(0, 2523, __pyx_L1_error)
- /* "lxml/etree.pyx":2530
+ /* "lxml/etree.pyx":2531
* return iter(_collectAttributes(self._element._c_node, 1))
*
* def iterkeys(self): # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* return iter(_collectAttributes(self._element._c_node, 1))
*/
- __pyx_tuple__319 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__319)) __PYX_ERR(0, 2530, __pyx_L1_error)
+ __pyx_tuple__319 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__319)) __PYX_ERR(0, 2531, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__319);
__Pyx_GIVEREF(__pyx_tuple__319);
- __pyx_codeobj__320 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__319, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_iterkeys, 2530, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__320)) __PYX_ERR(0, 2530, __pyx_L1_error)
+ __pyx_codeobj__320 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__319, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_iterkeys, 2531, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__320)) __PYX_ERR(0, 2531, __pyx_L1_error)
- /* "lxml/etree.pyx":2534
+ /* "lxml/etree.pyx":2535
* return iter(_collectAttributes(self._element._c_node, 1))
*
* def values(self): # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* return _collectAttributes(self._element._c_node, 2)
*/
- __pyx_tuple__321 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__321)) __PYX_ERR(0, 2534, __pyx_L1_error)
+ __pyx_tuple__321 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__321)) __PYX_ERR(0, 2535, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__321);
__Pyx_GIVEREF(__pyx_tuple__321);
- __pyx_codeobj__322 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__321, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_values, 2534, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__322)) __PYX_ERR(0, 2534, __pyx_L1_error)
+ __pyx_codeobj__322 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__321, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_values, 2535, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__322)) __PYX_ERR(0, 2535, __pyx_L1_error)
- /* "lxml/etree.pyx":2538
+ /* "lxml/etree.pyx":2539
* return _collectAttributes(self._element._c_node, 2)
*
* def itervalues(self): # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* return iter(_collectAttributes(self._element._c_node, 2))
*/
- __pyx_tuple__323 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__323)) __PYX_ERR(0, 2538, __pyx_L1_error)
+ __pyx_tuple__323 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__323)) __PYX_ERR(0, 2539, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__323);
__Pyx_GIVEREF(__pyx_tuple__323);
- __pyx_codeobj__324 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__323, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_itervalues, 2538, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__324)) __PYX_ERR(0, 2538, __pyx_L1_error)
+ __pyx_codeobj__324 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__323, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_itervalues, 2539, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__324)) __PYX_ERR(0, 2539, __pyx_L1_error)
- /* "lxml/etree.pyx":2542
+ /* "lxml/etree.pyx":2543
* return iter(_collectAttributes(self._element._c_node, 2))
*
* def items(self): # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* return _collectAttributes(self._element._c_node, 3)
*/
- __pyx_tuple__325 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__325)) __PYX_ERR(0, 2542, __pyx_L1_error)
+ __pyx_tuple__325 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__325)) __PYX_ERR(0, 2543, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__325);
__Pyx_GIVEREF(__pyx_tuple__325);
- __pyx_codeobj__326 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__325, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_items, 2542, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__326)) __PYX_ERR(0, 2542, __pyx_L1_error)
+ __pyx_codeobj__326 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__325, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_items, 2543, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__326)) __PYX_ERR(0, 2543, __pyx_L1_error)
- /* "lxml/etree.pyx":2546
+ /* "lxml/etree.pyx":2547
* return _collectAttributes(self._element._c_node, 3)
*
* def iteritems(self): # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* return iter(_collectAttributes(self._element._c_node, 3))
*/
- __pyx_tuple__327 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__327)) __PYX_ERR(0, 2546, __pyx_L1_error)
+ __pyx_tuple__327 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__327)) __PYX_ERR(0, 2547, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__327);
__Pyx_GIVEREF(__pyx_tuple__327);
- __pyx_codeobj__328 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__327, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_iteritems, 2546, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__328)) __PYX_ERR(0, 2546, __pyx_L1_error)
+ __pyx_codeobj__328 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__327, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_iteritems, 2547, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__328)) __PYX_ERR(0, 2547, __pyx_L1_error)
- /* "lxml/etree.pyx":2550
+ /* "lxml/etree.pyx":2551
* return iter(_collectAttributes(self._element._c_node, 3))
*
* def has_key(self, key): # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* return key in self
*/
- __pyx_tuple__329 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_key); if (unlikely(!__pyx_tuple__329)) __PYX_ERR(0, 2550, __pyx_L1_error)
+ __pyx_tuple__329 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_key); if (unlikely(!__pyx_tuple__329)) __PYX_ERR(0, 2551, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__329);
__Pyx_GIVEREF(__pyx_tuple__329);
- __pyx_codeobj__330 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__329, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_has_key, 2550, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__330)) __PYX_ERR(0, 2550, __pyx_L1_error)
+ __pyx_codeobj__330 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__329, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_has_key, 2551, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__330)) __PYX_ERR(0, 2551, __pyx_L1_error)
- /* "lxml/etree.pyx":3029
+ /* "lxml/etree.pyx":3032
* # module-level API for ElementTree
*
* def Element(_tag, attrib=None, nsmap=None, **_extra): # <<<<<<<<<<<<<<
* u"""Element(_tag, attrib=None, nsmap=None, **_extra)
*
*/
- __pyx_tuple__331 = PyTuple_Pack(4, __pyx_n_s_tag_2, __pyx_n_s_attrib, __pyx_n_s_nsmap, __pyx_n_s_extra); if (unlikely(!__pyx_tuple__331)) __PYX_ERR(0, 3029, __pyx_L1_error)
+ __pyx_tuple__331 = PyTuple_Pack(4, __pyx_n_s_tag_2, __pyx_n_s_attrib, __pyx_n_s_nsmap, __pyx_n_s_extra); if (unlikely(!__pyx_tuple__331)) __PYX_ERR(0, 3032, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__331);
__Pyx_GIVEREF(__pyx_tuple__331);
- __pyx_codeobj__332 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__331, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_Element, 3029, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__332)) __PYX_ERR(0, 3029, __pyx_L1_error)
- __pyx_tuple__333 = PyTuple_Pack(2, ((PyObject *)Py_None), ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__333)) __PYX_ERR(0, 3029, __pyx_L1_error)
+ __pyx_codeobj__332 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__331, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_Element, 3032, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__332)) __PYX_ERR(0, 3032, __pyx_L1_error)
+ __pyx_tuple__333 = PyTuple_Pack(2, ((PyObject *)Py_None), ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__333)) __PYX_ERR(0, 3032, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__333);
__Pyx_GIVEREF(__pyx_tuple__333);
- /* "lxml/etree.pyx":3043
+ /* "lxml/etree.pyx":3046
*
*
* def Comment(text=None): # <<<<<<<<<<<<<<
* u"""Comment(text=None)
*
*/
- __pyx_tuple__334 = PyTuple_Pack(4, __pyx_n_s_text, __pyx_n_s_doc_2, __pyx_n_s_c_node, __pyx_n_s_c_doc); if (unlikely(!__pyx_tuple__334)) __PYX_ERR(0, 3043, __pyx_L1_error)
+ __pyx_tuple__334 = PyTuple_Pack(4, __pyx_n_s_text, __pyx_n_s_doc_2, __pyx_n_s_c_node, __pyx_n_s_c_doc); if (unlikely(!__pyx_tuple__334)) __PYX_ERR(0, 3046, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__334);
__Pyx_GIVEREF(__pyx_tuple__334);
- __pyx_codeobj__335 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__334, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_Comment, 3043, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__335)) __PYX_ERR(0, 3043, __pyx_L1_error)
- __pyx_tuple__336 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__336)) __PYX_ERR(0, 3043, __pyx_L1_error)
+ __pyx_codeobj__335 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__334, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_Comment, 3046, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__335)) __PYX_ERR(0, 3046, __pyx_L1_error)
+ __pyx_tuple__336 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__336)) __PYX_ERR(0, 3046, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__336);
__Pyx_GIVEREF(__pyx_tuple__336);
- /* "lxml/etree.pyx":3067
+ /* "lxml/etree.pyx":3070
*
*
* def ProcessingInstruction(target, text=None): # <<<<<<<<<<<<<<
* u"""ProcessingInstruction(target, text=None)
*
*/
- __pyx_tuple__337 = PyTuple_Pack(5, __pyx_n_s_target, __pyx_n_s_text, __pyx_n_s_doc_2, __pyx_n_s_c_node, __pyx_n_s_c_doc); if (unlikely(!__pyx_tuple__337)) __PYX_ERR(0, 3067, __pyx_L1_error)
+ __pyx_tuple__337 = PyTuple_Pack(5, __pyx_n_s_target, __pyx_n_s_text, __pyx_n_s_doc_2, __pyx_n_s_c_node, __pyx_n_s_c_doc); if (unlikely(!__pyx_tuple__337)) __PYX_ERR(0, 3070, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__337);
__Pyx_GIVEREF(__pyx_tuple__337);
- __pyx_codeobj__338 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__337, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_ProcessingInstruction, 3067, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__338)) __PYX_ERR(0, 3067, __pyx_L1_error)
- __pyx_tuple__339 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__339)) __PYX_ERR(0, 3067, __pyx_L1_error)
+ __pyx_codeobj__338 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__337, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_ProcessingInstruction, 3070, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__338)) __PYX_ERR(0, 3070, __pyx_L1_error)
+ __pyx_tuple__339 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__339)) __PYX_ERR(0, 3070, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__339);
__Pyx_GIVEREF(__pyx_tuple__339);
- /* "lxml/etree.pyx":3120
+ /* "lxml/etree.pyx":3123
*
*
* def Entity(name): # <<<<<<<<<<<<<<
* u"""Entity(name)
*
*/
- __pyx_tuple__340 = PyTuple_Pack(6, __pyx_n_s_name_2, __pyx_n_s_doc_2, __pyx_n_s_c_node, __pyx_n_s_c_doc, __pyx_n_s_name_utf, __pyx_n_s_c_name); if (unlikely(!__pyx_tuple__340)) __PYX_ERR(0, 3120, __pyx_L1_error)
+ __pyx_tuple__340 = PyTuple_Pack(6, __pyx_n_s_name_2, __pyx_n_s_doc_2, __pyx_n_s_c_node, __pyx_n_s_c_doc, __pyx_n_s_name_utf, __pyx_n_s_c_name); if (unlikely(!__pyx_tuple__340)) __PYX_ERR(0, 3123, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__340);
__Pyx_GIVEREF(__pyx_tuple__340);
- __pyx_codeobj__341 = (PyObject*)__Pyx_PyCode_New(1, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__340, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_Entity, 3120, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__341)) __PYX_ERR(0, 3120, __pyx_L1_error)
+ __pyx_codeobj__341 = (PyObject*)__Pyx_PyCode_New(1, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__340, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_Entity, 3123, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__341)) __PYX_ERR(0, 3123, __pyx_L1_error)
- /* "lxml/etree.pyx":3146
+ /* "lxml/etree.pyx":3149
*
*
* def SubElement(_Element _parent not None, _tag, # <<<<<<<<<<<<<<
* attrib=None, nsmap=None, **_extra):
* u"""SubElement(_parent, _tag, attrib=None, nsmap=None, **_extra)
*/
- __pyx_tuple__342 = PyTuple_Pack(5, __pyx_n_s_parent, __pyx_n_s_tag_2, __pyx_n_s_attrib, __pyx_n_s_nsmap, __pyx_n_s_extra); if (unlikely(!__pyx_tuple__342)) __PYX_ERR(0, 3146, __pyx_L1_error)
+ __pyx_tuple__342 = PyTuple_Pack(5, __pyx_n_s_parent, __pyx_n_s_tag_2, __pyx_n_s_attrib, __pyx_n_s_nsmap, __pyx_n_s_extra); if (unlikely(!__pyx_tuple__342)) __PYX_ERR(0, 3149, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__342);
__Pyx_GIVEREF(__pyx_tuple__342);
- __pyx_codeobj__343 = (PyObject*)__Pyx_PyCode_New(4, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__342, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_SubElement, 3146, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__343)) __PYX_ERR(0, 3146, __pyx_L1_error)
- __pyx_tuple__344 = PyTuple_Pack(2, ((PyObject *)Py_None), ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__344)) __PYX_ERR(0, 3146, __pyx_L1_error)
+ __pyx_codeobj__343 = (PyObject*)__Pyx_PyCode_New(4, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__342, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_SubElement, 3149, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__343)) __PYX_ERR(0, 3149, __pyx_L1_error)
+ __pyx_tuple__344 = PyTuple_Pack(2, ((PyObject *)Py_None), ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__344)) __PYX_ERR(0, 3149, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__344);
__Pyx_GIVEREF(__pyx_tuple__344);
- /* "lxml/etree.pyx":3156
+ /* "lxml/etree.pyx":3159
*
*
* def ElementTree(_Element element=None, *, file=None, _BaseParser parser=None): # <<<<<<<<<<<<<<
* u"""ElementTree(element=None, file=None, parser=None)
*
*/
- __pyx_tuple__345 = PyTuple_Pack(10, __pyx_n_s_element, __pyx_n_s_file, __pyx_n_s_parser, __pyx_n_s_c_next, __pyx_n_s_c_node, __pyx_n_s_c_node_copy, __pyx_n_s_c_doc, __pyx_n_s_etree, __pyx_n_s_doc_2, __pyx_n_s_result_container); if (unlikely(!__pyx_tuple__345)) __PYX_ERR(0, 3156, __pyx_L1_error)
+ __pyx_tuple__345 = PyTuple_Pack(10, __pyx_n_s_element, __pyx_n_s_file, __pyx_n_s_parser, __pyx_n_s_c_next, __pyx_n_s_c_node, __pyx_n_s_c_node_copy, __pyx_n_s_c_doc, __pyx_n_s_etree, __pyx_n_s_doc_2, __pyx_n_s_result_container); if (unlikely(!__pyx_tuple__345)) __PYX_ERR(0, 3159, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__345);
__Pyx_GIVEREF(__pyx_tuple__345);
- __pyx_codeobj__346 = (PyObject*)__Pyx_PyCode_New(1, 2, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__345, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_ElementTree, 3156, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__346)) __PYX_ERR(0, 3156, __pyx_L1_error)
- __pyx_tuple__347 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__347)) __PYX_ERR(0, 3156, __pyx_L1_error)
+ __pyx_codeobj__346 = (PyObject*)__Pyx_PyCode_New(1, 2, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__345, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_ElementTree, 3159, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__346)) __PYX_ERR(0, 3159, __pyx_L1_error)
+ __pyx_tuple__347 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__347)) __PYX_ERR(0, 3159, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__347);
__Pyx_GIVEREF(__pyx_tuple__347);
- /* "lxml/etree.pyx":3182
+ /* "lxml/etree.pyx":3185
*
*
* def HTML(text, _BaseParser parser=None, *, base_url=None): # <<<<<<<<<<<<<<
* u"""HTML(text, parser=None, base_url=None)
*
*/
- __pyx_tuple__348 = PyTuple_Pack(5, __pyx_n_s_text, __pyx_n_s_parser, __pyx_n_s_base_url, __pyx_n_s_doc_2, __pyx_n_s_result_container); if (unlikely(!__pyx_tuple__348)) __PYX_ERR(0, 3182, __pyx_L1_error)
+ __pyx_tuple__348 = PyTuple_Pack(5, __pyx_n_s_text, __pyx_n_s_parser, __pyx_n_s_base_url, __pyx_n_s_doc_2, __pyx_n_s_result_container); if (unlikely(!__pyx_tuple__348)) __PYX_ERR(0, 3185, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__348);
__Pyx_GIVEREF(__pyx_tuple__348);
- __pyx_codeobj__349 = (PyObject*)__Pyx_PyCode_New(2, 1, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__348, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_HTML, 3182, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__349)) __PYX_ERR(0, 3182, __pyx_L1_error)
- __pyx_tuple__350 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__350)) __PYX_ERR(0, 3182, __pyx_L1_error)
+ __pyx_codeobj__349 = (PyObject*)__Pyx_PyCode_New(2, 1, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__348, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_HTML, 3185, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__349)) __PYX_ERR(0, 3185, __pyx_L1_error)
+ __pyx_tuple__350 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__350)) __PYX_ERR(0, 3185, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__350);
__Pyx_GIVEREF(__pyx_tuple__350);
- /* "lxml/etree.pyx":3208
+ /* "lxml/etree.pyx":3211
*
*
* def XML(text, _BaseParser parser=None, *, base_url=None): # <<<<<<<<<<<<<<
* u"""XML(text, parser=None, base_url=None)
*
*/
- __pyx_tuple__351 = PyTuple_Pack(5, __pyx_n_s_text, __pyx_n_s_parser, __pyx_n_s_base_url, __pyx_n_s_doc_2, __pyx_n_s_result_container); if (unlikely(!__pyx_tuple__351)) __PYX_ERR(0, 3208, __pyx_L1_error)
+ __pyx_tuple__351 = PyTuple_Pack(5, __pyx_n_s_text, __pyx_n_s_parser, __pyx_n_s_base_url, __pyx_n_s_doc_2, __pyx_n_s_result_container); if (unlikely(!__pyx_tuple__351)) __PYX_ERR(0, 3211, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__351);
__Pyx_GIVEREF(__pyx_tuple__351);
- __pyx_codeobj__352 = (PyObject*)__Pyx_PyCode_New(2, 1, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__351, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_XML, 3208, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__352)) __PYX_ERR(0, 3208, __pyx_L1_error)
- __pyx_tuple__353 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__353)) __PYX_ERR(0, 3208, __pyx_L1_error)
+ __pyx_codeobj__352 = (PyObject*)__Pyx_PyCode_New(2, 1, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__351, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_XML, 3211, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__352)) __PYX_ERR(0, 3211, __pyx_L1_error)
+ __pyx_tuple__353 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__353)) __PYX_ERR(0, 3211, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__353);
__Pyx_GIVEREF(__pyx_tuple__353);
- /* "lxml/etree.pyx":3239
+ /* "lxml/etree.pyx":3242
*
*
* def fromstring(text, _BaseParser parser=None, *, base_url=None): # <<<<<<<<<<<<<<
* u"""fromstring(text, parser=None, base_url=None)
*
*/
- __pyx_tuple__354 = PyTuple_Pack(5, __pyx_n_s_text, __pyx_n_s_parser, __pyx_n_s_base_url, __pyx_n_s_doc_2, __pyx_n_s_result_container); if (unlikely(!__pyx_tuple__354)) __PYX_ERR(0, 3239, __pyx_L1_error)
+ __pyx_tuple__354 = PyTuple_Pack(5, __pyx_n_s_text, __pyx_n_s_parser, __pyx_n_s_base_url, __pyx_n_s_doc_2, __pyx_n_s_result_container); if (unlikely(!__pyx_tuple__354)) __PYX_ERR(0, 3242, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__354);
__Pyx_GIVEREF(__pyx_tuple__354);
- __pyx_codeobj__355 = (PyObject*)__Pyx_PyCode_New(2, 1, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__354, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_fromstring, 3239, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__355)) __PYX_ERR(0, 3239, __pyx_L1_error)
- __pyx_tuple__356 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__356)) __PYX_ERR(0, 3239, __pyx_L1_error)
+ __pyx_codeobj__355 = (PyObject*)__Pyx_PyCode_New(2, 1, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__354, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_fromstring, 3242, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__355)) __PYX_ERR(0, 3242, __pyx_L1_error)
+ __pyx_tuple__356 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__356)) __PYX_ERR(0, 3242, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__356);
__Pyx_GIVEREF(__pyx_tuple__356);
- /* "lxml/etree.pyx":3260
+ /* "lxml/etree.pyx":3263
*
*
* def fromstringlist(strings, _BaseParser parser=None): # <<<<<<<<<<<<<<
* u"""fromstringlist(strings, parser=None)
*
*/
- __pyx_tuple__357 = PyTuple_Pack(5, __pyx_n_s_strings, __pyx_n_s_parser, __pyx_n_s_doc_2, __pyx_n_s_feed, __pyx_n_s_data); if (unlikely(!__pyx_tuple__357)) __PYX_ERR(0, 3260, __pyx_L1_error)
+ __pyx_tuple__357 = PyTuple_Pack(5, __pyx_n_s_strings, __pyx_n_s_parser, __pyx_n_s_doc_2, __pyx_n_s_feed, __pyx_n_s_data); if (unlikely(!__pyx_tuple__357)) __PYX_ERR(0, 3263, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__357);
__Pyx_GIVEREF(__pyx_tuple__357);
- __pyx_codeobj__358 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__357, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_fromstringlist, 3260, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__358)) __PYX_ERR(0, 3260, __pyx_L1_error)
- __pyx_tuple__359 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__359)) __PYX_ERR(0, 3260, __pyx_L1_error)
+ __pyx_codeobj__358 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__357, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_fromstringlist, 3263, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__358)) __PYX_ERR(0, 3263, __pyx_L1_error)
+ __pyx_tuple__359 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__359)) __PYX_ERR(0, 3263, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__359);
__Pyx_GIVEREF(__pyx_tuple__359);
- /* "lxml/etree.pyx":3281
+ /* "lxml/etree.pyx":3284
*
*
* def iselement(element): # <<<<<<<<<<<<<<
* u"""iselement(element)
*
*/
- __pyx_tuple__360 = PyTuple_Pack(1, __pyx_n_s_element); if (unlikely(!__pyx_tuple__360)) __PYX_ERR(0, 3281, __pyx_L1_error)
+ __pyx_tuple__360 = PyTuple_Pack(1, __pyx_n_s_element); if (unlikely(!__pyx_tuple__360)) __PYX_ERR(0, 3284, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__360);
__Pyx_GIVEREF(__pyx_tuple__360);
- __pyx_codeobj__361 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__360, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_iselement, 3281, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__361)) __PYX_ERR(0, 3281, __pyx_L1_error)
+ __pyx_codeobj__361 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__360, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_iselement, 3284, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__361)) __PYX_ERR(0, 3284, __pyx_L1_error)
- /* "lxml/etree.pyx":3289
+ /* "lxml/etree.pyx":3292
*
*
* def indent(tree, space=" ", *, Py_ssize_t level=0): # <<<<<<<<<<<<<<
* """indent(tree, space=" ", level=0)
*
*/
- __pyx_tuple__362 = PyTuple_Pack(5, __pyx_n_s_tree, __pyx_n_s_space, __pyx_n_s_level, __pyx_n_s_root, __pyx_n_s_indent); if (unlikely(!__pyx_tuple__362)) __PYX_ERR(0, 3289, __pyx_L1_error)
+ __pyx_tuple__362 = PyTuple_Pack(5, __pyx_n_s_tree, __pyx_n_s_space, __pyx_n_s_level, __pyx_n_s_root, __pyx_n_s_indent); if (unlikely(!__pyx_tuple__362)) __PYX_ERR(0, 3292, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__362);
__Pyx_GIVEREF(__pyx_tuple__362);
- __pyx_codeobj__363 = (PyObject*)__Pyx_PyCode_New(2, 1, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__362, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_indent, 3289, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__363)) __PYX_ERR(0, 3289, __pyx_L1_error)
- __pyx_tuple__364 = PyTuple_Pack(1, ((PyObject*)__pyx_kp_s__51)); if (unlikely(!__pyx_tuple__364)) __PYX_ERR(0, 3289, __pyx_L1_error)
+ __pyx_codeobj__363 = (PyObject*)__Pyx_PyCode_New(2, 1, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__362, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_indent, 3292, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__363)) __PYX_ERR(0, 3292, __pyx_L1_error)
+ __pyx_tuple__364 = PyTuple_Pack(1, ((PyObject*)__pyx_kp_s__51)); if (unlikely(!__pyx_tuple__364)) __PYX_ERR(0, 3292, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__364);
__Pyx_GIVEREF(__pyx_tuple__364);
- /* "lxml/etree.pyx":3340
+ /* "lxml/etree.pyx":3343
*
*
* def dump(_Element elem not None, *, bint pretty_print=True, with_tail=True): # <<<<<<<<<<<<<<
* u"""dump(elem, pretty_print=True, with_tail=True)
*
*/
- __pyx_tuple__365 = PyTuple_Pack(4, __pyx_n_s_elem, __pyx_n_s_pretty_print, __pyx_n_s_with_tail, __pyx_n_s_xml); if (unlikely(!__pyx_tuple__365)) __PYX_ERR(0, 3340, __pyx_L1_error)
+ __pyx_tuple__365 = PyTuple_Pack(4, __pyx_n_s_elem, __pyx_n_s_pretty_print, __pyx_n_s_with_tail, __pyx_n_s_xml); if (unlikely(!__pyx_tuple__365)) __PYX_ERR(0, 3343, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__365);
__Pyx_GIVEREF(__pyx_tuple__365);
- __pyx_codeobj__366 = (PyObject*)__Pyx_PyCode_New(1, 2, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__365, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_dump, 3340, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__366)) __PYX_ERR(0, 3340, __pyx_L1_error)
+ __pyx_codeobj__366 = (PyObject*)__Pyx_PyCode_New(1, 2, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__365, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_dump, 3343, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__366)) __PYX_ERR(0, 3343, __pyx_L1_error)
- /* "lxml/etree.pyx":3353
+ /* "lxml/etree.pyx":3356
*
*
* def tostring(element_or_tree, *, encoding=None, method="xml", # <<<<<<<<<<<<<<
* xml_declaration=None, bint pretty_print=False, bint with_tail=True,
* standalone=None, doctype=None,
*/
- __pyx_tuple__367 = PyTuple_Pack(16, __pyx_n_s_element_or_tree, __pyx_n_s_encoding, __pyx_n_s_method, __pyx_n_s_xml_declaration, __pyx_n_s_pretty_print, __pyx_n_s_with_tail, __pyx_n_s_standalone, __pyx_n_s_doctype, __pyx_n_s_exclusive, __pyx_n_s_inclusive_ns_prefixes, __pyx_n_s_with_comments, __pyx_n_s_strip_text, __pyx_n_s_write_declaration, __pyx_n_s_is_standalone, __pyx_n_s_out, __pyx_n_s_target); if (unlikely(!__pyx_tuple__367)) __PYX_ERR(0, 3353, __pyx_L1_error)
+ __pyx_tuple__367 = PyTuple_Pack(16, __pyx_n_s_element_or_tree, __pyx_n_s_encoding, __pyx_n_s_method, __pyx_n_s_xml_declaration, __pyx_n_s_pretty_print, __pyx_n_s_with_tail, __pyx_n_s_standalone, __pyx_n_s_doctype, __pyx_n_s_exclusive, __pyx_n_s_inclusive_ns_prefixes, __pyx_n_s_with_comments, __pyx_n_s_strip_text, __pyx_n_s_write_declaration, __pyx_n_s_is_standalone, __pyx_n_s_out, __pyx_n_s_target); if (unlikely(!__pyx_tuple__367)) __PYX_ERR(0, 3356, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__367);
__Pyx_GIVEREF(__pyx_tuple__367);
- __pyx_codeobj__368 = (PyObject*)__Pyx_PyCode_New(1, 11, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__367, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_tostring, 3353, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__368)) __PYX_ERR(0, 3353, __pyx_L1_error)
+ __pyx_codeobj__368 = (PyObject*)__Pyx_PyCode_New(1, 11, 16, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__367, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_tostring, 3356, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__368)) __PYX_ERR(0, 3356, __pyx_L1_error)
- /* "lxml/etree.pyx":3466
+ /* "lxml/etree.pyx":3469
*
*
* def tostringlist(element_or_tree, *args, **kwargs): # <<<<<<<<<<<<<<
* u"""tostringlist(element_or_tree, *args, **kwargs)
*
*/
- __pyx_tuple__369 = PyTuple_Pack(3, __pyx_n_s_element_or_tree, __pyx_n_s_args, __pyx_n_s_kwargs); if (unlikely(!__pyx_tuple__369)) __PYX_ERR(0, 3466, __pyx_L1_error)
+ __pyx_tuple__369 = PyTuple_Pack(3, __pyx_n_s_element_or_tree, __pyx_n_s_args, __pyx_n_s_kwargs); if (unlikely(!__pyx_tuple__369)) __PYX_ERR(0, 3469, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__369);
__Pyx_GIVEREF(__pyx_tuple__369);
- __pyx_codeobj__370 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__369, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_tostringlist, 3466, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__370)) __PYX_ERR(0, 3466, __pyx_L1_error)
+ __pyx_codeobj__370 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__369, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_tostringlist, 3469, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__370)) __PYX_ERR(0, 3469, __pyx_L1_error)
- /* "lxml/etree.pyx":3478
+ /* "lxml/etree.pyx":3481
*
*
* def tounicode(element_or_tree, *, method=u"xml", bint pretty_print=False, # <<<<<<<<<<<<<<
* bint with_tail=True, doctype=None):
* u"""tounicode(element_or_tree, method="xml", pretty_print=False,
*/
- __pyx_tuple__371 = PyTuple_Pack(5, __pyx_n_s_element_or_tree, __pyx_n_s_method, __pyx_n_s_pretty_print, __pyx_n_s_with_tail, __pyx_n_s_doctype); if (unlikely(!__pyx_tuple__371)) __PYX_ERR(0, 3478, __pyx_L1_error)
+ __pyx_tuple__371 = PyTuple_Pack(5, __pyx_n_s_element_or_tree, __pyx_n_s_method, __pyx_n_s_pretty_print, __pyx_n_s_with_tail, __pyx_n_s_doctype); if (unlikely(!__pyx_tuple__371)) __PYX_ERR(0, 3481, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__371);
__Pyx_GIVEREF(__pyx_tuple__371);
- __pyx_codeobj__372 = (PyObject*)__Pyx_PyCode_New(1, 4, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__371, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_tounicode, 3478, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__372)) __PYX_ERR(0, 3478, __pyx_L1_error)
+ __pyx_codeobj__372 = (PyObject*)__Pyx_PyCode_New(1, 4, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__371, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_tounicode, 3481, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__372)) __PYX_ERR(0, 3481, __pyx_L1_error)
- /* "lxml/etree.pyx":3512
+ /* "lxml/etree.pyx":3515
*
*
* def parse(source, _BaseParser parser=None, *, base_url=None): # <<<<<<<<<<<<<<
* u"""parse(source, parser=None, base_url=None)
*
*/
- __pyx_tuple__373 = PyTuple_Pack(5, __pyx_n_s_source, __pyx_n_s_parser, __pyx_n_s_base_url, __pyx_n_s_doc_2, __pyx_n_s_result_container); if (unlikely(!__pyx_tuple__373)) __PYX_ERR(0, 3512, __pyx_L1_error)
+ __pyx_tuple__373 = PyTuple_Pack(5, __pyx_n_s_source, __pyx_n_s_parser, __pyx_n_s_base_url, __pyx_n_s_doc_2, __pyx_n_s_result_container); if (unlikely(!__pyx_tuple__373)) __PYX_ERR(0, 3515, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__373);
__Pyx_GIVEREF(__pyx_tuple__373);
- __pyx_codeobj__374 = (PyObject*)__Pyx_PyCode_New(2, 1, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__373, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_parse, 3512, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__374)) __PYX_ERR(0, 3512, __pyx_L1_error)
- __pyx_tuple__375 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__375)) __PYX_ERR(0, 3512, __pyx_L1_error)
+ __pyx_codeobj__374 = (PyObject*)__Pyx_PyCode_New(2, 1, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__373, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_parse, 3515, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__374)) __PYX_ERR(0, 3515, __pyx_L1_error)
+ __pyx_tuple__375 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__375)) __PYX_ERR(0, 3515, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__375);
__Pyx_GIVEREF(__pyx_tuple__375);
- /* "lxml/etree.pyx":3544
+ /* "lxml/etree.pyx":3547
*
*
* def adopt_external_document(capsule, _BaseParser parser=None): # <<<<<<<<<<<<<<
* """adopt_external_document(capsule, parser=None)
*
*/
- __pyx_tuple__376 = PyTuple_Pack(5, __pyx_n_s_capsule, __pyx_n_s_parser, __pyx_n_s_c_doc, __pyx_n_s_is_owned, __pyx_n_s_doc_2); if (unlikely(!__pyx_tuple__376)) __PYX_ERR(0, 3544, __pyx_L1_error)
+ __pyx_tuple__376 = PyTuple_Pack(5, __pyx_n_s_capsule, __pyx_n_s_parser, __pyx_n_s_c_doc, __pyx_n_s_is_owned, __pyx_n_s_doc_2); if (unlikely(!__pyx_tuple__376)) __PYX_ERR(0, 3547, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__376);
__Pyx_GIVEREF(__pyx_tuple__376);
- __pyx_codeobj__377 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__376, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_adopt_external_document, 3544, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__377)) __PYX_ERR(0, 3544, __pyx_L1_error)
- __pyx_tuple__378 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__378)) __PYX_ERR(0, 3544, __pyx_L1_error)
+ __pyx_codeobj__377 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__376, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_adopt_external_document, 3547, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__377)) __PYX_ERR(0, 3547, __pyx_L1_error)
+ __pyx_tuple__378 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__378)) __PYX_ERR(0, 3547, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__378);
__Pyx_GIVEREF(__pyx_tuple__378);
__Pyx_GIVEREF(__pyx_tuple__455);
__pyx_codeobj__456 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__455, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_parser_pxi, __pyx_n_s_position, 23, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__456)) __PYX_ERR(2, 23, __pyx_L1_error)
- /* "src/lxml/parser.pxi":975
+ /* "src/lxml/parser.pxi":978
* return u"libxml2 %d.%d.%d" % LIBXML_VERSION
*
* def setElementClassLookup(self, ElementClassLookup lookup = None): # <<<<<<<<<<<<<<
* u":deprecated: use ``parser.set_element_class_lookup(lookup)`` instead."
* self.set_element_class_lookup(lookup)
*/
- __pyx_tuple__457 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_lookup); if (unlikely(!__pyx_tuple__457)) __PYX_ERR(2, 975, __pyx_L1_error)
+ __pyx_tuple__457 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_lookup); if (unlikely(!__pyx_tuple__457)) __PYX_ERR(2, 978, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__457);
__Pyx_GIVEREF(__pyx_tuple__457);
- __pyx_codeobj__458 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__457, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_parser_pxi, __pyx_n_s_setElementClassLookup, 975, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__458)) __PYX_ERR(2, 975, __pyx_L1_error)
+ __pyx_codeobj__458 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__457, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_parser_pxi, __pyx_n_s_setElementClassLookup, 978, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__458)) __PYX_ERR(2, 978, __pyx_L1_error)
- /* "src/lxml/parser.pxi":979
+ /* "src/lxml/parser.pxi":982
* self.set_element_class_lookup(lookup)
*
* def set_element_class_lookup(self, ElementClassLookup lookup = None): # <<<<<<<<<<<<<<
* u"""set_element_class_lookup(self, lookup = None)
*
*/
- __pyx_tuple__459 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_lookup); if (unlikely(!__pyx_tuple__459)) __PYX_ERR(2, 979, __pyx_L1_error)
+ __pyx_tuple__459 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_lookup); if (unlikely(!__pyx_tuple__459)) __PYX_ERR(2, 982, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__459);
__Pyx_GIVEREF(__pyx_tuple__459);
- __pyx_codeobj__460 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__459, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_parser_pxi, __pyx_n_s_set_element_class_lookup, 979, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__460)) __PYX_ERR(2, 979, __pyx_L1_error)
+ __pyx_codeobj__460 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__459, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_parser_pxi, __pyx_n_s_set_element_class_lookup, 982, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__460)) __PYX_ERR(2, 982, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1006
+ /* "src/lxml/parser.pxi":1009
* return parser
*
* def copy(self): # <<<<<<<<<<<<<<
* u"""copy(self)
*
*/
- __pyx_tuple__461 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__461)) __PYX_ERR(2, 1006, __pyx_L1_error)
+ __pyx_tuple__461 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__461)) __PYX_ERR(2, 1009, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__461);
__Pyx_GIVEREF(__pyx_tuple__461);
- __pyx_codeobj__462 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__461, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_parser_pxi, __pyx_n_s_copy, 1006, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__462)) __PYX_ERR(2, 1006, __pyx_L1_error)
+ __pyx_codeobj__462 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__461, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_parser_pxi, __pyx_n_s_copy, 1009, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__462)) __PYX_ERR(2, 1009, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1013
+ /* "src/lxml/parser.pxi":1016
* return self._copy()
*
* def makeelement(self, _tag, attrib=None, nsmap=None, **_extra): # <<<<<<<<<<<<<<
* u"""makeelement(self, _tag, attrib=None, nsmap=None, **_extra)
*
*/
- __pyx_tuple__463 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_tag_2, __pyx_n_s_attrib, __pyx_n_s_nsmap, __pyx_n_s_extra); if (unlikely(!__pyx_tuple__463)) __PYX_ERR(2, 1013, __pyx_L1_error)
+ __pyx_tuple__463 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_tag_2, __pyx_n_s_attrib, __pyx_n_s_nsmap, __pyx_n_s_extra); if (unlikely(!__pyx_tuple__463)) __PYX_ERR(2, 1016, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__463);
__Pyx_GIVEREF(__pyx_tuple__463);
- __pyx_codeobj__464 = (PyObject*)__Pyx_PyCode_New(4, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__463, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_parser_pxi, __pyx_n_s_makeelement, 1013, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__464)) __PYX_ERR(2, 1013, __pyx_L1_error)
+ __pyx_codeobj__464 = (PyObject*)__Pyx_PyCode_New(4, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__463, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_parser_pxi, __pyx_n_s_makeelement, 1016, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__464)) __PYX_ERR(2, 1016, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1256
+ /* "src/lxml/parser.pxi":1259
* return self._getPushParserContext()._error_log.copy()
*
* cpdef feed(self, data): # <<<<<<<<<<<<<<
* u"""feed(self, data)
*
*/
- __pyx_tuple__465 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_data); if (unlikely(!__pyx_tuple__465)) __PYX_ERR(2, 1256, __pyx_L1_error)
+ __pyx_tuple__465 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_data); if (unlikely(!__pyx_tuple__465)) __PYX_ERR(2, 1259, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__465);
__Pyx_GIVEREF(__pyx_tuple__465);
- __pyx_codeobj__466 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__465, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_parser_pxi, __pyx_n_s_feed, 1256, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__466)) __PYX_ERR(2, 1256, __pyx_L1_error)
+ __pyx_codeobj__466 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__465, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_parser_pxi, __pyx_n_s_feed, 1259, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__466)) __PYX_ERR(2, 1259, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1380
+ /* "src/lxml/parser.pxi":1383
* context.cleanup()
*
* cpdef close(self): # <<<<<<<<<<<<<<
* u"""close(self)
*
*/
- __pyx_tuple__467 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__467)) __PYX_ERR(2, 1380, __pyx_L1_error)
+ __pyx_tuple__467 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__467)) __PYX_ERR(2, 1383, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__467);
__Pyx_GIVEREF(__pyx_tuple__467);
- __pyx_codeobj__468 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__467, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_parser_pxi, __pyx_n_s_close, 1380, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__468)) __PYX_ERR(2, 1380, __pyx_L1_error)
+ __pyx_codeobj__468 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__467, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_parser_pxi, __pyx_n_s_close, 1383, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__468)) __PYX_ERR(2, 1383, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1586
+ /* "src/lxml/parser.pxi":1589
* self._collectEvents(events, tag)
*
* def read_events(self): # <<<<<<<<<<<<<<
* return (<_SaxParserContext?>self._getPushParserContext()).events_iterator
*
*/
- __pyx_tuple__469 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__469)) __PYX_ERR(2, 1586, __pyx_L1_error)
+ __pyx_tuple__469 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__469)) __PYX_ERR(2, 1589, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__469);
__Pyx_GIVEREF(__pyx_tuple__469);
- __pyx_codeobj__470 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__469, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_parser_pxi, __pyx_n_s_read_events, 1586, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__470)) __PYX_ERR(2, 1586, __pyx_L1_error)
+ __pyx_codeobj__470 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__469, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_parser_pxi, __pyx_n_s_read_events, 1589, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__470)) __PYX_ERR(2, 1589, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1638
+ /* "src/lxml/parser.pxi":1641
* __GLOBAL_PARSER_CONTEXT.setDefaultParser(__DEFAULT_XML_PARSER)
*
* def set_default_parser(_BaseParser parser=None): # <<<<<<<<<<<<<<
* u"""set_default_parser(parser=None)
*
*/
- __pyx_tuple__471 = PyTuple_Pack(1, __pyx_n_s_parser); if (unlikely(!__pyx_tuple__471)) __PYX_ERR(2, 1638, __pyx_L1_error)
+ __pyx_tuple__471 = PyTuple_Pack(1, __pyx_n_s_parser); if (unlikely(!__pyx_tuple__471)) __PYX_ERR(2, 1641, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__471);
__Pyx_GIVEREF(__pyx_tuple__471);
- __pyx_codeobj__472 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__471, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_parser_pxi, __pyx_n_s_set_default_parser, 1638, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__472)) __PYX_ERR(2, 1638, __pyx_L1_error)
- __pyx_tuple__473 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__473)) __PYX_ERR(2, 1638, __pyx_L1_error)
+ __pyx_codeobj__472 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__471, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_parser_pxi, __pyx_n_s_set_default_parser, 1641, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__472)) __PYX_ERR(2, 1641, __pyx_L1_error)
+ __pyx_tuple__473 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__473)) __PYX_ERR(2, 1641, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__473);
__Pyx_GIVEREF(__pyx_tuple__473);
- /* "src/lxml/parser.pxi":1654
+ /* "src/lxml/parser.pxi":1657
* __GLOBAL_PARSER_CONTEXT.setDefaultParser(parser)
*
* def get_default_parser(): # <<<<<<<<<<<<<<
* u"get_default_parser()"
* return __GLOBAL_PARSER_CONTEXT.getDefaultParser()
*/
- __pyx_codeobj__474 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_parser_pxi, __pyx_n_s_get_default_parser, 1654, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__474)) __PYX_ERR(2, 1654, __pyx_L1_error)
+ __pyx_codeobj__474 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_parser_pxi, __pyx_n_s_get_default_parser, 1657, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__474)) __PYX_ERR(2, 1657, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1759
+ /* "src/lxml/parser.pxi":1762
* self._collectEvents(events, tag)
*
* def read_events(self): # <<<<<<<<<<<<<<
* return (<_SaxParserContext?>self._getPushParserContext()).events_iterator
*
*/
- __pyx_tuple__475 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__475)) __PYX_ERR(2, 1759, __pyx_L1_error)
+ __pyx_tuple__475 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__475)) __PYX_ERR(2, 1762, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__475);
__Pyx_GIVEREF(__pyx_tuple__475);
- __pyx_codeobj__476 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__475, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_parser_pxi, __pyx_n_s_read_events, 1759, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__476)) __PYX_ERR(2, 1759, __pyx_L1_error)
+ __pyx_codeobj__476 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__475, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_parser_pxi, __pyx_n_s_read_events, 1762, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__476)) __PYX_ERR(2, 1762, __pyx_L1_error)
/* "src/lxml/saxparser.pxi":813
* # Python level event handlers
__Pyx_GOTREF(__pyx_tuple__624);
__Pyx_GIVEREF(__pyx_tuple__624);
- /* "src/lxml/xslt.pxi":438
+ /* "src/lxml/xslt.pxi":439
*
* @staticmethod
* def strparam(strval): # <<<<<<<<<<<<<<
* u"""strparam(strval)
*
*/
- __pyx_tuple__625 = PyTuple_Pack(1, __pyx_n_s_strval); if (unlikely(!__pyx_tuple__625)) __PYX_ERR(4, 438, __pyx_L1_error)
+ __pyx_tuple__625 = PyTuple_Pack(1, __pyx_n_s_strval); if (unlikely(!__pyx_tuple__625)) __PYX_ERR(4, 439, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__625);
__Pyx_GIVEREF(__pyx_tuple__625);
- __pyx_codeobj__626 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__625, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_xslt_pxi, __pyx_n_s_strparam, 438, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__626)) __PYX_ERR(4, 438, __pyx_L1_error)
+ __pyx_codeobj__626 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__625, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_xslt_pxi, __pyx_n_s_strparam, 439, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__626)) __PYX_ERR(4, 439, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":452
+ /* "src/lxml/xslt.pxi":453
*
* @staticmethod
* def set_global_max_depth(int max_depth): # <<<<<<<<<<<<<<
* u"""set_global_max_depth(max_depth)
*
*/
- __pyx_tuple__627 = PyTuple_Pack(1, __pyx_n_s_max_depth); if (unlikely(!__pyx_tuple__627)) __PYX_ERR(4, 452, __pyx_L1_error)
+ __pyx_tuple__627 = PyTuple_Pack(1, __pyx_n_s_max_depth); if (unlikely(!__pyx_tuple__627)) __PYX_ERR(4, 453, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__627);
__Pyx_GIVEREF(__pyx_tuple__627);
- __pyx_codeobj__628 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__627, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_xslt_pxi, __pyx_n_s_set_global_max_depth, 452, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__628)) __PYX_ERR(4, 452, __pyx_L1_error)
+ __pyx_codeobj__628 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__627, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_xslt_pxi, __pyx_n_s_set_global_max_depth, 453, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__628)) __PYX_ERR(4, 453, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":471
+ /* "src/lxml/xslt.pxi":472
* xslt.xsltMaxDepth = max_depth
*
* def apply(self, _input, *, profile_run=False, **kw): # <<<<<<<<<<<<<<
* u"""apply(self, _input, profile_run=False, **kw)
*
*/
- __pyx_tuple__629 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_input, __pyx_n_s_profile_run, __pyx_n_s_kw_2); if (unlikely(!__pyx_tuple__629)) __PYX_ERR(4, 471, __pyx_L1_error)
+ __pyx_tuple__629 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_input, __pyx_n_s_profile_run, __pyx_n_s_kw_2); if (unlikely(!__pyx_tuple__629)) __PYX_ERR(4, 472, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__629);
__Pyx_GIVEREF(__pyx_tuple__629);
- __pyx_codeobj__630 = (PyObject*)__Pyx_PyCode_New(2, 1, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__629, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_xslt_pxi, __pyx_n_s_apply, 471, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__630)) __PYX_ERR(4, 471, __pyx_L1_error)
+ __pyx_codeobj__630 = (PyObject*)__Pyx_PyCode_New(2, 1, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__629, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_xslt_pxi, __pyx_n_s_apply, 472, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__630)) __PYX_ERR(4, 472, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":477
+ /* "src/lxml/xslt.pxi":478
* return self(_input, profile_run=profile_run, **kw)
*
* def tostring(self, _ElementTree result_tree): # <<<<<<<<<<<<<<
* u"""tostring(self, result_tree)
*
*/
- __pyx_tuple__631 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_result_tree); if (unlikely(!__pyx_tuple__631)) __PYX_ERR(4, 477, __pyx_L1_error)
+ __pyx_tuple__631 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_result_tree); if (unlikely(!__pyx_tuple__631)) __PYX_ERR(4, 478, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__631);
__Pyx_GIVEREF(__pyx_tuple__631);
- __pyx_codeobj__632 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__631, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_xslt_pxi, __pyx_n_s_tostring, 477, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__632)) __PYX_ERR(4, 477, __pyx_L1_error)
+ __pyx_codeobj__632 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__631, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_xslt_pxi, __pyx_n_s_tostring, 478, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__632)) __PYX_ERR(4, 478, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":486
+ /* "src/lxml/xslt.pxi":487
* return str(result_tree)
*
* def __deepcopy__(self, memo): # <<<<<<<<<<<<<<
* return self.__copy__()
*
*/
- __pyx_tuple__633 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_memo); if (unlikely(!__pyx_tuple__633)) __PYX_ERR(4, 486, __pyx_L1_error)
+ __pyx_tuple__633 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_memo); if (unlikely(!__pyx_tuple__633)) __PYX_ERR(4, 487, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__633);
__Pyx_GIVEREF(__pyx_tuple__633);
- __pyx_codeobj__634 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__633, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_xslt_pxi, __pyx_n_s_deepcopy, 486, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__634)) __PYX_ERR(4, 486, __pyx_L1_error)
+ __pyx_codeobj__634 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__633, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_xslt_pxi, __pyx_n_s_deepcopy, 487, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__634)) __PYX_ERR(4, 487, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":489
+ /* "src/lxml/xslt.pxi":490
* return self.__copy__()
*
* def __copy__(self): # <<<<<<<<<<<<<<
* return _copyXSLT(self)
*
*/
- __pyx_tuple__635 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__635)) __PYX_ERR(4, 489, __pyx_L1_error)
+ __pyx_tuple__635 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__635)) __PYX_ERR(4, 490, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__635);
__Pyx_GIVEREF(__pyx_tuple__635);
- __pyx_codeobj__636 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__635, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_xslt_pxi, __pyx_n_s_copy_2, 489, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__636)) __PYX_ERR(4, 489, __pyx_L1_error)
+ __pyx_codeobj__636 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__635, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_xslt_pxi, __pyx_n_s_copy_2, 490, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__636)) __PYX_ERR(4, 490, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":717
+ /* "src/lxml/xslt.pxi":718
* cdef Py_ssize_t _buffer_refcnt
*
* def write_output(self, file, *, compression=0): # <<<<<<<<<<<<<<
* """write_output(self, file, *, compression=0)
*
*/
- __pyx_tuple__637 = PyTuple_Pack(10, __pyx_n_s_self, __pyx_n_s_file, __pyx_n_s_compression, __pyx_n_s_writer, __pyx_n_s_doc_2, __pyx_n_s_r, __pyx_n_s_rclose, __pyx_n_s_c_compression, __pyx_n_s_c_encoding, __pyx_n_s_c_buffer); if (unlikely(!__pyx_tuple__637)) __PYX_ERR(4, 717, __pyx_L1_error)
+ __pyx_tuple__637 = PyTuple_Pack(10, __pyx_n_s_self, __pyx_n_s_file, __pyx_n_s_compression, __pyx_n_s_writer, __pyx_n_s_doc_2, __pyx_n_s_r, __pyx_n_s_rclose, __pyx_n_s_c_compression, __pyx_n_s_c_encoding, __pyx_n_s_c_buffer); if (unlikely(!__pyx_tuple__637)) __PYX_ERR(4, 718, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__637);
__Pyx_GIVEREF(__pyx_tuple__637);
- __pyx_codeobj__638 = (PyObject*)__Pyx_PyCode_New(2, 1, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__637, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_xslt_pxi, __pyx_n_s_write_output, 717, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__638)) __PYX_ERR(4, 717, __pyx_L1_error)
+ __pyx_codeobj__638 = (PyObject*)__Pyx_PyCode_New(2, 1, 10, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__637, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_xslt_pxi, __pyx_n_s_write_output, 718, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__638)) __PYX_ERR(4, 718, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":787
+ /* "src/lxml/xslt.pxi":788
* return result
*
* def __unicode__(self): # <<<<<<<<<<<<<<
* cdef xmlChar* encoding
* cdef xmlChar* s = NULL
*/
- __pyx_tuple__639 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_encoding, __pyx_n_s_s_4, __pyx_n_s_l, __pyx_n_s_result); if (unlikely(!__pyx_tuple__639)) __PYX_ERR(4, 787, __pyx_L1_error)
+ __pyx_tuple__639 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_encoding, __pyx_n_s_s_4, __pyx_n_s_l, __pyx_n_s_result); if (unlikely(!__pyx_tuple__639)) __PYX_ERR(4, 788, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__639);
__Pyx_GIVEREF(__pyx_tuple__639);
- __pyx_codeobj__640 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__639, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_xslt_pxi, __pyx_n_s_unicode_2, 787, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__640)) __PYX_ERR(4, 787, __pyx_L1_error)
+ __pyx_codeobj__640 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__639, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_xslt_pxi, __pyx_n_s_unicode_2, 788, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__640)) __PYX_ERR(4, 788, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":881
+ /* "src/lxml/xslt.pxi":882
* # XSLT PI support
*
* cdef object _RE_PI_HREF = re.compile(ur'\s+href\s*=\s*(?:\'([^\']*)\'|"([^"]*)")') # <<<<<<<<<<<<<<
* cdef object _FIND_PI_HREF = _RE_PI_HREF.findall
* cdef object _REPLACE_PI_HREF = _RE_PI_HREF.sub
*/
- __pyx_tuple__641 = PyTuple_Pack(1, __pyx_kp_u_s_href_s_s); if (unlikely(!__pyx_tuple__641)) __PYX_ERR(4, 881, __pyx_L1_error)
+ __pyx_tuple__641 = PyTuple_Pack(1, __pyx_kp_u_s_href_s_s); if (unlikely(!__pyx_tuple__641)) __PYX_ERR(4, 882, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__641);
__Pyx_GIVEREF(__pyx_tuple__641);
- /* "src/lxml/xslt.pxi":895
+ /* "src/lxml/xslt.pxi":896
*
* cdef class _XSLTProcessingInstruction(PIBase):
* def parseXSL(self, parser=None): # <<<<<<<<<<<<<<
* u"""parseXSL(self, parser=None)
*
*/
- __pyx_tuple__642 = PyTuple_Pack(9, __pyx_n_s_self, __pyx_n_s_parser, __pyx_n_s_result_doc, __pyx_n_s_result_node, __pyx_n_s_href_utf, __pyx_n_s_c_href, __pyx_n_s_c_attr, __pyx_n_s_hrefs, __pyx_n_s_root); if (unlikely(!__pyx_tuple__642)) __PYX_ERR(4, 895, __pyx_L1_error)
+ __pyx_tuple__642 = PyTuple_Pack(9, __pyx_n_s_self, __pyx_n_s_parser, __pyx_n_s_result_doc, __pyx_n_s_result_node, __pyx_n_s_href_utf, __pyx_n_s_c_href, __pyx_n_s_c_attr, __pyx_n_s_hrefs, __pyx_n_s_root); if (unlikely(!__pyx_tuple__642)) __PYX_ERR(4, 896, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__642);
__Pyx_GIVEREF(__pyx_tuple__642);
- __pyx_codeobj__643 = (PyObject*)__Pyx_PyCode_New(2, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__642, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_xslt_pxi, __pyx_n_s_parseXSL, 895, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__643)) __PYX_ERR(4, 895, __pyx_L1_error)
+ __pyx_codeobj__643 = (PyObject*)__Pyx_PyCode_New(2, 0, 9, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__642, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_xslt_pxi, __pyx_n_s_parseXSL, 896, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__643)) __PYX_ERR(4, 896, __pyx_L1_error)
- /* "src/lxml/xslt.pxi":952
+ /* "src/lxml/xslt.pxi":953
* return _elementTreeFactory(result_node._doc, result_node)
*
* def set(self, key, value): # <<<<<<<<<<<<<<
* u"""set(self, key, value)
*
*/
- __pyx_tuple__644 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_key, __pyx_n_s_value, __pyx_n_s_attrib, __pyx_n_s_text); if (unlikely(!__pyx_tuple__644)) __PYX_ERR(4, 952, __pyx_L1_error)
+ __pyx_tuple__644 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_key, __pyx_n_s_value, __pyx_n_s_attrib, __pyx_n_s_text); if (unlikely(!__pyx_tuple__644)) __PYX_ERR(4, 953, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__644);
__Pyx_GIVEREF(__pyx_tuple__644);
- __pyx_codeobj__645 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__644, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_xslt_pxi, __pyx_n_s_set, 952, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__645)) __PYX_ERR(4, 952, __pyx_L1_error)
+ __pyx_codeobj__645 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__644, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_xslt_pxi, __pyx_n_s_set, 953, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__645)) __PYX_ERR(4, 953, __pyx_L1_error)
/* "src/lxml/xsltext.pxi":6
* u"""Base class of an XSLT extension element.
__Pyx_GIVEREF(__pyx_tuple__650);
__pyx_codeobj__651 = (PyObject*)__Pyx_PyCode_New(3, 2, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__650, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_xsltext_pxi, __pyx_n_s_process_children, 74, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__651)) __PYX_ERR(19, 74, __pyx_L1_error)
- /* "lxml/etree.pyx":3625
+ /* "lxml/etree.pyx":3628
* self._error_log = _ErrorLog()
*
* def validate(self, etree): # <<<<<<<<<<<<<<
* u"""validate(self, etree)
*
*/
- __pyx_tuple__652 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_etree); if (unlikely(!__pyx_tuple__652)) __PYX_ERR(0, 3625, __pyx_L1_error)
+ __pyx_tuple__652 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_etree); if (unlikely(!__pyx_tuple__652)) __PYX_ERR(0, 3628, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__652);
__Pyx_GIVEREF(__pyx_tuple__652);
- __pyx_codeobj__653 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__652, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_validate, 3625, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__653)) __PYX_ERR(0, 3625, __pyx_L1_error)
+ __pyx_codeobj__653 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__652, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_validate, 3628, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__653)) __PYX_ERR(0, 3628, __pyx_L1_error)
- /* "lxml/etree.pyx":3634
+ /* "lxml/etree.pyx":3637
* return self(etree)
*
* def assertValid(self, etree): # <<<<<<<<<<<<<<
* u"""assertValid(self, etree)
*
*/
- __pyx_tuple__654 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_etree); if (unlikely(!__pyx_tuple__654)) __PYX_ERR(0, 3634, __pyx_L1_error)
+ __pyx_tuple__654 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_etree); if (unlikely(!__pyx_tuple__654)) __PYX_ERR(0, 3637, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__654);
__Pyx_GIVEREF(__pyx_tuple__654);
- __pyx_codeobj__655 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__654, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_assertValid, 3634, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__655)) __PYX_ERR(0, 3634, __pyx_L1_error)
+ __pyx_codeobj__655 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__654, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_assertValid, 3637, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__655)) __PYX_ERR(0, 3637, __pyx_L1_error)
- /* "lxml/etree.pyx":3644
+ /* "lxml/etree.pyx":3647
* self._error_log)
*
* def assert_(self, etree): # <<<<<<<<<<<<<<
* u"""assert_(self, etree)
*
*/
- __pyx_tuple__656 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_etree); if (unlikely(!__pyx_tuple__656)) __PYX_ERR(0, 3644, __pyx_L1_error)
+ __pyx_tuple__656 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_etree); if (unlikely(!__pyx_tuple__656)) __PYX_ERR(0, 3647, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__656);
__Pyx_GIVEREF(__pyx_tuple__656);
- __pyx_codeobj__657 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__656, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_assert, 3644, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__657)) __PYX_ERR(0, 3644, __pyx_L1_error)
+ __pyx_codeobj__657 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__656, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_assert, 3647, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__657)) __PYX_ERR(0, 3647, __pyx_L1_error)
- /* "lxml/etree.pyx":3653
+ /* "lxml/etree.pyx":3656
* u"Document does not comply with schema")
*
* cpdef _append_log_message(self, int domain, int type, int level, int line, # <<<<<<<<<<<<<<
* message, filename):
* self._error_log._receiveGeneric(domain, type, level, line, message,
*/
- __pyx_tuple__658 = PyTuple_Pack(7, __pyx_n_s_self, __pyx_n_s_domain, __pyx_n_s_type, __pyx_n_s_level, __pyx_n_s_line_2, __pyx_n_s_message, __pyx_n_s_filename); if (unlikely(!__pyx_tuple__658)) __PYX_ERR(0, 3653, __pyx_L1_error)
+ __pyx_tuple__658 = PyTuple_Pack(7, __pyx_n_s_self, __pyx_n_s_domain, __pyx_n_s_type, __pyx_n_s_level, __pyx_n_s_line_2, __pyx_n_s_message, __pyx_n_s_filename); if (unlikely(!__pyx_tuple__658)) __PYX_ERR(0, 3656, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__658);
__Pyx_GIVEREF(__pyx_tuple__658);
- __pyx_codeobj__659 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_append_log_message, 3653, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__659)) __PYX_ERR(0, 3653, __pyx_L1_error)
+ __pyx_codeobj__659 = (PyObject*)__Pyx_PyCode_New(7, 0, 7, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_append_log_message, 3656, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__659)) __PYX_ERR(0, 3656, __pyx_L1_error)
- /* "lxml/etree.pyx":3658
+ /* "lxml/etree.pyx":3661
* filename)
*
* cpdef _clear_error_log(self): # <<<<<<<<<<<<<<
* self._error_log.clear()
*
*/
- __pyx_tuple__660 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__660)) __PYX_ERR(0, 3658, __pyx_L1_error)
+ __pyx_tuple__660 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__660)) __PYX_ERR(0, 3661, __pyx_L1_error)
__Pyx_GOTREF(__pyx_tuple__660);
__Pyx_GIVEREF(__pyx_tuple__660);
- __pyx_codeobj__661 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__660, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_clear_error_log, 3658, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__661)) __PYX_ERR(0, 3658, __pyx_L1_error)
+ __pyx_codeobj__661 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__660, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_src_lxml_etree_pyx, __pyx_n_s_clear_error_log, 3661, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__661)) __PYX_ERR(0, 3661, __pyx_L1_error)
/* "src/lxml/dtd.pxi":163
* return funicodeOrNone(self._c_node.defaultValue)
}
static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void) {
+ /* AssertionsEnabled.init */
+ __Pyx_init_assertions_enabled();
+
+if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)
+
__pyx_umethod_PyBytes_Type_replace.type = (PyObject*)&PyBytes_Type;
__pyx_umethod_PyBytes_Type_split.type = (PyObject*)&PyBytes_Type;
__pyx_umethod_PyDict_Type_get.type = (PyObject*)&PyDict_Type;
__pyx_umethod_PyList_Type_pop.type = (PyObject*)&PyList_Type;
__pyx_umethod_PySet_Type_update.type = (PyObject*)&PySet_Type;
__pyx_umethod_PyUnicode_Type_strip.type = (PyObject*)&PyUnicode_Type;
- if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
+ if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
__pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) __PYX_ERR(0, 1, __pyx_L1_error)
__pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) __PYX_ERR(0, 1, __pyx_L1_error)
__pyx_int_2 = PyInt_FromLong(2); if (unlikely(!__pyx_int_2)) __PYX_ERR(0, 1, __pyx_L1_error)
__pyx_v_4lxml_5etree_partial = Py_None; Py_INCREF(Py_None);
__pyx_v_4lxml_5etree_islice = Py_None; Py_INCREF(Py_None);
__pyx_v_4lxml_5etree_ITER_EMPTY = Py_None; Py_INCREF(Py_None);
+ __pyx_v_4lxml_5etree_MutableMapping = Py_None; Py_INCREF(Py_None);
__pyx_v_4lxml_5etree_IMMUTABLE_EMPTY_MAPPING = Py_None; Py_INCREF(Py_None);
__pyx_v_4lxml_5etree__FILENAME_ENCODING = ((PyObject*)Py_None); Py_INCREF(Py_None);
__pyx_v_4lxml_5etree__DEFAULT_NAMESPACE_PREFIXES = ((PyObject*)Py_None); Py_INCREF(Py_None);
__Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0);
/*--- Type init code ---*/
__pyx_type_4lxml_5etree_Error.tp_base = (&((PyTypeObject*)PyExc_Exception)[0]);
- if (PyType_Ready(&__pyx_type_4lxml_5etree_Error) < 0) __PYX_ERR(0, 211, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree_Error) < 0) __PYX_ERR(0, 212, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree_Error.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree_Error.tp_dictoffset && __pyx_type_4lxml_5etree_Error.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree_Error.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Error, (PyObject *)&__pyx_type_4lxml_5etree_Error) < 0) __PYX_ERR(0, 211, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Error, (PyObject *)&__pyx_type_4lxml_5etree_Error) < 0) __PYX_ERR(0, 212, __pyx_L1_error)
__pyx_ptype_4lxml_5etree_Error = &__pyx_type_4lxml_5etree_Error;
__pyx_type_4lxml_5etree_LxmlError.tp_base = __pyx_ptype_4lxml_5etree_Error;
- if (PyType_Ready(&__pyx_type_4lxml_5etree_LxmlError) < 0) __PYX_ERR(0, 215, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree_LxmlError) < 0) __PYX_ERR(0, 216, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree_LxmlError.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree_LxmlError.tp_dictoffset && __pyx_type_4lxml_5etree_LxmlError.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree_LxmlError.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_LxmlError, (PyObject *)&__pyx_type_4lxml_5etree_LxmlError) < 0) __PYX_ERR(0, 215, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_LxmlError, (PyObject *)&__pyx_type_4lxml_5etree_LxmlError) < 0) __PYX_ERR(0, 216, __pyx_L1_error)
__pyx_ptype_4lxml_5etree_LxmlError = &__pyx_type_4lxml_5etree_LxmlError;
__pyx_type_4lxml_5etree_C14NError.tp_base = __pyx_ptype_4lxml_5etree_LxmlError;
- if (PyType_Ready(&__pyx_type_4lxml_5etree_C14NError) < 0) __PYX_ERR(0, 234, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree_C14NError) < 0) __PYX_ERR(0, 235, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree_C14NError.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree_C14NError.tp_dictoffset && __pyx_type_4lxml_5etree_C14NError.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree_C14NError.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_C14NError, (PyObject *)&__pyx_type_4lxml_5etree_C14NError) < 0) __PYX_ERR(0, 234, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_C14NError, (PyObject *)&__pyx_type_4lxml_5etree_C14NError) < 0) __PYX_ERR(0, 235, __pyx_L1_error)
__pyx_ptype_4lxml_5etree_C14NError = &__pyx_type_4lxml_5etree_C14NError;
__pyx_vtabptr_4lxml_5etree__TempStore = &__pyx_vtable_4lxml_5etree__TempStore;
__pyx_vtable_4lxml_5etree__TempStore.add = (int (*)(struct __pyx_obj_4lxml_5etree__TempStore *, PyObject *))__pyx_f_4lxml_5etree_10_TempStore_add;
__pyx_vtable_4lxml_5etree__TempStore.clear = (int (*)(struct __pyx_obj_4lxml_5etree__TempStore *))__pyx_f_4lxml_5etree_10_TempStore_clear;
- if (PyType_Ready(&__pyx_type_4lxml_5etree__TempStore) < 0) __PYX_ERR(0, 288, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree__TempStore) < 0) __PYX_ERR(0, 289, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree__TempStore.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree__TempStore.tp_dictoffset && __pyx_type_4lxml_5etree__TempStore.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree__TempStore.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
}
- if (__Pyx_SetVtable(__pyx_type_4lxml_5etree__TempStore.tp_dict, __pyx_vtabptr_4lxml_5etree__TempStore) < 0) __PYX_ERR(0, 288, __pyx_L1_error)
+ if (__Pyx_SetVtable(__pyx_type_4lxml_5etree__TempStore.tp_dict, __pyx_vtabptr_4lxml_5etree__TempStore) < 0) __PYX_ERR(0, 289, __pyx_L1_error)
__pyx_ptype_4lxml_5etree__TempStore = &__pyx_type_4lxml_5etree__TempStore;
__pyx_vtabptr_4lxml_5etree__ExceptionContext = &__pyx_vtable_4lxml_5etree__ExceptionContext;
__pyx_vtable_4lxml_5etree__ExceptionContext.clear = (int (*)(struct __pyx_obj_4lxml_5etree__ExceptionContext *))__pyx_f_4lxml_5etree_17_ExceptionContext_clear;
__pyx_vtable_4lxml_5etree__ExceptionContext._store_exception = (int (*)(struct __pyx_obj_4lxml_5etree__ExceptionContext *, PyObject *))__pyx_f_4lxml_5etree_17_ExceptionContext__store_exception;
__pyx_vtable_4lxml_5etree__ExceptionContext._has_raised = (int (*)(struct __pyx_obj_4lxml_5etree__ExceptionContext *))__pyx_f_4lxml_5etree_17_ExceptionContext__has_raised;
__pyx_vtable_4lxml_5etree__ExceptionContext._raise_if_stored = (int (*)(struct __pyx_obj_4lxml_5etree__ExceptionContext *))__pyx_f_4lxml_5etree_17_ExceptionContext__raise_if_stored;
- if (PyType_Ready(&__pyx_type_4lxml_5etree__ExceptionContext) < 0) __PYX_ERR(0, 304, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree__ExceptionContext) < 0) __PYX_ERR(0, 305, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree__ExceptionContext.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree__ExceptionContext.tp_dictoffset && __pyx_type_4lxml_5etree__ExceptionContext.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree__ExceptionContext.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (__Pyx_SetVtable(__pyx_type_4lxml_5etree__ExceptionContext.tp_dict, __pyx_vtabptr_4lxml_5etree__ExceptionContext) < 0) __PYX_ERR(0, 304, __pyx_L1_error)
+ if (__Pyx_SetVtable(__pyx_type_4lxml_5etree__ExceptionContext.tp_dict, __pyx_vtabptr_4lxml_5etree__ExceptionContext) < 0) __PYX_ERR(0, 305, __pyx_L1_error)
__pyx_ptype_4lxml_5etree__ExceptionContext = &__pyx_type_4lxml_5etree__ExceptionContext;
__pyx_vtabptr_4lxml_5etree__LogEntry = &__pyx_vtable_4lxml_5etree__LogEntry;
__pyx_vtable_4lxml_5etree__LogEntry._setError = (PyObject *(*)(struct __pyx_obj_4lxml_5etree__LogEntry *, xmlError *))__pyx_f_4lxml_5etree_9_LogEntry__setError;
__pyx_vtable_4lxml_5etree__Document.buildNewPrefix = (PyObject *(*)(struct LxmlDocument *))__pyx_f_4lxml_5etree_9_Document_buildNewPrefix;
__pyx_vtable_4lxml_5etree__Document._findOrBuildNodeNs = (xmlNs *(*)(struct LxmlDocument *, xmlNode *, const xmlChar *, const xmlChar *, int))__pyx_f_4lxml_5etree_9_Document__findOrBuildNodeNs;
__pyx_vtable_4lxml_5etree__Document._setNodeNs = (int (*)(struct LxmlDocument *, xmlNode *, const xmlChar *))__pyx_f_4lxml_5etree_9_Document__setNodeNs;
- if (PyType_Ready(&LxmlDocumentType) < 0) __PYX_ERR(0, 353, __pyx_L1_error)
+ if (PyType_Ready(&LxmlDocumentType) < 0) __PYX_ERR(0, 354, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
LxmlDocumentType.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!LxmlDocumentType.tp_dictoffset && LxmlDocumentType.tp_getattro == PyObject_GenericGetAttr)) {
LxmlDocumentType.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
}
- if (__Pyx_SetVtable(LxmlDocumentType.tp_dict, __pyx_vtabptr_4lxml_5etree__Document) < 0) __PYX_ERR(0, 353, __pyx_L1_error)
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Document, (PyObject *)&LxmlDocumentType) < 0) __PYX_ERR(0, 353, __pyx_L1_error)
+ if (__Pyx_SetVtable(LxmlDocumentType.tp_dict, __pyx_vtabptr_4lxml_5etree__Document) < 0) __PYX_ERR(0, 354, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Document, (PyObject *)&LxmlDocumentType) < 0) __PYX_ERR(0, 354, __pyx_L1_error)
__pyx_ptype_4lxml_5etree__Document = &LxmlDocumentType;
__pyx_vtabptr_4lxml_5etree_DocInfo = &__pyx_vtable_4lxml_5etree_DocInfo;
__pyx_vtable_4lxml_5etree_DocInfo._get_c_dtd = (xmlDtd *(*)(struct __pyx_obj_4lxml_5etree_DocInfo *))__pyx_f_4lxml_5etree_7DocInfo__get_c_dtd;
- if (PyType_Ready(&__pyx_type_4lxml_5etree_DocInfo) < 0) __PYX_ERR(0, 527, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree_DocInfo) < 0) __PYX_ERR(0, 528, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree_DocInfo.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree_DocInfo.tp_dictoffset && __pyx_type_4lxml_5etree_DocInfo.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree_DocInfo.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (__Pyx_SetVtable(__pyx_type_4lxml_5etree_DocInfo.tp_dict, __pyx_vtabptr_4lxml_5etree_DocInfo) < 0) __PYX_ERR(0, 527, __pyx_L1_error)
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_DocInfo, (PyObject *)&__pyx_type_4lxml_5etree_DocInfo) < 0) __PYX_ERR(0, 527, __pyx_L1_error)
+ if (__Pyx_SetVtable(__pyx_type_4lxml_5etree_DocInfo.tp_dict, __pyx_vtabptr_4lxml_5etree_DocInfo) < 0) __PYX_ERR(0, 528, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_DocInfo, (PyObject *)&__pyx_type_4lxml_5etree_DocInfo) < 0) __PYX_ERR(0, 528, __pyx_L1_error)
__pyx_ptype_4lxml_5etree_DocInfo = &__pyx_type_4lxml_5etree_DocInfo;
- if (PyType_Ready(&LxmlElementType) < 0) __PYX_ERR(0, 702, __pyx_L1_error)
+ if (PyType_Ready(&LxmlElementType) < 0) __PYX_ERR(0, 703, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
LxmlElementType.tp_print = 0;
#endif
}
#if CYTHON_UPDATE_DESCRIPTOR_DOC
{
- PyObject *wrapper = PyObject_GetAttrString((PyObject *)&LxmlElementType, "__setitem__"); if (unlikely(!wrapper)) __PYX_ERR(0, 702, __pyx_L1_error)
+ PyObject *wrapper = PyObject_GetAttrString((PyObject *)&LxmlElementType, "__setitem__"); if (unlikely(!wrapper)) __PYX_ERR(0, 703, __pyx_L1_error)
if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
__pyx_wrapperbase_4lxml_5etree_8_Element_4__setitem__ = *((PyWrapperDescrObject *)wrapper)->d_base;
__pyx_wrapperbase_4lxml_5etree_8_Element_4__setitem__.doc = __pyx_doc_4lxml_5etree_8_Element_4__setitem__;
#endif
#if CYTHON_UPDATE_DESCRIPTOR_DOC
{
- PyObject *wrapper = PyObject_GetAttrString((PyObject *)&LxmlElementType, "__delitem__"); if (unlikely(!wrapper)) __PYX_ERR(0, 702, __pyx_L1_error)
+ PyObject *wrapper = PyObject_GetAttrString((PyObject *)&LxmlElementType, "__delitem__"); if (unlikely(!wrapper)) __PYX_ERR(0, 703, __pyx_L1_error)
if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
__pyx_wrapperbase_4lxml_5etree_8_Element_6__delitem__ = *((PyWrapperDescrObject *)wrapper)->d_base;
__pyx_wrapperbase_4lxml_5etree_8_Element_6__delitem__.doc = __pyx_doc_4lxml_5etree_8_Element_6__delitem__;
#endif
#if CYTHON_UPDATE_DESCRIPTOR_DOC
{
- PyObject *wrapper = PyObject_GetAttrString((PyObject *)&LxmlElementType, "__repr__"); if (unlikely(!wrapper)) __PYX_ERR(0, 702, __pyx_L1_error)
+ PyObject *wrapper = PyObject_GetAttrString((PyObject *)&LxmlElementType, "__repr__"); if (unlikely(!wrapper)) __PYX_ERR(0, 703, __pyx_L1_error)
if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
__pyx_wrapperbase_4lxml_5etree_8_Element_30__repr__ = *((PyWrapperDescrObject *)wrapper)->d_base;
__pyx_wrapperbase_4lxml_5etree_8_Element_30__repr__.doc = __pyx_doc_4lxml_5etree_8_Element_30__repr__;
#endif
#if CYTHON_UPDATE_DESCRIPTOR_DOC
{
- PyObject *wrapper = PyObject_GetAttrString((PyObject *)&LxmlElementType, "__getitem__"); if (unlikely(!wrapper)) __PYX_ERR(0, 702, __pyx_L1_error)
+ PyObject *wrapper = PyObject_GetAttrString((PyObject *)&LxmlElementType, "__getitem__"); if (unlikely(!wrapper)) __PYX_ERR(0, 703, __pyx_L1_error)
if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
__pyx_wrapperbase_4lxml_5etree_8_Element_32__getitem__ = *((PyWrapperDescrObject *)wrapper)->d_base;
__pyx_wrapperbase_4lxml_5etree_8_Element_32__getitem__.doc = __pyx_doc_4lxml_5etree_8_Element_32__getitem__;
#endif
#if CYTHON_UPDATE_DESCRIPTOR_DOC
{
- PyObject *wrapper = PyObject_GetAttrString((PyObject *)&LxmlElementType, "__len__"); if (unlikely(!wrapper)) __PYX_ERR(0, 702, __pyx_L1_error)
+ PyObject *wrapper = PyObject_GetAttrString((PyObject *)&LxmlElementType, "__len__"); if (unlikely(!wrapper)) __PYX_ERR(0, 703, __pyx_L1_error)
if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
__pyx_wrapperbase_4lxml_5etree_8_Element_34__len__ = *((PyWrapperDescrObject *)wrapper)->d_base;
__pyx_wrapperbase_4lxml_5etree_8_Element_34__len__.doc = __pyx_doc_4lxml_5etree_8_Element_34__len__;
#endif
#if CYTHON_UPDATE_DESCRIPTOR_DOC
{
- PyObject *wrapper = PyObject_GetAttrString((PyObject *)&LxmlElementType, "__contains__"); if (unlikely(!wrapper)) __PYX_ERR(0, 702, __pyx_L1_error)
+ PyObject *wrapper = PyObject_GetAttrString((PyObject *)&LxmlElementType, "__contains__"); if (unlikely(!wrapper)) __PYX_ERR(0, 703, __pyx_L1_error)
if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
__pyx_wrapperbase_4lxml_5etree_8_Element_38__contains__ = *((PyWrapperDescrObject *)wrapper)->d_base;
__pyx_wrapperbase_4lxml_5etree_8_Element_38__contains__.doc = __pyx_doc_4lxml_5etree_8_Element_38__contains__;
#endif
#if CYTHON_UPDATE_DESCRIPTOR_DOC
{
- PyObject *wrapper = PyObject_GetAttrString((PyObject *)&LxmlElementType, "__iter__"); if (unlikely(!wrapper)) __PYX_ERR(0, 702, __pyx_L1_error)
+ PyObject *wrapper = PyObject_GetAttrString((PyObject *)&LxmlElementType, "__iter__"); if (unlikely(!wrapper)) __PYX_ERR(0, 703, __pyx_L1_error)
if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
__pyx_wrapperbase_4lxml_5etree_8_Element_40__iter__ = *((PyWrapperDescrObject *)wrapper)->d_base;
__pyx_wrapperbase_4lxml_5etree_8_Element_40__iter__.doc = __pyx_doc_4lxml_5etree_8_Element_40__iter__;
}
}
#endif
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Element_2, (PyObject *)&LxmlElementType) < 0) __PYX_ERR(0, 702, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Element_2, (PyObject *)&LxmlElementType) < 0) __PYX_ERR(0, 703, __pyx_L1_error)
__pyx_ptype_4lxml_5etree__Element = &LxmlElementType;
__pyx_vtabptr_4lxml_5etree___ContentOnlyElement = &__pyx_vtable_4lxml_5etree___ContentOnlyElement;
__pyx_vtable_4lxml_5etree___ContentOnlyElement._raiseImmutable = (int (*)(struct __pyx_obj_4lxml_5etree___ContentOnlyElement *))__pyx_f_4lxml_5etree_20__ContentOnlyElement__raiseImmutable;
__pyx_type_4lxml_5etree___ContentOnlyElement.tp_base = __pyx_ptype_4lxml_5etree__Element;
- if (PyType_Ready(&__pyx_type_4lxml_5etree___ContentOnlyElement) < 0) __PYX_ERR(0, 1647, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree___ContentOnlyElement) < 0) __PYX_ERR(0, 1648, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree___ContentOnlyElement.tp_print = 0;
#endif
}
#if CYTHON_UPDATE_DESCRIPTOR_DOC
{
- PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_4lxml_5etree___ContentOnlyElement, "__setitem__"); if (unlikely(!wrapper)) __PYX_ERR(0, 1647, __pyx_L1_error)
+ PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_4lxml_5etree___ContentOnlyElement, "__setitem__"); if (unlikely(!wrapper)) __PYX_ERR(0, 1648, __pyx_L1_error)
if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
__pyx_wrapperbase_4lxml_5etree_20__ContentOnlyElement_6__setitem__ = *((PyWrapperDescrObject *)wrapper)->d_base;
__pyx_wrapperbase_4lxml_5etree_20__ContentOnlyElement_6__setitem__.doc = __pyx_doc_4lxml_5etree_20__ContentOnlyElement_6__setitem__;
#endif
#if CYTHON_UPDATE_DESCRIPTOR_DOC
{
- PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_4lxml_5etree___ContentOnlyElement, "__getitem__"); if (unlikely(!wrapper)) __PYX_ERR(0, 1647, __pyx_L1_error)
+ PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_4lxml_5etree___ContentOnlyElement, "__getitem__"); if (unlikely(!wrapper)) __PYX_ERR(0, 1648, __pyx_L1_error)
if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
__pyx_wrapperbase_4lxml_5etree_20__ContentOnlyElement_8__getitem__ = *((PyWrapperDescrObject *)wrapper)->d_base;
__pyx_wrapperbase_4lxml_5etree_20__ContentOnlyElement_8__getitem__.doc = __pyx_doc_4lxml_5etree_20__ContentOnlyElement_8__getitem__;
#endif
#if CYTHON_UPDATE_DESCRIPTOR_DOC
{
- PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_4lxml_5etree___ContentOnlyElement, "__len__"); if (unlikely(!wrapper)) __PYX_ERR(0, 1647, __pyx_L1_error)
+ PyObject *wrapper = PyObject_GetAttrString((PyObject *)&__pyx_type_4lxml_5etree___ContentOnlyElement, "__len__"); if (unlikely(!wrapper)) __PYX_ERR(0, 1648, __pyx_L1_error)
if (Py_TYPE(wrapper) == &PyWrapperDescr_Type) {
__pyx_wrapperbase_4lxml_5etree_20__ContentOnlyElement_10__len__ = *((PyWrapperDescrObject *)wrapper)->d_base;
__pyx_wrapperbase_4lxml_5etree_20__ContentOnlyElement_10__len__.doc = __pyx_doc_4lxml_5etree_20__ContentOnlyElement_10__len__;
}
}
#endif
- if (__Pyx_SetVtable(__pyx_type_4lxml_5etree___ContentOnlyElement.tp_dict, __pyx_vtabptr_4lxml_5etree___ContentOnlyElement) < 0) __PYX_ERR(0, 1647, __pyx_L1_error)
+ if (__Pyx_SetVtable(__pyx_type_4lxml_5etree___ContentOnlyElement.tp_dict, __pyx_vtabptr_4lxml_5etree___ContentOnlyElement) < 0) __PYX_ERR(0, 1648, __pyx_L1_error)
__pyx_ptype_4lxml_5etree___ContentOnlyElement = &__pyx_type_4lxml_5etree___ContentOnlyElement;
__pyx_vtabptr_4lxml_5etree__Comment = &__pyx_vtable_4lxml_5etree__Comment;
__pyx_vtable_4lxml_5etree__Comment.__pyx_base = *__pyx_vtabptr_4lxml_5etree___ContentOnlyElement;
__pyx_type_4lxml_5etree__Comment.tp_base = __pyx_ptype_4lxml_5etree___ContentOnlyElement;
- if (PyType_Ready(&__pyx_type_4lxml_5etree__Comment) < 0) __PYX_ERR(0, 1714, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree__Comment) < 0) __PYX_ERR(0, 1715, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree__Comment.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree__Comment.tp_dictoffset && __pyx_type_4lxml_5etree__Comment.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree__Comment.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (__Pyx_SetVtable(__pyx_type_4lxml_5etree__Comment.tp_dict, __pyx_vtabptr_4lxml_5etree__Comment) < 0) __PYX_ERR(0, 1714, __pyx_L1_error)
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Comment_2, (PyObject *)&__pyx_type_4lxml_5etree__Comment) < 0) __PYX_ERR(0, 1714, __pyx_L1_error)
+ if (__Pyx_SetVtable(__pyx_type_4lxml_5etree__Comment.tp_dict, __pyx_vtabptr_4lxml_5etree__Comment) < 0) __PYX_ERR(0, 1715, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Comment_2, (PyObject *)&__pyx_type_4lxml_5etree__Comment) < 0) __PYX_ERR(0, 1715, __pyx_L1_error)
__pyx_ptype_4lxml_5etree__Comment = &__pyx_type_4lxml_5etree__Comment;
__pyx_vtabptr_4lxml_5etree__ProcessingInstruction = &__pyx_vtable_4lxml_5etree__ProcessingInstruction;
__pyx_vtable_4lxml_5etree__ProcessingInstruction.__pyx_base = *__pyx_vtabptr_4lxml_5etree___ContentOnlyElement;
__pyx_type_4lxml_5etree__ProcessingInstruction.tp_base = __pyx_ptype_4lxml_5etree___ContentOnlyElement;
- if (PyType_Ready(&__pyx_type_4lxml_5etree__ProcessingInstruction) < 0) __PYX_ERR(0, 1722, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree__ProcessingInstruction) < 0) __PYX_ERR(0, 1723, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree__ProcessingInstruction.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree__ProcessingInstruction.tp_dictoffset && __pyx_type_4lxml_5etree__ProcessingInstruction.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree__ProcessingInstruction.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (__Pyx_SetVtable(__pyx_type_4lxml_5etree__ProcessingInstruction.tp_dict, __pyx_vtabptr_4lxml_5etree__ProcessingInstruction) < 0) __PYX_ERR(0, 1722, __pyx_L1_error)
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ProcessingInstruction_2, (PyObject *)&__pyx_type_4lxml_5etree__ProcessingInstruction) < 0) __PYX_ERR(0, 1722, __pyx_L1_error)
+ if (__Pyx_SetVtable(__pyx_type_4lxml_5etree__ProcessingInstruction.tp_dict, __pyx_vtabptr_4lxml_5etree__ProcessingInstruction) < 0) __PYX_ERR(0, 1723, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ProcessingInstruction_2, (PyObject *)&__pyx_type_4lxml_5etree__ProcessingInstruction) < 0) __PYX_ERR(0, 1723, __pyx_L1_error)
__pyx_ptype_4lxml_5etree__ProcessingInstruction = &__pyx_type_4lxml_5etree__ProcessingInstruction;
__pyx_vtabptr_4lxml_5etree__Entity = &__pyx_vtable_4lxml_5etree__Entity;
__pyx_vtable_4lxml_5etree__Entity.__pyx_base = *__pyx_vtabptr_4lxml_5etree___ContentOnlyElement;
__pyx_type_4lxml_5etree__Entity.tp_base = __pyx_ptype_4lxml_5etree___ContentOnlyElement;
- if (PyType_Ready(&__pyx_type_4lxml_5etree__Entity) < 0) __PYX_ERR(0, 1773, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree__Entity) < 0) __PYX_ERR(0, 1774, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree__Entity.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree__Entity.tp_dictoffset && __pyx_type_4lxml_5etree__Entity.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree__Entity.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (__Pyx_SetVtable(__pyx_type_4lxml_5etree__Entity.tp_dict, __pyx_vtabptr_4lxml_5etree__Entity) < 0) __PYX_ERR(0, 1773, __pyx_L1_error)
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Entity_2, (PyObject *)&__pyx_type_4lxml_5etree__Entity) < 0) __PYX_ERR(0, 1773, __pyx_L1_error)
+ if (__Pyx_SetVtable(__pyx_type_4lxml_5etree__Entity.tp_dict, __pyx_vtabptr_4lxml_5etree__Entity) < 0) __PYX_ERR(0, 1774, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Entity_2, (PyObject *)&__pyx_type_4lxml_5etree__Entity) < 0) __PYX_ERR(0, 1774, __pyx_L1_error)
__pyx_ptype_4lxml_5etree__Entity = &__pyx_type_4lxml_5etree__Entity;
- if (PyType_Ready(&__pyx_type_4lxml_5etree_QName) < 0) __PYX_ERR(0, 1802, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree_QName) < 0) __PYX_ERR(0, 1803, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree_QName.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree_QName.tp_dictoffset && __pyx_type_4lxml_5etree_QName.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree_QName.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_QName, (PyObject *)&__pyx_type_4lxml_5etree_QName) < 0) __PYX_ERR(0, 1802, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_QName, (PyObject *)&__pyx_type_4lxml_5etree_QName) < 0) __PYX_ERR(0, 1803, __pyx_L1_error)
__pyx_ptype_4lxml_5etree_QName = &__pyx_type_4lxml_5etree_QName;
__pyx_vtabptr_4lxml_5etree__ElementTree = &__pyx_vtable_4lxml_5etree__ElementTree;
__pyx_vtable_4lxml_5etree__ElementTree._assertHasRoot = (int (*)(struct LxmlElementTree *))__pyx_f_4lxml_5etree_12_ElementTree__assertHasRoot;
- if (PyType_Ready(&LxmlElementTreeType) < 0) __PYX_ERR(0, 1871, __pyx_L1_error)
+ if (PyType_Ready(&LxmlElementTreeType) < 0) __PYX_ERR(0, 1872, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
LxmlElementTreeType.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!LxmlElementTreeType.tp_dictoffset && LxmlElementTreeType.tp_getattro == PyObject_GenericGetAttr)) {
LxmlElementTreeType.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (__Pyx_SetVtable(LxmlElementTreeType.tp_dict, __pyx_vtabptr_4lxml_5etree__ElementTree) < 0) __PYX_ERR(0, 1871, __pyx_L1_error)
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ElementTree_2, (PyObject *)&LxmlElementTreeType) < 0) __PYX_ERR(0, 1871, __pyx_L1_error)
+ if (__Pyx_SetVtable(LxmlElementTreeType.tp_dict, __pyx_vtabptr_4lxml_5etree__ElementTree) < 0) __PYX_ERR(0, 1872, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ElementTree_2, (PyObject *)&LxmlElementTreeType) < 0) __PYX_ERR(0, 1872, __pyx_L1_error)
__pyx_ptype_4lxml_5etree__ElementTree = &LxmlElementTreeType;
- if (PyType_Ready(&__pyx_type_4lxml_5etree__Attrib) < 0) __PYX_ERR(0, 2435, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree__Attrib) < 0) __PYX_ERR(0, 2436, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree__Attrib.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree__Attrib.tp_dictoffset && __pyx_type_4lxml_5etree__Attrib.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree__Attrib.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
}
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Attrib, (PyObject *)&__pyx_type_4lxml_5etree__Attrib) < 0) __PYX_ERR(0, 2435, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Attrib, (PyObject *)&__pyx_type_4lxml_5etree__Attrib) < 0) __PYX_ERR(0, 2436, __pyx_L1_error)
__pyx_ptype_4lxml_5etree__Attrib = &__pyx_type_4lxml_5etree__Attrib;
- if (PyType_Ready(&__pyx_type_4lxml_5etree__AttribIterator) < 0) __PYX_ERR(0, 2574, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree__AttribIterator) < 0) __PYX_ERR(0, 2577, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree__AttribIterator.tp_print = 0;
#endif
__pyx_ptype_4lxml_5etree__AttribIterator = &__pyx_type_4lxml_5etree__AttribIterator;
__pyx_vtabptr_4lxml_5etree__ElementTagMatcher = &__pyx_vtable_4lxml_5etree__ElementTagMatcher;
__pyx_vtable_4lxml_5etree__ElementTagMatcher._initTagMatch = (PyObject *(*)(struct LxmlElementTagMatcher *, PyObject *))__pyx_f_4lxml_5etree_18_ElementTagMatcher__initTagMatch;
- if (PyType_Ready(&LxmlElementTagMatcherType) < 0) __PYX_ERR(0, 2615, __pyx_L1_error)
+ if (PyType_Ready(&LxmlElementTagMatcherType) < 0) __PYX_ERR(0, 2618, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
LxmlElementTagMatcherType.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!LxmlElementTagMatcherType.tp_dictoffset && LxmlElementTagMatcherType.tp_getattro == PyObject_GenericGetAttr)) {
LxmlElementTagMatcherType.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (__Pyx_SetVtable(LxmlElementTagMatcherType.tp_dict, __pyx_vtabptr_4lxml_5etree__ElementTagMatcher) < 0) __PYX_ERR(0, 2615, __pyx_L1_error)
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ElementTagMatcher, (PyObject *)&LxmlElementTagMatcherType) < 0) __PYX_ERR(0, 2615, __pyx_L1_error)
+ if (__Pyx_SetVtable(LxmlElementTagMatcherType.tp_dict, __pyx_vtabptr_4lxml_5etree__ElementTagMatcher) < 0) __PYX_ERR(0, 2618, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ElementTagMatcher, (PyObject *)&LxmlElementTagMatcherType) < 0) __PYX_ERR(0, 2618, __pyx_L1_error)
__pyx_ptype_4lxml_5etree__ElementTagMatcher = &LxmlElementTagMatcherType;
__pyx_vtabptr_4lxml_5etree__ElementIterator = &__pyx_vtable_4lxml_5etree__ElementIterator;
__pyx_vtable_4lxml_5etree__ElementIterator.__pyx_base = *__pyx_vtabptr_4lxml_5etree__ElementTagMatcher;
__pyx_vtable_4lxml_5etree__ElementIterator._storeNext = (void (*)(struct LxmlElementIterator *, struct LxmlElement *))__pyx_f_4lxml_5etree_16_ElementIterator__storeNext;
LxmlElementIteratorType.tp_base = __pyx_ptype_4lxml_5etree__ElementTagMatcher;
- if (PyType_Ready(&LxmlElementIteratorType) < 0) __PYX_ERR(0, 2646, __pyx_L1_error)
+ if (PyType_Ready(&LxmlElementIteratorType) < 0) __PYX_ERR(0, 2649, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
LxmlElementIteratorType.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!LxmlElementIteratorType.tp_dictoffset && LxmlElementIteratorType.tp_getattro == PyObject_GenericGetAttr)) {
LxmlElementIteratorType.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (__Pyx_SetVtable(LxmlElementIteratorType.tp_dict, __pyx_vtabptr_4lxml_5etree__ElementIterator) < 0) __PYX_ERR(0, 2646, __pyx_L1_error)
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ElementIterator, (PyObject *)&LxmlElementIteratorType) < 0) __PYX_ERR(0, 2646, __pyx_L1_error)
+ if (__Pyx_SetVtable(LxmlElementIteratorType.tp_dict, __pyx_vtabptr_4lxml_5etree__ElementIterator) < 0) __PYX_ERR(0, 2649, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ElementIterator, (PyObject *)&LxmlElementIteratorType) < 0) __PYX_ERR(0, 2649, __pyx_L1_error)
__pyx_ptype_4lxml_5etree__ElementIterator = &LxmlElementIteratorType;
__pyx_vtabptr_4lxml_5etree__MultiTagMatcher = &__pyx_vtable_4lxml_5etree__MultiTagMatcher;
__pyx_vtable_4lxml_5etree__MultiTagMatcher.rejectsAll = (int (*)(struct __pyx_obj_4lxml_5etree__MultiTagMatcher *))__pyx_f_4lxml_5etree_16_MultiTagMatcher_rejectsAll;
__pyx_vtable_4lxml_5etree__MultiTagMatcher.matches = (int (*)(struct __pyx_obj_4lxml_5etree__MultiTagMatcher *, xmlNode *))__pyx_f_4lxml_5etree_16_MultiTagMatcher_matches;
__pyx_vtable_4lxml_5etree__MultiTagMatcher.matchesNsTag = (int (*)(struct __pyx_obj_4lxml_5etree__MultiTagMatcher *, const xmlChar *, const xmlChar *))__pyx_f_4lxml_5etree_16_MultiTagMatcher_matchesNsTag;
__pyx_vtable_4lxml_5etree__MultiTagMatcher.matchesAttribute = (int (*)(struct __pyx_obj_4lxml_5etree__MultiTagMatcher *, xmlAttr *))__pyx_f_4lxml_5etree_16_MultiTagMatcher_matchesAttribute;
- if (PyType_Ready(&__pyx_type_4lxml_5etree__MultiTagMatcher) < 0) __PYX_ERR(0, 2683, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree__MultiTagMatcher) < 0) __PYX_ERR(0, 2686, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree__MultiTagMatcher.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree__MultiTagMatcher.tp_dictoffset && __pyx_type_4lxml_5etree__MultiTagMatcher.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree__MultiTagMatcher.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
}
- if (__Pyx_SetVtable(__pyx_type_4lxml_5etree__MultiTagMatcher.tp_dict, __pyx_vtabptr_4lxml_5etree__MultiTagMatcher) < 0) __PYX_ERR(0, 2683, __pyx_L1_error)
+ if (__Pyx_SetVtable(__pyx_type_4lxml_5etree__MultiTagMatcher.tp_dict, __pyx_vtabptr_4lxml_5etree__MultiTagMatcher) < 0) __PYX_ERR(0, 2686, __pyx_L1_error)
__pyx_ptype_4lxml_5etree__MultiTagMatcher = &__pyx_type_4lxml_5etree__MultiTagMatcher;
__pyx_vtabptr_4lxml_5etree__ElementMatchIterator = &__pyx_vtable_4lxml_5etree__ElementMatchIterator;
__pyx_vtable_4lxml_5etree__ElementMatchIterator._initTagMatcher = (PyObject *(*)(struct __pyx_obj_4lxml_5etree__ElementMatchIterator *, PyObject *))__pyx_f_4lxml_5etree_21_ElementMatchIterator__initTagMatcher;
__pyx_vtable_4lxml_5etree__ElementMatchIterator._storeNext = (int (*)(struct __pyx_obj_4lxml_5etree__ElementMatchIterator *, struct LxmlElement *))__pyx_f_4lxml_5etree_21_ElementMatchIterator__storeNext;
- if (PyType_Ready(&__pyx_type_4lxml_5etree__ElementMatchIterator) < 0) __PYX_ERR(0, 2822, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree__ElementMatchIterator) < 0) __PYX_ERR(0, 2825, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree__ElementMatchIterator.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree__ElementMatchIterator.tp_dictoffset && __pyx_type_4lxml_5etree__ElementMatchIterator.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree__ElementMatchIterator.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (__Pyx_SetVtable(__pyx_type_4lxml_5etree__ElementMatchIterator.tp_dict, __pyx_vtabptr_4lxml_5etree__ElementMatchIterator) < 0) __PYX_ERR(0, 2822, __pyx_L1_error)
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ElementMatchIterator, (PyObject *)&__pyx_type_4lxml_5etree__ElementMatchIterator) < 0) __PYX_ERR(0, 2822, __pyx_L1_error)
+ if (__Pyx_SetVtable(__pyx_type_4lxml_5etree__ElementMatchIterator.tp_dict, __pyx_vtabptr_4lxml_5etree__ElementMatchIterator) < 0) __PYX_ERR(0, 2825, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ElementMatchIterator, (PyObject *)&__pyx_type_4lxml_5etree__ElementMatchIterator) < 0) __PYX_ERR(0, 2825, __pyx_L1_error)
__pyx_ptype_4lxml_5etree__ElementMatchIterator = &__pyx_type_4lxml_5etree__ElementMatchIterator;
__pyx_vtabptr_4lxml_5etree_ElementChildIterator = &__pyx_vtable_4lxml_5etree_ElementChildIterator;
__pyx_vtable_4lxml_5etree_ElementChildIterator.__pyx_base = *__pyx_vtabptr_4lxml_5etree__ElementMatchIterator;
__pyx_type_4lxml_5etree_ElementChildIterator.tp_base = __pyx_ptype_4lxml_5etree__ElementMatchIterator;
- if (PyType_Ready(&__pyx_type_4lxml_5etree_ElementChildIterator) < 0) __PYX_ERR(0, 2851, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree_ElementChildIterator) < 0) __PYX_ERR(0, 2854, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree_ElementChildIterator.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree_ElementChildIterator.tp_dictoffset && __pyx_type_4lxml_5etree_ElementChildIterator.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree_ElementChildIterator.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (__Pyx_SetVtable(__pyx_type_4lxml_5etree_ElementChildIterator.tp_dict, __pyx_vtabptr_4lxml_5etree_ElementChildIterator) < 0) __PYX_ERR(0, 2851, __pyx_L1_error)
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ElementChildIterator, (PyObject *)&__pyx_type_4lxml_5etree_ElementChildIterator) < 0) __PYX_ERR(0, 2851, __pyx_L1_error)
+ if (__Pyx_SetVtable(__pyx_type_4lxml_5etree_ElementChildIterator.tp_dict, __pyx_vtabptr_4lxml_5etree_ElementChildIterator) < 0) __PYX_ERR(0, 2854, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ElementChildIterator, (PyObject *)&__pyx_type_4lxml_5etree_ElementChildIterator) < 0) __PYX_ERR(0, 2854, __pyx_L1_error)
__pyx_ptype_4lxml_5etree_ElementChildIterator = &__pyx_type_4lxml_5etree_ElementChildIterator;
__pyx_vtabptr_4lxml_5etree_SiblingsIterator = &__pyx_vtable_4lxml_5etree_SiblingsIterator;
__pyx_vtable_4lxml_5etree_SiblingsIterator.__pyx_base = *__pyx_vtabptr_4lxml_5etree__ElementMatchIterator;
__pyx_type_4lxml_5etree_SiblingsIterator.tp_base = __pyx_ptype_4lxml_5etree__ElementMatchIterator;
- if (PyType_Ready(&__pyx_type_4lxml_5etree_SiblingsIterator) < 0) __PYX_ERR(0, 2871, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree_SiblingsIterator) < 0) __PYX_ERR(0, 2874, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree_SiblingsIterator.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree_SiblingsIterator.tp_dictoffset && __pyx_type_4lxml_5etree_SiblingsIterator.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree_SiblingsIterator.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (__Pyx_SetVtable(__pyx_type_4lxml_5etree_SiblingsIterator.tp_dict, __pyx_vtabptr_4lxml_5etree_SiblingsIterator) < 0) __PYX_ERR(0, 2871, __pyx_L1_error)
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_SiblingsIterator, (PyObject *)&__pyx_type_4lxml_5etree_SiblingsIterator) < 0) __PYX_ERR(0, 2871, __pyx_L1_error)
+ if (__Pyx_SetVtable(__pyx_type_4lxml_5etree_SiblingsIterator.tp_dict, __pyx_vtabptr_4lxml_5etree_SiblingsIterator) < 0) __PYX_ERR(0, 2874, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_SiblingsIterator, (PyObject *)&__pyx_type_4lxml_5etree_SiblingsIterator) < 0) __PYX_ERR(0, 2874, __pyx_L1_error)
__pyx_ptype_4lxml_5etree_SiblingsIterator = &__pyx_type_4lxml_5etree_SiblingsIterator;
__pyx_vtabptr_4lxml_5etree_AncestorsIterator = &__pyx_vtable_4lxml_5etree_AncestorsIterator;
__pyx_vtable_4lxml_5etree_AncestorsIterator.__pyx_base = *__pyx_vtabptr_4lxml_5etree__ElementMatchIterator;
__pyx_type_4lxml_5etree_AncestorsIterator.tp_base = __pyx_ptype_4lxml_5etree__ElementMatchIterator;
- if (PyType_Ready(&__pyx_type_4lxml_5etree_AncestorsIterator) < 0) __PYX_ERR(0, 2886, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree_AncestorsIterator) < 0) __PYX_ERR(0, 2889, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree_AncestorsIterator.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree_AncestorsIterator.tp_dictoffset && __pyx_type_4lxml_5etree_AncestorsIterator.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree_AncestorsIterator.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (__Pyx_SetVtable(__pyx_type_4lxml_5etree_AncestorsIterator.tp_dict, __pyx_vtabptr_4lxml_5etree_AncestorsIterator) < 0) __PYX_ERR(0, 2886, __pyx_L1_error)
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_AncestorsIterator, (PyObject *)&__pyx_type_4lxml_5etree_AncestorsIterator) < 0) __PYX_ERR(0, 2886, __pyx_L1_error)
+ if (__Pyx_SetVtable(__pyx_type_4lxml_5etree_AncestorsIterator.tp_dict, __pyx_vtabptr_4lxml_5etree_AncestorsIterator) < 0) __PYX_ERR(0, 2889, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_AncestorsIterator, (PyObject *)&__pyx_type_4lxml_5etree_AncestorsIterator) < 0) __PYX_ERR(0, 2889, __pyx_L1_error)
__pyx_ptype_4lxml_5etree_AncestorsIterator = &__pyx_type_4lxml_5etree_AncestorsIterator;
__pyx_vtabptr_4lxml_5etree_ElementDepthFirstIterator = &__pyx_vtable_4lxml_5etree_ElementDepthFirstIterator;
__pyx_vtable_4lxml_5etree_ElementDepthFirstIterator._nextNodeAnyTag = (xmlNode *(*)(struct __pyx_obj_4lxml_5etree_ElementDepthFirstIterator *, xmlNode *))__pyx_f_4lxml_5etree_25ElementDepthFirstIterator__nextNodeAnyTag;
__pyx_vtable_4lxml_5etree_ElementDepthFirstIterator._nextNodeMatchTag = (xmlNode *(*)(struct __pyx_obj_4lxml_5etree_ElementDepthFirstIterator *, xmlNode *))__pyx_f_4lxml_5etree_25ElementDepthFirstIterator__nextNodeMatchTag;
- if (PyType_Ready(&__pyx_type_4lxml_5etree_ElementDepthFirstIterator) < 0) __PYX_ERR(0, 2896, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree_ElementDepthFirstIterator) < 0) __PYX_ERR(0, 2899, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree_ElementDepthFirstIterator.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree_ElementDepthFirstIterator.tp_dictoffset && __pyx_type_4lxml_5etree_ElementDepthFirstIterator.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree_ElementDepthFirstIterator.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (__Pyx_SetVtable(__pyx_type_4lxml_5etree_ElementDepthFirstIterator.tp_dict, __pyx_vtabptr_4lxml_5etree_ElementDepthFirstIterator) < 0) __PYX_ERR(0, 2896, __pyx_L1_error)
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ElementDepthFirstIterator, (PyObject *)&__pyx_type_4lxml_5etree_ElementDepthFirstIterator) < 0) __PYX_ERR(0, 2896, __pyx_L1_error)
+ if (__Pyx_SetVtable(__pyx_type_4lxml_5etree_ElementDepthFirstIterator.tp_dict, __pyx_vtabptr_4lxml_5etree_ElementDepthFirstIterator) < 0) __PYX_ERR(0, 2899, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ElementDepthFirstIterator, (PyObject *)&__pyx_type_4lxml_5etree_ElementDepthFirstIterator) < 0) __PYX_ERR(0, 2899, __pyx_L1_error)
__pyx_ptype_4lxml_5etree_ElementDepthFirstIterator = &__pyx_type_4lxml_5etree_ElementDepthFirstIterator;
- if (PyType_Ready(&__pyx_type_4lxml_5etree_ElementTextIterator) < 0) __PYX_ERR(0, 2972, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree_ElementTextIterator) < 0) __PYX_ERR(0, 2975, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree_ElementTextIterator.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree_ElementTextIterator.tp_dictoffset && __pyx_type_4lxml_5etree_ElementTextIterator.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree_ElementTextIterator.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ElementTextIterator, (PyObject *)&__pyx_type_4lxml_5etree_ElementTextIterator) < 0) __PYX_ERR(0, 2972, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ElementTextIterator, (PyObject *)&__pyx_type_4lxml_5etree_ElementTextIterator) < 0) __PYX_ERR(0, 2975, __pyx_L1_error)
__pyx_ptype_4lxml_5etree_ElementTextIterator = &__pyx_type_4lxml_5etree_ElementTextIterator;
- if (PyType_Ready(&__pyx_type_4lxml_5etree_CDATA) < 0) __PYX_ERR(0, 3098, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree_CDATA) < 0) __PYX_ERR(0, 3101, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree_CDATA.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree_CDATA.tp_dictoffset && __pyx_type_4lxml_5etree_CDATA.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree_CDATA.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_CDATA, (PyObject *)&__pyx_type_4lxml_5etree_CDATA) < 0) __PYX_ERR(0, 3098, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_CDATA, (PyObject *)&__pyx_type_4lxml_5etree_CDATA) < 0) __PYX_ERR(0, 3101, __pyx_L1_error)
__pyx_ptype_4lxml_5etree_CDATA = &__pyx_type_4lxml_5etree_CDATA;
__pyx_vtabptr_4lxml_5etree__ReadOnlyProxy = &__pyx_vtable_4lxml_5etree__ReadOnlyProxy;
__pyx_vtable_4lxml_5etree__ReadOnlyProxy._assertNode = (int (*)(struct __pyx_obj_4lxml_5etree__ReadOnlyProxy *))__pyx_f_4lxml_5etree_14_ReadOnlyProxy__assertNode;
__pyx_vtable_4lxml_5etree__BaseParser._parseDoc = (xmlDoc *(*)(struct __pyx_obj_4lxml_5etree__BaseParser *, char *, int, char *))__pyx_f_4lxml_5etree_11_BaseParser__parseDoc;
__pyx_vtable_4lxml_5etree__BaseParser._parseDocFromFile = (xmlDoc *(*)(struct __pyx_obj_4lxml_5etree__BaseParser *, char *))__pyx_f_4lxml_5etree_11_BaseParser__parseDocFromFile;
__pyx_vtable_4lxml_5etree__BaseParser._parseDocFromFilelike = (xmlDoc *(*)(struct __pyx_obj_4lxml_5etree__BaseParser *, PyObject *, PyObject *, PyObject *))__pyx_f_4lxml_5etree_11_BaseParser__parseDocFromFilelike;
- if (PyType_Ready(&__pyx_type_4lxml_5etree__BaseParser) < 0) __PYX_ERR(2, 795, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree__BaseParser) < 0) __PYX_ERR(2, 798, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree__BaseParser.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree__BaseParser.tp_dictoffset && __pyx_type_4lxml_5etree__BaseParser.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree__BaseParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (__Pyx_SetVtable(__pyx_type_4lxml_5etree__BaseParser.tp_dict, __pyx_vtabptr_4lxml_5etree__BaseParser) < 0) __PYX_ERR(2, 795, __pyx_L1_error)
+ if (__Pyx_SetVtable(__pyx_type_4lxml_5etree__BaseParser.tp_dict, __pyx_vtabptr_4lxml_5etree__BaseParser) < 0) __PYX_ERR(2, 798, __pyx_L1_error)
__pyx_ptype_4lxml_5etree__BaseParser = &__pyx_type_4lxml_5etree__BaseParser;
__pyx_vtabptr_4lxml_5etree__FeedParser = &__pyx_vtable_4lxml_5etree__FeedParser;
__pyx_vtable_4lxml_5etree__FeedParser.__pyx_base = *__pyx_vtabptr_4lxml_5etree__BaseParser;
__pyx_vtable_4lxml_5etree__FeedParser.feed = (PyObject *(*)(struct __pyx_obj_4lxml_5etree__FeedParser *, PyObject *, int __pyx_skip_dispatch))__pyx_f_4lxml_5etree_11_FeedParser_feed;
__pyx_vtable_4lxml_5etree__FeedParser.close = (PyObject *(*)(struct __pyx_obj_4lxml_5etree__FeedParser *, int __pyx_skip_dispatch))__pyx_f_4lxml_5etree_11_FeedParser_close;
__pyx_type_4lxml_5etree__FeedParser.tp_base = __pyx_ptype_4lxml_5etree__BaseParser;
- if (PyType_Ready(&__pyx_type_4lxml_5etree__FeedParser) < 0) __PYX_ERR(2, 1244, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree__FeedParser) < 0) __PYX_ERR(2, 1247, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree__FeedParser.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree__FeedParser.tp_dictoffset && __pyx_type_4lxml_5etree__FeedParser.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree__FeedParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (__Pyx_SetVtable(__pyx_type_4lxml_5etree__FeedParser.tp_dict, __pyx_vtabptr_4lxml_5etree__FeedParser) < 0) __PYX_ERR(2, 1244, __pyx_L1_error)
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_FeedParser, (PyObject *)&__pyx_type_4lxml_5etree__FeedParser) < 0) __PYX_ERR(2, 1244, __pyx_L1_error)
+ if (__Pyx_SetVtable(__pyx_type_4lxml_5etree__FeedParser.tp_dict, __pyx_vtabptr_4lxml_5etree__FeedParser) < 0) __PYX_ERR(2, 1247, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_FeedParser, (PyObject *)&__pyx_type_4lxml_5etree__FeedParser) < 0) __PYX_ERR(2, 1247, __pyx_L1_error)
__pyx_ptype_4lxml_5etree__FeedParser = &__pyx_type_4lxml_5etree__FeedParser;
__pyx_vtabptr_4lxml_5etree_XMLParser = &__pyx_vtable_4lxml_5etree_XMLParser;
__pyx_vtable_4lxml_5etree_XMLParser.__pyx_base = *__pyx_vtabptr_4lxml_5etree__FeedParser;
__pyx_type_4lxml_5etree_XMLParser.tp_base = __pyx_ptype_4lxml_5etree__FeedParser;
- if (PyType_Ready(&__pyx_type_4lxml_5etree_XMLParser) < 0) __PYX_ERR(2, 1477, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree_XMLParser) < 0) __PYX_ERR(2, 1480, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree_XMLParser.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree_XMLParser.tp_dictoffset && __pyx_type_4lxml_5etree_XMLParser.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree_XMLParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (__Pyx_SetVtable(__pyx_type_4lxml_5etree_XMLParser.tp_dict, __pyx_vtabptr_4lxml_5etree_XMLParser) < 0) __PYX_ERR(2, 1477, __pyx_L1_error)
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_XMLParser, (PyObject *)&__pyx_type_4lxml_5etree_XMLParser) < 0) __PYX_ERR(2, 1477, __pyx_L1_error)
+ if (__Pyx_SetVtable(__pyx_type_4lxml_5etree_XMLParser.tp_dict, __pyx_vtabptr_4lxml_5etree_XMLParser) < 0) __PYX_ERR(2, 1480, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_XMLParser, (PyObject *)&__pyx_type_4lxml_5etree_XMLParser) < 0) __PYX_ERR(2, 1480, __pyx_L1_error)
__pyx_ptype_4lxml_5etree_XMLParser = &__pyx_type_4lxml_5etree_XMLParser;
__pyx_vtabptr_4lxml_5etree_XMLPullParser = &__pyx_vtable_4lxml_5etree_XMLPullParser;
__pyx_vtable_4lxml_5etree_XMLPullParser.__pyx_base = *__pyx_vtabptr_4lxml_5etree_XMLParser;
__pyx_type_4lxml_5etree_XMLPullParser.tp_base = __pyx_ptype_4lxml_5etree_XMLParser;
- if (PyType_Ready(&__pyx_type_4lxml_5etree_XMLPullParser) < 0) __PYX_ERR(2, 1561, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree_XMLPullParser) < 0) __PYX_ERR(2, 1564, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree_XMLPullParser.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree_XMLPullParser.tp_dictoffset && __pyx_type_4lxml_5etree_XMLPullParser.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree_XMLPullParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (__Pyx_SetVtable(__pyx_type_4lxml_5etree_XMLPullParser.tp_dict, __pyx_vtabptr_4lxml_5etree_XMLPullParser) < 0) __PYX_ERR(2, 1561, __pyx_L1_error)
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_XMLPullParser, (PyObject *)&__pyx_type_4lxml_5etree_XMLPullParser) < 0) __PYX_ERR(2, 1561, __pyx_L1_error)
+ if (__Pyx_SetVtable(__pyx_type_4lxml_5etree_XMLPullParser.tp_dict, __pyx_vtabptr_4lxml_5etree_XMLPullParser) < 0) __PYX_ERR(2, 1564, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_XMLPullParser, (PyObject *)&__pyx_type_4lxml_5etree_XMLPullParser) < 0) __PYX_ERR(2, 1564, __pyx_L1_error)
__pyx_ptype_4lxml_5etree_XMLPullParser = &__pyx_type_4lxml_5etree_XMLPullParser;
__pyx_vtabptr_4lxml_5etree_ETCompatXMLParser = &__pyx_vtable_4lxml_5etree_ETCompatXMLParser;
__pyx_vtable_4lxml_5etree_ETCompatXMLParser.__pyx_base = *__pyx_vtabptr_4lxml_5etree_XMLParser;
__pyx_type_4lxml_5etree_ETCompatXMLParser.tp_base = __pyx_ptype_4lxml_5etree_XMLParser;
- if (PyType_Ready(&__pyx_type_4lxml_5etree_ETCompatXMLParser) < 0) __PYX_ERR(2, 1590, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree_ETCompatXMLParser) < 0) __PYX_ERR(2, 1593, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree_ETCompatXMLParser.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree_ETCompatXMLParser.tp_dictoffset && __pyx_type_4lxml_5etree_ETCompatXMLParser.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree_ETCompatXMLParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (__Pyx_SetVtable(__pyx_type_4lxml_5etree_ETCompatXMLParser.tp_dict, __pyx_vtabptr_4lxml_5etree_ETCompatXMLParser) < 0) __PYX_ERR(2, 1590, __pyx_L1_error)
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ETCompatXMLParser, (PyObject *)&__pyx_type_4lxml_5etree_ETCompatXMLParser) < 0) __PYX_ERR(2, 1590, __pyx_L1_error)
+ if (__Pyx_SetVtable(__pyx_type_4lxml_5etree_ETCompatXMLParser.tp_dict, __pyx_vtabptr_4lxml_5etree_ETCompatXMLParser) < 0) __PYX_ERR(2, 1593, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ETCompatXMLParser, (PyObject *)&__pyx_type_4lxml_5etree_ETCompatXMLParser) < 0) __PYX_ERR(2, 1593, __pyx_L1_error)
__pyx_ptype_4lxml_5etree_ETCompatXMLParser = &__pyx_type_4lxml_5etree_ETCompatXMLParser;
__pyx_vtabptr_4lxml_5etree_HTMLParser = &__pyx_vtable_4lxml_5etree_HTMLParser;
__pyx_vtable_4lxml_5etree_HTMLParser.__pyx_base = *__pyx_vtabptr_4lxml_5etree__FeedParser;
__pyx_type_4lxml_5etree_HTMLParser.tp_base = __pyx_ptype_4lxml_5etree__FeedParser;
- if (PyType_Ready(&__pyx_type_4lxml_5etree_HTMLParser) < 0) __PYX_ERR(2, 1669, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree_HTMLParser) < 0) __PYX_ERR(2, 1672, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree_HTMLParser.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree_HTMLParser.tp_dictoffset && __pyx_type_4lxml_5etree_HTMLParser.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree_HTMLParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (__Pyx_SetVtable(__pyx_type_4lxml_5etree_HTMLParser.tp_dict, __pyx_vtabptr_4lxml_5etree_HTMLParser) < 0) __PYX_ERR(2, 1669, __pyx_L1_error)
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_HTMLParser, (PyObject *)&__pyx_type_4lxml_5etree_HTMLParser) < 0) __PYX_ERR(2, 1669, __pyx_L1_error)
+ if (__Pyx_SetVtable(__pyx_type_4lxml_5etree_HTMLParser.tp_dict, __pyx_vtabptr_4lxml_5etree_HTMLParser) < 0) __PYX_ERR(2, 1672, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_HTMLParser, (PyObject *)&__pyx_type_4lxml_5etree_HTMLParser) < 0) __PYX_ERR(2, 1672, __pyx_L1_error)
__pyx_ptype_4lxml_5etree_HTMLParser = &__pyx_type_4lxml_5etree_HTMLParser;
__pyx_vtabptr_4lxml_5etree_HTMLPullParser = &__pyx_vtable_4lxml_5etree_HTMLPullParser;
__pyx_vtable_4lxml_5etree_HTMLPullParser.__pyx_base = *__pyx_vtabptr_4lxml_5etree_HTMLParser;
__pyx_type_4lxml_5etree_HTMLPullParser.tp_base = __pyx_ptype_4lxml_5etree_HTMLParser;
- if (PyType_Ready(&__pyx_type_4lxml_5etree_HTMLPullParser) < 0) __PYX_ERR(2, 1734, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree_HTMLPullParser) < 0) __PYX_ERR(2, 1737, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree_HTMLPullParser.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree_HTMLPullParser.tp_dictoffset && __pyx_type_4lxml_5etree_HTMLPullParser.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree_HTMLPullParser.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (__Pyx_SetVtable(__pyx_type_4lxml_5etree_HTMLPullParser.tp_dict, __pyx_vtabptr_4lxml_5etree_HTMLPullParser) < 0) __PYX_ERR(2, 1734, __pyx_L1_error)
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_HTMLPullParser, (PyObject *)&__pyx_type_4lxml_5etree_HTMLPullParser) < 0) __PYX_ERR(2, 1734, __pyx_L1_error)
+ if (__Pyx_SetVtable(__pyx_type_4lxml_5etree_HTMLPullParser.tp_dict, __pyx_vtabptr_4lxml_5etree_HTMLPullParser) < 0) __PYX_ERR(2, 1737, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_HTMLPullParser, (PyObject *)&__pyx_type_4lxml_5etree_HTMLPullParser) < 0) __PYX_ERR(2, 1737, __pyx_L1_error)
__pyx_ptype_4lxml_5etree_HTMLPullParser = &__pyx_type_4lxml_5etree_HTMLPullParser;
__pyx_vtabptr_4lxml_5etree__SaxParserTarget = &__pyx_vtable_4lxml_5etree__SaxParserTarget;
__pyx_vtable_4lxml_5etree__SaxParserTarget._handleSaxStart = (PyObject *(*)(struct __pyx_obj_4lxml_5etree__SaxParserTarget *, PyObject *, PyObject *, PyObject *))__pyx_f_4lxml_5etree_16_SaxParserTarget__handleSaxStart;
__pyx_vtable_4lxml_5etree__XSLTResultTree.__pyx_base = *__pyx_vtabptr_4lxml_5etree__ElementTree;
__pyx_vtable_4lxml_5etree__XSLTResultTree._saveToStringAndSize = (PyObject *(*)(struct __pyx_obj_4lxml_5etree__XSLTResultTree *, xmlChar **, int *))__pyx_f_4lxml_5etree_15_XSLTResultTree__saveToStringAndSize;
__pyx_type_4lxml_5etree__XSLTResultTree.tp_base = __pyx_ptype_4lxml_5etree__ElementTree;
- if (PyType_Ready(&__pyx_type_4lxml_5etree__XSLTResultTree) < 0) __PYX_ERR(4, 705, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree__XSLTResultTree) < 0) __PYX_ERR(4, 706, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree__XSLTResultTree.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree__XSLTResultTree.tp_dictoffset && __pyx_type_4lxml_5etree__XSLTResultTree.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree__XSLTResultTree.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict;
}
- if (__Pyx_SetVtable(__pyx_type_4lxml_5etree__XSLTResultTree.tp_dict, __pyx_vtabptr_4lxml_5etree__XSLTResultTree) < 0) __PYX_ERR(4, 705, __pyx_L1_error)
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_XSLTResultTree, (PyObject *)&__pyx_type_4lxml_5etree__XSLTResultTree) < 0) __PYX_ERR(4, 705, __pyx_L1_error)
+ if (__Pyx_SetVtable(__pyx_type_4lxml_5etree__XSLTResultTree.tp_dict, __pyx_vtabptr_4lxml_5etree__XSLTResultTree) < 0) __PYX_ERR(4, 706, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_XSLTResultTree, (PyObject *)&__pyx_type_4lxml_5etree__XSLTResultTree) < 0) __PYX_ERR(4, 706, __pyx_L1_error)
__pyx_ptype_4lxml_5etree__XSLTResultTree = &__pyx_type_4lxml_5etree__XSLTResultTree;
__pyx_vtabptr_4lxml_5etree__XSLTProcessingInstruction = &__pyx_vtable_4lxml_5etree__XSLTProcessingInstruction;
__pyx_vtable_4lxml_5etree__XSLTProcessingInstruction.__pyx_base = *__pyx_vtabptr_4lxml_5etree_PIBase;
__pyx_type_4lxml_5etree__XSLTProcessingInstruction.tp_base = __pyx_ptype_4lxml_5etree_PIBase;
- if (PyType_Ready(&__pyx_type_4lxml_5etree__XSLTProcessingInstruction) < 0) __PYX_ERR(4, 894, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree__XSLTProcessingInstruction) < 0) __PYX_ERR(4, 895, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree__XSLTProcessingInstruction.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree__XSLTProcessingInstruction.tp_dictoffset && __pyx_type_4lxml_5etree__XSLTProcessingInstruction.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree__XSLTProcessingInstruction.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (__Pyx_SetVtable(__pyx_type_4lxml_5etree__XSLTProcessingInstruction.tp_dict, __pyx_vtabptr_4lxml_5etree__XSLTProcessingInstruction) < 0) __PYX_ERR(4, 894, __pyx_L1_error)
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_XSLTProcessingInstruction, (PyObject *)&__pyx_type_4lxml_5etree__XSLTProcessingInstruction) < 0) __PYX_ERR(4, 894, __pyx_L1_error)
+ if (__Pyx_SetVtable(__pyx_type_4lxml_5etree__XSLTProcessingInstruction.tp_dict, __pyx_vtabptr_4lxml_5etree__XSLTProcessingInstruction) < 0) __PYX_ERR(4, 895, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_XSLTProcessingInstruction, (PyObject *)&__pyx_type_4lxml_5etree__XSLTProcessingInstruction) < 0) __PYX_ERR(4, 895, __pyx_L1_error)
__pyx_ptype_4lxml_5etree__XSLTProcessingInstruction = &__pyx_type_4lxml_5etree__XSLTProcessingInstruction;
__pyx_vtabptr_4lxml_5etree_XSLTExtension = &__pyx_vtable_4lxml_5etree_XSLTExtension;
__pyx_vtable_4lxml_5etree_XSLTExtension._collectXSLTResultContent = (PyObject *(*)(struct __pyx_obj_4lxml_5etree_XSLTExtension *, struct __pyx_obj_4lxml_5etree__XSLTContext *, xmlNode *, int, int))__pyx_f_4lxml_5etree_13XSLTExtension__collectXSLTResultContent;
if (PyObject_SetAttr(__pyx_m, __pyx_n_s_XSLTExtension, (PyObject *)&__pyx_type_4lxml_5etree_XSLTExtension) < 0) __PYX_ERR(19, 3, __pyx_L1_error)
__pyx_ptype_4lxml_5etree_XSLTExtension = &__pyx_type_4lxml_5etree_XSLTExtension;
__pyx_type_4lxml_5etree_DocumentInvalid.tp_base = __pyx_ptype_4lxml_5etree_LxmlError;
- if (PyType_Ready(&__pyx_type_4lxml_5etree_DocumentInvalid) < 0) __PYX_ERR(0, 3611, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree_DocumentInvalid) < 0) __PYX_ERR(0, 3614, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree_DocumentInvalid.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree_DocumentInvalid.tp_dictoffset && __pyx_type_4lxml_5etree_DocumentInvalid.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree_DocumentInvalid.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_DocumentInvalid, (PyObject *)&__pyx_type_4lxml_5etree_DocumentInvalid) < 0) __PYX_ERR(0, 3611, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_DocumentInvalid, (PyObject *)&__pyx_type_4lxml_5etree_DocumentInvalid) < 0) __PYX_ERR(0, 3614, __pyx_L1_error)
__pyx_ptype_4lxml_5etree_DocumentInvalid = &__pyx_type_4lxml_5etree_DocumentInvalid;
__pyx_vtabptr_4lxml_5etree__Validator = &__pyx_vtable_4lxml_5etree__Validator;
__pyx_vtable_4lxml_5etree__Validator._append_log_message = (PyObject *(*)(struct __pyx_obj_4lxml_5etree__Validator *, int, int, int, int, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_4lxml_5etree_10_Validator__append_log_message;
__pyx_vtable_4lxml_5etree__Validator._clear_error_log = (PyObject *(*)(struct __pyx_obj_4lxml_5etree__Validator *, int __pyx_skip_dispatch))__pyx_f_4lxml_5etree_10_Validator__clear_error_log;
- if (PyType_Ready(&__pyx_type_4lxml_5etree__Validator) < 0) __PYX_ERR(0, 3619, __pyx_L1_error)
+ if (PyType_Ready(&__pyx_type_4lxml_5etree__Validator) < 0) __PYX_ERR(0, 3622, __pyx_L1_error)
#if PY_VERSION_HEX < 0x030800B1
__pyx_type_4lxml_5etree__Validator.tp_print = 0;
#endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_4lxml_5etree__Validator.tp_dictoffset && __pyx_type_4lxml_5etree__Validator.tp_getattro == PyObject_GenericGetAttr)) {
__pyx_type_4lxml_5etree__Validator.tp_getattro = __Pyx_PyObject_GenericGetAttr;
}
- if (__Pyx_SetVtable(__pyx_type_4lxml_5etree__Validator.tp_dict, __pyx_vtabptr_4lxml_5etree__Validator) < 0) __PYX_ERR(0, 3619, __pyx_L1_error)
- if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Validator, (PyObject *)&__pyx_type_4lxml_5etree__Validator) < 0) __PYX_ERR(0, 3619, __pyx_L1_error)
+ if (__Pyx_SetVtable(__pyx_type_4lxml_5etree__Validator.tp_dict, __pyx_vtabptr_4lxml_5etree__Validator) < 0) __PYX_ERR(0, 3622, __pyx_L1_error)
+ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Validator, (PyObject *)&__pyx_type_4lxml_5etree__Validator) < 0) __PYX_ERR(0, 3622, __pyx_L1_error)
__pyx_ptype_4lxml_5etree__Validator = &__pyx_type_4lxml_5etree__Validator;
__pyx_type_4lxml_5etree_DTDError.tp_base = __pyx_ptype_4lxml_5etree_LxmlError;
if (PyType_Ready(&__pyx_type_4lxml_5etree_DTDError) < 0) __PYX_ERR(20, 4, __pyx_L1_error)
/*--- Type import code ---*/
__pyx_t_1 = PyImport_ImportModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(26, 9, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_ptype_7cpython_4type_type = __Pyx_ImportType(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
+ __pyx_ptype_7cpython_4type_type = __Pyx_ImportType_0_29_36(__pyx_t_1, __Pyx_BUILTIN_MODULE_NAME, "type",
#if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x050B0000
- sizeof(PyTypeObject),
+ sizeof(PyTypeObject), __PYX_GET_STRUCT_ALIGNMENT_0_29_36(PyTypeObject),
#else
- sizeof(PyHeapTypeObject),
+ sizeof(PyHeapTypeObject), __PYX_GET_STRUCT_ALIGNMENT_0_29_36(PyHeapTypeObject),
#endif
- __Pyx_ImportType_CheckSize_Warn);
- if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(26, 9, __pyx_L1_error)
+ __Pyx_ImportType_CheckSize_Warn_0_29_36); if (!__pyx_ptype_7cpython_4type_type) __PYX_ERR(26, 9, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_RefNannyFinishContext();
return 0;
Py_INCREF(__pyx_b);
__pyx_cython_runtime = PyImport_AddModule((char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
Py_INCREF(__pyx_cython_runtime);
- if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
+ if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
/*--- Initialize various global constants etc. ---*/
if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
#if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
*
* cdef object ITER_EMPTY = iter(()) # <<<<<<<<<<<<<<
*
- * try:
+ * cdef object MutableMapping
*/
__pyx_t_1 = PyObject_GetIter(__pyx_empty_tuple); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 88, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_GIVEREF(__pyx_t_1);
__pyx_t_1 = 0;
- /* "lxml/etree.pyx":90
- * cdef object ITER_EMPTY = iter(())
+ /* "lxml/etree.pyx":91
*
+ * cdef object MutableMapping
* try: # <<<<<<<<<<<<<<
* from collections.abc import MutableMapping # Py3.3+
* except ImportError:
__Pyx_XGOTREF(__pyx_t_5);
/*try:*/ {
- /* "lxml/etree.pyx":91
- *
+ /* "lxml/etree.pyx":92
+ * cdef object MutableMapping
* try:
* from collections.abc import MutableMapping # Py3.3+ # <<<<<<<<<<<<<<
* except ImportError:
* from collections import MutableMapping # Py2.7
*/
- __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 91, __pyx_L2_error)
+ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 92, __pyx_L2_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(__pyx_n_s_MutableMapping);
__Pyx_GIVEREF(__pyx_n_s_MutableMapping);
PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_MutableMapping);
- __pyx_t_2 = __Pyx_Import(__pyx_n_s_collections_abc, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 91, __pyx_L2_error)
+ __pyx_t_2 = __Pyx_Import(__pyx_n_s_collections_abc, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 92, __pyx_L2_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_MutableMapping); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 91, __pyx_L2_error)
+ __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_MutableMapping); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 92, __pyx_L2_error)
__Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_MutableMapping, __pyx_t_1) < 0) __PYX_ERR(0, 91, __pyx_L2_error)
+ __Pyx_INCREF(__pyx_t_1);
+ __Pyx_XGOTREF(__pyx_v_4lxml_5etree_MutableMapping);
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree_MutableMapping, __pyx_t_1);
+ __Pyx_GIVEREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":90
- * cdef object ITER_EMPTY = iter(())
+ /* "lxml/etree.pyx":91
*
+ * cdef object MutableMapping
* try: # <<<<<<<<<<<<<<
* from collections.abc import MutableMapping # Py3.3+
* except ImportError:
__Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":92
+ /* "lxml/etree.pyx":93
* try:
* from collections.abc import MutableMapping # Py3.3+
* except ImportError: # <<<<<<<<<<<<<<
__pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ImportError);
if (__pyx_t_6) {
__Pyx_AddTraceback("lxml.etree", __pyx_clineno, __pyx_lineno, __pyx_filename);
- if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_1, &__pyx_t_7) < 0) __PYX_ERR(0, 92, __pyx_L4_except_error)
+ if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_1, &__pyx_t_7) < 0) __PYX_ERR(0, 93, __pyx_L4_except_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_GOTREF(__pyx_t_1);
__Pyx_GOTREF(__pyx_t_7);
- /* "lxml/etree.pyx":93
+ /* "lxml/etree.pyx":94
* from collections.abc import MutableMapping # Py3.3+
* except ImportError:
* from collections import MutableMapping # Py2.7 # <<<<<<<<<<<<<<
*
* class _ImmutableMapping(MutableMapping):
*/
- __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 93, __pyx_L4_except_error)
+ __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 94, __pyx_L4_except_error)
__Pyx_GOTREF(__pyx_t_8);
__Pyx_INCREF(__pyx_n_s_MutableMapping);
__Pyx_GIVEREF(__pyx_n_s_MutableMapping);
PyList_SET_ITEM(__pyx_t_8, 0, __pyx_n_s_MutableMapping);
- __pyx_t_9 = __Pyx_Import(__pyx_n_s_collections, __pyx_t_8, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 93, __pyx_L4_except_error)
+ __pyx_t_9 = __Pyx_Import(__pyx_n_s_collections, __pyx_t_8, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 94, __pyx_L4_except_error)
__Pyx_GOTREF(__pyx_t_9);
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
- __pyx_t_8 = __Pyx_ImportFrom(__pyx_t_9, __pyx_n_s_MutableMapping); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 93, __pyx_L4_except_error)
+ __pyx_t_8 = __Pyx_ImportFrom(__pyx_t_9, __pyx_n_s_MutableMapping); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 94, __pyx_L4_except_error)
__Pyx_GOTREF(__pyx_t_8);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_MutableMapping, __pyx_t_8) < 0) __PYX_ERR(0, 93, __pyx_L4_except_error)
+ __Pyx_INCREF(__pyx_t_8);
+ __Pyx_XGOTREF(__pyx_v_4lxml_5etree_MutableMapping);
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree_MutableMapping, __pyx_t_8);
+ __Pyx_GIVEREF(__pyx_t_8);
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
goto __pyx_L4_except_error;
__pyx_L4_except_error:;
- /* "lxml/etree.pyx":90
- * cdef object ITER_EMPTY = iter(())
+ /* "lxml/etree.pyx":91
*
+ * cdef object MutableMapping
* try: # <<<<<<<<<<<<<<
* from collections.abc import MutableMapping # Py3.3+
* except ImportError:
__pyx_L7_try_end:;
}
- /* "lxml/etree.pyx":95
+ /* "lxml/etree.pyx":96
* from collections import MutableMapping # Py2.7
*
* class _ImmutableMapping(MutableMapping): # <<<<<<<<<<<<<<
* def __getitem__(self, key):
* raise KeyError, key
*/
- __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_MutableMapping); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 95, __pyx_L1_error)
+ __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 96, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
- __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 95, __pyx_L1_error)
+ __Pyx_INCREF(__pyx_v_4lxml_5etree_MutableMapping);
+ __Pyx_GIVEREF(__pyx_v_4lxml_5etree_MutableMapping);
+ PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_v_4lxml_5etree_MutableMapping);
+ __pyx_t_1 = __Pyx_CalculateMetaclass(NULL, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 96, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __Pyx_GIVEREF(__pyx_t_7);
- PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_7);
- __pyx_t_7 = 0;
- __pyx_t_7 = __Pyx_CalculateMetaclass(NULL, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 95, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_7, __pyx_t_1, __pyx_n_s_ImmutableMapping, __pyx_n_s_ImmutableMapping, (PyObject *) NULL, __pyx_n_s_lxml_etree, (PyObject *) NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 95, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_7, __pyx_n_s_ImmutableMapping, __pyx_n_s_ImmutableMapping, (PyObject *) NULL, __pyx_n_s_lxml_etree, (PyObject *) NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 96, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- /* "lxml/etree.pyx":96
+ /* "lxml/etree.pyx":97
*
* class _ImmutableMapping(MutableMapping):
* def __getitem__(self, key): # <<<<<<<<<<<<<<
* raise KeyError, key
*
*/
- __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_17_ImmutableMapping_1__getitem__, 0, __pyx_n_s_ImmutableMapping___getitem, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__111)); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 96, __pyx_L1_error)
+ __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_17_ImmutableMapping_1__getitem__, 0, __pyx_n_s_ImmutableMapping___getitem, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__111)); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 97, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_9);
- if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_getitem, __pyx_t_9) < 0) __PYX_ERR(0, 96, __pyx_L1_error)
+ if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_getitem, __pyx_t_9) < 0) __PYX_ERR(0, 97, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
- /* "lxml/etree.pyx":99
+ /* "lxml/etree.pyx":100
* raise KeyError, key
*
* def __setitem__(self, key, value): # <<<<<<<<<<<<<<
* raise KeyError, key
*
*/
- __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_17_ImmutableMapping_3__setitem__, 0, __pyx_n_s_ImmutableMapping___setitem, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__113)); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 99, __pyx_L1_error)
+ __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_17_ImmutableMapping_3__setitem__, 0, __pyx_n_s_ImmutableMapping___setitem, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__113)); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 100, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_9);
- if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_setitem, __pyx_t_9) < 0) __PYX_ERR(0, 99, __pyx_L1_error)
+ if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_setitem, __pyx_t_9) < 0) __PYX_ERR(0, 100, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
- /* "lxml/etree.pyx":102
+ /* "lxml/etree.pyx":103
* raise KeyError, key
*
* def __delitem__(self, key): # <<<<<<<<<<<<<<
* raise KeyError, key
*
*/
- __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_17_ImmutableMapping_5__delitem__, 0, __pyx_n_s_ImmutableMapping___delitem, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__115)); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 102, __pyx_L1_error)
+ __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_17_ImmutableMapping_5__delitem__, 0, __pyx_n_s_ImmutableMapping___delitem, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__115)); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 103, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_9);
- if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_delitem, __pyx_t_9) < 0) __PYX_ERR(0, 102, __pyx_L1_error)
+ if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_delitem, __pyx_t_9) < 0) __PYX_ERR(0, 103, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
- /* "lxml/etree.pyx":105
+ /* "lxml/etree.pyx":106
* raise KeyError, key
*
* def __contains__(self, key): # <<<<<<<<<<<<<<
* return False
*
*/
- __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_17_ImmutableMapping_7__contains__, 0, __pyx_n_s_ImmutableMapping___contains, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__117)); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 105, __pyx_L1_error)
+ __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_17_ImmutableMapping_7__contains__, 0, __pyx_n_s_ImmutableMapping___contains, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__117)); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 106, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_9);
- if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_contains, __pyx_t_9) < 0) __PYX_ERR(0, 105, __pyx_L1_error)
+ if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_contains, __pyx_t_9) < 0) __PYX_ERR(0, 106, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
- /* "lxml/etree.pyx":108
+ /* "lxml/etree.pyx":109
* return False
*
* def __len__(self): # <<<<<<<<<<<<<<
* return 0
*
*/
- __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_17_ImmutableMapping_9__len__, 0, __pyx_n_s_ImmutableMapping___len, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__119)); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 108, __pyx_L1_error)
+ __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_17_ImmutableMapping_9__len__, 0, __pyx_n_s_ImmutableMapping___len, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__119)); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 109, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_9);
- if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_len, __pyx_t_9) < 0) __PYX_ERR(0, 108, __pyx_L1_error)
+ if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_len, __pyx_t_9) < 0) __PYX_ERR(0, 109, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
- /* "lxml/etree.pyx":111
+ /* "lxml/etree.pyx":112
* return 0
*
* def __iter__(self): # <<<<<<<<<<<<<<
* return ITER_EMPTY
* iterkeys = itervalues = iteritems = __iter__
*/
- __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_17_ImmutableMapping_11__iter__, 0, __pyx_n_s_ImmutableMapping___iter, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__121)); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 111, __pyx_L1_error)
+ __pyx_t_9 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_17_ImmutableMapping_11__iter__, 0, __pyx_n_s_ImmutableMapping___iter, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__121)); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 112, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_9);
- if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_iter_2, __pyx_t_9) < 0) __PYX_ERR(0, 111, __pyx_L1_error)
+ if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_iter_2, __pyx_t_9) < 0) __PYX_ERR(0, 112, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
- /* "lxml/etree.pyx":113
+ /* "lxml/etree.pyx":114
* def __iter__(self):
* return ITER_EMPTY
* iterkeys = itervalues = iteritems = __iter__ # <<<<<<<<<<<<<<
PyErr_Clear();
__Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_n_s_iter_2);
}
- if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 113, __pyx_L1_error)
+ if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 114, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_9);
- if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_iterkeys, __pyx_t_9) < 0) __PYX_ERR(0, 113, __pyx_L1_error)
- if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_itervalues, __pyx_t_9) < 0) __PYX_ERR(0, 113, __pyx_L1_error)
- if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_iteritems, __pyx_t_9) < 0) __PYX_ERR(0, 113, __pyx_L1_error)
+ if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_iterkeys, __pyx_t_9) < 0) __PYX_ERR(0, 114, __pyx_L1_error)
+ if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_itervalues, __pyx_t_9) < 0) __PYX_ERR(0, 114, __pyx_L1_error)
+ if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_iteritems, __pyx_t_9) < 0) __PYX_ERR(0, 114, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
- /* "lxml/etree.pyx":95
+ /* "lxml/etree.pyx":96
* from collections import MutableMapping # Py2.7
*
* class _ImmutableMapping(MutableMapping): # <<<<<<<<<<<<<<
* def __getitem__(self, key):
* raise KeyError, key
*/
- __pyx_t_9 = __Pyx_Py3ClassCreate(__pyx_t_7, __pyx_n_s_ImmutableMapping, __pyx_t_1, __pyx_t_2, NULL, 0, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 95, __pyx_L1_error)
+ __pyx_t_9 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_ImmutableMapping, __pyx_t_7, __pyx_t_2, NULL, 0, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 96, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_9);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_ImmutableMapping, __pyx_t_9) < 0) __PYX_ERR(0, 95, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_ImmutableMapping, __pyx_t_9) < 0) __PYX_ERR(0, 96, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- /* "lxml/etree.pyx":115
+ /* "lxml/etree.pyx":116
* iterkeys = itervalues = iteritems = __iter__
*
* cdef object IMMUTABLE_EMPTY_MAPPING = _ImmutableMapping() # <<<<<<<<<<<<<<
- * del MutableMapping, _ImmutableMapping
+ * del _ImmutableMapping
*
*/
- __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_ImmutableMapping); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 115, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- __pyx_t_7 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 115, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_ImmutableMapping); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 116, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 116, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__Pyx_XGOTREF(__pyx_v_4lxml_5etree_IMMUTABLE_EMPTY_MAPPING);
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree_IMMUTABLE_EMPTY_MAPPING, __pyx_t_7);
- __Pyx_GIVEREF(__pyx_t_7);
- __pyx_t_7 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree_IMMUTABLE_EMPTY_MAPPING, __pyx_t_1);
+ __Pyx_GIVEREF(__pyx_t_1);
+ __pyx_t_1 = 0;
- /* "lxml/etree.pyx":116
+ /* "lxml/etree.pyx":117
*
* cdef object IMMUTABLE_EMPTY_MAPPING = _ImmutableMapping()
- * del MutableMapping, _ImmutableMapping # <<<<<<<<<<<<<<
+ * del _ImmutableMapping # <<<<<<<<<<<<<<
*
*
*/
- if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_MutableMapping) < 0) __PYX_ERR(0, 116, __pyx_L1_error)
- if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_ImmutableMapping) < 0) __PYX_ERR(0, 116, __pyx_L1_error)
+ if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_ImmutableMapping) < 0) __PYX_ERR(0, 117, __pyx_L1_error)
- /* "lxml/etree.pyx":134
+ /* "lxml/etree.pyx":135
*
* # make the compiled-in debug state publicly available
* DEBUG = __DEBUG # <<<<<<<<<<<<<<
*
* # A struct to store a cached qualified tag name+href pair.
*/
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_DEBUG, __pyx_int_1) < 0) __PYX_ERR(0, 134, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_DEBUG, __pyx_int_1) < 0) __PYX_ERR(0, 135, __pyx_L1_error)
- /* "lxml/etree.pyx":145
+ /* "lxml/etree.pyx":146
*
* # global per-thread setup
* tree.xmlThrDefIndentTreeOutput(1) # <<<<<<<<<<<<<<
*/
(void)(xmlThrDefIndentTreeOutput(1));
- /* "lxml/etree.pyx":146
+ /* "lxml/etree.pyx":147
* # global per-thread setup
* tree.xmlThrDefIndentTreeOutput(1)
* tree.xmlThrDefLineNumbersDefaultValue(1) # <<<<<<<<<<<<<<
*/
(void)(xmlThrDefLineNumbersDefaultValue(1));
- /* "lxml/etree.pyx":148
+ /* "lxml/etree.pyx":149
* tree.xmlThrDefLineNumbersDefaultValue(1)
*
* _initThreadLogging() # <<<<<<<<<<<<<<
*/
__pyx_f_4lxml_5etree__initThreadLogging();
- /* "lxml/etree.pyx":151
+ /* "lxml/etree.pyx":152
*
* # initialize parser (and threading)
* xmlparser.xmlInitParser() # <<<<<<<<<<<<<<
*/
xmlInitParser();
- /* "lxml/etree.pyx":154
+ /* "lxml/etree.pyx":155
*
* # filename encoding
* cdef bytes _FILENAME_ENCODING = (sys.getfilesystemencoding() or sys.getdefaultencoding() or 'ascii').encode("UTF-8") # <<<<<<<<<<<<<<
* cdef char* _C_FILENAME_ENCODING = _cstr(_FILENAME_ENCODING)
*
*/
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_sys, __pyx_n_s_getfilesystemencoding); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 154, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 154, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_sys, __pyx_n_s_getfilesystemencoding); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 155, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 155, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 154, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 155, __pyx_L1_error)
if (!__pyx_t_10) {
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
} else {
__Pyx_INCREF(__pyx_t_2);
- __pyx_t_7 = __pyx_t_2;
+ __pyx_t_1 = __pyx_t_2;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
goto __pyx_L10_bool_binop_done;
}
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_sys, __pyx_n_s_getdefaultencoding); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 154, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_sys, __pyx_n_s_getdefaultencoding); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 155, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 154, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
+ __pyx_t_7 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 155, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 154, __pyx_L1_error)
+ __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_10 < 0)) __PYX_ERR(0, 155, __pyx_L1_error)
if (!__pyx_t_10) {
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
} else {
- __Pyx_INCREF(__pyx_t_1);
- __pyx_t_7 = __pyx_t_1;
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __Pyx_INCREF(__pyx_t_7);
+ __pyx_t_1 = __pyx_t_7;
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
goto __pyx_L10_bool_binop_done;
}
__Pyx_INCREF(__pyx_n_s_ascii);
- __pyx_t_7 = __pyx_n_s_ascii;
+ __pyx_t_1 = __pyx_n_s_ascii;
__pyx_L10_bool_binop_done:;
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_encode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 154, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__122, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 154, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_encode); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 155, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- if (!(likely(PyBytes_CheckExact(__pyx_t_7))||((__pyx_t_7) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_7)->tp_name), 0))) __PYX_ERR(0, 154, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__122, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 155, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ if (!(likely(PyBytes_CheckExact(__pyx_t_1))||((__pyx_t_1) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 155, __pyx_L1_error)
__Pyx_XGOTREF(__pyx_v_4lxml_5etree__FILENAME_ENCODING);
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree__FILENAME_ENCODING, ((PyObject*)__pyx_t_7));
- __Pyx_GIVEREF(__pyx_t_7);
- __pyx_t_7 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree__FILENAME_ENCODING, ((PyObject*)__pyx_t_1));
+ __Pyx_GIVEREF(__pyx_t_1);
+ __pyx_t_1 = 0;
- /* "lxml/etree.pyx":155
+ /* "lxml/etree.pyx":156
* # filename encoding
* cdef bytes _FILENAME_ENCODING = (sys.getfilesystemencoding() or sys.getdefaultencoding() or 'ascii').encode("UTF-8")
* cdef char* _C_FILENAME_ENCODING = _cstr(_FILENAME_ENCODING) # <<<<<<<<<<<<<<
*
* # set up some default namespace prefixes
*/
- __pyx_t_7 = __pyx_v_4lxml_5etree__FILENAME_ENCODING;
- __Pyx_INCREF(__pyx_t_7);
- __pyx_v_4lxml_5etree__C_FILENAME_ENCODING = PyBytes_AS_STRING(__pyx_t_7);
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __pyx_v_4lxml_5etree__FILENAME_ENCODING;
+ __Pyx_INCREF(__pyx_t_1);
+ __pyx_v_4lxml_5etree__C_FILENAME_ENCODING = PyBytes_AS_STRING(__pyx_t_1);
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":159
+ /* "lxml/etree.pyx":160
* # set up some default namespace prefixes
* cdef dict _DEFAULT_NAMESPACE_PREFIXES = {
* b"http://www.w3.org/XML/1998/namespace": b'xml', # <<<<<<<<<<<<<<
* b"http://www.w3.org/1999/xhtml": b"html",
* b"http://www.w3.org/1999/XSL/Transform": b"xsl",
*/
- __pyx_t_7 = __Pyx_PyDict_NewPresized(9); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 159, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem(__pyx_t_7, __pyx_kp_b_http_www_w3_org_XML_1998_namespa, __pyx_n_b_xml) < 0) __PYX_ERR(0, 159, __pyx_L1_error)
- if (PyDict_SetItem(__pyx_t_7, __pyx_kp_b_http_www_w3_org_1999_xhtml, __pyx_n_b_html) < 0) __PYX_ERR(0, 159, __pyx_L1_error)
- if (PyDict_SetItem(__pyx_t_7, __pyx_kp_b_http_www_w3_org_1999_XSL_Transfo, __pyx_n_b_xsl) < 0) __PYX_ERR(0, 159, __pyx_L1_error)
- if (PyDict_SetItem(__pyx_t_7, __pyx_kp_b_http_www_w3_org_1999_02_22_rdf_s, __pyx_n_b_rdf) < 0) __PYX_ERR(0, 159, __pyx_L1_error)
- if (PyDict_SetItem(__pyx_t_7, __pyx_kp_b_http_schemas_xmlsoap_org_wsdl, __pyx_n_b_wsdl) < 0) __PYX_ERR(0, 159, __pyx_L1_error)
- if (PyDict_SetItem(__pyx_t_7, __pyx_kp_b_http_www_w3_org_2001_XMLSchema, __pyx_n_b_xs) < 0) __PYX_ERR(0, 159, __pyx_L1_error)
- if (PyDict_SetItem(__pyx_t_7, __pyx_kp_b_http_www_w3_org_2001_XMLSchema_i, __pyx_n_b_xsi) < 0) __PYX_ERR(0, 159, __pyx_L1_error)
- if (PyDict_SetItem(__pyx_t_7, __pyx_kp_b_http_purl_org_dc_elements_1_1, __pyx_n_b_dc) < 0) __PYX_ERR(0, 159, __pyx_L1_error)
- if (PyDict_SetItem(__pyx_t_7, __pyx_kp_b_http_codespeak_net_lxml_objectif, __pyx_n_b_py) < 0) __PYX_ERR(0, 159, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyDict_NewPresized(9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 160, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem(__pyx_t_1, __pyx_kp_b_http_www_w3_org_XML_1998_namespa, __pyx_n_b_xml) < 0) __PYX_ERR(0, 160, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_1, __pyx_kp_b_http_www_w3_org_1999_xhtml, __pyx_n_b_html) < 0) __PYX_ERR(0, 160, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_1, __pyx_kp_b_http_www_w3_org_1999_XSL_Transfo, __pyx_n_b_xsl) < 0) __PYX_ERR(0, 160, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_1, __pyx_kp_b_http_www_w3_org_1999_02_22_rdf_s, __pyx_n_b_rdf) < 0) __PYX_ERR(0, 160, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_1, __pyx_kp_b_http_schemas_xmlsoap_org_wsdl, __pyx_n_b_wsdl) < 0) __PYX_ERR(0, 160, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_1, __pyx_kp_b_http_www_w3_org_2001_XMLSchema, __pyx_n_b_xs) < 0) __PYX_ERR(0, 160, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_1, __pyx_kp_b_http_www_w3_org_2001_XMLSchema_i, __pyx_n_b_xsi) < 0) __PYX_ERR(0, 160, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_1, __pyx_kp_b_http_purl_org_dc_elements_1_1, __pyx_n_b_dc) < 0) __PYX_ERR(0, 160, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_1, __pyx_kp_b_http_codespeak_net_lxml_objectif, __pyx_n_b_py) < 0) __PYX_ERR(0, 160, __pyx_L1_error)
__Pyx_XGOTREF(__pyx_v_4lxml_5etree__DEFAULT_NAMESPACE_PREFIXES);
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree__DEFAULT_NAMESPACE_PREFIXES, ((PyObject*)__pyx_t_7));
- __Pyx_GIVEREF(__pyx_t_7);
- __pyx_t_7 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree__DEFAULT_NAMESPACE_PREFIXES, ((PyObject*)__pyx_t_1));
+ __Pyx_GIVEREF(__pyx_t_1);
+ __pyx_t_1 = 0;
- /* "lxml/etree.pyx":175
+ /* "lxml/etree.pyx":176
* # To avoid runtime encoding overhead, we keep a Unicode copy
* # of the uri-prefix mapping as (str, str) items view (list in Py2).
* cdef object _DEFAULT_NAMESPACE_PREFIXES_ITEMS = [] # <<<<<<<<<<<<<<
*
* cdef _update_default_namespace_prefixes_items():
*/
- __pyx_t_7 = PyList_New(0); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 175, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 176, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
__Pyx_XGOTREF(__pyx_v_4lxml_5etree__DEFAULT_NAMESPACE_PREFIXES_ITEMS);
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree__DEFAULT_NAMESPACE_PREFIXES_ITEMS, __pyx_t_7);
- __Pyx_GIVEREF(__pyx_t_7);
- __pyx_t_7 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree__DEFAULT_NAMESPACE_PREFIXES_ITEMS, __pyx_t_1);
+ __Pyx_GIVEREF(__pyx_t_1);
+ __pyx_t_1 = 0;
- /* "lxml/etree.pyx":185
+ /* "lxml/etree.pyx":186
* }.items()
*
* _update_default_namespace_prefixes_items() # <<<<<<<<<<<<<<
*
* cdef object _check_internal_prefix = re.compile(b"ns\d+$").match
*/
- __pyx_t_7 = __pyx_f_4lxml_5etree__update_default_namespace_prefixes_items(); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 185, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __pyx_f_4lxml_5etree__update_default_namespace_prefixes_items(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 186, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":187
+ /* "lxml/etree.pyx":188
* _update_default_namespace_prefixes_items()
*
* cdef object _check_internal_prefix = re.compile(b"ns\d+$").match # <<<<<<<<<<<<<<
*
* def register_namespace(prefix, uri):
*/
- __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_re, __pyx_n_s_compile); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 187, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__123, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 187, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_re, __pyx_n_s_compile); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 188, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_match); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 187, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__123, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 188, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_match); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 188, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__Pyx_XGOTREF(__pyx_v_4lxml_5etree__check_internal_prefix);
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree__check_internal_prefix, __pyx_t_7);
- __Pyx_GIVEREF(__pyx_t_7);
- __pyx_t_7 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree__check_internal_prefix, __pyx_t_1);
+ __Pyx_GIVEREF(__pyx_t_1);
+ __pyx_t_1 = 0;
- /* "lxml/etree.pyx":189
+ /* "lxml/etree.pyx":190
* cdef object _check_internal_prefix = re.compile(b"ns\d+$").match
*
* def register_namespace(prefix, uri): # <<<<<<<<<<<<<<
* u"""Registers a namespace prefix that newly created Elements in that
* namespace will use. The registry is global, and any existing
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_1register_namespace, 0, __pyx_n_s_register_namespace, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__125)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 189, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_register_namespace, __pyx_t_7) < 0) __PYX_ERR(0, 189, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_1register_namespace, 0, __pyx_n_s_register_namespace, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__125)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 190, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_register_namespace, __pyx_t_1) < 0) __PYX_ERR(0, 190, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":226
+ /* "lxml/etree.pyx":227
* self.error_log = error_log.copy()
*
* cdef object _Error = Error # <<<<<<<<<<<<<<
__Pyx_DECREF_SET(__pyx_v_4lxml_5etree__Error, ((PyObject *)__pyx_ptype_4lxml_5etree_Error));
__Pyx_GIVEREF(((PyObject *)__pyx_ptype_4lxml_5etree_Error));
- /* "lxml/etree.pyx":230
+ /* "lxml/etree.pyx":231
*
* # superclass for all syntax errors
* class LxmlSyntaxError(LxmlError, SyntaxError): # <<<<<<<<<<<<<<
* """Base class for all syntax errors.
* """
*/
- __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 230, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 231, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(((PyObject *)__pyx_ptype_4lxml_5etree_LxmlError));
__Pyx_GIVEREF(((PyObject *)__pyx_ptype_4lxml_5etree_LxmlError));
- PyTuple_SET_ITEM(__pyx_t_7, 0, ((PyObject *)__pyx_ptype_4lxml_5etree_LxmlError));
+ PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_ptype_4lxml_5etree_LxmlError));
__Pyx_INCREF(__pyx_builtin_SyntaxError);
__Pyx_GIVEREF(__pyx_builtin_SyntaxError);
- PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_builtin_SyntaxError);
- __pyx_t_1 = __Pyx_CalculateMetaclass(NULL, __pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 230, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_7, __pyx_n_s_LxmlSyntaxError, __pyx_n_s_LxmlSyntaxError, (PyObject *) NULL, __pyx_n_s_lxml_etree, __pyx_kp_s_Base_class_for_all_syntax_errors); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 230, __pyx_L1_error)
+ PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_builtin_SyntaxError);
+ __pyx_t_7 = __Pyx_CalculateMetaclass(NULL, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 231, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_7, __pyx_t_1, __pyx_n_s_LxmlSyntaxError, __pyx_n_s_LxmlSyntaxError, (PyObject *) NULL, __pyx_n_s_lxml_etree, __pyx_kp_s_Base_class_for_all_syntax_errors); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 231, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_9 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_LxmlSyntaxError, __pyx_t_7, __pyx_t_2, NULL, 0, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 230, __pyx_L1_error)
+ __pyx_t_9 = __Pyx_Py3ClassCreate(__pyx_t_7, __pyx_n_s_LxmlSyntaxError, __pyx_t_1, __pyx_t_2, NULL, 0, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 231, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_9);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_LxmlSyntaxError, __pyx_t_9) < 0) __PYX_ERR(0, 230, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_LxmlSyntaxError, __pyx_t_9) < 0) __PYX_ERR(0, 231, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":270
+ /* "lxml/etree.pyx":271
*
* cdef int _LIBXML_VERSION_INT
* try: # <<<<<<<<<<<<<<
__Pyx_XGOTREF(__pyx_t_3);
/*try:*/ {
- /* "lxml/etree.pyx":272
+ /* "lxml/etree.pyx":273
* try:
* _LIBXML_VERSION_INT = int(
* re.match(u'[0-9]+', (<unsigned char*>tree.xmlParserVersion).decode("ascii")).group(0)) # <<<<<<<<<<<<<<
* except Exception:
* print u"Unknown libxml2 version: %s" % (<unsigned char*>tree.xmlParserVersion).decode("latin1")
*/
- __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_re, __pyx_n_s_match); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 272, __pyx_L13_error)
- __Pyx_GOTREF(__pyx_t_7);
- __pyx_t_11 = ((unsigned char *)xmlParserVersion);
- __pyx_t_1 = __Pyx_decode_c_string(((char const *)__pyx_t_11), 0, strlen(((char const *)__pyx_t_11)), NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 272, __pyx_L13_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_re, __pyx_n_s_match); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 273, __pyx_L13_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 272, __pyx_L13_error)
+ __pyx_t_11 = ((unsigned char *)xmlParserVersion);
+ __pyx_t_7 = __Pyx_decode_c_string(((char const *)__pyx_t_11), 0, strlen(((char const *)__pyx_t_11)), NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 273, __pyx_L13_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 273, __pyx_L13_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_INCREF(__pyx_kp_u_0_9);
__Pyx_GIVEREF(__pyx_kp_u_0_9);
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_kp_u_0_9);
- __Pyx_INCREF(__pyx_t_1);
- __Pyx_GIVEREF(__pyx_t_1);
- PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 272, __pyx_L13_error)
- __Pyx_GOTREF(__pyx_t_1);
+ __Pyx_INCREF(__pyx_t_7);
+ __Pyx_GIVEREF(__pyx_t_7);
+ PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_7);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 273, __pyx_L13_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_group); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 272, __pyx_L13_error)
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_group); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 273, __pyx_L13_error)
__Pyx_GOTREF(__pyx_t_2);
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__126, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 272, __pyx_L13_error)
- __Pyx_GOTREF(__pyx_t_1);
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__126, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 273, __pyx_L13_error)
+ __Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":271
+ /* "lxml/etree.pyx":272
* cdef int _LIBXML_VERSION_INT
* try:
* _LIBXML_VERSION_INT = int( # <<<<<<<<<<<<<<
* re.match(u'[0-9]+', (<unsigned char*>tree.xmlParserVersion).decode("ascii")).group(0))
* except Exception:
*/
- __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 271, __pyx_L13_error)
+ __pyx_t_2 = __Pyx_PyNumber_Int(__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 272, __pyx_L13_error)
__Pyx_GOTREF(__pyx_t_2);
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_2); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 271, __pyx_L13_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_2); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 272, __pyx_L13_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_v_4lxml_5etree__LIBXML_VERSION_INT = __pyx_t_6;
- /* "lxml/etree.pyx":270
+ /* "lxml/etree.pyx":271
*
* cdef int _LIBXML_VERSION_INT
* try: # <<<<<<<<<<<<<<
__Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
__Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
- /* "lxml/etree.pyx":273
+ /* "lxml/etree.pyx":274
* _LIBXML_VERSION_INT = int(
* re.match(u'[0-9]+', (<unsigned char*>tree.xmlParserVersion).decode("ascii")).group(0))
* except Exception: # <<<<<<<<<<<<<<
__pyx_t_6 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
if (__pyx_t_6) {
__Pyx_AddTraceback("lxml.etree", __pyx_clineno, __pyx_lineno, __pyx_filename);
- if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_1, &__pyx_t_7) < 0) __PYX_ERR(0, 273, __pyx_L15_except_error)
+ if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_1) < 0) __PYX_ERR(0, 274, __pyx_L15_except_error)
__Pyx_GOTREF(__pyx_t_2);
- __Pyx_GOTREF(__pyx_t_1);
__Pyx_GOTREF(__pyx_t_7);
+ __Pyx_GOTREF(__pyx_t_1);
- /* "lxml/etree.pyx":274
+ /* "lxml/etree.pyx":275
* re.match(u'[0-9]+', (<unsigned char*>tree.xmlParserVersion).decode("ascii")).group(0))
* except Exception:
* print u"Unknown libxml2 version: %s" % (<unsigned char*>tree.xmlParserVersion).decode("latin1") # <<<<<<<<<<<<<<
*
*/
__pyx_t_11 = ((unsigned char *)xmlParserVersion);
- __pyx_t_9 = __Pyx_decode_c_string(((char const *)__pyx_t_11), 0, strlen(((char const *)__pyx_t_11)), NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 274, __pyx_L15_except_error)
+ __pyx_t_9 = __Pyx_decode_c_string(((char const *)__pyx_t_11), 0, strlen(((char const *)__pyx_t_11)), NULL, NULL, PyUnicode_DecodeLatin1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 275, __pyx_L15_except_error)
__Pyx_GOTREF(__pyx_t_9);
- __pyx_t_8 = PyUnicode_Format(__pyx_kp_u_Unknown_libxml2_version_s, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 274, __pyx_L15_except_error)
+ __pyx_t_8 = PyUnicode_Format(__pyx_kp_u_Unknown_libxml2_version_s, __pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 275, __pyx_L15_except_error)
__Pyx_GOTREF(__pyx_t_8);
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
- if (__Pyx_PrintOne(0, __pyx_t_8) < 0) __PYX_ERR(0, 274, __pyx_L15_except_error)
+ if (__Pyx_PrintOne(0, __pyx_t_8) < 0) __PYX_ERR(0, 275, __pyx_L15_except_error)
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
- /* "lxml/etree.pyx":275
+ /* "lxml/etree.pyx":276
* except Exception:
* print u"Unknown libxml2 version: %s" % (<unsigned char*>tree.xmlParserVersion).decode("latin1")
* _LIBXML_VERSION_INT = 0 # <<<<<<<<<<<<<<
*/
__pyx_v_4lxml_5etree__LIBXML_VERSION_INT = 0;
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
- __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
goto __pyx_L14_exception_handled;
}
goto __pyx_L15_except_error;
__pyx_L15_except_error:;
- /* "lxml/etree.pyx":270
+ /* "lxml/etree.pyx":271
*
* cdef int _LIBXML_VERSION_INT
* try: # <<<<<<<<<<<<<<
__pyx_L18_try_end:;
}
- /* "lxml/etree.pyx":277
+ /* "lxml/etree.pyx":278
* _LIBXML_VERSION_INT = 0
*
* LIBXML_VERSION = __unpackIntVersion(_LIBXML_VERSION_INT) # <<<<<<<<<<<<<<
* LIBXML_COMPILED_VERSION = __unpackIntVersion(tree.LIBXML_VERSION)
* LXML_VERSION = __unpackDottedVersion(tree.LXML_VERSION_STRING)
*/
- __pyx_t_7 = __pyx_f_4lxml_5etree___unpackIntVersion(__pyx_v_4lxml_5etree__LIBXML_VERSION_INT); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 277, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_LIBXML_VERSION, __pyx_t_7) < 0) __PYX_ERR(0, 277, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __pyx_f_4lxml_5etree___unpackIntVersion(__pyx_v_4lxml_5etree__LIBXML_VERSION_INT); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 278, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_LIBXML_VERSION, __pyx_t_1) < 0) __PYX_ERR(0, 278, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":278
+ /* "lxml/etree.pyx":279
*
* LIBXML_VERSION = __unpackIntVersion(_LIBXML_VERSION_INT)
* LIBXML_COMPILED_VERSION = __unpackIntVersion(tree.LIBXML_VERSION) # <<<<<<<<<<<<<<
* LXML_VERSION = __unpackDottedVersion(tree.LXML_VERSION_STRING)
*
*/
- __pyx_t_7 = __pyx_f_4lxml_5etree___unpackIntVersion(LIBXML_VERSION); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 278, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_LIBXML_COMPILED_VERSION, __pyx_t_7) < 0) __PYX_ERR(0, 278, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __pyx_f_4lxml_5etree___unpackIntVersion(LIBXML_VERSION); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 279, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_LIBXML_COMPILED_VERSION, __pyx_t_1) < 0) __PYX_ERR(0, 279, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":279
+ /* "lxml/etree.pyx":280
* LIBXML_VERSION = __unpackIntVersion(_LIBXML_VERSION_INT)
* LIBXML_COMPILED_VERSION = __unpackIntVersion(tree.LIBXML_VERSION)
* LXML_VERSION = __unpackDottedVersion(tree.LXML_VERSION_STRING) # <<<<<<<<<<<<<<
*
* __version__ = tree.LXML_VERSION_STRING.decode("ascii")
*/
- __pyx_t_7 = __Pyx_PyBytes_FromString(LXML_VERSION_STRING); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 279, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- __pyx_t_1 = __pyx_f_4lxml_5etree___unpackDottedVersion(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 279, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyBytes_FromString(LXML_VERSION_STRING); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 280, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_LXML_VERSION, __pyx_t_1) < 0) __PYX_ERR(0, 279, __pyx_L1_error)
+ __pyx_t_7 = __pyx_f_4lxml_5etree___unpackDottedVersion(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 280, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_LXML_VERSION, __pyx_t_7) < 0) __PYX_ERR(0, 280, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- /* "lxml/etree.pyx":281
+ /* "lxml/etree.pyx":282
* LXML_VERSION = __unpackDottedVersion(tree.LXML_VERSION_STRING)
*
* __version__ = tree.LXML_VERSION_STRING.decode("ascii") # <<<<<<<<<<<<<<
*
*
*/
- __pyx_t_1 = __Pyx_decode_c_string(LXML_VERSION_STRING, 0, strlen(LXML_VERSION_STRING), NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 281, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_version_2, __pyx_t_1) < 0) __PYX_ERR(0, 281, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_decode_c_string(LXML_VERSION_STRING, 0, strlen(LXML_VERSION_STRING), NULL, NULL, PyUnicode_DecodeASCII); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 282, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_version_2, __pyx_t_7) < 0) __PYX_ERR(0, 282, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
/* "src/lxml/apihelpers.pxi":650
* return attributes
* ur'^(<\?xml[^>]+)\s+encoding\s*=\s*["\'][^"\']*["\'](\s*\?>|)', re.U)
*
*/
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_re, __pyx_n_s_compile); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 650, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
+ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_re, __pyx_n_s_compile); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 650, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
/* "src/lxml/apihelpers.pxi":651
*
*
* cdef object __REPLACE_XML_ENCODING = __RE_XML_ENCODING.sub
*/
- __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_re, __pyx_n_s_U); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 651, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_re, __pyx_n_s_U); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 651, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
/* "src/lxml/apihelpers.pxi":650
* return attributes
__Pyx_INCREF(__pyx_kp_u_xml_s_encoding_s_s_s);
__Pyx_GIVEREF(__pyx_kp_u_xml_s_encoding_s_s_s);
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_kp_u_xml_s_encoding_s_s_s);
- __Pyx_GIVEREF(__pyx_t_7);
- PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_7);
- __pyx_t_7 = 0;
- __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 650, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __Pyx_GIVEREF(__pyx_t_1);
+ PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
+ __pyx_t_1 = 0;
+ __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 650, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_XGOTREF(__pyx_v_4lxml_5etree___RE_XML_ENCODING);
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree___RE_XML_ENCODING, __pyx_t_7);
- __Pyx_GIVEREF(__pyx_t_7);
- __pyx_t_7 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree___RE_XML_ENCODING, __pyx_t_1);
+ __Pyx_GIVEREF(__pyx_t_1);
+ __pyx_t_1 = 0;
/* "src/lxml/apihelpers.pxi":653
* ur'^(<\?xml[^>]+)\s+encoding\s*=\s*["\'][^"\']*["\'](\s*\?>|)', re.U)
* cdef object __HAS_XML_ENCODING = __RE_XML_ENCODING.match
*
*/
- __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree___RE_XML_ENCODING, __pyx_n_s_sub); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 653, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree___RE_XML_ENCODING, __pyx_n_s_sub); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 653, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
__Pyx_XGOTREF(__pyx_v_4lxml_5etree___REPLACE_XML_ENCODING);
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree___REPLACE_XML_ENCODING, __pyx_t_7);
- __Pyx_GIVEREF(__pyx_t_7);
- __pyx_t_7 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree___REPLACE_XML_ENCODING, __pyx_t_1);
+ __Pyx_GIVEREF(__pyx_t_1);
+ __pyx_t_1 = 0;
/* "src/lxml/apihelpers.pxi":654
*
*
* cdef object _stripEncodingDeclaration(object xml_string):
*/
- __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree___RE_XML_ENCODING, __pyx_n_s_match); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 654, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree___RE_XML_ENCODING, __pyx_n_s_match); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 654, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
__Pyx_XGOTREF(__pyx_v_4lxml_5etree___HAS_XML_ENCODING);
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree___HAS_XML_ENCODING, __pyx_t_7);
- __Pyx_GIVEREF(__pyx_t_7);
- __pyx_t_7 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree___HAS_XML_ENCODING, __pyx_t_1);
+ __Pyx_GIVEREF(__pyx_t_1);
+ __pyx_t_1 = 0;
/* "src/lxml/apihelpers.pxi":1586
* return REL_FILE_PATH
*
* cdef object _getFSPathOrObject(object obj):
*/
- __pyx_t_7 = __Pyx_PyObject_CallNoArg(__pyx_builtin_object); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 1586, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_builtin_object); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 1586, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
__Pyx_XGOTREF(__pyx_v_4lxml_5etree__NO_FSPATH);
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree__NO_FSPATH, __pyx_t_7);
- __Pyx_GIVEREF(__pyx_t_7);
- __pyx_t_7 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree__NO_FSPATH, __pyx_t_1);
+ __Pyx_GIVEREF(__pyx_t_1);
+ __pyx_t_1 = 0;
/* "src/lxml/xmlerror.pxi":11
* # module level API functions
* u"""clear_error_log()
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_3clear_error_log, 0, __pyx_n_s_clear_error_log_2, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__127)); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 11, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_clear_error_log_2, __pyx_t_7) < 0) __PYX_ERR(6, 11, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_3clear_error_log, 0, __pyx_n_s_clear_error_log_2, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__127)); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 11, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_clear_error_log_2, __pyx_t_1) < 0) __PYX_ERR(6, 11, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "src/lxml/xmlerror.pxi":191
* self.last_error = last_error
* return _BaseErrorLog(self._first_error, self.last_error)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_13_BaseErrorLog_3copy, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BaseErrorLog_copy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__129)); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 191, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__BaseErrorLog->tp_dict, __pyx_n_s_copy, __pyx_t_7) < 0) __PYX_ERR(6, 191, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_13_BaseErrorLog_3copy, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BaseErrorLog_copy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__129)); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 191, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__BaseErrorLog->tp_dict, __pyx_n_s_copy, __pyx_t_1) < 0) __PYX_ERR(6, 191, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__BaseErrorLog);
/* "src/lxml/xmlerror.pxi":197
* pass
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_13_BaseErrorLog_7receive, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BaseErrorLog_receive, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__131)); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 197, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__BaseErrorLog->tp_dict, __pyx_n_s_receive, __pyx_t_7) < 0) __PYX_ERR(6, 197, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_13_BaseErrorLog_7receive, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BaseErrorLog_receive, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__131)); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 197, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__BaseErrorLog->tp_dict, __pyx_n_s_receive, __pyx_t_1) < 0) __PYX_ERR(6, 197, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__BaseErrorLog);
/* "src/lxml/xmlerror.pxi":287
* u"""Creates a shallow copy of this error log. Reuses the list of
* entries.
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_13_ListErrorLog_3copy, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ListErrorLog_copy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__133)); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 287, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ListErrorLog->tp_dict, __pyx_n_s_copy, __pyx_t_7) < 0) __PYX_ERR(6, 287, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_13_ListErrorLog_3copy, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ListErrorLog_copy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__133)); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 287, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ListErrorLog->tp_dict, __pyx_n_s_copy, __pyx_t_1) < 0) __PYX_ERR(6, 287, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ListErrorLog);
/* "src/lxml/xmlerror.pxi":325
* u"""Filter the errors by the given domains and return a new error log
* containing the matches.
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_13_ListErrorLog_17filter_domains, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ListErrorLog_filter_domains, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__135)); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 325, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ListErrorLog->tp_dict, __pyx_n_s_filter_domains, __pyx_t_7) < 0) __PYX_ERR(6, 325, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_13_ListErrorLog_17filter_domains, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ListErrorLog_filter_domains, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__135)); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 325, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ListErrorLog->tp_dict, __pyx_n_s_filter_domains, __pyx_t_1) < 0) __PYX_ERR(6, 325, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ListErrorLog);
/* "src/lxml/xmlerror.pxi":335
* u"""filter_types(self, types)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_13_ListErrorLog_19filter_types, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ListErrorLog_filter_types, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__137)); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 335, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ListErrorLog->tp_dict, __pyx_n_s_filter_types, __pyx_t_7) < 0) __PYX_ERR(6, 335, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_13_ListErrorLog_19filter_types, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ListErrorLog_filter_types, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__137)); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 335, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ListErrorLog->tp_dict, __pyx_n_s_filter_types, __pyx_t_1) < 0) __PYX_ERR(6, 335, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ListErrorLog);
/* "src/lxml/xmlerror.pxi":347
* u"""filter_levels(self, levels)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_13_ListErrorLog_21filter_levels, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ListErrorLog_filter_levels, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__139)); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 347, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ListErrorLog->tp_dict, __pyx_n_s_filter_levels, __pyx_t_7) < 0) __PYX_ERR(6, 347, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_13_ListErrorLog_21filter_levels, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ListErrorLog_filter_levels, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__139)); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 347, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ListErrorLog->tp_dict, __pyx_n_s_filter_levels, __pyx_t_1) < 0) __PYX_ERR(6, 347, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ListErrorLog);
/* "src/lxml/xmlerror.pxi":359
* u"""filter_from_level(self, level)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_13_ListErrorLog_23filter_from_level, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ListErrorLog_filter_from_level, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__141)); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 359, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ListErrorLog->tp_dict, __pyx_n_s_filter_from_level, __pyx_t_7) < 0) __PYX_ERR(6, 359, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_13_ListErrorLog_23filter_from_level, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ListErrorLog_filter_from_level, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__141)); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 359, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ListErrorLog->tp_dict, __pyx_n_s_filter_from_level, __pyx_t_1) < 0) __PYX_ERR(6, 359, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ListErrorLog);
/* "src/lxml/xmlerror.pxi":368
* u"""filter_from_fatals(self)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_13_ListErrorLog_25filter_from_fatals, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ListErrorLog_filter_from_fatals, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__143)); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 368, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ListErrorLog->tp_dict, __pyx_n_s_filter_from_fatals, __pyx_t_7) < 0) __PYX_ERR(6, 368, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_13_ListErrorLog_25filter_from_fatals, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ListErrorLog_filter_from_fatals, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__143)); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 368, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ListErrorLog->tp_dict, __pyx_n_s_filter_from_fatals, __pyx_t_1) < 0) __PYX_ERR(6, 368, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ListErrorLog);
/* "src/lxml/xmlerror.pxi":375
* u"""filter_from_errors(self)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_13_ListErrorLog_27filter_from_errors, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ListErrorLog_filter_from_errors, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__145)); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 375, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ListErrorLog->tp_dict, __pyx_n_s_filter_from_errors, __pyx_t_7) < 0) __PYX_ERR(6, 375, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_13_ListErrorLog_27filter_from_errors, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ListErrorLog_filter_from_errors, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__145)); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 375, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ListErrorLog->tp_dict, __pyx_n_s_filter_from_errors, __pyx_t_1) < 0) __PYX_ERR(6, 375, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ListErrorLog);
/* "src/lxml/xmlerror.pxi":382
* u"""filter_from_warnings(self)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_13_ListErrorLog_29filter_from_warnings, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ListErrorLog_filter_from_warnin, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__147)); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 382, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ListErrorLog->tp_dict, __pyx_n_s_filter_from_warnings, __pyx_t_7) < 0) __PYX_ERR(6, 382, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_13_ListErrorLog_29filter_from_warnings, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ListErrorLog_filter_from_warnin, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__147)); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 382, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ListErrorLog->tp_dict, __pyx_n_s_filter_from_warnings, __pyx_t_1) < 0) __PYX_ERR(6, 382, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ListErrorLog);
/* "src/lxml/xmlerror.pxi":441
* # TODO: make this a cdef function when Cython supports it
* self.disconnect()
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_9_ErrorLog_5__exit__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ErrorLog___exit, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__149)); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 441, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ErrorLog->tp_dict, __pyx_n_s_exit, __pyx_t_7) < 0) __PYX_ERR(6, 441, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_9_ErrorLog_5__exit__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ErrorLog___exit, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__149)); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 441, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ErrorLog->tp_dict, __pyx_n_s_exit, __pyx_t_1) < 0) __PYX_ERR(6, 441, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ErrorLog);
/* "src/lxml/xmlerror.pxi":461
* self._first_error = None
* self.last_error = None
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_9_ErrorLog_7clear, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ErrorLog_clear, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__151)); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 461, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ErrorLog->tp_dict, __pyx_n_s_clear, __pyx_t_7) < 0) __PYX_ERR(6, 461, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_9_ErrorLog_7clear, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ErrorLog_clear, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__151)); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 461, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ErrorLog->tp_dict, __pyx_n_s_clear, __pyx_t_1) < 0) __PYX_ERR(6, 461, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ErrorLog);
/* "src/lxml/xmlerror.pxi":467
* u"""Creates a shallow copy of this error log and the list of entries.
* """
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_9_ErrorLog_9copy, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ErrorLog_copy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__153)); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 467, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ErrorLog->tp_dict, __pyx_n_s_copy, __pyx_t_7) < 0) __PYX_ERR(6, 467, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_9_ErrorLog_9copy, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ErrorLog_copy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__153)); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 467, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ErrorLog->tp_dict, __pyx_n_s_copy, __pyx_t_1) < 0) __PYX_ERR(6, 467, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ErrorLog);
/* "src/lxml/xmlerror.pxi":477
* if self._first_error is None and entry.level >= xmlerror.XML_ERR_ERROR:
* self._first_error = entry
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_9_ErrorLog_13receive, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ErrorLog_receive, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__155)); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 477, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ErrorLog->tp_dict, __pyx_n_s_receive, __pyx_t_7) < 0) __PYX_ERR(6, 477, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_9_ErrorLog_13receive, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ErrorLog_receive, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__155)); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 477, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ErrorLog->tp_dict, __pyx_n_s_receive, __pyx_t_1) < 0) __PYX_ERR(6, 477, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ErrorLog);
/* "src/lxml/xmlerror.pxi":487
* if entry.domain in self._accepted_domains:
* _ErrorLog.receive(self, entry)
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_15_DomainErrorLog_3receive, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_DomainErrorLog_receive, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__157)); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 487, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__DomainErrorLog->tp_dict, __pyx_n_s_receive, __pyx_t_7) < 0) __PYX_ERR(6, 487, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_15_DomainErrorLog_3receive, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_DomainErrorLog_receive, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__157)); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 487, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__DomainErrorLog->tp_dict, __pyx_n_s_receive, __pyx_t_1) < 0) __PYX_ERR(6, 487, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__DomainErrorLog);
/* "src/lxml/xmlerror.pxi":497
* if self._first_error is None and entry.level >= xmlerror.XML_ERR_ERROR:
* self._first_error = entry
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_17_RotatingErrorLog_3receive, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_RotatingErrorLog_receive, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__159)); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 497, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__RotatingErrorLog->tp_dict, __pyx_n_s_receive, __pyx_t_7) < 0) __PYX_ERR(6, 497, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_17_RotatingErrorLog_3receive, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_RotatingErrorLog_receive, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__159)); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 497, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__RotatingErrorLog->tp_dict, __pyx_n_s_receive, __pyx_t_1) < 0) __PYX_ERR(6, 497, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__RotatingErrorLog);
/* "src/lxml/xmlerror.pxi":548
* u"""Dummy method that returns an empty error log.
* """
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_10PyErrorLog_3copy, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyErrorLog_copy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__161)); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 548, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_PyErrorLog->tp_dict, __pyx_n_s_copy, __pyx_t_7) < 0) __PYX_ERR(6, 548, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_10PyErrorLog_3copy, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyErrorLog_copy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__161)); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 548, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_PyErrorLog->tp_dict, __pyx_n_s_copy, __pyx_t_1) < 0) __PYX_ERR(6, 548, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_PyErrorLog);
/* "src/lxml/xmlerror.pxi":553
* u"""log(self, log_entry, message, *args)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_10PyErrorLog_5log, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyErrorLog_log, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__163)); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 553, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_PyErrorLog->tp_dict, __pyx_n_s_log, __pyx_t_7) < 0) __PYX_ERR(6, 553, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_10PyErrorLog_5log, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyErrorLog_log, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__163)); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 553, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_PyErrorLog->tp_dict, __pyx_n_s_log, __pyx_t_1) < 0) __PYX_ERR(6, 553, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_PyErrorLog);
/* "src/lxml/xmlerror.pxi":570
* u"""receive(self, log_entry)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_10PyErrorLog_7receive, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyErrorLog_receive, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__165)); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 570, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_PyErrorLog->tp_dict, __pyx_n_s_receive, __pyx_t_7) < 0) __PYX_ERR(6, 570, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_10PyErrorLog_7receive, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PyErrorLog_receive, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__165)); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 570, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_PyErrorLog->tp_dict, __pyx_n_s_receive, __pyx_t_1) < 0) __PYX_ERR(6, 570, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_PyErrorLog);
/* "src/lxml/xmlerror.pxi":586
*
*
*/
- __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree__RotatingErrorLog), __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 586, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree__RotatingErrorLog), __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 586, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
__Pyx_XGOTREF(((PyObject *)__pyx_v_4lxml_5etree___GLOBAL_ERROR_LOG));
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree___GLOBAL_ERROR_LOG, ((struct __pyx_obj_4lxml_5etree__BaseErrorLog *)__pyx_t_7));
- __Pyx_GIVEREF(__pyx_t_7);
- __pyx_t_7 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree___GLOBAL_ERROR_LOG, ((struct __pyx_obj_4lxml_5etree__BaseErrorLog *)__pyx_t_1));
+ __Pyx_GIVEREF(__pyx_t_1);
+ __pyx_t_1 = 0;
/* "src/lxml/xmlerror.pxi":620
*
* u"""use_global_python_log(log)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_5use_global_python_log, 0, __pyx_n_s_use_global_python_log, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__167)); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 620, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_use_global_python_log, __pyx_t_7) < 0) __PYX_ERR(6, 620, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_5use_global_python_log, 0, __pyx_n_s_use_global_python_log, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__167)); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 620, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_use_global_python_log, __pyx_t_1) < 0) __PYX_ERR(6, 620, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "src/lxml/xmlerror.pxi":808
*
* """Libxml2 error levels"""
*
*/
- __pyx_t_7 = __Pyx_CalculateMetaclass(NULL, __pyx_tuple__168); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 808, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_7, __pyx_tuple__168, __pyx_n_s_ErrorLevels, __pyx_n_s_ErrorLevels, (PyObject *) NULL, __pyx_n_s_lxml_etree, __pyx_kp_s_Libxml2_error_levels); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 808, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- __pyx_t_1 = __Pyx_Py3ClassCreate(__pyx_t_7, __pyx_n_s_ErrorLevels, __pyx_tuple__168, __pyx_t_2, NULL, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 808, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_CalculateMetaclass(NULL, __pyx_tuple__168); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 808, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_ErrorLevels, __pyx_t_1) < 0) __PYX_ERR(6, 808, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_tuple__168, __pyx_n_s_ErrorLevels, __pyx_n_s_ErrorLevels, (PyObject *) NULL, __pyx_n_s_lxml_etree, __pyx_kp_s_Libxml2_error_levels); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 808, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __pyx_t_7 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_ErrorLevels, __pyx_tuple__168, __pyx_t_2, NULL, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 808, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_ErrorLevels, __pyx_t_7) < 0) __PYX_ERR(6, 808, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "src/lxml/xmlerror.pxi":811
* """Libxml2 error levels"""
* """Libxml2 error domains"""
*
*/
- __pyx_t_7 = __Pyx_CalculateMetaclass(NULL, __pyx_tuple__169); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 811, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_7, __pyx_tuple__169, __pyx_n_s_ErrorDomains, __pyx_n_s_ErrorDomains, (PyObject *) NULL, __pyx_n_s_lxml_etree, __pyx_kp_s_Libxml2_error_domains); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 811, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- __pyx_t_1 = __Pyx_Py3ClassCreate(__pyx_t_7, __pyx_n_s_ErrorDomains, __pyx_tuple__169, __pyx_t_2, NULL, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 811, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_CalculateMetaclass(NULL, __pyx_tuple__169); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 811, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_ErrorDomains, __pyx_t_1) < 0) __PYX_ERR(6, 811, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_tuple__169, __pyx_n_s_ErrorDomains, __pyx_n_s_ErrorDomains, (PyObject *) NULL, __pyx_n_s_lxml_etree, __pyx_kp_s_Libxml2_error_domains); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 811, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __pyx_t_7 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_ErrorDomains, __pyx_tuple__169, __pyx_t_2, NULL, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 811, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_ErrorDomains, __pyx_t_7) < 0) __PYX_ERR(6, 811, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "src/lxml/xmlerror.pxi":814
* """Libxml2 error domains"""
* """Libxml2 error types"""
*
*/
- __pyx_t_7 = __Pyx_CalculateMetaclass(NULL, __pyx_tuple__170); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 814, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_7, __pyx_tuple__170, __pyx_n_s_ErrorTypes, __pyx_n_s_ErrorTypes, (PyObject *) NULL, __pyx_n_s_lxml_etree, __pyx_kp_s_Libxml2_error_types); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 814, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- __pyx_t_1 = __Pyx_Py3ClassCreate(__pyx_t_7, __pyx_n_s_ErrorTypes, __pyx_tuple__170, __pyx_t_2, NULL, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 814, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_CalculateMetaclass(NULL, __pyx_tuple__170); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 814, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_ErrorTypes, __pyx_t_1) < 0) __PYX_ERR(6, 814, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_tuple__170, __pyx_n_s_ErrorTypes, __pyx_n_s_ErrorTypes, (PyObject *) NULL, __pyx_n_s_lxml_etree, __pyx_kp_s_Libxml2_error_types); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 814, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __pyx_t_7 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_ErrorTypes, __pyx_tuple__170, __pyx_t_2, NULL, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 814, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_ErrorTypes, __pyx_t_7) < 0) __PYX_ERR(6, 814, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "src/lxml/xmlerror.pxi":817
* """Libxml2 error types"""
* """Libxml2 RelaxNG error types"""
*
*/
- __pyx_t_7 = __Pyx_CalculateMetaclass(NULL, __pyx_tuple__171); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 817, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_7, __pyx_tuple__171, __pyx_n_s_RelaxNGErrorTypes, __pyx_n_s_RelaxNGErrorTypes, (PyObject *) NULL, __pyx_n_s_lxml_etree, __pyx_kp_s_Libxml2_RelaxNG_error_types); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 817, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- __pyx_t_1 = __Pyx_Py3ClassCreate(__pyx_t_7, __pyx_n_s_RelaxNGErrorTypes, __pyx_tuple__171, __pyx_t_2, NULL, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 817, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_CalculateMetaclass(NULL, __pyx_tuple__171); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 817, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_RelaxNGErrorTypes, __pyx_t_1) < 0) __PYX_ERR(6, 817, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_tuple__171, __pyx_n_s_RelaxNGErrorTypes, __pyx_n_s_RelaxNGErrorTypes, (PyObject *) NULL, __pyx_n_s_lxml_etree, __pyx_kp_s_Libxml2_RelaxNG_error_types); if (unlikely(!__pyx_t_2)) __PYX_ERR(6, 817, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __pyx_t_7 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_RelaxNGErrorTypes, __pyx_tuple__171, __pyx_t_2, NULL, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 817, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_RelaxNGErrorTypes, __pyx_t_7) < 0) __PYX_ERR(6, 817, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "src/lxml/xmlerror.pxi":825
* # This section is generated by the script 'update-error-constants.py'.
*
* __initErrorConstants() # <<<<<<<<<<<<<<
*/
- __pyx_t_7 = __pyx_f_4lxml_5etree___initErrorConstants(); if (unlikely(!__pyx_t_7)) __PYX_ERR(6, 1648, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __pyx_f_4lxml_5etree___initErrorConstants(); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 1648, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":509
+ /* "lxml/etree.pyx":510
* for i in range(30) ])
*
* cdef tuple _PREFIX_CACHE = __initPrefixCache() # <<<<<<<<<<<<<<
*
* cdef _Document _documentFactory(xmlDoc* c_doc, _BaseParser parser):
*/
- __pyx_t_7 = __pyx_f_4lxml_5etree___initPrefixCache(); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 509, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_1 = __pyx_f_4lxml_5etree___initPrefixCache(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 510, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
__Pyx_XGOTREF(__pyx_v_4lxml_5etree__PREFIX_CACHE);
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree__PREFIX_CACHE, ((PyObject*)__pyx_t_7));
- __Pyx_GIVEREF(__pyx_t_7);
- __pyx_t_7 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree__PREFIX_CACHE, ((PyObject*)__pyx_t_1));
+ __Pyx_GIVEREF(__pyx_t_1);
+ __pyx_t_1 = 0;
- /* "lxml/etree.pyx":523
+ /* "lxml/etree.pyx":524
*
*
* cdef object _find_invalid_public_id_characters = re.compile( # <<<<<<<<<<<<<<
* ur"[^\x20\x0D\x0Aa-zA-Z0-9'()+,./:=?;!*#@$_%-]+").search
*
*/
- __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_re, __pyx_n_s_compile); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 523, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_tuple__172, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 523, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_re, __pyx_n_s_compile); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 524, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__172, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 524, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":524
+ /* "lxml/etree.pyx":525
*
* cdef object _find_invalid_public_id_characters = re.compile(
* ur"[^\x20\x0D\x0Aa-zA-Z0-9'()+,./:=?;!*#@$_%-]+").search # <<<<<<<<<<<<<<
*
*
*/
- __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_search); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 524, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_search); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 525, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_XGOTREF(__pyx_v_4lxml_5etree__find_invalid_public_id_characters);
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree__find_invalid_public_id_characters, __pyx_t_7);
- __Pyx_GIVEREF(__pyx_t_7);
- __pyx_t_7 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree__find_invalid_public_id_characters, __pyx_t_1);
+ __Pyx_GIVEREF(__pyx_t_1);
+ __pyx_t_1 = 0;
- /* "lxml/etree.pyx":557
+ /* "lxml/etree.pyx":558
* return tree.xmlCreateIntSubset(c_doc, c_name, NULL, NULL)
*
* def clear(self): # <<<<<<<<<<<<<<
* u"""Removes DOCTYPE and internal subset from the document."""
* cdef xmlDoc* c_doc = self._doc._c_doc
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7DocInfo_3clear, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_DocInfo_clear, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__174)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 557, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_DocInfo->tp_dict, __pyx_n_s_clear, __pyx_t_7) < 0) __PYX_ERR(0, 557, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7DocInfo_3clear, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_DocInfo_clear, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__174)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 558, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_DocInfo->tp_dict, __pyx_n_s_clear, __pyx_t_1) < 0) __PYX_ERR(0, 558, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_DocInfo);
- /* "lxml/etree.pyx":714
+ /* "lxml/etree.pyx":715
* cdef object _tag
*
* def _init(self): # <<<<<<<<<<<<<<
* u"""_init(self)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_1_init, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element__init, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__176)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 714, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_init_2, __pyx_t_7) < 0) __PYX_ERR(0, 714, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_1_init, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element__init, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__176)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 715, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_init_2, __pyx_t_1) < 0) __PYX_ERR(0, 715, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":802
+ /* "lxml/etree.pyx":803
* _removeNode(self._doc, c_node)
*
* def __deepcopy__(self, memo): # <<<<<<<<<<<<<<
* u"__deepcopy__(self, memo)"
* return self.__copy__()
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_9__deepcopy__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element___deepcopy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__178)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 802, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_deepcopy, __pyx_t_7) < 0) __PYX_ERR(0, 802, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_9__deepcopy__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element___deepcopy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__178)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 803, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_deepcopy, __pyx_t_1) < 0) __PYX_ERR(0, 803, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":806
+ /* "lxml/etree.pyx":807
* return self.__copy__()
*
* def __copy__(self): # <<<<<<<<<<<<<<
* u"__copy__(self)"
* cdef xmlDoc* c_doc
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_11__copy__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element___copy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__180)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 806, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_copy_2, __pyx_t_7) < 0) __PYX_ERR(0, 806, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_11__copy__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element___copy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__180)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 807, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_copy_2, __pyx_t_1) < 0) __PYX_ERR(0, 807, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":825
+ /* "lxml/etree.pyx":826
* return _elementFactory(new_doc, c_node)
*
* def set(self, key, value): # <<<<<<<<<<<<<<
* u"""set(self, key, value)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_13set, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_set, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__182)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 825, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_set, __pyx_t_7) < 0) __PYX_ERR(0, 825, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_13set, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_set, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__182)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 826, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_set, __pyx_t_1) < 0) __PYX_ERR(0, 826, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":835
+ /* "lxml/etree.pyx":836
* _setAttributeValue(self, key, value)
*
* def append(self, _Element element not None): # <<<<<<<<<<<<<<
* u"""append(self, element)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_15append, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_append, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__184)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 835, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_append, __pyx_t_7) < 0) __PYX_ERR(0, 835, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_15append, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_append, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__184)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 836, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_append, __pyx_t_1) < 0) __PYX_ERR(0, 836, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":844
+ /* "lxml/etree.pyx":845
* _appendChild(self, element)
*
* def addnext(self, _Element element not None): # <<<<<<<<<<<<<<
* u"""addnext(self, element)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_17addnext, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_addnext, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__186)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 844, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_addnext, __pyx_t_7) < 0) __PYX_ERR(0, 844, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_17addnext, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_addnext, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__186)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 845, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_addnext, __pyx_t_1) < 0) __PYX_ERR(0, 845, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":863
+ /* "lxml/etree.pyx":864
* _appendSibling(self, element)
*
* def addprevious(self, _Element element not None): # <<<<<<<<<<<<<<
* u"""addprevious(self, element)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_19addprevious, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_addprevious, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__188)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 863, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_addprevious, __pyx_t_7) < 0) __PYX_ERR(0, 863, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_19addprevious, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_addprevious, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__188)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 864, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_addprevious, __pyx_t_1) < 0) __PYX_ERR(0, 864, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":882
+ /* "lxml/etree.pyx":883
* _prependSibling(self, element)
*
* def extend(self, elements): # <<<<<<<<<<<<<<
* u"""extend(self, elements)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_21extend, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_extend, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__190)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 882, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_extend, __pyx_t_7) < 0) __PYX_ERR(0, 882, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_21extend, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_extend, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__190)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 883, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_extend, __pyx_t_1) < 0) __PYX_ERR(0, 883, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":895
+ /* "lxml/etree.pyx":896
* _appendChild(self, element)
*
* def clear(self, bint keep_tail=False): # <<<<<<<<<<<<<<
* u"""clear(self, keep_tail=False)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_23clear, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_clear, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__192)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 895, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_clear, __pyx_t_7) < 0) __PYX_ERR(0, 895, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_23clear, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_clear, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__192)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 896, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_clear, __pyx_t_1) < 0) __PYX_ERR(0, 896, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":927
+ /* "lxml/etree.pyx":928
* c_node = c_node_next
*
* def insert(self, index: int, _Element element not None): # <<<<<<<<<<<<<<
* u"""insert(self, index, element)
*
*/
- __pyx_t_7 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 927, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_index, __pyx_n_u_int) < 0) __PYX_ERR(0, 927, __pyx_L1_error)
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_25insert, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_insert, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__194)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 927, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 928, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_index, __pyx_n_u_int) < 0) __PYX_ERR(0, 928, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_25insert, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_insert, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__194)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 928, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_7);
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_insert, __pyx_t_2) < 0) __PYX_ERR(0, 927, __pyx_L1_error)
+ __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_2, __pyx_t_1);
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_insert, __pyx_t_2) < 0) __PYX_ERR(0, 928, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":947
+ /* "lxml/etree.pyx":948
* moveNodeToDocument(self._doc, c_source_doc, element._c_node)
*
* def remove(self, _Element element not None): # <<<<<<<<<<<<<<
* u"""remove(self, element)
*
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_27remove, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_remove, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__196)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 947, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_27remove, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_remove, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__196)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 948, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_remove, __pyx_t_2) < 0) __PYX_ERR(0, 947, __pyx_L1_error)
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_remove, __pyx_t_2) < 0) __PYX_ERR(0, 948, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":967
+ /* "lxml/etree.pyx":968
* moveNodeToDocument(self._doc, c_node.doc, c_node)
*
* def replace(self, _Element old_element not None, # <<<<<<<<<<<<<<
* _Element new_element not None):
* u"""replace(self, old_element, new_element)
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_29replace, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_replace, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__198)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 967, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_29replace, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_replace, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__198)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 968, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_replace, __pyx_t_2) < 0) __PYX_ERR(0, 967, __pyx_L1_error)
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_replace, __pyx_t_2) < 0) __PYX_ERR(0, 968, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1214
+ /* "lxml/etree.pyx":1215
* return ElementChildIterator(self)
*
* def __reversed__(self): # <<<<<<<<<<<<<<
* u"__reversed__(self)"
* return ElementChildIterator(self, reversed=True)
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_43__reversed__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element___reversed, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__200)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1214, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_43__reversed__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element___reversed, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__200)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1215, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_reversed_2, __pyx_t_2) < 0) __PYX_ERR(0, 1214, __pyx_L1_error)
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_reversed_2, __pyx_t_2) < 0) __PYX_ERR(0, 1215, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1218
+ /* "lxml/etree.pyx":1219
* return ElementChildIterator(self, reversed=True)
*
* def index(self, _Element child not None, start: int = None, stop: int = None): # <<<<<<<<<<<<<<
* u"""index(self, child, start=None, stop=None)
*
*/
- __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1218, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1219, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_start, __pyx_n_u_int) < 0) __PYX_ERR(0, 1218, __pyx_L1_error)
- if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_stop, __pyx_n_u_int) < 0) __PYX_ERR(0, 1218, __pyx_L1_error)
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_45index, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_index, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__202)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1218, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_7, __pyx_t_2);
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_start, __pyx_n_u_int) < 0) __PYX_ERR(0, 1219, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_stop, __pyx_n_u_int) < 0) __PYX_ERR(0, 1219, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_45index, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_index, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__202)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1219, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ __Pyx_CyFunction_SetAnnotationsDict(__pyx_t_1, __pyx_t_2);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_index, __pyx_t_7) < 0) __PYX_ERR(0, 1218, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_index, __pyx_t_1) < 0) __PYX_ERR(0, 1219, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1305
+ /* "lxml/etree.pyx":1306
* raise ValueError, u"list.index(x): x not in list"
*
* def get(self, key, default=None): # <<<<<<<<<<<<<<
* u"""get(self, key, default=None)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_47get, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_get, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__204)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1305, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_get, __pyx_t_7) < 0) __PYX_ERR(0, 1305, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_47get, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_get, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__204)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1306, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_get, __pyx_t_1) < 0) __PYX_ERR(0, 1306, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1313
+ /* "lxml/etree.pyx":1314
* return _getAttributeValue(self, key, default)
*
* def keys(self): # <<<<<<<<<<<<<<
* u"""keys(self)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_49keys, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_keys, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__206)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1313, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_keys, __pyx_t_7) < 0) __PYX_ERR(0, 1313, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_49keys, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_keys, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__206)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1314, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_keys, __pyx_t_1) < 0) __PYX_ERR(0, 1314, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1322
+ /* "lxml/etree.pyx":1323
* return _collectAttributes(self._c_node, 1)
*
* def values(self): # <<<<<<<<<<<<<<
* u"""values(self)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_51values, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_values, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__208)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1322, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_values, __pyx_t_7) < 0) __PYX_ERR(0, 1322, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_51values, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_values, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__208)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1323, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_values, __pyx_t_1) < 0) __PYX_ERR(0, 1323, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1331
+ /* "lxml/etree.pyx":1332
* return _collectAttributes(self._c_node, 2)
*
* def items(self): # <<<<<<<<<<<<<<
* u"""items(self)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_53items, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_items, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__210)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1331, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_items, __pyx_t_7) < 0) __PYX_ERR(0, 1331, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_53items, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_items, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__210)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1332, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_items, __pyx_t_1) < 0) __PYX_ERR(0, 1332, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1340
+ /* "lxml/etree.pyx":1341
* return _collectAttributes(self._c_node, 3)
*
* def getchildren(self): # <<<<<<<<<<<<<<
* u"""getchildren(self)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_55getchildren, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_getchildren, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__212)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1340, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_getchildren, __pyx_t_7) < 0) __PYX_ERR(0, 1340, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_55getchildren, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_getchildren, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__212)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1341, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_getchildren, __pyx_t_1) < 0) __PYX_ERR(0, 1341, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1353
+ /* "lxml/etree.pyx":1354
* return _collectChildren(self)
*
* def getparent(self): # <<<<<<<<<<<<<<
* u"""getparent(self)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_57getparent, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_getparent, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__214)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1353, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_getparent, __pyx_t_7) < 0) __PYX_ERR(0, 1353, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_57getparent, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_getparent, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__214)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1354, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_getparent, __pyx_t_1) < 0) __PYX_ERR(0, 1354, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1365
+ /* "lxml/etree.pyx":1366
* return _elementFactory(self._doc, c_node)
*
* def getnext(self): # <<<<<<<<<<<<<<
* u"""getnext(self)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_59getnext, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_getnext, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__216)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1365, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_getnext, __pyx_t_7) < 0) __PYX_ERR(0, 1365, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_59getnext, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_getnext, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__216)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1366, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_getnext, __pyx_t_1) < 0) __PYX_ERR(0, 1366, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1377
+ /* "lxml/etree.pyx":1378
* return _elementFactory(self._doc, c_node)
*
* def getprevious(self): # <<<<<<<<<<<<<<
* u"""getprevious(self)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_61getprevious, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_getprevious, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__218)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1377, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_getprevious, __pyx_t_7) < 0) __PYX_ERR(0, 1377, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_61getprevious, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_getprevious, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__218)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1378, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_getprevious, __pyx_t_1) < 0) __PYX_ERR(0, 1378, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1389
+ /* "lxml/etree.pyx":1390
* return _elementFactory(self._doc, c_node)
*
* def itersiblings(self, tag=None, *tags, preceding=False): # <<<<<<<<<<<<<<
* u"""itersiblings(self, tag=None, *tags, preceding=False)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_63itersiblings, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_itersiblings, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__220)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1389, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_itersiblings, __pyx_t_7) < 0) __PYX_ERR(0, 1389, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_63itersiblings, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_itersiblings, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__220)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1390, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_itersiblings, __pyx_t_1) < 0) __PYX_ERR(0, 1390, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1412
+ /* "lxml/etree.pyx":1413
* return SiblingsIterator(self, tags, preceding=preceding)
*
* def iterancestors(self, tag=None, *tags): # <<<<<<<<<<<<<<
* u"""iterancestors(self, tag=None, *tags)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_65iterancestors, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_iterancestors, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__222)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1412, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_iterancestors, __pyx_t_7) < 0) __PYX_ERR(0, 1412, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_65iterancestors, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_iterancestors, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__222)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1413, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_iterancestors, __pyx_t_1) < 0) __PYX_ERR(0, 1413, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1426
+ /* "lxml/etree.pyx":1427
* return AncestorsIterator(self, tags)
*
* def iterdescendants(self, tag=None, *tags): # <<<<<<<<<<<<<<
* u"""iterdescendants(self, tag=None, *tags)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_67iterdescendants, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_iterdescendants, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__224)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1426, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_iterdescendants, __pyx_t_7) < 0) __PYX_ERR(0, 1426, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_67iterdescendants, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_iterdescendants, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__224)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1427, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_iterdescendants, __pyx_t_1) < 0) __PYX_ERR(0, 1427, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1441
+ /* "lxml/etree.pyx":1442
* return ElementDepthFirstIterator(self, tags, inclusive=False)
*
* def iterchildren(self, tag=None, *tags, reversed=False): # <<<<<<<<<<<<<<
* u"""iterchildren(self, tag=None, *tags, reversed=False)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_69iterchildren, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_iterchildren, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__226)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1441, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_iterchildren, __pyx_t_7) < 0) __PYX_ERR(0, 1441, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_69iterchildren, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_iterchildren, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__226)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1442, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_iterchildren, __pyx_t_1) < 0) __PYX_ERR(0, 1442, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1456
+ /* "lxml/etree.pyx":1457
* return ElementChildIterator(self, tags, reversed=reversed)
*
* def getroottree(self): # <<<<<<<<<<<<<<
* u"""getroottree(self)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_71getroottree, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_getroottree, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__228)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1456, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_getroottree, __pyx_t_7) < 0) __PYX_ERR(0, 1456, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_71getroottree, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_getroottree, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__228)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1457, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_getroottree, __pyx_t_1) < 0) __PYX_ERR(0, 1457, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1468
+ /* "lxml/etree.pyx":1469
* return _elementTreeFactory(self._doc, None)
*
* def getiterator(self, tag=None, *tags): # <<<<<<<<<<<<<<
* u"""getiterator(self, tag=None, *tags)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_73getiterator, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_getiterator, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__230)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1468, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_getiterator, __pyx_t_7) < 0) __PYX_ERR(0, 1468, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_73getiterator, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_getiterator, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__230)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1469, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_getiterator, __pyx_t_1) < 0) __PYX_ERR(0, 1469, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1490
+ /* "lxml/etree.pyx":1491
* return ElementDepthFirstIterator(self, tags)
*
* def iter(self, tag=None, *tags): # <<<<<<<<<<<<<<
* u"""iter(self, tag=None, *tags)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_75iter, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_iter, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__232)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1490, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_iter, __pyx_t_7) < 0) __PYX_ERR(0, 1490, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_75iter, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_iter, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__232)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1491, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_iter, __pyx_t_1) < 0) __PYX_ERR(0, 1491, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1514
+ /* "lxml/etree.pyx":1515
* return ElementDepthFirstIterator(self, tags)
*
* def itertext(self, tag=None, *tags, with_tail=True): # <<<<<<<<<<<<<<
* u"""itertext(self, tag=None, *tags, with_tail=True)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_77itertext, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_itertext, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__234)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1514, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_itertext, __pyx_t_7) < 0) __PYX_ERR(0, 1514, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_77itertext, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_itertext, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__234)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1515, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_itertext, __pyx_t_1) < 0) __PYX_ERR(0, 1515, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1529
+ /* "lxml/etree.pyx":1530
* return ElementTextIterator(self, tags, with_tail=with_tail)
*
* def makeelement(self, _tag, attrib=None, nsmap=None, **_extra): # <<<<<<<<<<<<<<
* u"""makeelement(self, _tag, attrib=None, nsmap=None, **_extra)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_79makeelement, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_makeelement, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__236)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1529, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_makeelement, __pyx_t_7) < 0) __PYX_ERR(0, 1529, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_79makeelement, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_makeelement, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__236)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1530, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_makeelement, __pyx_t_1) < 0) __PYX_ERR(0, 1530, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1538
+ /* "lxml/etree.pyx":1539
* attrib, nsmap, _extra)
*
* def find(self, path, namespaces=None): # <<<<<<<<<<<<<<
* u"""find(self, path, namespaces=None)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_81find, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_find, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__238)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1538, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_find, __pyx_t_7) < 0) __PYX_ERR(0, 1538, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_81find, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_find, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__238)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1539, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_find, __pyx_t_1) < 0) __PYX_ERR(0, 1539, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1551
+ /* "lxml/etree.pyx":1552
* return _elementpath.find(self, path, namespaces)
*
* def findtext(self, path, default=None, namespaces=None): # <<<<<<<<<<<<<<
* u"""findtext(self, path, default=None, namespaces=None)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_83findtext, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_findtext, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__240)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1551, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_findtext, __pyx_t_7) < 0) __PYX_ERR(0, 1551, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_83findtext, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_findtext, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__240)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1552, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_findtext, __pyx_t_1) < 0) __PYX_ERR(0, 1552, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1564
+ /* "lxml/etree.pyx":1565
* return _elementpath.findtext(self, path, default, namespaces)
*
* def findall(self, path, namespaces=None): # <<<<<<<<<<<<<<
* u"""findall(self, path, namespaces=None)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_85findall, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_findall, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__242)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1564, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_findall, __pyx_t_7) < 0) __PYX_ERR(0, 1564, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_85findall, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_findall, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__242)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1565, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_findall, __pyx_t_1) < 0) __PYX_ERR(0, 1565, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1577
+ /* "lxml/etree.pyx":1578
* return _elementpath.findall(self, path, namespaces)
*
* def iterfind(self, path, namespaces=None): # <<<<<<<<<<<<<<
* u"""iterfind(self, path, namespaces=None)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_87iterfind, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_iterfind, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__244)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1577, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_iterfind, __pyx_t_7) < 0) __PYX_ERR(0, 1577, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_87iterfind, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_iterfind, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__244)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1578, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_iterfind, __pyx_t_1) < 0) __PYX_ERR(0, 1578, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1590
+ /* "lxml/etree.pyx":1591
* return _elementpath.iterfind(self, path, namespaces)
*
* def xpath(self, _path, *, namespaces=None, extensions=None, # <<<<<<<<<<<<<<
* smart_strings=True, **_variables):
* u"""xpath(self, _path, namespaces=None, extensions=None, smart_strings=True, **_variables)
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_89xpath, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_xpath, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__246)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1590, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_xpath, __pyx_t_7) < 0) __PYX_ERR(0, 1590, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_89xpath, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_xpath, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__246)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1591, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_xpath, __pyx_t_1) < 0) __PYX_ERR(0, 1591, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1601
+ /* "lxml/etree.pyx":1602
* return evaluator(_path, **_variables)
*
* def cssselect(self, expr, *, translator='xml'): # <<<<<<<<<<<<<<
* """
* Run the CSS expression on this element and its children,
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_91cssselect, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_cssselect, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__248)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1601, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_cssselect, __pyx_t_7) < 0) __PYX_ERR(0, 1601, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8_Element_91cssselect, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Element_cssselect, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__248)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1602, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Element->tp_dict, __pyx_n_s_cssselect, __pyx_t_1) < 0) __PYX_ERR(0, 1602, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Element);
- /* "lxml/etree.pyx":1651
+ /* "lxml/etree.pyx":1652
* raise TypeError, u"this element does not have children or attributes"
*
* def set(self, key, value): # <<<<<<<<<<<<<<
* u"set(self, key, value)"
* self._raiseImmutable()
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_20__ContentOnlyElement_1set, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ContentOnlyElement_set, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__250)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1651, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree___ContentOnlyElement->tp_dict, __pyx_n_s_set, __pyx_t_7) < 0) __PYX_ERR(0, 1651, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_20__ContentOnlyElement_1set, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ContentOnlyElement_set, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__250)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1652, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree___ContentOnlyElement->tp_dict, __pyx_n_s_set, __pyx_t_1) < 0) __PYX_ERR(0, 1652, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree___ContentOnlyElement);
- /* "lxml/etree.pyx":1655
+ /* "lxml/etree.pyx":1656
* self._raiseImmutable()
*
* def append(self, value): # <<<<<<<<<<<<<<
* u"append(self, value)"
* self._raiseImmutable()
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_20__ContentOnlyElement_3append, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ContentOnlyElement_append, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__252)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1655, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree___ContentOnlyElement->tp_dict, __pyx_n_s_append, __pyx_t_7) < 0) __PYX_ERR(0, 1655, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_20__ContentOnlyElement_3append, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ContentOnlyElement_append, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__252)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1656, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree___ContentOnlyElement->tp_dict, __pyx_n_s_append, __pyx_t_1) < 0) __PYX_ERR(0, 1656, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree___ContentOnlyElement);
- /* "lxml/etree.pyx":1659
+ /* "lxml/etree.pyx":1660
* self._raiseImmutable()
*
* def insert(self, index, value): # <<<<<<<<<<<<<<
* u"insert(self, index, value)"
* self._raiseImmutable()
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_20__ContentOnlyElement_5insert, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ContentOnlyElement_insert, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__254)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1659, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree___ContentOnlyElement->tp_dict, __pyx_n_s_insert, __pyx_t_7) < 0) __PYX_ERR(0, 1659, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_20__ContentOnlyElement_5insert, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ContentOnlyElement_insert, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__254)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1660, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree___ContentOnlyElement->tp_dict, __pyx_n_s_insert, __pyx_t_1) < 0) __PYX_ERR(0, 1660, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree___ContentOnlyElement);
- /* "lxml/etree.pyx":1698
+ /* "lxml/etree.pyx":1699
* return 0
*
* def get(self, key, default=None): # <<<<<<<<<<<<<<
* u"get(self, key, default=None)"
* return None
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_20__ContentOnlyElement_13get, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ContentOnlyElement_get, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__256)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1698, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree___ContentOnlyElement->tp_dict, __pyx_n_s_get, __pyx_t_7) < 0) __PYX_ERR(0, 1698, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_20__ContentOnlyElement_13get, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ContentOnlyElement_get, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__256)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1699, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree___ContentOnlyElement->tp_dict, __pyx_n_s_get, __pyx_t_1) < 0) __PYX_ERR(0, 1699, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree___ContentOnlyElement);
- /* "lxml/etree.pyx":1702
+ /* "lxml/etree.pyx":1703
* return None
*
* def keys(self): # <<<<<<<<<<<<<<
* u"keys(self)"
* return []
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_20__ContentOnlyElement_15keys, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ContentOnlyElement_keys, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__258)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1702, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree___ContentOnlyElement->tp_dict, __pyx_n_s_keys, __pyx_t_7) < 0) __PYX_ERR(0, 1702, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_20__ContentOnlyElement_15keys, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ContentOnlyElement_keys, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__258)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1703, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree___ContentOnlyElement->tp_dict, __pyx_n_s_keys, __pyx_t_1) < 0) __PYX_ERR(0, 1703, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree___ContentOnlyElement);
- /* "lxml/etree.pyx":1706
+ /* "lxml/etree.pyx":1707
* return []
*
* def items(self): # <<<<<<<<<<<<<<
* u"items(self)"
* return []
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_20__ContentOnlyElement_17items, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ContentOnlyElement_items, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__260)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1706, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree___ContentOnlyElement->tp_dict, __pyx_n_s_items, __pyx_t_7) < 0) __PYX_ERR(0, 1706, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_20__ContentOnlyElement_17items, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ContentOnlyElement_items, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__260)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1707, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree___ContentOnlyElement->tp_dict, __pyx_n_s_items, __pyx_t_1) < 0) __PYX_ERR(0, 1707, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree___ContentOnlyElement);
- /* "lxml/etree.pyx":1710
+ /* "lxml/etree.pyx":1711
* return []
*
* def values(self): # <<<<<<<<<<<<<<
* u"values(self)"
* return []
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_20__ContentOnlyElement_19values, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ContentOnlyElement_values, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__262)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1710, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree___ContentOnlyElement->tp_dict, __pyx_n_s_values, __pyx_t_7) < 0) __PYX_ERR(0, 1710, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_20__ContentOnlyElement_19values, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ContentOnlyElement_values, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__262)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1711, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree___ContentOnlyElement->tp_dict, __pyx_n_s_values, __pyx_t_1) < 0) __PYX_ERR(0, 1711, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree___ContentOnlyElement);
- /* "lxml/etree.pyx":1747
+ /* "lxml/etree.pyx":1748
* return "<?%s?>" % strrepr(self.target)
*
* def get(self, key, default=None): # <<<<<<<<<<<<<<
* u"""get(self, key, default=None)
*
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_22_ProcessingInstruction_3get, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ProcessingInstruction_get, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__264)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1747, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ProcessingInstruction->tp_dict, __pyx_n_s_get, __pyx_t_7) < 0) __PYX_ERR(0, 1747, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_22_ProcessingInstruction_3get, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ProcessingInstruction_get, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__264)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1748, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ProcessingInstruction->tp_dict, __pyx_n_s_get, __pyx_t_1) < 0) __PYX_ERR(0, 1748, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ProcessingInstruction);
- /* "lxml/etree.pyx":1771
+ /* "lxml/etree.pyx":1772
* for attr, value1, value2 in _FIND_PI_ATTRIBUTES(u' ' + self.text) }
*
* cdef object _FIND_PI_ATTRIBUTES = re.compile(ur'\s+(\w+)\s*=\s*(?:\'([^\']*)\'|"([^"]*)")', re.U).findall # <<<<<<<<<<<<<<
*
* cdef class _Entity(__ContentOnlyElement):
*/
- __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_re, __pyx_n_s_compile); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1771, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_re, __pyx_n_s_U); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1771, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1771, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_re, __pyx_n_s_compile); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1772, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_re, __pyx_n_s_U); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1772, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1772, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
__Pyx_INCREF(__pyx_kp_u_s_w_s_s);
__Pyx_GIVEREF(__pyx_kp_u_s_w_s_s);
- PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_s_w_s_s);
+ PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_kp_u_s_w_s_s);
__Pyx_GIVEREF(__pyx_t_2);
- PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2);
+ PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_2);
__pyx_t_2 = 0;
- __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1771, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_7, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1772, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_findall); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1771, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_findall); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1772, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_XGOTREF(__pyx_v_4lxml_5etree__FIND_PI_ATTRIBUTES);
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree__FIND_PI_ATTRIBUTES, __pyx_t_1);
- __Pyx_GIVEREF(__pyx_t_1);
- __pyx_t_1 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree__FIND_PI_ATTRIBUTES, __pyx_t_7);
+ __Pyx_GIVEREF(__pyx_t_7);
+ __pyx_t_7 = 0;
- /* "lxml/etree.pyx":1891
+ /* "lxml/etree.pyx":1892
* return 0
*
* def parse(self, source, _BaseParser parser=None, *, base_url=None): # <<<<<<<<<<<<<<
* u"""parse(self, source, parser=None, base_url=None)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_1parse, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_parse, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__266)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1891, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_parse, __pyx_t_1) < 0) __PYX_ERR(0, 1891, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_1parse, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_parse, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__266)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1892, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_parse, __pyx_t_7) < 0) __PYX_ERR(0, 1892, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ElementTree);
- /* "lxml/etree.pyx":1907
+ /* "lxml/etree.pyx":1908
* return self._context_node
*
* def _setroot(self, _Element root not None): # <<<<<<<<<<<<<<
* u"""_setroot(self, root)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_3_setroot, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree__setroot, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__268)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1907, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_setroot, __pyx_t_1) < 0) __PYX_ERR(0, 1907, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_3_setroot, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree__setroot, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__268)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1908, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_setroot, __pyx_t_7) < 0) __PYX_ERR(0, 1908, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ElementTree);
- /* "lxml/etree.pyx":1918
+ /* "lxml/etree.pyx":1919
* self._doc = None
*
* def getroot(self): # <<<<<<<<<<<<<<
* u"""getroot(self)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_5getroot, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_getroot, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__270)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1918, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_getroot, __pyx_t_1) < 0) __PYX_ERR(0, 1918, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_5getroot, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_getroot, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__270)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1919, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_getroot, __pyx_t_7) < 0) __PYX_ERR(0, 1919, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ElementTree);
- /* "lxml/etree.pyx":1925
+ /* "lxml/etree.pyx":1926
* return self._context_node
*
* def __copy__(self): # <<<<<<<<<<<<<<
* return _elementTreeFactory(self._doc, self._context_node)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_7__copy__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree___copy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__272)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1925, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_copy_2, __pyx_t_1) < 0) __PYX_ERR(0, 1925, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_7__copy__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree___copy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__272)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1926, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_copy_2, __pyx_t_7) < 0) __PYX_ERR(0, 1926, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ElementTree);
- /* "lxml/etree.pyx":1928
+ /* "lxml/etree.pyx":1929
* return _elementTreeFactory(self._doc, self._context_node)
*
* def __deepcopy__(self, memo): # <<<<<<<<<<<<<<
* cdef _Element root
* cdef _Document doc
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_9__deepcopy__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree___deepcopy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__274)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1928, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_deepcopy, __pyx_t_1) < 0) __PYX_ERR(0, 1928, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_9__deepcopy__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree___deepcopy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__274)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1929, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_deepcopy, __pyx_t_7) < 0) __PYX_ERR(0, 1929, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ElementTree);
- /* "lxml/etree.pyx":1968
+ /* "lxml/etree.pyx":1969
* return None
*
* def write(self, file, *, encoding=None, method="xml", # <<<<<<<<<<<<<<
* bint pretty_print=False, xml_declaration=None, bint with_tail=True,
* standalone=None, doctype=None, compression=0,
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_11write, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_write, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__276)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1968, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_write, __pyx_t_1) < 0) __PYX_ERR(0, 1968, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_11write, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_write, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__276)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1969, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_write, __pyx_t_7) < 0) __PYX_ERR(0, 1969, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ElementTree);
- /* "lxml/etree.pyx":2078
+ /* "lxml/etree.pyx":2079
* is_standalone, compression)
*
* def getpath(self, _Element element not None): # <<<<<<<<<<<<<<
* u"""getpath(self, element)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_13getpath, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_getpath, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__278)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2078, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_getpath, __pyx_t_1) < 0) __PYX_ERR(0, 2078, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_13getpath, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_getpath, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__278)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2079, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_getpath, __pyx_t_7) < 0) __PYX_ERR(0, 2079, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ElementTree);
- /* "lxml/etree.pyx":2116
+ /* "lxml/etree.pyx":2117
* return path
*
* def getelementpath(self, _Element element not None): # <<<<<<<<<<<<<<
* u"""getelementpath(self, element)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_15getelementpath, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_getelementpath, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__280)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2116, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_getelementpath, __pyx_t_1) < 0) __PYX_ERR(0, 2116, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_15getelementpath, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_getelementpath, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__280)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2117, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_getelementpath, __pyx_t_7) < 0) __PYX_ERR(0, 2117, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ElementTree);
- /* "lxml/etree.pyx":2180
+ /* "lxml/etree.pyx":2181
* return '/'.join(path)
*
* def getiterator(self, tag=None, *tags): # <<<<<<<<<<<<<<
* u"""getiterator(self, *tags, tag=None)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_17getiterator, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_getiterator, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__282)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2180, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_getiterator, __pyx_t_1) < 0) __PYX_ERR(0, 2180, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_17getiterator, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_getiterator, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__282)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2181, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_getiterator, __pyx_t_7) < 0) __PYX_ERR(0, 2181, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ElementTree);
- /* "lxml/etree.pyx":2204
+ /* "lxml/etree.pyx":2205
* return root.getiterator(*tags)
*
* def iter(self, tag=None, *tags): # <<<<<<<<<<<<<<
* u"""iter(self, tag=None, *tags)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_19iter, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_iter, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__284)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2204, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_iter, __pyx_t_1) < 0) __PYX_ERR(0, 2204, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_19iter, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_iter, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__284)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2205, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_iter, __pyx_t_7) < 0) __PYX_ERR(0, 2205, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ElementTree);
- /* "lxml/etree.pyx":2222
+ /* "lxml/etree.pyx":2223
* return root.iter(*tags)
*
* def find(self, path, namespaces=None): # <<<<<<<<<<<<<<
* u"""find(self, path, namespaces=None)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_21find, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_find, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__286)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2222, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_find, __pyx_t_1) < 0) __PYX_ERR(0, 2222, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_21find, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_find, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__286)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2223, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_find, __pyx_t_7) < 0) __PYX_ERR(0, 2223, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ElementTree);
- /* "lxml/etree.pyx":2239
+ /* "lxml/etree.pyx":2240
* return root.find(path, namespaces)
*
* def findtext(self, path, default=None, namespaces=None): # <<<<<<<<<<<<<<
* u"""findtext(self, path, default=None, namespaces=None)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_23findtext, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_findtext, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__288)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2239, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_findtext, __pyx_t_1) < 0) __PYX_ERR(0, 2239, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_23findtext, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_findtext, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__288)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2240, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_findtext, __pyx_t_7) < 0) __PYX_ERR(0, 2240, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ElementTree);
- /* "lxml/etree.pyx":2256
+ /* "lxml/etree.pyx":2257
* return root.findtext(path, default, namespaces)
*
* def findall(self, path, namespaces=None): # <<<<<<<<<<<<<<
* u"""findall(self, path, namespaces=None)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_25findall, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_findall, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__290)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2256, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_findall, __pyx_t_1) < 0) __PYX_ERR(0, 2256, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_25findall, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_findall, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__290)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2257, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_findall, __pyx_t_7) < 0) __PYX_ERR(0, 2257, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ElementTree);
- /* "lxml/etree.pyx":2273
+ /* "lxml/etree.pyx":2274
* return root.findall(path, namespaces)
*
* def iterfind(self, path, namespaces=None): # <<<<<<<<<<<<<<
* u"""iterfind(self, path, namespaces=None)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_27iterfind, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_iterfind, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__292)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2273, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_iterfind, __pyx_t_1) < 0) __PYX_ERR(0, 2273, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_27iterfind, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_iterfind, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__292)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2274, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_iterfind, __pyx_t_7) < 0) __PYX_ERR(0, 2274, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ElementTree);
- /* "lxml/etree.pyx":2290
+ /* "lxml/etree.pyx":2291
* return root.iterfind(path, namespaces)
*
* def xpath(self, _path, *, namespaces=None, extensions=None, # <<<<<<<<<<<<<<
* smart_strings=True, **_variables):
* u"""xpath(self, _path, namespaces=None, extensions=None, smart_strings=True, **_variables)
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_29xpath, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_xpath, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__294)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2290, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_xpath, __pyx_t_1) < 0) __PYX_ERR(0, 2290, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_29xpath, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_xpath, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__294)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2291, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_xpath, __pyx_t_7) < 0) __PYX_ERR(0, 2291, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ElementTree);
- /* "lxml/etree.pyx":2315
+ /* "lxml/etree.pyx":2316
* return evaluator(_path, **_variables)
*
* def xslt(self, _xslt, extensions=None, access_control=None, **_kw): # <<<<<<<<<<<<<<
* u"""xslt(self, _xslt, extensions=None, access_control=None, **_kw)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_31xslt, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_xslt, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__296)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2315, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_xslt_3, __pyx_t_1) < 0) __PYX_ERR(0, 2315, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_31xslt, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_xslt, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__296)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2316, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_xslt_3, __pyx_t_7) < 0) __PYX_ERR(0, 2316, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ElementTree);
- /* "lxml/etree.pyx":2334
+ /* "lxml/etree.pyx":2335
* return style(self, **_kw)
*
* def relaxng(self, relaxng): # <<<<<<<<<<<<<<
* u"""relaxng(self, relaxng)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_33relaxng, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_relaxng, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__298)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2334, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_relaxng, __pyx_t_1) < 0) __PYX_ERR(0, 2334, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_33relaxng, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_relaxng, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__298)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2335, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_relaxng, __pyx_t_7) < 0) __PYX_ERR(0, 2335, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ElementTree);
- /* "lxml/etree.pyx":2352
+ /* "lxml/etree.pyx":2353
* return schema.validate(self)
*
* def xmlschema(self, xmlschema): # <<<<<<<<<<<<<<
* u"""xmlschema(self, xmlschema)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_35xmlschema, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_xmlschema, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__300)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2352, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_xmlschema, __pyx_t_1) < 0) __PYX_ERR(0, 2352, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_35xmlschema, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_xmlschema, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__300)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2353, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_xmlschema, __pyx_t_7) < 0) __PYX_ERR(0, 2353, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ElementTree);
- /* "lxml/etree.pyx":2370
+ /* "lxml/etree.pyx":2371
* return schema.validate(self)
*
* def xinclude(self): # <<<<<<<<<<<<<<
* u"""xinclude(self)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_37xinclude, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_xinclude, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__302)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2370, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_xinclude, __pyx_t_1) < 0) __PYX_ERR(0, 2370, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_37xinclude, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_xinclude, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__302)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2371, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_xinclude, __pyx_t_7) < 0) __PYX_ERR(0, 2371, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ElementTree);
- /* "lxml/etree.pyx":2385
+ /* "lxml/etree.pyx":2386
* XInclude()(self._context_node)
*
* def write_c14n(self, file, *, bint exclusive=False, bint with_comments=True, # <<<<<<<<<<<<<<
* compression=0, inclusive_ns_prefixes=None):
* u"""write_c14n(self, file, exclusive=False, with_comments=True,
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_39write_c14n, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_write_c14n, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__304)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2385, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_write_c14n, __pyx_t_1) < 0) __PYX_ERR(0, 2385, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ElementTree_39write_c14n, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementTree_write_c14n, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__304)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2386, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementTree->tp_dict, __pyx_n_s_write_c14n, __pyx_t_7) < 0) __PYX_ERR(0, 2386, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ElementTree);
- /* "lxml/etree.pyx":2452
+ /* "lxml/etree.pyx":2453
* _delAttribute(self._element, key)
*
* def update(self, sequence_or_dict): # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* if isinstance(sequence_or_dict, (dict, _Attrib)):
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_7update, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib_update, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__306)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2452, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_update, __pyx_t_1) < 0) __PYX_ERR(0, 2452, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_7update, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib_update, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__306)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2453, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_update, __pyx_t_7) < 0) __PYX_ERR(0, 2453, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Attrib);
- /* "lxml/etree.pyx":2459
+ /* "lxml/etree.pyx":2460
* _setAttributeValue(self._element, key, value)
*
* def pop(self, key, *default): # <<<<<<<<<<<<<<
* if len(default) > 1:
* raise TypeError, f"pop expected at most 2 arguments, got {len(default)+1}"
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_9pop, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib_pop, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__308)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2459, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_pop, __pyx_t_1) < 0) __PYX_ERR(0, 2459, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_9pop, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib_pop, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__308)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2460, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_pop, __pyx_t_7) < 0) __PYX_ERR(0, 2460, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Attrib);
- /* "lxml/etree.pyx":2472
+ /* "lxml/etree.pyx":2473
* return result
*
* def clear(self): # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* c_attrs = self._element._c_node.properties
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_11clear, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib_clear, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__310)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2472, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_clear, __pyx_t_1) < 0) __PYX_ERR(0, 2472, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_11clear, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib_clear, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__310)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2473, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_clear, __pyx_t_7) < 0) __PYX_ERR(0, 2473, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Attrib);
- /* "lxml/etree.pyx":2484
+ /* "lxml/etree.pyx":2485
* return repr(dict( _collectAttributes(self._element._c_node, 3) ))
*
* def __copy__(self): # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* return dict(_collectAttributes(self._element._c_node, 3))
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_15__copy__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib___copy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__312)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2484, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_copy_2, __pyx_t_1) < 0) __PYX_ERR(0, 2484, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_15__copy__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib___copy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__312)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2485, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_copy_2, __pyx_t_7) < 0) __PYX_ERR(0, 2485, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Attrib);
- /* "lxml/etree.pyx":2488
+ /* "lxml/etree.pyx":2489
* return dict(_collectAttributes(self._element._c_node, 3))
*
* def __deepcopy__(self, memo): # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* return dict(_collectAttributes(self._element._c_node, 3))
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_17__deepcopy__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib___deepcopy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__314)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2488, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_deepcopy, __pyx_t_1) < 0) __PYX_ERR(0, 2488, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_17__deepcopy__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib___deepcopy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__314)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2489, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_deepcopy, __pyx_t_7) < 0) __PYX_ERR(0, 2489, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Attrib);
- /* "lxml/etree.pyx":2518
+ /* "lxml/etree.pyx":2519
* return c
*
* def get(self, key, default=None): # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* return _getAttributeValue(self._element, key, default)
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_25get, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib_get, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__316)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2518, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_get, __pyx_t_1) < 0) __PYX_ERR(0, 2518, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_25get, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib_get, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__316)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2519, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_get, __pyx_t_7) < 0) __PYX_ERR(0, 2519, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Attrib);
- /* "lxml/etree.pyx":2522
+ /* "lxml/etree.pyx":2523
* return _getAttributeValue(self._element, key, default)
*
* def keys(self): # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* return _collectAttributes(self._element._c_node, 1)
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_27keys, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib_keys, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__318)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2522, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_keys, __pyx_t_1) < 0) __PYX_ERR(0, 2522, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_27keys, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib_keys, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__318)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2523, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_keys, __pyx_t_7) < 0) __PYX_ERR(0, 2523, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Attrib);
- /* "lxml/etree.pyx":2530
+ /* "lxml/etree.pyx":2531
* return iter(_collectAttributes(self._element._c_node, 1))
*
* def iterkeys(self): # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* return iter(_collectAttributes(self._element._c_node, 1))
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_31iterkeys, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib_iterkeys, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__320)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2530, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_iterkeys, __pyx_t_1) < 0) __PYX_ERR(0, 2530, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_31iterkeys, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib_iterkeys, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__320)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2531, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_iterkeys, __pyx_t_7) < 0) __PYX_ERR(0, 2531, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Attrib);
- /* "lxml/etree.pyx":2534
+ /* "lxml/etree.pyx":2535
* return iter(_collectAttributes(self._element._c_node, 1))
*
* def values(self): # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* return _collectAttributes(self._element._c_node, 2)
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_33values, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib_values, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__322)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2534, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_values, __pyx_t_1) < 0) __PYX_ERR(0, 2534, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_33values, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib_values, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__322)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2535, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_values, __pyx_t_7) < 0) __PYX_ERR(0, 2535, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Attrib);
- /* "lxml/etree.pyx":2538
+ /* "lxml/etree.pyx":2539
* return _collectAttributes(self._element._c_node, 2)
*
* def itervalues(self): # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* return iter(_collectAttributes(self._element._c_node, 2))
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_35itervalues, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib_itervalues, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__324)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2538, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_itervalues, __pyx_t_1) < 0) __PYX_ERR(0, 2538, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_35itervalues, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib_itervalues, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__324)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2539, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_itervalues, __pyx_t_7) < 0) __PYX_ERR(0, 2539, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Attrib);
- /* "lxml/etree.pyx":2542
+ /* "lxml/etree.pyx":2543
* return iter(_collectAttributes(self._element._c_node, 2))
*
* def items(self): # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* return _collectAttributes(self._element._c_node, 3)
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_37items, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib_items, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__326)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2542, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_items, __pyx_t_1) < 0) __PYX_ERR(0, 2542, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_37items, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib_items, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__326)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2543, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_items, __pyx_t_7) < 0) __PYX_ERR(0, 2543, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Attrib);
- /* "lxml/etree.pyx":2546
+ /* "lxml/etree.pyx":2547
* return _collectAttributes(self._element._c_node, 3)
*
* def iteritems(self): # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* return iter(_collectAttributes(self._element._c_node, 3))
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_39iteritems, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib_iteritems, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__328)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2546, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_iteritems, __pyx_t_1) < 0) __PYX_ERR(0, 2546, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_39iteritems, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib_iteritems, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__328)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2547, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_iteritems, __pyx_t_7) < 0) __PYX_ERR(0, 2547, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Attrib);
- /* "lxml/etree.pyx":2550
+ /* "lxml/etree.pyx":2551
* return iter(_collectAttributes(self._element._c_node, 3))
*
* def has_key(self, key): # <<<<<<<<<<<<<<
* _assertValidNode(self._element)
* return key in self
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_41has_key, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib_has_key, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__330)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2550, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_has_key, __pyx_t_1) < 0) __PYX_ERR(0, 2550, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_Attrib_41has_key, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Attrib_has_key, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__330)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2551, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Attrib->tp_dict, __pyx_n_s_has_key, __pyx_t_7) < 0) __PYX_ERR(0, 2551, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Attrib);
- /* "lxml/etree.pyx":3029
+ /* "lxml/etree.pyx":2572
+ * return python.PyObject_RichCompare(one, other, op)
+ *
+ * MutableMapping.register(_Attrib) # <<<<<<<<<<<<<<
+ *
+ *
+ */
+ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_MutableMapping, __pyx_n_s_register); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 2572, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_7, ((PyObject *)__pyx_ptype_4lxml_5etree__Attrib)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2572, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+
+ /* "lxml/etree.pyx":3032
* # module-level API for ElementTree
*
* def Element(_tag, attrib=None, nsmap=None, **_extra): # <<<<<<<<<<<<<<
* u"""Element(_tag, attrib=None, nsmap=None, **_extra)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7Element, 0, __pyx_n_s_Element, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__332)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3029, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__333);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_Element, __pyx_t_1) < 0) __PYX_ERR(0, 3029, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7Element, 0, __pyx_n_s_Element, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__332)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3032, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__333);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_Element, __pyx_t_2) < 0) __PYX_ERR(0, 3032, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":3043
+ /* "lxml/etree.pyx":3046
*
*
* def Comment(text=None): # <<<<<<<<<<<<<<
* u"""Comment(text=None)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_9Comment, 0, __pyx_n_s_Comment, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__335)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3043, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__336);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_Comment, __pyx_t_1) < 0) __PYX_ERR(0, 3043, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_9Comment, 0, __pyx_n_s_Comment, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__335)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3046, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__336);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_Comment, __pyx_t_2) < 0) __PYX_ERR(0, 3046, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":3067
+ /* "lxml/etree.pyx":3070
*
*
* def ProcessingInstruction(target, text=None): # <<<<<<<<<<<<<<
* u"""ProcessingInstruction(target, text=None)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11ProcessingInstruction, 0, __pyx_n_s_ProcessingInstruction, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__338)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3067, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__339);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_ProcessingInstruction, __pyx_t_1) < 0) __PYX_ERR(0, 3067, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11ProcessingInstruction, 0, __pyx_n_s_ProcessingInstruction, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__338)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3070, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__339);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_ProcessingInstruction, __pyx_t_2) < 0) __PYX_ERR(0, 3070, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":3095
+ /* "lxml/etree.pyx":3098
* return _elementFactory(doc, c_node)
*
* PI = ProcessingInstruction # <<<<<<<<<<<<<<
*
*
*/
- __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_ProcessingInstruction); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3095, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_PI, __pyx_t_1) < 0) __PYX_ERR(0, 3095, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ProcessingInstruction); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3098, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_PI, __pyx_t_2) < 0) __PYX_ERR(0, 3098, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":3120
+ /* "lxml/etree.pyx":3123
*
*
* def Entity(name): # <<<<<<<<<<<<<<
* u"""Entity(name)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_13Entity, 0, __pyx_n_s_Entity, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__341)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3120, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_Entity, __pyx_t_1) < 0) __PYX_ERR(0, 3120, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_13Entity, 0, __pyx_n_s_Entity, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__341)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3123, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_Entity, __pyx_t_2) < 0) __PYX_ERR(0, 3123, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":3146
+ /* "lxml/etree.pyx":3149
*
*
* def SubElement(_Element _parent not None, _tag, # <<<<<<<<<<<<<<
* attrib=None, nsmap=None, **_extra):
* u"""SubElement(_parent, _tag, attrib=None, nsmap=None, **_extra)
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_15SubElement, 0, __pyx_n_s_SubElement, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__343)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3146, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__344);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_SubElement, __pyx_t_1) < 0) __PYX_ERR(0, 3146, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_15SubElement, 0, __pyx_n_s_SubElement, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__343)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3149, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__344);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_SubElement, __pyx_t_2) < 0) __PYX_ERR(0, 3149, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":3156
+ /* "lxml/etree.pyx":3159
*
*
* def ElementTree(_Element element=None, *, file=None, _BaseParser parser=None): # <<<<<<<<<<<<<<
* u"""ElementTree(element=None, file=None, parser=None)
*
*/
- __pyx_t_1 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3156, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_file, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 3156, __pyx_L1_error)
- if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_parser, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 3156, __pyx_L1_error)
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_17ElementTree, 0, __pyx_n_s_ElementTree, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__346)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3156, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3159, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__347);
- __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_2, __pyx_t_1);
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_ElementTree, __pyx_t_2) < 0) __PYX_ERR(0, 3156, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_file, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 3159, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_parser, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 3159, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_17ElementTree, 0, __pyx_n_s_ElementTree, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__346)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3159, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_7, __pyx_tuple__347);
+ __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_7, __pyx_t_2);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_ElementTree, __pyx_t_7) < 0) __PYX_ERR(0, 3159, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- /* "lxml/etree.pyx":3182
+ /* "lxml/etree.pyx":3185
*
*
* def HTML(text, _BaseParser parser=None, *, base_url=None): # <<<<<<<<<<<<<<
* u"""HTML(text, parser=None, base_url=None)
*
*/
- __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3182, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3185, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_base_url, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 3185, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_19HTML, 0, __pyx_n_s_HTML, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__349)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3185, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_base_url, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 3182, __pyx_L1_error)
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_19HTML, 0, __pyx_n_s_HTML, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__349)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3182, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__350);
- __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_1, __pyx_t_2);
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__350);
+ __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_2, __pyx_t_7);
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_HTML, __pyx_t_2) < 0) __PYX_ERR(0, 3185, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_HTML, __pyx_t_1) < 0) __PYX_ERR(0, 3182, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":3208
+ /* "lxml/etree.pyx":3211
*
*
* def XML(text, _BaseParser parser=None, *, base_url=None): # <<<<<<<<<<<<<<
* u"""XML(text, parser=None, base_url=None)
*
*/
- __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3208, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_base_url, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 3208, __pyx_L1_error)
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_21XML, 0, __pyx_n_s_XML, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__352)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3208, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3211, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__353);
- __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_2, __pyx_t_1);
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_XML, __pyx_t_2) < 0) __PYX_ERR(0, 3208, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_base_url, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 3211, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_21XML, 0, __pyx_n_s_XML, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__352)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3211, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_7, __pyx_tuple__353);
+ __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_7, __pyx_t_2);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_XML, __pyx_t_7) < 0) __PYX_ERR(0, 3211, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- /* "lxml/etree.pyx":3239
+ /* "lxml/etree.pyx":3242
*
*
* def fromstring(text, _BaseParser parser=None, *, base_url=None): # <<<<<<<<<<<<<<
* u"""fromstring(text, parser=None, base_url=None)
*
*/
- __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3239, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3242, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_base_url, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 3242, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_23fromstring, 0, __pyx_n_s_fromstring, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__355)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3242, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_base_url, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 3239, __pyx_L1_error)
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_23fromstring, 0, __pyx_n_s_fromstring, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__355)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3239, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__356);
- __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_1, __pyx_t_2);
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__356);
+ __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_2, __pyx_t_7);
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_fromstring, __pyx_t_2) < 0) __PYX_ERR(0, 3242, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_fromstring, __pyx_t_1) < 0) __PYX_ERR(0, 3239, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":3260
+ /* "lxml/etree.pyx":3263
*
*
* def fromstringlist(strings, _BaseParser parser=None): # <<<<<<<<<<<<<<
* u"""fromstringlist(strings, parser=None)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_25fromstringlist, 0, __pyx_n_s_fromstringlist, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__358)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3260, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__359);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_fromstringlist, __pyx_t_1) < 0) __PYX_ERR(0, 3260, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_25fromstringlist, 0, __pyx_n_s_fromstringlist, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__358)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3263, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__359);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_fromstringlist, __pyx_t_2) < 0) __PYX_ERR(0, 3263, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":3281
+ /* "lxml/etree.pyx":3284
*
*
* def iselement(element): # <<<<<<<<<<<<<<
* u"""iselement(element)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_27iselement, 0, __pyx_n_s_iselement, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__361)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3281, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_iselement, __pyx_t_1) < 0) __PYX_ERR(0, 3281, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_27iselement, 0, __pyx_n_s_iselement, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__361)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3284, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_iselement, __pyx_t_2) < 0) __PYX_ERR(0, 3284, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":3289
+ /* "lxml/etree.pyx":3292
*
*
* def indent(tree, space=" ", *, Py_ssize_t level=0): # <<<<<<<<<<<<<<
* """indent(tree, space=" ", level=0)
*
*/
- __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3289, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- __pyx_t_2 = PyInt_FromSsize_t(((Py_ssize_t)0)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3289, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3292, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_level, __pyx_t_2) < 0) __PYX_ERR(0, 3289, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_29indent, 0, __pyx_n_s_indent, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__363)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3289, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__364);
- __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_2, __pyx_t_1);
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_indent, __pyx_t_2) < 0) __PYX_ERR(0, 3289, __pyx_L1_error)
+ __pyx_t_7 = PyInt_FromSsize_t(((Py_ssize_t)0)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3292, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_level, __pyx_t_7) < 0) __PYX_ERR(0, 3292, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_29indent, 0, __pyx_n_s_indent, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__363)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3292, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_7, __pyx_tuple__364);
+ __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_7, __pyx_t_2);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_indent, __pyx_t_7) < 0) __PYX_ERR(0, 3292, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- /* "lxml/etree.pyx":3340
+ /* "lxml/etree.pyx":3343
*
*
* def dump(_Element elem not None, *, bint pretty_print=True, with_tail=True): # <<<<<<<<<<<<<<
* u"""dump(elem, pretty_print=True, with_tail=True)
*
*/
- __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3340, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3343, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_2 = __Pyx_PyBool_FromLong(((int)1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3343, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_1 = __Pyx_PyBool_FromLong(((int)1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3340, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_pretty_print, __pyx_t_1) < 0) __PYX_ERR(0, 3340, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_with_tail, ((PyObject *)Py_True)) < 0) __PYX_ERR(0, 3340, __pyx_L1_error)
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_31dump, 0, __pyx_n_s_dump, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__366)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3340, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_1, __pyx_t_2);
+ if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_pretty_print, __pyx_t_2) < 0) __PYX_ERR(0, 3343, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_with_tail, ((PyObject *)Py_True)) < 0) __PYX_ERR(0, 3343, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_31dump, 0, __pyx_n_s_dump, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__366)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3343, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_2, __pyx_t_7);
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_dump, __pyx_t_2) < 0) __PYX_ERR(0, 3343, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_dump, __pyx_t_1) < 0) __PYX_ERR(0, 3340, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":3353
+ /* "lxml/etree.pyx":3356
*
*
* def tostring(element_or_tree, *, encoding=None, method="xml", # <<<<<<<<<<<<<<
* xml_declaration=None, bint pretty_print=False, bint with_tail=True,
* standalone=None, doctype=None,
*/
- __pyx_t_1 = __Pyx_PyDict_NewPresized(11); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3353, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_encoding, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 3353, __pyx_L1_error)
- if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_method, ((PyObject*)__pyx_n_s_xml)) < 0) __PYX_ERR(0, 3353, __pyx_L1_error)
- if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_xml_declaration, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 3353, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyDict_NewPresized(11); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3356, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_encoding, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 3356, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_method, ((PyObject*)__pyx_n_s_xml)) < 0) __PYX_ERR(0, 3356, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_xml_declaration, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 3356, __pyx_L1_error)
- /* "lxml/etree.pyx":3354
+ /* "lxml/etree.pyx":3357
*
* def tostring(element_or_tree, *, encoding=None, method="xml",
* xml_declaration=None, bint pretty_print=False, bint with_tail=True, # <<<<<<<<<<<<<<
* standalone=None, doctype=None,
* # method='c14n'
*/
- __pyx_t_2 = __Pyx_PyBool_FromLong(((int)0)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3354, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_pretty_print, __pyx_t_2) < 0) __PYX_ERR(0, 3353, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __pyx_t_2 = __Pyx_PyBool_FromLong(((int)1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3354, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_with_tail, __pyx_t_2) < 0) __PYX_ERR(0, 3353, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_standalone, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 3353, __pyx_L1_error)
- if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_doctype, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 3353, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyBool_FromLong(((int)0)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3357, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_pretty_print, __pyx_t_7) < 0) __PYX_ERR(0, 3356, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_7 = __Pyx_PyBool_FromLong(((int)1)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3357, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_with_tail, __pyx_t_7) < 0) __PYX_ERR(0, 3356, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_standalone, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 3356, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_doctype, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 3356, __pyx_L1_error)
- /* "lxml/etree.pyx":3357
+ /* "lxml/etree.pyx":3360
* standalone=None, doctype=None,
* # method='c14n'
* bint exclusive=False, inclusive_ns_prefixes=None, # <<<<<<<<<<<<<<
* # method='c14n2'
* bint with_comments=True, bint strip_text=False,
*/
- __pyx_t_2 = __Pyx_PyBool_FromLong(((int)0)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3357, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_exclusive, __pyx_t_2) < 0) __PYX_ERR(0, 3353, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_inclusive_ns_prefixes, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 3353, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyBool_FromLong(((int)0)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3360, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_exclusive, __pyx_t_7) < 0) __PYX_ERR(0, 3356, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_inclusive_ns_prefixes, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 3356, __pyx_L1_error)
- /* "lxml/etree.pyx":3359
+ /* "lxml/etree.pyx":3362
* bint exclusive=False, inclusive_ns_prefixes=None,
* # method='c14n2'
* bint with_comments=True, bint strip_text=False, # <<<<<<<<<<<<<<
* ):
* u"""tostring(element_or_tree, encoding=None, method="xml",
*/
- __pyx_t_2 = __Pyx_PyBool_FromLong(((int)1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3359, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_with_comments, __pyx_t_2) < 0) __PYX_ERR(0, 3353, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __pyx_t_2 = __Pyx_PyBool_FromLong(((int)0)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3359, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_strip_text, __pyx_t_2) < 0) __PYX_ERR(0, 3353, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_PyBool_FromLong(((int)1)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3362, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_with_comments, __pyx_t_7) < 0) __PYX_ERR(0, 3356, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_7 = __Pyx_PyBool_FromLong(((int)0)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3362, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_strip_text, __pyx_t_7) < 0) __PYX_ERR(0, 3356, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- /* "lxml/etree.pyx":3353
+ /* "lxml/etree.pyx":3356
*
*
* def tostring(element_or_tree, *, encoding=None, method="xml", # <<<<<<<<<<<<<<
* xml_declaration=None, bint pretty_print=False, bint with_tail=True,
* standalone=None, doctype=None,
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_33tostring, 0, __pyx_n_s_tostring, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__368)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3353, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_2, __pyx_t_1);
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_tostring, __pyx_t_2) < 0) __PYX_ERR(0, 3353, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_33tostring, 0, __pyx_n_s_tostring, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__368)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3356, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_7, __pyx_t_2);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_tostring, __pyx_t_7) < 0) __PYX_ERR(0, 3356, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- /* "lxml/etree.pyx":3466
+ /* "lxml/etree.pyx":3469
*
*
* def tostringlist(element_or_tree, *args, **kwargs): # <<<<<<<<<<<<<<
* u"""tostringlist(element_or_tree, *args, **kwargs)
*
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_35tostringlist, 0, __pyx_n_s_tostringlist, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__370)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3466, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_tostringlist, __pyx_t_2) < 0) __PYX_ERR(0, 3466, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_35tostringlist, 0, __pyx_n_s_tostringlist, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__370)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3469, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_tostringlist, __pyx_t_7) < 0) __PYX_ERR(0, 3469, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- /* "lxml/etree.pyx":3478
+ /* "lxml/etree.pyx":3481
*
*
* def tounicode(element_or_tree, *, method=u"xml", bint pretty_print=False, # <<<<<<<<<<<<<<
* bint with_tail=True, doctype=None):
* u"""tounicode(element_or_tree, method="xml", pretty_print=False,
*/
- __pyx_t_2 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3478, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyDict_NewPresized(4); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3481, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_method, ((PyObject*)__pyx_n_u_xml)) < 0) __PYX_ERR(0, 3481, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyBool_FromLong(((int)0)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3481, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_method, ((PyObject*)__pyx_n_u_xml)) < 0) __PYX_ERR(0, 3478, __pyx_L1_error)
- __pyx_t_1 = __Pyx_PyBool_FromLong(((int)0)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3478, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_pretty_print, __pyx_t_1) < 0) __PYX_ERR(0, 3478, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_pretty_print, __pyx_t_2) < 0) __PYX_ERR(0, 3481, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "lxml/etree.pyx":3479
+ /* "lxml/etree.pyx":3482
*
* def tounicode(element_or_tree, *, method=u"xml", bint pretty_print=False,
* bint with_tail=True, doctype=None): # <<<<<<<<<<<<<<
* u"""tounicode(element_or_tree, method="xml", pretty_print=False,
* with_tail=True, doctype=None)
*/
- __pyx_t_1 = __Pyx_PyBool_FromLong(((int)1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3479, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_with_tail, __pyx_t_1) < 0) __PYX_ERR(0, 3478, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_doctype, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 3478, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyBool_FromLong(((int)1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3482, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_with_tail, __pyx_t_2) < 0) __PYX_ERR(0, 3481, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_doctype, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 3481, __pyx_L1_error)
- /* "lxml/etree.pyx":3478
+ /* "lxml/etree.pyx":3481
*
*
* def tounicode(element_or_tree, *, method=u"xml", bint pretty_print=False, # <<<<<<<<<<<<<<
* bint with_tail=True, doctype=None):
* u"""tounicode(element_or_tree, method="xml", pretty_print=False,
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_37tounicode, 0, __pyx_n_s_tounicode, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__372)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3478, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_1, __pyx_t_2);
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_37tounicode, 0, __pyx_n_s_tounicode, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__372)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3481, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_2, __pyx_t_7);
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_tounicode, __pyx_t_2) < 0) __PYX_ERR(0, 3481, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_tounicode, __pyx_t_1) < 0) __PYX_ERR(0, 3478, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- /* "lxml/etree.pyx":3512
+ /* "lxml/etree.pyx":3515
*
*
* def parse(source, _BaseParser parser=None, *, base_url=None): # <<<<<<<<<<<<<<
* u"""parse(source, parser=None, base_url=None)
*
*/
- __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 3512, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_base_url, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 3512, __pyx_L1_error)
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_39parse, 0, __pyx_n_s_parse, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__374)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3512, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3515, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__375);
- __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_2, __pyx_t_1);
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_parse, __pyx_t_2) < 0) __PYX_ERR(0, 3512, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_base_url, ((PyObject *)Py_None)) < 0) __PYX_ERR(0, 3515, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_39parse, 0, __pyx_n_s_parse, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__374)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3515, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_7, __pyx_tuple__375);
+ __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_7, __pyx_t_2);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_parse, __pyx_t_7) < 0) __PYX_ERR(0, 3515, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- /* "lxml/etree.pyx":3544
+ /* "lxml/etree.pyx":3547
*
*
* def adopt_external_document(capsule, _BaseParser parser=None): # <<<<<<<<<<<<<<
* """adopt_external_document(capsule, parser=None)
*
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_41adopt_external_document, 0, __pyx_n_s_adopt_external_document, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__377)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3544, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__378);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_adopt_external_document, __pyx_t_2) < 0) __PYX_ERR(0, 3544, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_41adopt_external_document, 0, __pyx_n_s_adopt_external_document, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__377)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 3547, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_7, __pyx_tuple__378);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_adopt_external_document, __pyx_t_7) < 0) __PYX_ERR(0, 3547, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
/* "src/lxml/readonlytree.pxi":160
* return c_node != NULL
* u"__deepcopy__(self, memo)"
* return self.__copy__()
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_14_ReadOnlyProxy_11__deepcopy__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ReadOnlyProxy___deepcopy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__380)); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 160, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ReadOnlyProxy->tp_dict, __pyx_n_s_deepcopy, __pyx_t_2) < 0) __PYX_ERR(7, 160, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_14_ReadOnlyProxy_11__deepcopy__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ReadOnlyProxy___deepcopy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__380)); if (unlikely(!__pyx_t_7)) __PYX_ERR(7, 160, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ReadOnlyProxy->tp_dict, __pyx_n_s_deepcopy, __pyx_t_7) < 0) __PYX_ERR(7, 160, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ReadOnlyProxy);
/* "src/lxml/readonlytree.pxi":164
* u"__copy__(self)"
* cdef xmlDoc* c_doc
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_14_ReadOnlyProxy_13__copy__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ReadOnlyProxy___copy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__382)); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 164, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ReadOnlyProxy->tp_dict, __pyx_n_s_copy_2, __pyx_t_2) < 0) __PYX_ERR(7, 164, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_14_ReadOnlyProxy_13__copy__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ReadOnlyProxy___copy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__382)); if (unlikely(!__pyx_t_7)) __PYX_ERR(7, 164, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ReadOnlyProxy->tp_dict, __pyx_n_s_copy_2, __pyx_t_7) < 0) __PYX_ERR(7, 164, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ReadOnlyProxy);
/* "src/lxml/readonlytree.pxi":187
* u"""iterchildren(self, tag=None, reversed=False)
*
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_14_ReadOnlyProxy_17iterchildren, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ReadOnlyProxy_iterchildren, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__384)); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 187, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ReadOnlyProxy->tp_dict, __pyx_n_s_iterchildren, __pyx_t_2) < 0) __PYX_ERR(7, 187, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_14_ReadOnlyProxy_17iterchildren, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ReadOnlyProxy_iterchildren, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__384)); if (unlikely(!__pyx_t_7)) __PYX_ERR(7, 187, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ReadOnlyProxy->tp_dict, __pyx_n_s_iterchildren, __pyx_t_7) < 0) __PYX_ERR(7, 187, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ReadOnlyProxy);
/* "src/lxml/readonlytree.pxi":199
* u"""Returns all subelements. The elements are returned in document
* order.
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_14_ReadOnlyProxy_19getchildren, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ReadOnlyProxy_getchildren, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__386)); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 199, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ReadOnlyProxy->tp_dict, __pyx_n_s_getchildren, __pyx_t_2) < 0) __PYX_ERR(7, 199, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_14_ReadOnlyProxy_19getchildren, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ReadOnlyProxy_getchildren, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__386)); if (unlikely(!__pyx_t_7)) __PYX_ERR(7, 199, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ReadOnlyProxy->tp_dict, __pyx_n_s_getchildren, __pyx_t_7) < 0) __PYX_ERR(7, 199, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ReadOnlyProxy);
/* "src/lxml/readonlytree.pxi":214
* u"""Returns the parent of this element or None for the root element.
* """
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_14_ReadOnlyProxy_21getparent, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ReadOnlyProxy_getparent, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__388)); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 214, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ReadOnlyProxy->tp_dict, __pyx_n_s_getparent, __pyx_t_2) < 0) __PYX_ERR(7, 214, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_14_ReadOnlyProxy_21getparent, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ReadOnlyProxy_getparent, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__388)); if (unlikely(!__pyx_t_7)) __PYX_ERR(7, 214, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ReadOnlyProxy->tp_dict, __pyx_n_s_getparent, __pyx_t_7) < 0) __PYX_ERR(7, 214, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ReadOnlyProxy);
/* "src/lxml/readonlytree.pxi":225
* u"""Returns the following sibling of this element or None.
* """
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_14_ReadOnlyProxy_23getnext, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ReadOnlyProxy_getnext, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__390)); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 225, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ReadOnlyProxy->tp_dict, __pyx_n_s_getnext, __pyx_t_2) < 0) __PYX_ERR(7, 225, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_14_ReadOnlyProxy_23getnext, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ReadOnlyProxy_getnext, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__390)); if (unlikely(!__pyx_t_7)) __PYX_ERR(7, 225, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ReadOnlyProxy->tp_dict, __pyx_n_s_getnext, __pyx_t_7) < 0) __PYX_ERR(7, 225, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ReadOnlyProxy);
/* "src/lxml/readonlytree.pxi":235
* u"""Returns the preceding sibling of this element or None.
* """
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_14_ReadOnlyProxy_25getprevious, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ReadOnlyProxy_getprevious, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__392)); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 235, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ReadOnlyProxy->tp_dict, __pyx_n_s_getprevious, __pyx_t_2) < 0) __PYX_ERR(7, 235, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_14_ReadOnlyProxy_25getprevious, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ReadOnlyProxy_getprevious, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__392)); if (unlikely(!__pyx_t_7)) __PYX_ERR(7, 235, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ReadOnlyProxy->tp_dict, __pyx_n_s_getprevious, __pyx_t_7) < 0) __PYX_ERR(7, 235, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ReadOnlyProxy);
/* "src/lxml/readonlytree.pxi":304
* u"""Gets an element attribute.
* """
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_21_ReadOnlyElementProxy_1get, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ReadOnlyElementProxy_get, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__394)); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 304, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ReadOnlyElementProxy->tp_dict, __pyx_n_s_get, __pyx_t_2) < 0) __PYX_ERR(7, 304, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_21_ReadOnlyElementProxy_1get, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ReadOnlyElementProxy_get, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__394)); if (unlikely(!__pyx_t_7)) __PYX_ERR(7, 304, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ReadOnlyElementProxy->tp_dict, __pyx_n_s_get, __pyx_t_7) < 0) __PYX_ERR(7, 304, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ReadOnlyElementProxy);
/* "src/lxml/readonlytree.pxi":310
* u"""Gets a list of attribute names. The names are returned in an
* arbitrary order (just like for an ordinary Python dictionary).
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_21_ReadOnlyElementProxy_3keys, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ReadOnlyElementProxy_keys, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__396)); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 310, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ReadOnlyElementProxy->tp_dict, __pyx_n_s_keys, __pyx_t_2) < 0) __PYX_ERR(7, 310, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_21_ReadOnlyElementProxy_3keys, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ReadOnlyElementProxy_keys, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__396)); if (unlikely(!__pyx_t_7)) __PYX_ERR(7, 310, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ReadOnlyElementProxy->tp_dict, __pyx_n_s_keys, __pyx_t_7) < 0) __PYX_ERR(7, 310, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ReadOnlyElementProxy);
/* "src/lxml/readonlytree.pxi":317
* u"""Gets element attributes, as a sequence. The attributes are returned
* in an arbitrary order.
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_21_ReadOnlyElementProxy_5values, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ReadOnlyElementProxy_values, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__398)); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 317, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ReadOnlyElementProxy->tp_dict, __pyx_n_s_values, __pyx_t_2) < 0) __PYX_ERR(7, 317, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_21_ReadOnlyElementProxy_5values, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ReadOnlyElementProxy_values, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__398)); if (unlikely(!__pyx_t_7)) __PYX_ERR(7, 317, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ReadOnlyElementProxy->tp_dict, __pyx_n_s_values, __pyx_t_7) < 0) __PYX_ERR(7, 317, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ReadOnlyElementProxy);
/* "src/lxml/readonlytree.pxi":324
* u"""Gets element attributes, as a sequence. The attributes are returned
* in an arbitrary order.
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_21_ReadOnlyElementProxy_7items, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ReadOnlyElementProxy_items, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__400)); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 324, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ReadOnlyElementProxy->tp_dict, __pyx_n_s_items, __pyx_t_2) < 0) __PYX_ERR(7, 324, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_21_ReadOnlyElementProxy_7items, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ReadOnlyElementProxy_items, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__400)); if (unlikely(!__pyx_t_7)) __PYX_ERR(7, 324, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ReadOnlyElementProxy->tp_dict, __pyx_n_s_items, __pyx_t_7) < 0) __PYX_ERR(7, 324, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ReadOnlyElementProxy);
/* "src/lxml/readonlytree.pxi":390
* u"""Append a copy of an Element to the list of children.
* """
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_22_OpaqueDocumentWrapper_1append, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_OpaqueDocumentWrapper_append, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__402)); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 390, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__OpaqueDocumentWrapper->tp_dict, __pyx_n_s_append, __pyx_t_2) < 0) __PYX_ERR(7, 390, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_22_OpaqueDocumentWrapper_1append, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_OpaqueDocumentWrapper_append, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__402)); if (unlikely(!__pyx_t_7)) __PYX_ERR(7, 390, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__OpaqueDocumentWrapper->tp_dict, __pyx_n_s_append, __pyx_t_7) < 0) __PYX_ERR(7, 390, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__OpaqueDocumentWrapper);
/* "src/lxml/readonlytree.pxi":407
* u"""Append a copy of all Elements from a sequence to the list of
* children.
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_22_OpaqueDocumentWrapper_3extend, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_OpaqueDocumentWrapper_extend, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__404)); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 407, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__OpaqueDocumentWrapper->tp_dict, __pyx_n_s_extend, __pyx_t_2) < 0) __PYX_ERR(7, 407, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_22_OpaqueDocumentWrapper_3extend, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_OpaqueDocumentWrapper_extend, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__404)); if (unlikely(!__pyx_t_7)) __PYX_ERR(7, 407, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__OpaqueDocumentWrapper->tp_dict, __pyx_n_s_extend, __pyx_t_7) < 0) __PYX_ERR(7, 407, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__OpaqueDocumentWrapper);
/* "src/lxml/readonlytree.pxi":487
* u"""Append a copy of an Element to the list of children.
* """
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_23_AppendOnlyElementProxy_1append, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AppendOnlyElementProxy_append, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__406)); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 487, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AppendOnlyElementProxy->tp_dict, __pyx_n_s_append, __pyx_t_2) < 0) __PYX_ERR(7, 487, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_23_AppendOnlyElementProxy_1append, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AppendOnlyElementProxy_append, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__406)); if (unlikely(!__pyx_t_7)) __PYX_ERR(7, 487, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AppendOnlyElementProxy->tp_dict, __pyx_n_s_append, __pyx_t_7) < 0) __PYX_ERR(7, 487, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__AppendOnlyElementProxy);
/* "src/lxml/readonlytree.pxi":499
* u"""Append a copy of all Elements from a sequence to the list of
* children.
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_23_AppendOnlyElementProxy_3extend, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AppendOnlyElementProxy_extend, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__408)); if (unlikely(!__pyx_t_2)) __PYX_ERR(7, 499, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AppendOnlyElementProxy->tp_dict, __pyx_n_s_extend, __pyx_t_2) < 0) __PYX_ERR(7, 499, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_23_AppendOnlyElementProxy_3extend, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AppendOnlyElementProxy_extend, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__408)); if (unlikely(!__pyx_t_7)) __PYX_ERR(7, 499, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AppendOnlyElementProxy->tp_dict, __pyx_n_s_extend, __pyx_t_7) < 0) __PYX_ERR(7, 499, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__AppendOnlyElementProxy);
/* "src/lxml/classlookup.pxi":248
* u"""set_fallback(self, lookup)
*
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_26FallbackElementClassLookup_5set_fallback, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_FallbackElementClassLookup_set_f, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__410)); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 248, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_FallbackElementClassLookup->tp_dict, __pyx_n_s_set_fallback, __pyx_t_2) < 0) __PYX_ERR(8, 248, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_26FallbackElementClassLookup_5set_fallback, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_FallbackElementClassLookup_set_f, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__410)); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 248, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_FallbackElementClassLookup->tp_dict, __pyx_n_s_set_fallback, __pyx_t_7) < 0) __PYX_ERR(8, 248, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_FallbackElementClassLookup);
/* "src/lxml/classlookup.pxi":430
* u"lookup(self, type, doc, namespace, name)"
* return None
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_24CustomElementClassLookup_3lookup, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_CustomElementClassLookup_lookup, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__412)); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 430, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_CustomElementClassLookup->tp_dict, __pyx_n_s_lookup, __pyx_t_2) < 0) __PYX_ERR(8, 430, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_24CustomElementClassLookup_3lookup, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_CustomElementClassLookup_lookup, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__412)); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 430, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_CustomElementClassLookup->tp_dict, __pyx_n_s_lookup, __pyx_t_7) < 0) __PYX_ERR(8, 430, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_CustomElementClassLookup);
/* "src/lxml/classlookup.pxi":512
* u"""lookup(self, doc, element)
*
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_24PythonElementClassLookup_3lookup, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PythonElementClassLookup_lookup, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__414)); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 512, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_PythonElementClassLookup->tp_dict, __pyx_n_s_lookup, __pyx_t_2) < 0) __PYX_ERR(8, 512, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_24PythonElementClassLookup_3lookup, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_PythonElementClassLookup_lookup, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__414)); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 512, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_PythonElementClassLookup->tp_dict, __pyx_n_s_lookup, __pyx_t_7) < 0) __PYX_ERR(8, 512, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_PythonElementClassLookup);
/* "src/lxml/classlookup.pxi":549
* u"""set_element_class_lookup(lookup = None)
*
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_43set_element_class_lookup, 0, __pyx_n_s_set_element_class_lookup, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__416)); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 549, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__417);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_element_class_lookup, __pyx_t_2) < 0) __PYX_ERR(8, 549, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_43set_element_class_lookup, 0, __pyx_n_s_set_element_class_lookup, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__416)); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 549, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_7, __pyx_tuple__417);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_element_class_lookup, __pyx_t_7) < 0) __PYX_ERR(8, 549, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
/* "src/lxml/classlookup.pxi":578
* # default setup: parser delegation
*
* set_element_class_lookup(DEFAULT_ELEMENT_CLASS_LOOKUP)
*/
- __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree_ParserBasedElementClassLookup)); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 578, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
+ __pyx_t_7 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree_ParserBasedElementClassLookup)); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 578, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
__Pyx_XGOTREF(((PyObject *)__pyx_v_4lxml_5etree_DEFAULT_ELEMENT_CLASS_LOOKUP));
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree_DEFAULT_ELEMENT_CLASS_LOOKUP, ((struct __pyx_obj_4lxml_5etree_ParserBasedElementClassLookup *)__pyx_t_2));
- __Pyx_GIVEREF(__pyx_t_2);
- __pyx_t_2 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree_DEFAULT_ELEMENT_CLASS_LOOKUP, ((struct __pyx_obj_4lxml_5etree_ParserBasedElementClassLookup *)__pyx_t_7));
+ __Pyx_GIVEREF(__pyx_t_7);
+ __pyx_t_7 = 0;
/* "src/lxml/classlookup.pxi":580
* DEFAULT_ELEMENT_CLASS_LOOKUP = ParserBasedElementClassLookup()
*
* set_element_class_lookup(DEFAULT_ELEMENT_CLASS_LOOKUP) # <<<<<<<<<<<<<<
*/
- __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_set_element_class_lookup); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 580, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_set_element_class_lookup); if (unlikely(!__pyx_t_7)) __PYX_ERR(8, 580, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_7, ((PyObject *)__pyx_v_4lxml_5etree_DEFAULT_ELEMENT_CLASS_LOOKUP)); if (unlikely(!__pyx_t_2)) __PYX_ERR(8, 580, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, ((PyObject *)__pyx_v_4lxml_5etree_DEFAULT_ELEMENT_CLASS_LOOKUP)); if (unlikely(!__pyx_t_1)) __PYX_ERR(8, 580, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "src/lxml/nsclasses.pxi":29
* self._entries = {}
* u"""update(self, class_dict_iterable)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_18_NamespaceRegistry_3update, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_NamespaceRegistry_update, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__419)); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 29, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__NamespaceRegistry->tp_dict, __pyx_n_s_update, __pyx_t_1) < 0) __PYX_ERR(11, 29, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_18_NamespaceRegistry_3update, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_NamespaceRegistry_update, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__419)); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 29, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__NamespaceRegistry->tp_dict, __pyx_n_s_update, __pyx_t_2) < 0) __PYX_ERR(11, 29, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__NamespaceRegistry);
/* "src/lxml/nsclasses.pxi":74
* return list(self._entries.items())
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_18_NamespaceRegistry_11items, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_NamespaceRegistry_items, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__421)); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 74, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__NamespaceRegistry->tp_dict, __pyx_n_s_items, __pyx_t_1) < 0) __PYX_ERR(11, 74, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_18_NamespaceRegistry_11items, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_NamespaceRegistry_items, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__421)); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 74, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__NamespaceRegistry->tp_dict, __pyx_n_s_items, __pyx_t_2) < 0) __PYX_ERR(11, 74, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__NamespaceRegistry);
/* "src/lxml/nsclasses.pxi":77
* return iter(self._entries.items())
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_18_NamespaceRegistry_13iteritems, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_NamespaceRegistry_iteritems, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__423)); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 77, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__NamespaceRegistry->tp_dict, __pyx_n_s_iteritems, __pyx_t_1) < 0) __PYX_ERR(11, 77, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_18_NamespaceRegistry_13iteritems, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_NamespaceRegistry_iteritems, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__423)); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 77, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__NamespaceRegistry->tp_dict, __pyx_n_s_iteritems, __pyx_t_2) < 0) __PYX_ERR(11, 77, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__NamespaceRegistry);
/* "src/lxml/nsclasses.pxi":80
* self._entries.clear()
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_18_NamespaceRegistry_15clear, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_NamespaceRegistry_clear, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__425)); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 80, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__NamespaceRegistry->tp_dict, __pyx_n_s_clear, __pyx_t_1) < 0) __PYX_ERR(11, 80, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_18_NamespaceRegistry_15clear, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_NamespaceRegistry_clear, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__425)); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 80, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__NamespaceRegistry->tp_dict, __pyx_n_s_clear, __pyx_t_2) < 0) __PYX_ERR(11, 80, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__NamespaceRegistry);
/* "src/lxml/nsclasses.pxi":99
* self[name] = obj
* return obj
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_18_NamespaceRegistry_19__deco, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_NamespaceRegistry___deco, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__427)); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 99, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__NamespaceRegistry->tp_dict, __pyx_n_s_deco, __pyx_t_1) < 0) __PYX_ERR(11, 99, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_18_NamespaceRegistry_19__deco, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_NamespaceRegistry___deco, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__427)); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 99, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__NamespaceRegistry->tp_dict, __pyx_n_s_deco, __pyx_t_2) < 0) __PYX_ERR(11, 99, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__NamespaceRegistry);
/* "src/lxml/nsclasses.pxi":147
* u"""get_namespace(self, ns_uri)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_27ElementNamespaceClassLookup_5get_namespace, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementNamespaceClassLookup_get, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__429)); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 147, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_ElementNamespaceClassLookup->tp_dict, __pyx_n_s_get_namespace, __pyx_t_1) < 0) __PYX_ERR(11, 147, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_27ElementNamespaceClassLookup_5get_namespace, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementNamespaceClassLookup_get, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__429)); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 147, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_ElementNamespaceClassLookup->tp_dict, __pyx_n_s_get_namespace, __pyx_t_2) < 0) __PYX_ERR(11, 147, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_ElementNamespaceClassLookup);
/* "src/lxml/nsclasses.pxi":205
*
* def FunctionNamespace(ns_uri):
*/
- __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 205, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
+ __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 205, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
__Pyx_XGOTREF(__pyx_v_4lxml_5etree___FUNCTION_NAMESPACE_REGISTRIES);
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree___FUNCTION_NAMESPACE_REGISTRIES, ((PyObject*)__pyx_t_1));
- __Pyx_GIVEREF(__pyx_t_1);
- __pyx_t_1 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree___FUNCTION_NAMESPACE_REGISTRIES, ((PyObject*)__pyx_t_2));
+ __Pyx_GIVEREF(__pyx_t_2);
+ __pyx_t_2 = 0;
/* "src/lxml/nsclasses.pxi":207
* __FUNCTION_NAMESPACE_REGISTRIES = {}
* u"""FunctionNamespace(ns_uri)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_45FunctionNamespace, 0, __pyx_n_s_FunctionNamespace, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__431)); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 207, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_FunctionNamespace, __pyx_t_1) < 0) __PYX_ERR(11, 207, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_45FunctionNamespace, 0, __pyx_n_s_FunctionNamespace, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__431)); if (unlikely(!__pyx_t_2)) __PYX_ERR(11, 207, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_FunctionNamespace, __pyx_t_2) < 0) __PYX_ERR(11, 207, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
/* "src/lxml/docloader.pxi":25
* cdef class Resolver:
* u"""resolve(self, system_url, public_id, context)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8Resolver_1resolve, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Resolver_resolve, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__433)); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 25, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_Resolver->tp_dict, __pyx_n_s_resolve, __pyx_t_1) < 0) __PYX_ERR(12, 25, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8Resolver_1resolve, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Resolver_resolve, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__433)); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 25, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_Resolver->tp_dict, __pyx_n_s_resolve, __pyx_t_2) < 0) __PYX_ERR(12, 25, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_Resolver);
/* "src/lxml/docloader.pxi":36
* u"""resolve_empty(self, context)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8Resolver_3resolve_empty, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Resolver_resolve_empty, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__435)); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 36, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_Resolver->tp_dict, __pyx_n_s_resolve_empty, __pyx_t_1) < 0) __PYX_ERR(12, 36, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8Resolver_3resolve_empty, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Resolver_resolve_empty, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__435)); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 36, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_Resolver->tp_dict, __pyx_n_s_resolve_empty, __pyx_t_2) < 0) __PYX_ERR(12, 36, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_Resolver);
/* "src/lxml/docloader.pxi":48
* u"""resolve_string(self, string, context, base_url=None)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8Resolver_5resolve_string, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Resolver_resolve_string, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__437)); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 48, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_Resolver->tp_dict, __pyx_n_s_resolve_string, __pyx_t_1) < 0) __PYX_ERR(12, 48, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8Resolver_5resolve_string, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Resolver_resolve_string, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__437)); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 48, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_Resolver->tp_dict, __pyx_n_s_resolve_string, __pyx_t_2) < 0) __PYX_ERR(12, 48, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_Resolver);
/* "src/lxml/docloader.pxi":69
* u"""resolve_filename(self, filename, context)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8Resolver_7resolve_filename, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Resolver_resolve_filename, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__439)); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 69, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_Resolver->tp_dict, __pyx_n_s_resolve_filename, __pyx_t_1) < 0) __PYX_ERR(12, 69, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8Resolver_7resolve_filename, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Resolver_resolve_filename, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__439)); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 69, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_Resolver->tp_dict, __pyx_n_s_resolve_filename, __pyx_t_2) < 0) __PYX_ERR(12, 69, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_Resolver);
/* "src/lxml/docloader.pxi":83
* u"""resolve_file(self, f, context, base_url=None, close=True)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8Resolver_9resolve_file, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Resolver_resolve_file, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__441)); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 83, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_Resolver->tp_dict, __pyx_n_s_resolve_file, __pyx_t_1) < 0) __PYX_ERR(12, 83, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8Resolver_9resolve_file, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Resolver_resolve_file, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__441)); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 83, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_Resolver->tp_dict, __pyx_n_s_resolve_file, __pyx_t_2) < 0) __PYX_ERR(12, 83, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_Resolver);
/* "src/lxml/docloader.pxi":120
* u"""add(self, resolver)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_17_ResolverRegistry_3add, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ResolverRegistry_add, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__443)); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 120, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ResolverRegistry->tp_dict, __pyx_n_s_add, __pyx_t_1) < 0) __PYX_ERR(12, 120, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_17_ResolverRegistry_3add, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ResolverRegistry_add, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__443)); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 120, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ResolverRegistry->tp_dict, __pyx_n_s_add, __pyx_t_2) < 0) __PYX_ERR(12, 120, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ResolverRegistry);
/* "src/lxml/docloader.pxi":133
* u"remove(self, resolver)"
* self._resolvers.discard(resolver)
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_17_ResolverRegistry_5remove, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ResolverRegistry_remove, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__445)); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 133, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ResolverRegistry->tp_dict, __pyx_n_s_remove, __pyx_t_1) < 0) __PYX_ERR(12, 133, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_17_ResolverRegistry_5remove, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ResolverRegistry_remove, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__445)); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 133, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ResolverRegistry->tp_dict, __pyx_n_s_remove, __pyx_t_2) < 0) __PYX_ERR(12, 133, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ResolverRegistry);
/* "src/lxml/docloader.pxi":143
* u"copy(self)"
* return self._copy()
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_17_ResolverRegistry_7copy, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ResolverRegistry_copy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__447)); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 143, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ResolverRegistry->tp_dict, __pyx_n_s_copy, __pyx_t_1) < 0) __PYX_ERR(12, 143, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_17_ResolverRegistry_7copy, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ResolverRegistry_copy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__447)); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 143, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ResolverRegistry->tp_dict, __pyx_n_s_copy, __pyx_t_2) < 0) __PYX_ERR(12, 143, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ResolverRegistry);
/* "src/lxml/docloader.pxi":147
* u"resolve(self, system_url, public_id, context)"
* for resolver in self._resolvers:
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_17_ResolverRegistry_9resolve, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ResolverRegistry_resolve, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__449)); if (unlikely(!__pyx_t_1)) __PYX_ERR(12, 147, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ResolverRegistry->tp_dict, __pyx_n_s_resolve, __pyx_t_1) < 0) __PYX_ERR(12, 147, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_17_ResolverRegistry_9resolve, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ResolverRegistry_resolve, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__449)); if (unlikely(!__pyx_t_2)) __PYX_ERR(12, 147, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ResolverRegistry->tp_dict, __pyx_n_s_resolve, __pyx_t_2) < 0) __PYX_ERR(12, 147, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ResolverRegistry);
/* "src/lxml/parser.pxi":7
* """Syntax error while parsing an XML document.
*
*/
- __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_LxmlSyntaxError); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_LxmlSyntaxError); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __Pyx_GIVEREF(__pyx_t_1);
- PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
- __pyx_t_1 = 0;
- __pyx_t_1 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- __pyx_t_7 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_2, __pyx_n_s_ParseError, __pyx_n_s_ParseError, (PyObject *) NULL, __pyx_n_s_lxml_etree, __pyx_kp_s_Syntax_error_while_parsing_an_XM); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 7, __pyx_L1_error)
+ __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 7, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
+ __Pyx_GIVEREF(__pyx_t_2);
+ PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_2);
+ __pyx_t_2 = 0;
+ __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __pyx_t_1 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_7, __pyx_n_s_ParseError, __pyx_n_s_ParseError, (PyObject *) NULL, __pyx_n_s_lxml_etree, __pyx_kp_s_Syntax_error_while_parsing_an_XM); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 7, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
/* "src/lxml/parser.pxi":12
* For compatibility with ElementTree 1.3 and later.
__pyx_t_8 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_10ParseError_1__init__, 0, __pyx_n_s_ParseError___init, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__451)); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 12, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_8);
__Pyx_CyFunction_SetDefaultsTuple(__pyx_t_8, __pyx_tuple__452);
- if (__Pyx_SetNameInClass(__pyx_t_7, __pyx_n_s_init, __pyx_t_8) < 0) __PYX_ERR(2, 12, __pyx_L1_error)
+ if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_init, __pyx_t_8) < 0) __PYX_ERR(2, 12, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
/* "src/lxml/parser.pxi":19
__pyx_t_9 = __Pyx_PyObject_CallOneArg(__pyx_builtin_property, __pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 18, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_9);
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
- if (__Pyx_SetNameInClass(__pyx_t_7, __pyx_n_s_position, __pyx_t_9) < 0) __PYX_ERR(2, 19, __pyx_L1_error)
+ if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_position, __pyx_t_9) < 0) __PYX_ERR(2, 19, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
/* "src/lxml/parser.pxi":22
* def position(self, new_pos):
* self.lineno, column = new_pos
*/
- __pyx_t_8 = PyObject_GetItem(__pyx_t_7, __pyx_n_s_position);
+ __pyx_t_8 = PyObject_GetItem(__pyx_t_1, __pyx_n_s_position);
if (unlikely(!__pyx_t_8)) {
PyErr_Clear();
__Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_n_s_position);
if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 22, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_9);
__Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
- if (__Pyx_SetNameInClass(__pyx_t_7, __pyx_n_s_position, __pyx_t_9) < 0) __PYX_ERR(2, 23, __pyx_L1_error)
+ if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_position, __pyx_t_9) < 0) __PYX_ERR(2, 23, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
/* "src/lxml/parser.pxi":7
* """Syntax error while parsing an XML document.
*
*/
- __pyx_t_9 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_ParseError, __pyx_t_2, __pyx_t_7, NULL, 0, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 7, __pyx_L1_error)
+ __pyx_t_9 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_ParseError, __pyx_t_7, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 7, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_9);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_ParseError, __pyx_t_9) < 0) __PYX_ERR(2, 7, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
/* "src/lxml/parser.pxi":27
* self.offset = column - 1
*
*
*/
- __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ParseError); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 27, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
+ __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_ParseError); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 27, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
__Pyx_XGOTREF(__pyx_v_4lxml_5etree__ParseError);
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree__ParseError, __pyx_t_2);
- __Pyx_GIVEREF(__pyx_t_2);
- __pyx_t_2 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree__ParseError, __pyx_t_7);
+ __Pyx_GIVEREF(__pyx_t_7);
+ __pyx_t_7 = 0;
/* "src/lxml/parser.pxi":30
*
* """Syntax error while parsing an XML document.
* """
*/
- __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ParseError); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 30, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 30, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- __Pyx_GIVEREF(__pyx_t_2);
- PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
- __pyx_t_2 = 0;
- __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 30, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_ParseError); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 30, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 30, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_7 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_1, __pyx_n_s_XMLSyntaxError, __pyx_n_s_XMLSyntaxError, (PyObject *) NULL, __pyx_n_s_lxml_etree, __pyx_kp_s_Syntax_error_while_parsing_an_XM_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 30, __pyx_L1_error)
+ __Pyx_GIVEREF(__pyx_t_7);
+ PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7);
+ __pyx_t_7 = 0;
+ __pyx_t_7 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(2, 30, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
- __pyx_t_9 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_XMLSyntaxError, __pyx_t_1, __pyx_t_7, NULL, 0, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 30, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_Py3MetaclassPrepare(__pyx_t_7, __pyx_t_2, __pyx_n_s_XMLSyntaxError, __pyx_n_s_XMLSyntaxError, (PyObject *) NULL, __pyx_n_s_lxml_etree, __pyx_kp_s_Syntax_error_while_parsing_an_XM_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 30, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ __pyx_t_9 = __Pyx_Py3ClassCreate(__pyx_t_7, __pyx_n_s_XMLSyntaxError, __pyx_t_2, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(2, 30, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_9);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_XMLSyntaxError, __pyx_t_9) < 0) __PYX_ERR(2, 30, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "src/lxml/parser.pxi":178
* context._implied_parser_contexts.pop()
* __GLOBAL_PARSER_CONTEXT.initMainParserContext()
*
*/
- __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree__ParserDictionaryContext)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 178, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
+ __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree__ParserDictionaryContext)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 178, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
__Pyx_XGOTREF(((PyObject *)__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT));
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT, ((struct __pyx_obj_4lxml_5etree__ParserDictionaryContext *)__pyx_t_1));
- __Pyx_GIVEREF(__pyx_t_1);
- __pyx_t_1 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT, ((struct __pyx_obj_4lxml_5etree__ParserDictionaryContext *)__pyx_t_2));
+ __Pyx_GIVEREF(__pyx_t_2);
+ __pyx_t_2 = 0;
/* "src/lxml/parser.pxi":179
*
*/
__pyx_v_4lxml_5etree___DEFAULT_ENTITY_LOADER = xmlGetExternalEntityLoader();
- /* "src/lxml/parser.pxi":975
+ /* "src/lxml/parser.pxi":978
* return u"libxml2 %d.%d.%d" % LIBXML_VERSION
*
* def setElementClassLookup(self, ElementClassLookup lookup = None): # <<<<<<<<<<<<<<
* u":deprecated: use ``parser.set_element_class_lookup(lookup)`` instead."
* self.set_element_class_lookup(lookup)
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11_BaseParser_3setElementClassLookup, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BaseParser_setElementClassLooku, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__458)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 975, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__BaseParser->tp_dict, __pyx_n_s_setElementClassLookup, __pyx_t_1) < 0) __PYX_ERR(2, 975, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11_BaseParser_3setElementClassLookup, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BaseParser_setElementClassLooku, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__458)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 978, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__BaseParser->tp_dict, __pyx_n_s_setElementClassLookup, __pyx_t_2) < 0) __PYX_ERR(2, 978, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__BaseParser);
- /* "src/lxml/parser.pxi":979
+ /* "src/lxml/parser.pxi":982
* self.set_element_class_lookup(lookup)
*
* def set_element_class_lookup(self, ElementClassLookup lookup = None): # <<<<<<<<<<<<<<
* u"""set_element_class_lookup(self, lookup = None)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11_BaseParser_5set_element_class_lookup, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BaseParser_set_element_class_lo, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__460)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 979, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__BaseParser->tp_dict, __pyx_n_s_set_element_class_lookup, __pyx_t_1) < 0) __PYX_ERR(2, 979, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11_BaseParser_5set_element_class_lookup, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BaseParser_set_element_class_lo, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__460)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 982, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__BaseParser->tp_dict, __pyx_n_s_set_element_class_lookup, __pyx_t_2) < 0) __PYX_ERR(2, 982, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__BaseParser);
- /* "src/lxml/parser.pxi":1006
+ /* "src/lxml/parser.pxi":1009
* return parser
*
* def copy(self): # <<<<<<<<<<<<<<
* u"""copy(self)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11_BaseParser_7copy, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BaseParser_copy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__462)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1006, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__BaseParser->tp_dict, __pyx_n_s_copy, __pyx_t_1) < 0) __PYX_ERR(2, 1006, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11_BaseParser_7copy, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BaseParser_copy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__462)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1009, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__BaseParser->tp_dict, __pyx_n_s_copy, __pyx_t_2) < 0) __PYX_ERR(2, 1009, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__BaseParser);
- /* "src/lxml/parser.pxi":1013
+ /* "src/lxml/parser.pxi":1016
* return self._copy()
*
* def makeelement(self, _tag, attrib=None, nsmap=None, **_extra): # <<<<<<<<<<<<<<
* u"""makeelement(self, _tag, attrib=None, nsmap=None, **_extra)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11_BaseParser_9makeelement, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BaseParser_makeelement, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__464)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1013, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__BaseParser->tp_dict, __pyx_n_s_makeelement, __pyx_t_1) < 0) __PYX_ERR(2, 1013, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11_BaseParser_9makeelement, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_BaseParser_makeelement, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__464)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1016, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__BaseParser->tp_dict, __pyx_n_s_makeelement, __pyx_t_2) < 0) __PYX_ERR(2, 1016, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__BaseParser);
- /* "src/lxml/parser.pxi":1256
+ /* "src/lxml/parser.pxi":1259
* return self._getPushParserContext()._error_log.copy()
*
* cpdef feed(self, data): # <<<<<<<<<<<<<<
* u"""feed(self, data)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11_FeedParser_1feed, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_FeedParser_feed, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__466)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1256, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__FeedParser->tp_dict, __pyx_n_s_feed, __pyx_t_1) < 0) __PYX_ERR(2, 1256, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11_FeedParser_1feed, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_FeedParser_feed, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__466)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1259, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__FeedParser->tp_dict, __pyx_n_s_feed, __pyx_t_2) < 0) __PYX_ERR(2, 1259, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__FeedParser);
- /* "src/lxml/parser.pxi":1380
+ /* "src/lxml/parser.pxi":1383
* context.cleanup()
*
* cpdef close(self): # <<<<<<<<<<<<<<
* u"""close(self)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11_FeedParser_3close, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_FeedParser_close, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__468)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1380, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__FeedParser->tp_dict, __pyx_n_s_close, __pyx_t_1) < 0) __PYX_ERR(2, 1380, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11_FeedParser_3close, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_FeedParser_close, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__468)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1383, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__FeedParser->tp_dict, __pyx_n_s_close, __pyx_t_2) < 0) __PYX_ERR(2, 1383, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__FeedParser);
- /* "src/lxml/parser.pxi":1473
+ /* "src/lxml/parser.pxi":1476
* xmlparser.XML_PARSE_NOCDATA |
* xmlparser.XML_PARSE_NONET |
* xmlparser.XML_PARSE_COMPACT | # <<<<<<<<<<<<<<
*/
__pyx_v_4lxml_5etree__XML_DEFAULT_PARSE_OPTIONS = ((((XML_PARSE_NOENT | XML_PARSE_NOCDATA) | XML_PARSE_NONET) | XML_PARSE_COMPACT) | XML_PARSE_BIG_LINES);
- /* "src/lxml/parser.pxi":1586
+ /* "src/lxml/parser.pxi":1589
* self._collectEvents(events, tag)
*
* def read_events(self): # <<<<<<<<<<<<<<
* return (<_SaxParserContext?>self._getPushParserContext()).events_iterator
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_13XMLPullParser_3read_events, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_XMLPullParser_read_events, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__470)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1586, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_XMLPullParser->tp_dict, __pyx_n_s_read_events, __pyx_t_1) < 0) __PYX_ERR(2, 1586, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_13XMLPullParser_3read_events, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_XMLPullParser_read_events, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__470)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1589, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_XMLPullParser->tp_dict, __pyx_n_s_read_events, __pyx_t_2) < 0) __PYX_ERR(2, 1589, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_XMLPullParser);
- /* "src/lxml/parser.pxi":1630
+ /* "src/lxml/parser.pxi":1633
*
* # ET 1.2 compatible name
* XMLTreeBuilder = ETCompatXMLParser # <<<<<<<<<<<<<<
*
*
*/
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_XMLTreeBuilder, ((PyObject *)__pyx_ptype_4lxml_5etree_ETCompatXMLParser)) < 0) __PYX_ERR(2, 1630, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_XMLTreeBuilder, ((PyObject *)__pyx_ptype_4lxml_5etree_ETCompatXMLParser)) < 0) __PYX_ERR(2, 1633, __pyx_L1_error)
- /* "src/lxml/parser.pxi":1634
+ /* "src/lxml/parser.pxi":1637
*
* cdef XMLParser __DEFAULT_XML_PARSER
* __DEFAULT_XML_PARSER = XMLParser() # <<<<<<<<<<<<<<
*
* __GLOBAL_PARSER_CONTEXT.setDefaultParser(__DEFAULT_XML_PARSER)
*/
- __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree_XMLParser)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1634, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
+ __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree_XMLParser)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1637, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
__Pyx_XGOTREF(((PyObject *)__pyx_v_4lxml_5etree___DEFAULT_XML_PARSER));
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree___DEFAULT_XML_PARSER, ((struct __pyx_obj_4lxml_5etree_XMLParser *)__pyx_t_1));
- __Pyx_GIVEREF(__pyx_t_1);
- __pyx_t_1 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree___DEFAULT_XML_PARSER, ((struct __pyx_obj_4lxml_5etree_XMLParser *)__pyx_t_2));
+ __Pyx_GIVEREF(__pyx_t_2);
+ __pyx_t_2 = 0;
- /* "src/lxml/parser.pxi":1636
+ /* "src/lxml/parser.pxi":1639
* __DEFAULT_XML_PARSER = XMLParser()
*
* __GLOBAL_PARSER_CONTEXT.setDefaultParser(__DEFAULT_XML_PARSER) # <<<<<<<<<<<<<<
*
* def set_default_parser(_BaseParser parser=None):
*/
- __pyx_t_1 = ((PyObject *)__pyx_v_4lxml_5etree___DEFAULT_XML_PARSER);
- __Pyx_INCREF(__pyx_t_1);
- __pyx_f_4lxml_5etree_24_ParserDictionaryContext_setDefaultParser(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_t_1));
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = ((PyObject *)__pyx_v_4lxml_5etree___DEFAULT_XML_PARSER);
+ __Pyx_INCREF(__pyx_t_2);
+ __pyx_f_4lxml_5etree_24_ParserDictionaryContext_setDefaultParser(__pyx_v_4lxml_5etree___GLOBAL_PARSER_CONTEXT, ((struct __pyx_obj_4lxml_5etree__BaseParser *)__pyx_t_2));
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "src/lxml/parser.pxi":1638
+ /* "src/lxml/parser.pxi":1641
* __GLOBAL_PARSER_CONTEXT.setDefaultParser(__DEFAULT_XML_PARSER)
*
* def set_default_parser(_BaseParser parser=None): # <<<<<<<<<<<<<<
* u"""set_default_parser(parser=None)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_47set_default_parser, 0, __pyx_n_s_set_default_parser, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__472)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1638, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__473);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_default_parser, __pyx_t_1) < 0) __PYX_ERR(2, 1638, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_47set_default_parser, 0, __pyx_n_s_set_default_parser, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__472)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1641, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__473);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_default_parser, __pyx_t_2) < 0) __PYX_ERR(2, 1641, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "src/lxml/parser.pxi":1654
+ /* "src/lxml/parser.pxi":1657
* __GLOBAL_PARSER_CONTEXT.setDefaultParser(parser)
*
* def get_default_parser(): # <<<<<<<<<<<<<<
* u"get_default_parser()"
* return __GLOBAL_PARSER_CONTEXT.getDefaultParser()
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_49get_default_parser, 0, __pyx_n_s_get_default_parser, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__474)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1654, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_default_parser, __pyx_t_1) < 0) __PYX_ERR(2, 1654, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_49get_default_parser, 0, __pyx_n_s_get_default_parser, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__474)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1657, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_default_parser, __pyx_t_2) < 0) __PYX_ERR(2, 1657, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- /* "src/lxml/parser.pxi":1665
+ /* "src/lxml/parser.pxi":1668
* _HTML_DEFAULT_PARSE_OPTIONS = (
* htmlparser.HTML_PARSE_RECOVER |
* htmlparser.HTML_PARSE_NONET | # <<<<<<<<<<<<<<
*/
__pyx_v_4lxml_5etree__HTML_DEFAULT_PARSE_OPTIONS = ((HTML_PARSE_RECOVER | HTML_PARSE_NONET) | HTML_PARSE_COMPACT);
- /* "src/lxml/parser.pxi":1731
+ /* "src/lxml/parser.pxi":1734
*
* cdef HTMLParser __DEFAULT_HTML_PARSER
* __DEFAULT_HTML_PARSER = HTMLParser() # <<<<<<<<<<<<<<
*
*
*/
- __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree_HTMLParser)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1731, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
+ __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree_HTMLParser)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1734, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
__Pyx_XGOTREF(((PyObject *)__pyx_v_4lxml_5etree___DEFAULT_HTML_PARSER));
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree___DEFAULT_HTML_PARSER, ((struct __pyx_obj_4lxml_5etree_HTMLParser *)__pyx_t_1));
- __Pyx_GIVEREF(__pyx_t_1);
- __pyx_t_1 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree___DEFAULT_HTML_PARSER, ((struct __pyx_obj_4lxml_5etree_HTMLParser *)__pyx_t_2));
+ __Pyx_GIVEREF(__pyx_t_2);
+ __pyx_t_2 = 0;
- /* "src/lxml/parser.pxi":1759
+ /* "src/lxml/parser.pxi":1762
* self._collectEvents(events, tag)
*
* def read_events(self): # <<<<<<<<<<<<<<
* return (<_SaxParserContext?>self._getPushParserContext()).events_iterator
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_14HTMLPullParser_3read_events, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_HTMLPullParser_read_events, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__476)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 1759, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_HTMLPullParser->tp_dict, __pyx_n_s_read_events, __pyx_t_1) < 0) __PYX_ERR(2, 1759, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_14HTMLPullParser_3read_events, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_HTMLPullParser_read_events, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__476)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1762, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_HTMLPullParser->tp_dict, __pyx_n_s_read_events, __pyx_t_2) < 0) __PYX_ERR(2, 1762, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_HTMLPullParser);
/* "src/lxml/saxparser.pxi":3
* """
* An XMLSyntaxError that additionally inherits from AssertionError for
*/
- __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_XMLSyntaxError); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_XMLSyntaxError); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __Pyx_GIVEREF(__pyx_t_1);
- PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1);
+ __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __Pyx_GIVEREF(__pyx_t_2);
+ PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_2);
__Pyx_INCREF(__pyx_builtin_AssertionError);
__Pyx_GIVEREF(__pyx_builtin_AssertionError);
- PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_builtin_AssertionError);
- __pyx_t_1 = 0;
- __pyx_t_1 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3, __pyx_L1_error)
+ PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_builtin_AssertionError);
+ __pyx_t_2 = 0;
+ __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __pyx_t_1 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_7, __pyx_n_s_XMLSyntaxAssertionError, __pyx_n_s_XMLSyntaxAssertionError, (PyObject *) NULL, __pyx_n_s_lxml_etree, __pyx_kp_s_An_XMLSyntaxError_that_addition); if (unlikely(!__pyx_t_1)) __PYX_ERR(3, 3, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_7 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_2, __pyx_n_s_XMLSyntaxAssertionError, __pyx_n_s_XMLSyntaxAssertionError, (PyObject *) NULL, __pyx_n_s_lxml_etree, __pyx_kp_s_An_XMLSyntaxError_that_addition); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 3, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- __pyx_t_9 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_XMLSyntaxAssertionError, __pyx_t_2, __pyx_t_7, NULL, 0, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3, __pyx_L1_error)
+ __pyx_t_9 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_XMLSyntaxAssertionError, __pyx_t_7, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_9)) __PYX_ERR(3, 3, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_9);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_XMLSyntaxAssertionError, __pyx_t_9) < 0) __PYX_ERR(3, 3, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
/* "src/lxml/saxparser.pxi":813
* # Python level event handlers
* u"""close(self)
*
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11TreeBuilder_3close, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_TreeBuilder_close, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__478)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 813, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_TreeBuilder->tp_dict, __pyx_n_s_close, __pyx_t_2) < 0) __PYX_ERR(3, 813, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11TreeBuilder_3close, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_TreeBuilder_close, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__478)); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 813, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_TreeBuilder->tp_dict, __pyx_n_s_close, __pyx_t_7) < 0) __PYX_ERR(3, 813, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_TreeBuilder);
/* "src/lxml/saxparser.pxi":826
* u"""data(self, data)
*
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11TreeBuilder_5data, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_TreeBuilder_data, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__480)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 826, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_TreeBuilder->tp_dict, __pyx_n_s_data, __pyx_t_2) < 0) __PYX_ERR(3, 826, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11TreeBuilder_5data, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_TreeBuilder_data, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__480)); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 826, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_TreeBuilder->tp_dict, __pyx_n_s_data, __pyx_t_7) < 0) __PYX_ERR(3, 826, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_TreeBuilder);
/* "src/lxml/saxparser.pxi":834
* u"""start(self, tag, attrs, nsmap=None)
*
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11TreeBuilder_7start, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_TreeBuilder_start, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__482)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 834, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_TreeBuilder->tp_dict, __pyx_n_s_start, __pyx_t_2) < 0) __PYX_ERR(3, 834, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11TreeBuilder_7start, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_TreeBuilder_start, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__482)); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 834, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_TreeBuilder->tp_dict, __pyx_n_s_start, __pyx_t_7) < 0) __PYX_ERR(3, 834, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_TreeBuilder);
/* "src/lxml/saxparser.pxi":843
* u"""end(self, tag)
*
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11TreeBuilder_9end, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_TreeBuilder_end, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__484)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 843, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_TreeBuilder->tp_dict, __pyx_n_s_end, __pyx_t_2) < 0) __PYX_ERR(3, 843, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11TreeBuilder_9end, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_TreeBuilder_end, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__484)); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 843, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_TreeBuilder->tp_dict, __pyx_n_s_end, __pyx_t_7) < 0) __PYX_ERR(3, 843, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_TreeBuilder);
/* "src/lxml/saxparser.pxi":853
* u"""pi(self, target, data=None)
*
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11TreeBuilder_11pi, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_TreeBuilder_pi, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__486)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 853, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_TreeBuilder->tp_dict, __pyx_n_s_pi, __pyx_t_2) < 0) __PYX_ERR(3, 853, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11TreeBuilder_11pi, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_TreeBuilder_pi, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__486)); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 853, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_TreeBuilder->tp_dict, __pyx_n_s_pi, __pyx_t_7) < 0) __PYX_ERR(3, 853, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_TreeBuilder);
/* "src/lxml/saxparser.pxi":861
* u"""comment(self, comment)
*
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11TreeBuilder_13comment, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_TreeBuilder_comment, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__488)); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 861, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_TreeBuilder->tp_dict, __pyx_n_s_comment, __pyx_t_2) < 0) __PYX_ERR(3, 861, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_11TreeBuilder_13comment, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_TreeBuilder_comment, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__488)); if (unlikely(!__pyx_t_7)) __PYX_ERR(3, 861, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_TreeBuilder->tp_dict, __pyx_n_s_comment, __pyx_t_7) < 0) __PYX_ERR(3, 861, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_TreeBuilder);
/* "src/lxml/parsertarget.pxi":4
* except ImportError:
* from inspect import getargspec as inspect_getargspec
*/
- __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 5, __pyx_L21_error)
- __Pyx_GOTREF(__pyx_t_2);
+ __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(13, 5, __pyx_L21_error)
+ __Pyx_GOTREF(__pyx_t_7);
__Pyx_INCREF(__pyx_n_s_getfullargspec);
__Pyx_GIVEREF(__pyx_n_s_getfullargspec);
- PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_getfullargspec);
- __pyx_t_1 = __Pyx_patch_inspect(__Pyx_Import(__pyx_n_s_inspect, __pyx_t_2, 0)); if (unlikely(!__pyx_t_1)) __PYX_ERR(13, 5, __pyx_L21_error)
- __Pyx_GOTREF(__pyx_t_1);
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_getfullargspec); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 5, __pyx_L21_error)
+ PyList_SET_ITEM(__pyx_t_7, 0, __pyx_n_s_getfullargspec);
+ __pyx_t_2 = __Pyx_patch_inspect(__Pyx_Import(__pyx_n_s_inspect, __pyx_t_7, 0)); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 5, __pyx_L21_error)
__Pyx_GOTREF(__pyx_t_2);
- __Pyx_INCREF(__pyx_t_2);
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_7 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_getfullargspec); if (unlikely(!__pyx_t_7)) __PYX_ERR(13, 5, __pyx_L21_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __Pyx_INCREF(__pyx_t_7);
__Pyx_XGOTREF(__pyx_v_4lxml_5etree_inspect_getargspec);
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree_inspect_getargspec, __pyx_t_2);
- __Pyx_GIVEREF(__pyx_t_2);
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree_inspect_getargspec, __pyx_t_7);
+ __Pyx_GIVEREF(__pyx_t_7);
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "src/lxml/parsertarget.pxi":4
*
__pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ImportError);
if (__pyx_t_6) {
__Pyx_AddTraceback("lxml.etree", __pyx_clineno, __pyx_lineno, __pyx_filename);
- if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_2, &__pyx_t_7) < 0) __PYX_ERR(13, 6, __pyx_L23_except_error)
- __Pyx_GOTREF(__pyx_t_1);
+ if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_1) < 0) __PYX_ERR(13, 6, __pyx_L23_except_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_GOTREF(__pyx_t_7);
+ __Pyx_GOTREF(__pyx_t_1);
/* "src/lxml/parsertarget.pxi":7
* from inspect import getfullargspec as inspect_getargspec
__Pyx_GIVEREF(__pyx_t_9);
__Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
__Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
- __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
goto __pyx_L22_exception_handled;
}
goto __pyx_L23_except_error;
* # Admittedly, this is somewhat ugly, but it's the easiest way
* # to push the Python level parser result through the parser
*/
- __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(13, 10, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(13, 10, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
__Pyx_GIVEREF(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
- PyTuple_SET_ITEM(__pyx_t_7, 0, ((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
- __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 10, __pyx_L1_error)
+ PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
+ __pyx_t_7 = __Pyx_CalculateMetaclass(NULL, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(13, 10, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_7, __pyx_t_1, __pyx_n_s_TargetParserResult, __pyx_n_s_TargetParserResult, (PyObject *) NULL, __pyx_n_s_lxml_etree, (PyObject *) NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(13, 10, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_1 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_7, __pyx_n_s_TargetParserResult, __pyx_n_s_TargetParserResult, (PyObject *) NULL, __pyx_n_s_lxml_etree, (PyObject *) NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(13, 10, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
/* "src/lxml/parsertarget.pxi":14
* # to push the Python level parser result through the parser
*/
__pyx_t_12 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_19_TargetParserResult_1__init__, 0, __pyx_n_s_TargetParserResult___init, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__490)); if (unlikely(!__pyx_t_12)) __PYX_ERR(13, 14, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_12);
- if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_init, __pyx_t_12) < 0) __PYX_ERR(13, 14, __pyx_L1_error)
+ if (__Pyx_SetNameInClass(__pyx_t_2, __pyx_n_s_init, __pyx_t_12) < 0) __PYX_ERR(13, 14, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
/* "src/lxml/parsertarget.pxi":10
* # Admittedly, this is somewhat ugly, but it's the easiest way
* # to push the Python level parser result through the parser
*/
- __pyx_t_12 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_TargetParserResult, __pyx_t_7, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_12)) __PYX_ERR(13, 10, __pyx_L1_error)
+ __pyx_t_12 = __Pyx_Py3ClassCreate(__pyx_t_7, __pyx_n_s_TargetParserResult, __pyx_t_1, __pyx_t_2, NULL, 0, 1); if (unlikely(!__pyx_t_12)) __PYX_ERR(13, 10, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_12);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_TargetParserResult, __pyx_t_12) < 0) __PYX_ERR(13, 10, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "src/lxml/serializer.pxi":4
*
*
*
*/
- __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 4, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 4, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(__pyx_n_s_GzipFile);
__Pyx_GIVEREF(__pyx_n_s_GzipFile);
- PyList_SET_ITEM(__pyx_t_7, 0, __pyx_n_s_GzipFile);
- __pyx_t_2 = __Pyx_Import(__pyx_n_s_gzip, __pyx_t_7, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 4, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- __pyx_t_7 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_GzipFile); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 4, __pyx_L1_error)
+ PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_GzipFile);
+ __pyx_t_7 = __Pyx_Import(__pyx_n_s_gzip, __pyx_t_1, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 4, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
- __Pyx_INCREF(__pyx_t_7);
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_7, __pyx_n_s_GzipFile); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 4, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ __Pyx_INCREF(__pyx_t_1);
__Pyx_XGOTREF(__pyx_v_4lxml_5etree_GzipFile);
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree_GzipFile, __pyx_t_7);
- __Pyx_GIVEREF(__pyx_t_7);
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree_GzipFile, __pyx_t_1);
+ __Pyx_GIVEREF(__pyx_t_1);
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
/* "src/lxml/serializer.pxi":614
*
*
* cdef object gzip
*/
- __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 614, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
+ __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 614, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
__Pyx_INCREF(__pyx_n_s_open);
__Pyx_GIVEREF(__pyx_n_s_open);
- PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_open);
- __pyx_t_7 = __Pyx_Import(__pyx_n_s_io, __pyx_t_2, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 614, __pyx_L1_error)
+ PyList_SET_ITEM(__pyx_t_7, 0, __pyx_n_s_open);
+ __pyx_t_1 = __Pyx_Import(__pyx_n_s_io, __pyx_t_7, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 614, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_7 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_open); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 614, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_7, __pyx_n_s_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 614, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_open, __pyx_t_2) < 0) __PYX_ERR(9, 614, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_open, __pyx_t_7) < 0) __PYX_ERR(9, 614, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "src/lxml/serializer.pxi":617
*
*
* cdef object getwriter
*/
- __pyx_t_7 = __Pyx_Import(__pyx_n_s_gzip, 0, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 617, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_1 = __Pyx_Import(__pyx_n_s_gzip, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 617, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
__Pyx_XGOTREF(__pyx_v_4lxml_5etree_gzip);
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree_gzip, __pyx_t_7);
- __Pyx_GIVEREF(__pyx_t_7);
- __pyx_t_7 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree_gzip, __pyx_t_1);
+ __Pyx_GIVEREF(__pyx_t_1);
+ __pyx_t_1 = 0;
/* "src/lxml/serializer.pxi":620
*
* cdef object utf8_writer = getwriter('utf8')
*
*/
- __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 620, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 620, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(__pyx_n_s_getwriter);
__Pyx_GIVEREF(__pyx_n_s_getwriter);
- PyList_SET_ITEM(__pyx_t_7, 0, __pyx_n_s_getwriter);
- __pyx_t_2 = __Pyx_Import(__pyx_n_s_codecs, __pyx_t_7, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 620, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- __pyx_t_7 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_getwriter); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 620, __pyx_L1_error)
+ PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_getwriter);
+ __pyx_t_7 = __Pyx_Import(__pyx_n_s_codecs, __pyx_t_1, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 620, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
- __Pyx_INCREF(__pyx_t_7);
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_7, __pyx_n_s_getwriter); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 620, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ __Pyx_INCREF(__pyx_t_1);
__Pyx_XGOTREF(__pyx_v_4lxml_5etree_getwriter);
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree_getwriter, __pyx_t_7);
- __Pyx_GIVEREF(__pyx_t_7);
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree_getwriter, __pyx_t_1);
+ __Pyx_GIVEREF(__pyx_t_1);
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
/* "src/lxml/serializer.pxi":621
* cdef object getwriter
*
* cdef object contextmanager
*/
- __pyx_t_2 = __Pyx_PyObject_Call(__pyx_v_4lxml_5etree_getwriter, __pyx_tuple__491, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 621, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
+ __pyx_t_7 = __Pyx_PyObject_Call(__pyx_v_4lxml_5etree_getwriter, __pyx_tuple__491, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 621, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
__Pyx_XGOTREF(__pyx_v_4lxml_5etree_utf8_writer);
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree_utf8_writer, __pyx_t_2);
- __Pyx_GIVEREF(__pyx_t_2);
- __pyx_t_2 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree_utf8_writer, __pyx_t_7);
+ __Pyx_GIVEREF(__pyx_t_7);
+ __pyx_t_7 = 0;
/* "src/lxml/serializer.pxi":624
*
*
* cdef object _open_utf8_file
*/
- __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 624, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
+ __pyx_t_7 = PyList_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 624, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
__Pyx_INCREF(__pyx_n_s_contextmanager);
__Pyx_GIVEREF(__pyx_n_s_contextmanager);
- PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_contextmanager);
- __pyx_t_7 = __Pyx_Import(__pyx_n_s_contextlib, __pyx_t_2, 0); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 624, __pyx_L1_error)
+ PyList_SET_ITEM(__pyx_t_7, 0, __pyx_n_s_contextmanager);
+ __pyx_t_1 = __Pyx_Import(__pyx_n_s_contextlib, __pyx_t_7, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 624, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_7 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_contextmanager); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 624, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_7, __pyx_n_s_contextmanager); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 624, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- __Pyx_INCREF(__pyx_t_2);
+ __Pyx_INCREF(__pyx_t_7);
__Pyx_XGOTREF(__pyx_v_4lxml_5etree_contextmanager);
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree_contextmanager, __pyx_t_2);
- __Pyx_GIVEREF(__pyx_t_2);
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree_contextmanager, __pyx_t_7);
+ __Pyx_GIVEREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "src/lxml/serializer.pxi":629
*
* file = _getFSPathOrObject(file)
* if _isString(file):
*/
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_51_open_utf8_file, 0, __pyx_n_s_open_utf8_file, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__61)); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 629, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
- __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_7, __pyx_tuple__493);
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_51_open_utf8_file, 0, __pyx_n_s_open_utf8_file, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__61)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 629, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__493);
/* "src/lxml/serializer.pxi":628
* cdef object _open_utf8_file
* def _open_utf8_file(file, compression=0):
* file = _getFSPathOrObject(file)
*/
- __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_v_4lxml_5etree_contextmanager, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 628, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ __pyx_t_7 = __Pyx_PyObject_CallOneArg(__pyx_v_4lxml_5etree_contextmanager, __pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 628, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_XGOTREF(__pyx_v_4lxml_5etree__open_utf8_file);
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree__open_utf8_file, __pyx_t_2);
- __Pyx_GIVEREF(__pyx_t_2);
- __pyx_t_2 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree__open_utf8_file, __pyx_t_7);
+ __Pyx_GIVEREF(__pyx_t_7);
+ __pyx_t_7 = 0;
/* "src/lxml/serializer.pxi":901
* # C14N 2.0
* """Convert XML to its C14N 2.0 serialised form.
*
*/
- __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 901, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_out, ((PyObject *)Py_None)) < 0) __PYX_ERR(9, 901, __pyx_L1_error)
- if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_from_file, ((PyObject *)Py_None)) < 0) __PYX_ERR(9, 901, __pyx_L1_error)
- __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_54canonicalize, 0, __pyx_n_s_canonicalize, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__495)); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 901, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 901, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
- __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_7, __pyx_tuple__496);
- __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_7, __pyx_t_2);
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_canonicalize, __pyx_t_7) < 0) __PYX_ERR(9, 901, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_out, ((PyObject *)Py_None)) < 0) __PYX_ERR(9, 901, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_from_file, ((PyObject *)Py_None)) < 0) __PYX_ERR(9, 901, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_54canonicalize, 0, __pyx_n_s_canonicalize, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__495)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 901, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__496);
+ __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_1, __pyx_t_7);
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_canonicalize, __pyx_t_1) < 0) __PYX_ERR(9, 901, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "src/lxml/serializer.pxi":968
*
*
*
*/
- __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_re, __pyx_n_s_compile); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 968, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_re, __pyx_n_s_compile); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 968, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_re, __pyx_n_s_UNICODE); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 968, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
- __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_re, __pyx_n_s_UNICODE); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 968, __pyx_L1_error)
+ __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 968, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 968, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(__pyx_kp_s_w_w);
__Pyx_GIVEREF(__pyx_kp_s_w_w);
- PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_s_w_w);
- __Pyx_GIVEREF(__pyx_t_2);
- PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2);
- __pyx_t_2 = 0;
- __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 968, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_kp_s_w_w);
+ __Pyx_GIVEREF(__pyx_t_7);
+ PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_7);
+ __pyx_t_7 = 0;
+ __pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(9, 968, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_match); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 968, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_match); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 968, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__Pyx_XGOTREF(__pyx_v_4lxml_5etree__looks_like_prefix_name);
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree__looks_like_prefix_name, __pyx_t_1);
- __Pyx_GIVEREF(__pyx_t_1);
- __pyx_t_1 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree__looks_like_prefix_name, __pyx_t_2);
+ __Pyx_GIVEREF(__pyx_t_2);
+ __pyx_t_2 = 0;
/* "src/lxml/serializer.pxi":1044
* self._root_done = False
* for namespaces in reversed(ns_stack):
* if namespaces: # almost no element declares new namespaces
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_16C14NWriterTarget_3_iter_namespaces, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_C14NWriterTarget__iter_namespace, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__66)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1044, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_C14NWriterTarget->tp_dict, __pyx_n_s_iter_namespaces, __pyx_t_1) < 0) __PYX_ERR(9, 1044, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_16C14NWriterTarget_3_iter_namespaces, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_C14NWriterTarget__iter_namespace, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__66)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1044, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_C14NWriterTarget->tp_dict, __pyx_n_s_iter_namespaces, __pyx_t_2) < 0) __PYX_ERR(9, 1044, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_C14NWriterTarget);
/* "src/lxml/serializer.pxi":1093
* if not self._ignored_depth:
* self._data.append(data)
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_16C14NWriterTarget_6data, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_C14NWriterTarget_data, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__499)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1093, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_C14NWriterTarget->tp_dict, __pyx_n_s_data, __pyx_t_1) < 0) __PYX_ERR(9, 1093, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_16C14NWriterTarget_6data, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_C14NWriterTarget_data, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__499)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1093, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_C14NWriterTarget->tp_dict, __pyx_n_s_data, __pyx_t_2) < 0) __PYX_ERR(9, 1093, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_C14NWriterTarget);
/* "src/lxml/serializer.pxi":1111
* if self._ignored_depth:
* return
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_16C14NWriterTarget_8start_ns, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_C14NWriterTarget_start_ns, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__501)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1111, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_C14NWriterTarget->tp_dict, __pyx_n_s_start_ns_2, __pyx_t_1) < 0) __PYX_ERR(9, 1111, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_16C14NWriterTarget_8start_ns, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_C14NWriterTarget_start_ns, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__501)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1111, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_C14NWriterTarget->tp_dict, __pyx_n_s_start_ns_2, __pyx_t_2) < 0) __PYX_ERR(9, 1111, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_C14NWriterTarget);
/* "src/lxml/serializer.pxi":1119
* if self._exclude_tags is not None and (
* self._ignored_depth or tag in self._exclude_tags):
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_16C14NWriterTarget_10start, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_C14NWriterTarget_start, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__503)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1119, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_C14NWriterTarget->tp_dict, __pyx_n_s_start, __pyx_t_1) < 0) __PYX_ERR(9, 1119, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_16C14NWriterTarget_10start, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_C14NWriterTarget_start, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__503)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1119, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_C14NWriterTarget->tp_dict, __pyx_n_s_start, __pyx_t_2) < 0) __PYX_ERR(9, 1119, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_C14NWriterTarget);
/* "src/lxml/serializer.pxi":1204
* if self._ignored_depth:
* self._ignored_depth -= 1
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_16C14NWriterTarget_12end, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_C14NWriterTarget_end, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__505)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1204, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_C14NWriterTarget->tp_dict, __pyx_n_s_end, __pyx_t_1) < 0) __PYX_ERR(9, 1204, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_16C14NWriterTarget_12end, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_C14NWriterTarget_end, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__505)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1204, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_C14NWriterTarget->tp_dict, __pyx_n_s_end, __pyx_t_2) < 0) __PYX_ERR(9, 1204, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_C14NWriterTarget);
/* "src/lxml/serializer.pxi":1216
* if not self._with_comments:
* return
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_16C14NWriterTarget_14comment, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_C14NWriterTarget_comment, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__507)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1216, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_C14NWriterTarget->tp_dict, __pyx_n_s_comment, __pyx_t_1) < 0) __PYX_ERR(9, 1216, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_16C14NWriterTarget_14comment, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_C14NWriterTarget_comment, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__507)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1216, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_C14NWriterTarget->tp_dict, __pyx_n_s_comment, __pyx_t_2) < 0) __PYX_ERR(9, 1216, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_C14NWriterTarget);
/* "src/lxml/serializer.pxi":1229
* if self._ignored_depth:
* return
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_16C14NWriterTarget_16pi, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_C14NWriterTarget_pi, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__509)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1229, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_C14NWriterTarget->tp_dict, __pyx_n_s_pi, __pyx_t_1) < 0) __PYX_ERR(9, 1229, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_16C14NWriterTarget_16pi, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_C14NWriterTarget_pi, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__509)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1229, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_C14NWriterTarget->tp_dict, __pyx_n_s_pi, __pyx_t_2) < 0) __PYX_ERR(9, 1229, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_C14NWriterTarget);
/* "src/lxml/serializer.pxi":1241
* return None
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_16C14NWriterTarget_18close, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_C14NWriterTarget_close, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__511)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1241, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_C14NWriterTarget->tp_dict, __pyx_n_s_close, __pyx_t_1) < 0) __PYX_ERR(9, 1241, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_16C14NWriterTarget_18close, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_C14NWriterTarget_close, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__511)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1241, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_C14NWriterTarget->tp_dict, __pyx_n_s_close, __pyx_t_2) < 0) __PYX_ERR(9, 1241, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_C14NWriterTarget);
/* "src/lxml/serializer.pxi":1348
* assert self.output_file is not None
* self.writer = _IncrementalFileWriter(
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7xmlfile_3__enter__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_xmlfile___enter, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__513)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1348, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_xmlfile->tp_dict, __pyx_n_s_enter, __pyx_t_1) < 0) __PYX_ERR(9, 1348, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7xmlfile_3__enter__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_xmlfile___enter, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__513)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1348, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_xmlfile->tp_dict, __pyx_n_s_enter, __pyx_t_2) < 0) __PYX_ERR(9, 1348, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_xmlfile);
/* "src/lxml/serializer.pxi":1355
* if self.writer is not None:
* old_writer, self.writer = self.writer, None
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7xmlfile_5__exit__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_xmlfile___exit, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__515)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1355, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_xmlfile->tp_dict, __pyx_n_s_exit, __pyx_t_1) < 0) __PYX_ERR(9, 1355, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7xmlfile_5__exit__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_xmlfile___exit, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__515)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1355, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_xmlfile->tp_dict, __pyx_n_s_exit, __pyx_t_2) < 0) __PYX_ERR(9, 1355, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_xmlfile);
/* "src/lxml/serializer.pxi":1363
* assert self.output_file is not None
* if isinstance(self.output_file, basestring):
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7xmlfile_7__aenter__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_xmlfile___aenter, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__78)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1363, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_xmlfile->tp_dict, __pyx_n_s_aenter, __pyx_t_1) < 0) __PYX_ERR(9, 1363, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7xmlfile_7__aenter__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_xmlfile___aenter, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__78)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1363, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_xmlfile->tp_dict, __pyx_n_s_aenter, __pyx_t_2) < 0) __PYX_ERR(9, 1363, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_xmlfile);
/* "src/lxml/serializer.pxi":1374
* if self.async_writer is not None:
* old_writer, self.async_writer = self.async_writer, None
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7xmlfile_10__aexit__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_xmlfile___aexit, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__81)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1374, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_xmlfile->tp_dict, __pyx_n_s_aexit, __pyx_t_1) < 0) __PYX_ERR(9, 1374, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7xmlfile_10__aexit__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_xmlfile___aexit, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__81)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1374, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_xmlfile->tp_dict, __pyx_n_s_aexit, __pyx_t_2) < 0) __PYX_ERR(9, 1374, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_xmlfile);
/* "src/lxml/serializer.pxi":1431
* """write_declaration(self, version=None, standalone=None, doctype=None)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_22_IncrementalFileWriter_5write_declaration, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IncrementalFileWriter_write_dec, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__519)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1431, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IncrementalFileWriter->tp_dict, __pyx_n_s_write_declaration, __pyx_t_1) < 0) __PYX_ERR(9, 1431, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_22_IncrementalFileWriter_5write_declaration, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IncrementalFileWriter_write_dec, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__519)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1431, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IncrementalFileWriter->tp_dict, __pyx_n_s_write_declaration, __pyx_t_2) < 0) __PYX_ERR(9, 1431, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__IncrementalFileWriter);
/* "src/lxml/serializer.pxi":1460
* """write_doctype(self, doctype)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_22_IncrementalFileWriter_7write_doctype, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IncrementalFileWriter_write_doc, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__521)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1460, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IncrementalFileWriter->tp_dict, __pyx_n_s_write_doctype, __pyx_t_1) < 0) __PYX_ERR(9, 1460, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_22_IncrementalFileWriter_7write_doctype, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IncrementalFileWriter_write_doc, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__521)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1460, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IncrementalFileWriter->tp_dict, __pyx_n_s_write_doctype, __pyx_t_2) < 0) __PYX_ERR(9, 1460, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__IncrementalFileWriter);
/* "src/lxml/serializer.pxi":1477
* """method(self, method)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_22_IncrementalFileWriter_9method, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IncrementalFileWriter_method, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__523)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1477, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IncrementalFileWriter->tp_dict, __pyx_n_s_method, __pyx_t_1) < 0) __PYX_ERR(9, 1477, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_22_IncrementalFileWriter_9method, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IncrementalFileWriter_method, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__523)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1477, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IncrementalFileWriter->tp_dict, __pyx_n_s_method, __pyx_t_2) < 0) __PYX_ERR(9, 1477, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__IncrementalFileWriter);
/* "src/lxml/serializer.pxi":1487
* """element(self, tag, attrib=None, nsmap=None, method, **_extra)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_22_IncrementalFileWriter_11element, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IncrementalFileWriter_element, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__525)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1487, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IncrementalFileWriter->tp_dict, __pyx_n_s_element, __pyx_t_1) < 0) __PYX_ERR(9, 1487, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_22_IncrementalFileWriter_11element, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IncrementalFileWriter_element, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__525)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1487, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IncrementalFileWriter->tp_dict, __pyx_n_s_element, __pyx_t_2) < 0) __PYX_ERR(9, 1487, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__IncrementalFileWriter);
/* "src/lxml/serializer.pxi":1624
* """write(self, *args, with_tail=True, pretty_print=False, method=None)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_22_IncrementalFileWriter_13write, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IncrementalFileWriter_write, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__527)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1624, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IncrementalFileWriter->tp_dict, __pyx_n_s_write, __pyx_t_1) < 0) __PYX_ERR(9, 1624, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_22_IncrementalFileWriter_13write, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IncrementalFileWriter_write, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__527)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1624, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IncrementalFileWriter->tp_dict, __pyx_n_s_write, __pyx_t_2) < 0) __PYX_ERR(9, 1624, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__IncrementalFileWriter);
/* "src/lxml/serializer.pxi":1671
* """flush(self)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_22_IncrementalFileWriter_15flush, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IncrementalFileWriter_flush, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__529)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1671, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IncrementalFileWriter->tp_dict, __pyx_n_s_flush, __pyx_t_1) < 0) __PYX_ERR(9, 1671, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_22_IncrementalFileWriter_15flush, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IncrementalFileWriter_flush, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__529)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1671, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IncrementalFileWriter->tp_dict, __pyx_n_s_flush, __pyx_t_2) < 0) __PYX_ERR(9, 1671, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__IncrementalFileWriter);
/* "src/lxml/serializer.pxi":1718
* self._data.append(data)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_16_AsyncDataWriter_3write, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AsyncDataWriter_write, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__531)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1718, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AsyncDataWriter->tp_dict, __pyx_n_s_write, __pyx_t_1) < 0) __PYX_ERR(9, 1718, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_16_AsyncDataWriter_3write, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AsyncDataWriter_write, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__531)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1718, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AsyncDataWriter->tp_dict, __pyx_n_s_write, __pyx_t_2) < 0) __PYX_ERR(9, 1718, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__AsyncDataWriter);
/* "src/lxml/serializer.pxi":1721
* pass
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_16_AsyncDataWriter_5close, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AsyncDataWriter_close, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__533)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1721, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AsyncDataWriter->tp_dict, __pyx_n_s_close, __pyx_t_1) < 0) __PYX_ERR(9, 1721, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_16_AsyncDataWriter_5close, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AsyncDataWriter_close, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__533)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1721, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AsyncDataWriter->tp_dict, __pyx_n_s_close, __pyx_t_2) < 0) __PYX_ERR(9, 1721, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__AsyncDataWriter);
/* "src/lxml/serializer.pxi":1750
* self._writer.flush()
* data = self._buffer.collect()
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_27_AsyncIncrementalFileWriter_3flush, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AsyncIncrementalFileWriter_flus, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__84)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1750, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AsyncIncrementalFileWriter->tp_dict, __pyx_n_s_flush, __pyx_t_1) < 0) __PYX_ERR(9, 1750, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_27_AsyncIncrementalFileWriter_3flush, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AsyncIncrementalFileWriter_flus, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__84)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1750, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AsyncIncrementalFileWriter->tp_dict, __pyx_n_s_flush, __pyx_t_2) < 0) __PYX_ERR(9, 1750, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__AsyncIncrementalFileWriter);
/* "src/lxml/serializer.pxi":1756
* self._writer.write_declaration(version, standalone, doctype)
* data = self._flush()
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_27_AsyncIncrementalFileWriter_6write_declaration, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AsyncIncrementalFileWriter_writ, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__85)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1756, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AsyncIncrementalFileWriter->tp_dict, __pyx_n_s_write_declaration, __pyx_t_1) < 0) __PYX_ERR(9, 1756, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_27_AsyncIncrementalFileWriter_6write_declaration, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AsyncIncrementalFileWriter_writ, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__85)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1756, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AsyncIncrementalFileWriter->tp_dict, __pyx_n_s_write_declaration, __pyx_t_2) < 0) __PYX_ERR(9, 1756, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__AsyncIncrementalFileWriter);
/* "src/lxml/serializer.pxi":1762
* self._writer.write_doctype(doctype)
* data = self._flush()
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_27_AsyncIncrementalFileWriter_9write_doctype, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AsyncIncrementalFileWriter_writ_2, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__86)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1762, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AsyncIncrementalFileWriter->tp_dict, __pyx_n_s_write_doctype, __pyx_t_1) < 0) __PYX_ERR(9, 1762, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_27_AsyncIncrementalFileWriter_9write_doctype, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AsyncIncrementalFileWriter_writ_2, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__86)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1762, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AsyncIncrementalFileWriter->tp_dict, __pyx_n_s_write_doctype, __pyx_t_2) < 0) __PYX_ERR(9, 1762, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__AsyncIncrementalFileWriter);
/* "src/lxml/serializer.pxi":1768
* self._writer.write(*args, with_tail=with_tail, pretty_print=pretty_print, method=method)
* data = self._flush()
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_27_AsyncIncrementalFileWriter_12write, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AsyncIncrementalFileWriter_writ_3, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__87)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1768, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AsyncIncrementalFileWriter->tp_dict, __pyx_n_s_write, __pyx_t_1) < 0) __PYX_ERR(9, 1768, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_27_AsyncIncrementalFileWriter_12write, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AsyncIncrementalFileWriter_writ_3, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__87)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1768, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AsyncIncrementalFileWriter->tp_dict, __pyx_n_s_write, __pyx_t_2) < 0) __PYX_ERR(9, 1768, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__AsyncIncrementalFileWriter);
/* "src/lxml/serializer.pxi":1774
* return self._writer.method(method)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_27_AsyncIncrementalFileWriter_15method, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AsyncIncrementalFileWriter_meth, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__539)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1774, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AsyncIncrementalFileWriter->tp_dict, __pyx_n_s_method, __pyx_t_1) < 0) __PYX_ERR(9, 1774, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_27_AsyncIncrementalFileWriter_15method, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AsyncIncrementalFileWriter_meth, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__539)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1774, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AsyncIncrementalFileWriter->tp_dict, __pyx_n_s_method, __pyx_t_2) < 0) __PYX_ERR(9, 1774, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__AsyncIncrementalFileWriter);
/* "src/lxml/serializer.pxi":1777
* element_writer = self._writer.element(tag, attrib, nsmap, method, **_extra)
* return _AsyncFileWriterElement(element_writer, self)
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_27_AsyncIncrementalFileWriter_17element, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AsyncIncrementalFileWriter_elem, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__541)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1777, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AsyncIncrementalFileWriter->tp_dict, __pyx_n_s_element, __pyx_t_1) < 0) __PYX_ERR(9, 1777, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_27_AsyncIncrementalFileWriter_17element, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AsyncIncrementalFileWriter_elem, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__541)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1777, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AsyncIncrementalFileWriter->tp_dict, __pyx_n_s_element, __pyx_t_2) < 0) __PYX_ERR(9, 1777, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__AsyncIncrementalFileWriter);
/* "src/lxml/serializer.pxi":1781
* self._writer._close(raise_on_error)
* data = self._buffer.collect()
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_27_AsyncIncrementalFileWriter_19_close, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AsyncIncrementalFileWriter__clo, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__88)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1781, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AsyncIncrementalFileWriter->tp_dict, __pyx_n_s_close_2, __pyx_t_1) < 0) __PYX_ERR(9, 1781, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_27_AsyncIncrementalFileWriter_19_close, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AsyncIncrementalFileWriter__clo, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__88)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1781, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AsyncIncrementalFileWriter->tp_dict, __pyx_n_s_close_2, __pyx_t_2) < 0) __PYX_ERR(9, 1781, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__AsyncIncrementalFileWriter);
/* "src/lxml/serializer.pxi":1801
* self._element_writer.__enter__()
* data = self._writer._flush()
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_23_AsyncFileWriterElement_3__aenter__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AsyncFileWriterElement___aenter, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__89)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1801, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AsyncFileWriterElement->tp_dict, __pyx_n_s_aenter, __pyx_t_1) < 0) __PYX_ERR(9, 1801, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_23_AsyncFileWriterElement_3__aenter__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AsyncFileWriterElement___aenter, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__89)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1801, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AsyncFileWriterElement->tp_dict, __pyx_n_s_aenter, __pyx_t_2) < 0) __PYX_ERR(9, 1801, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__AsyncFileWriterElement);
/* "src/lxml/serializer.pxi":1807
* self._element_writer.__exit__(*args)
* data = self._writer._flush()
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_23_AsyncFileWriterElement_6__aexit__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AsyncFileWriterElement___aexit, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__90)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1807, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AsyncFileWriterElement->tp_dict, __pyx_n_s_aexit, __pyx_t_1) < 0) __PYX_ERR(9, 1807, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_23_AsyncFileWriterElement_6__aexit__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_AsyncFileWriterElement___aexit, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__90)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1807, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__AsyncFileWriterElement->tp_dict, __pyx_n_s_aexit, __pyx_t_2) < 0) __PYX_ERR(9, 1807, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__AsyncFileWriterElement);
/* "src/lxml/serializer.pxi":1829
* self._writer._method = self._new_method
* self._writer._write_start_element(self._element)
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_18_FileWriterElement_3__enter__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_FileWriterElement___enter, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__546)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1829, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__FileWriterElement->tp_dict, __pyx_n_s_enter, __pyx_t_1) < 0) __PYX_ERR(9, 1829, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_18_FileWriterElement_3__enter__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_FileWriterElement___enter, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__546)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1829, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__FileWriterElement->tp_dict, __pyx_n_s_enter, __pyx_t_2) < 0) __PYX_ERR(9, 1829, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__FileWriterElement);
/* "src/lxml/serializer.pxi":1833
* self._writer._write_end_element(self._element)
* self._writer._method = self._old_method
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_18_FileWriterElement_5__exit__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_FileWriterElement___exit, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__548)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1833, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__FileWriterElement->tp_dict, __pyx_n_s_exit, __pyx_t_1) < 0) __PYX_ERR(9, 1833, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_18_FileWriterElement_5__exit__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_FileWriterElement___exit, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__548)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1833, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__FileWriterElement->tp_dict, __pyx_n_s_exit, __pyx_t_2) < 0) __PYX_ERR(9, 1833, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__FileWriterElement);
/* "src/lxml/serializer.pxi":1855
* if self._entered:
* raise LxmlSyntaxError("Inconsistent enter action in context manager")
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_14_MethodChanger_3__enter__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MethodChanger___enter, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__550)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1855, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__MethodChanger->tp_dict, __pyx_n_s_enter, __pyx_t_1) < 0) __PYX_ERR(9, 1855, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_14_MethodChanger_3__enter__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MethodChanger___enter, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__550)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1855, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__MethodChanger->tp_dict, __pyx_n_s_enter, __pyx_t_2) < 0) __PYX_ERR(9, 1855, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__MethodChanger);
/* "src/lxml/serializer.pxi":1861
* if self._exited:
* raise LxmlSyntaxError("Inconsistent exit action in context manager")
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_14_MethodChanger_5__exit__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MethodChanger___exit, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__552)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1861, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__MethodChanger->tp_dict, __pyx_n_s_exit, __pyx_t_1) < 0) __PYX_ERR(9, 1861, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_14_MethodChanger_5__exit__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MethodChanger___exit, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__552)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1861, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__MethodChanger->tp_dict, __pyx_n_s_exit, __pyx_t_2) < 0) __PYX_ERR(9, 1861, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__MethodChanger);
/* "src/lxml/serializer.pxi":1869
* # for your async convenience
* return self.__enter__()
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_14_MethodChanger_7__aenter__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MethodChanger___aenter, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__91)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1869, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__MethodChanger->tp_dict, __pyx_n_s_aenter, __pyx_t_1) < 0) __PYX_ERR(9, 1869, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_14_MethodChanger_7__aenter__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MethodChanger___aenter, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__91)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1869, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__MethodChanger->tp_dict, __pyx_n_s_aenter, __pyx_t_2) < 0) __PYX_ERR(9, 1869, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__MethodChanger);
/* "src/lxml/serializer.pxi":1873
* # for your async convenience
* return self.__exit__(*args)
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_14_MethodChanger_10__aexit__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MethodChanger___aexit, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__92)); if (unlikely(!__pyx_t_1)) __PYX_ERR(9, 1873, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__MethodChanger->tp_dict, __pyx_n_s_aexit, __pyx_t_1) < 0) __PYX_ERR(9, 1873, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_14_MethodChanger_10__aexit__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MethodChanger___aexit, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__92)); if (unlikely(!__pyx_t_2)) __PYX_ERR(9, 1873, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__MethodChanger->tp_dict, __pyx_n_s_aexit, __pyx_t_2) < 0) __PYX_ERR(9, 1873, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__MethodChanger);
/* "src/lxml/iterparse.pxi":149
* u"""set_element_class_lookup(self, lookup = None)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_9iterparse_3set_element_class_lookup, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_iterparse_set_element_class_look, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__556)); if (unlikely(!__pyx_t_1)) __PYX_ERR(14, 149, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_iterparse->tp_dict, __pyx_n_s_set_element_class_lookup, __pyx_t_1) < 0) __PYX_ERR(14, 149, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_9iterparse_3set_element_class_lookup, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_iterparse_set_element_class_look, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__556)); if (unlikely(!__pyx_t_2)) __PYX_ERR(14, 149, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_iterparse->tp_dict, __pyx_n_s_set_element_class_lookup, __pyx_t_2) < 0) __PYX_ERR(14, 149, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_iterparse);
/* "src/lxml/iterparse.pxi":158
* u"""makeelement(self, _tag, attrib=None, nsmap=None, **_extra)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_9iterparse_5makeelement, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_iterparse_makeelement, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__558)); if (unlikely(!__pyx_t_1)) __PYX_ERR(14, 158, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_iterparse->tp_dict, __pyx_n_s_makeelement, __pyx_t_1) < 0) __PYX_ERR(14, 158, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_9iterparse_5makeelement, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_iterparse_makeelement, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__558)); if (unlikely(!__pyx_t_2)) __PYX_ERR(14, 158, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_iterparse->tp_dict, __pyx_n_s_makeelement, __pyx_t_2) < 0) __PYX_ERR(14, 158, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_iterparse);
/* "src/lxml/iterparse.pxi":375
* """Prevent descending into the current subtree.
* Instead, the next returned event will be the 'end' event of the current element
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8iterwalk_7skip_subtree, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_iterwalk_skip_subtree, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__560)); if (unlikely(!__pyx_t_1)) __PYX_ERR(14, 375, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_iterwalk->tp_dict, __pyx_n_s_skip_subtree, __pyx_t_1) < 0) __PYX_ERR(14, 375, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_8iterwalk_7skip_subtree, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_iterwalk_skip_subtree, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__560)); if (unlikely(!__pyx_t_2)) __PYX_ERR(14, 375, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_iterwalk->tp_dict, __pyx_n_s_skip_subtree, __pyx_t_2) < 0) __PYX_ERR(14, 375, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_iterwalk);
/* "src/lxml/xmlid.pxi":3
* u"""XMLID(text, parser=None, base_url=None)
*
*/
- __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(15, 3, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_base_url, ((PyObject *)Py_None)) < 0) __PYX_ERR(15, 3, __pyx_L1_error)
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_56XMLID, 0, __pyx_n_s_XMLID, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__562)); if (unlikely(!__pyx_t_2)) __PYX_ERR(15, 3, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(15, 3, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__563);
- __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_2, __pyx_t_1);
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_XMLID, __pyx_t_2) < 0) __PYX_ERR(15, 3, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_base_url, ((PyObject *)Py_None)) < 0) __PYX_ERR(15, 3, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_56XMLID, 0, __pyx_n_s_XMLID, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__562)); if (unlikely(!__pyx_t_7)) __PYX_ERR(15, 3, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_7, __pyx_tuple__563);
+ __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_7, __pyx_t_2);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_XMLID, __pyx_t_7) < 0) __PYX_ERR(15, 3, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
/* "src/lxml/xmlid.pxi":24
* return root, dic
* u"""XMLDTDID(text, parser=None, base_url=None)
*
*/
- __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(15, 24, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(15, 24, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_base_url, ((PyObject *)Py_None)) < 0) __PYX_ERR(15, 24, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_58XMLDTDID, 0, __pyx_n_s_XMLDTDID, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__565)); if (unlikely(!__pyx_t_2)) __PYX_ERR(15, 24, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_base_url, ((PyObject *)Py_None)) < 0) __PYX_ERR(15, 24, __pyx_L1_error)
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_58XMLDTDID, 0, __pyx_n_s_XMLDTDID, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__565)); if (unlikely(!__pyx_t_1)) __PYX_ERR(15, 24, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_1, __pyx_tuple__566);
- __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_1, __pyx_t_2);
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__566);
+ __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_2, __pyx_t_7);
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_XMLDTDID, __pyx_t_2) < 0) __PYX_ERR(15, 24, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_XMLDTDID, __pyx_t_1) < 0) __PYX_ERR(15, 24, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "src/lxml/xmlid.pxi":44
* return root, _IDDict(root)
* u"""parseid(source, parser=None)
*
*/
- __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(15, 44, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_base_url, ((PyObject *)Py_None)) < 0) __PYX_ERR(15, 44, __pyx_L1_error)
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_60parseid, 0, __pyx_n_s_parseid, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__568)); if (unlikely(!__pyx_t_2)) __PYX_ERR(15, 44, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(15, 44, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__569);
- __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_2, __pyx_t_1);
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_parseid, __pyx_t_2) < 0) __PYX_ERR(15, 44, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_base_url, ((PyObject *)Py_None)) < 0) __PYX_ERR(15, 44, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_60parseid, 0, __pyx_n_s_parseid, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__568)); if (unlikely(!__pyx_t_7)) __PYX_ERR(15, 44, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_7, __pyx_tuple__569);
+ __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_7, __pyx_t_2);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_parseid, __pyx_t_7) < 0) __PYX_ERR(15, 44, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
/* "src/lxml/xmlid.pxi":78
* self._items = None
* return _IDDict(self._doc)
*
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_IDDict_3copy, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IDDict_copy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__571)); if (unlikely(!__pyx_t_2)) __PYX_ERR(15, 78, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IDDict->tp_dict, __pyx_n_s_copy, __pyx_t_2) < 0) __PYX_ERR(15, 78, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_IDDict_3copy, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IDDict_copy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__571)); if (unlikely(!__pyx_t_7)) __PYX_ERR(15, 78, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IDDict->tp_dict, __pyx_n_s_copy, __pyx_t_7) < 0) __PYX_ERR(15, 78, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__IDDict);
/* "src/lxml/xmlid.pxi":95
* return self[id_name]
*
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_IDDict_7get, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IDDict_get, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__573)); if (unlikely(!__pyx_t_2)) __PYX_ERR(15, 95, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IDDict->tp_dict, __pyx_n_s_get, __pyx_t_2) < 0) __PYX_ERR(15, 95, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_IDDict_7get, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IDDict_get, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__573)); if (unlikely(!__pyx_t_7)) __PYX_ERR(15, 95, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IDDict->tp_dict, __pyx_n_s_get, __pyx_t_7) < 0) __PYX_ERR(15, 95, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__IDDict);
/* "src/lxml/xmlid.pxi":105
* return id_name in self
*
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_IDDict_11has_key, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IDDict_has_key, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__575)); if (unlikely(!__pyx_t_2)) __PYX_ERR(15, 105, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IDDict->tp_dict, __pyx_n_s_has_key, __pyx_t_2) < 0) __PYX_ERR(15, 105, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_IDDict_11has_key, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IDDict_has_key, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__575)); if (unlikely(!__pyx_t_7)) __PYX_ERR(15, 105, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IDDict->tp_dict, __pyx_n_s_has_key, __pyx_t_7) < 0) __PYX_ERR(15, 105, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__IDDict);
/* "src/lxml/xmlid.pxi":111
* if self._keys is None:
* self._keys = self._build_keys()
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_IDDict_15keys, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IDDict_keys, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__577)); if (unlikely(!__pyx_t_2)) __PYX_ERR(15, 111, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IDDict->tp_dict, __pyx_n_s_keys, __pyx_t_2) < 0) __PYX_ERR(15, 111, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_IDDict_15keys, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IDDict_keys, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__577)); if (unlikely(!__pyx_t_7)) __PYX_ERR(15, 111, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IDDict->tp_dict, __pyx_n_s_keys, __pyx_t_7) < 0) __PYX_ERR(15, 111, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__IDDict);
/* "src/lxml/xmlid.pxi":121
* return self
*
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_IDDict_19iterkeys, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IDDict_iterkeys, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__579)); if (unlikely(!__pyx_t_2)) __PYX_ERR(15, 121, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IDDict->tp_dict, __pyx_n_s_iterkeys, __pyx_t_2) < 0) __PYX_ERR(15, 121, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_IDDict_19iterkeys, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IDDict_iterkeys, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__579)); if (unlikely(!__pyx_t_7)) __PYX_ERR(15, 121, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IDDict->tp_dict, __pyx_n_s_iterkeys, __pyx_t_7) < 0) __PYX_ERR(15, 121, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__IDDict);
/* "src/lxml/xmlid.pxi":129
* if self._items is None:
* self._items = self._build_items()
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_IDDict_23items, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IDDict_items, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__581)); if (unlikely(!__pyx_t_2)) __PYX_ERR(15, 129, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IDDict->tp_dict, __pyx_n_s_items, __pyx_t_2) < 0) __PYX_ERR(15, 129, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_IDDict_23items, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IDDict_items, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__581)); if (unlikely(!__pyx_t_7)) __PYX_ERR(15, 129, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IDDict->tp_dict, __pyx_n_s_items, __pyx_t_7) < 0) __PYX_ERR(15, 129, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__IDDict);
/* "src/lxml/xmlid.pxi":134
* if self._items is None:
* self._items = self._build_items()
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_IDDict_25iteritems, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IDDict_iteritems, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__583)); if (unlikely(!__pyx_t_2)) __PYX_ERR(15, 134, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IDDict->tp_dict, __pyx_n_s_iteritems, __pyx_t_2) < 0) __PYX_ERR(15, 134, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_IDDict_25iteritems, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IDDict_iteritems, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__583)); if (unlikely(!__pyx_t_7)) __PYX_ERR(15, 134, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IDDict->tp_dict, __pyx_n_s_iteritems, __pyx_t_7) < 0) __PYX_ERR(15, 134, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__IDDict);
/* "src/lxml/xmlid.pxi":139
* cdef list values = []
* if self._items is None:
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_IDDict_27values, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IDDict_values, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__585)); if (unlikely(!__pyx_t_2)) __PYX_ERR(15, 139, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IDDict->tp_dict, __pyx_n_s_values, __pyx_t_2) < 0) __PYX_ERR(15, 139, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_IDDict_27values, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IDDict_values, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__585)); if (unlikely(!__pyx_t_7)) __PYX_ERR(15, 139, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IDDict->tp_dict, __pyx_n_s_values, __pyx_t_7) < 0) __PYX_ERR(15, 139, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__IDDict);
/* "src/lxml/xmlid.pxi":149
* return iter(self.values())
*
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_IDDict_29itervalues, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IDDict_itervalues, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__587)); if (unlikely(!__pyx_t_2)) __PYX_ERR(15, 149, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IDDict->tp_dict, __pyx_n_s_itervalues, __pyx_t_2) < 0) __PYX_ERR(15, 149, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7_IDDict_29itervalues, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_IDDict_itervalues, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__587)); if (unlikely(!__pyx_t_7)) __PYX_ERR(15, 149, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__IDDict->tp_dict, __pyx_n_s_itervalues, __pyx_t_7) < 0) __PYX_ERR(15, 149, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__IDDict);
/* "src/lxml/cleanup.pxi":3
* u"""cleanup_namespaces(tree_or_element, top_nsmap=None, keep_ns_prefixes=None)
*
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_62cleanup_namespaces, 0, __pyx_n_s_cleanup_namespaces, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__589)); if (unlikely(!__pyx_t_2)) __PYX_ERR(17, 3, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__590);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_cleanup_namespaces, __pyx_t_2) < 0) __PYX_ERR(17, 3, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_62cleanup_namespaces, 0, __pyx_n_s_cleanup_namespaces, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__589)); if (unlikely(!__pyx_t_7)) __PYX_ERR(17, 3, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_7, __pyx_tuple__590);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_cleanup_namespaces, __pyx_t_7) < 0) __PYX_ERR(17, 3, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
/* "src/lxml/cleanup.pxi":33
*
* u"""strip_attributes(tree_or_element, *attribute_names)
*
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_64strip_attributes, 0, __pyx_n_s_strip_attributes, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__592)); if (unlikely(!__pyx_t_2)) __PYX_ERR(17, 33, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_strip_attributes, __pyx_t_2) < 0) __PYX_ERR(17, 33, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_64strip_attributes, 0, __pyx_n_s_strip_attributes, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__592)); if (unlikely(!__pyx_t_7)) __PYX_ERR(17, 33, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_strip_attributes, __pyx_t_7) < 0) __PYX_ERR(17, 33, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
/* "src/lxml/cleanup.pxi":74
*
* u"""strip_elements(tree_or_element, *tag_names, with_tail=True)
*
*/
- __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(17, 74, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(17, 74, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_2 = __Pyx_PyBool_FromLong(((int)1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(17, 74, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_1 = __Pyx_PyBool_FromLong(((int)1)); if (unlikely(!__pyx_t_1)) __PYX_ERR(17, 74, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_with_tail, __pyx_t_1) < 0) __PYX_ERR(17, 74, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_66strip_elements, 0, __pyx_n_s_strip_elements, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__594)); if (unlikely(!__pyx_t_1)) __PYX_ERR(17, 74, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_1, __pyx_t_2);
+ if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_with_tail, __pyx_t_2) < 0) __PYX_ERR(17, 74, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_66strip_elements, 0, __pyx_n_s_strip_elements, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__594)); if (unlikely(!__pyx_t_2)) __PYX_ERR(17, 74, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_2, __pyx_t_7);
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_strip_elements, __pyx_t_2) < 0) __PYX_ERR(17, 74, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_strip_elements, __pyx_t_1) < 0) __PYX_ERR(17, 74, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "src/lxml/cleanup.pxi":145
*
* u"""strip_tags(tree_or_element, *tag_names)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_68strip_tags, 0, __pyx_n_s_strip_tags, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__596)); if (unlikely(!__pyx_t_1)) __PYX_ERR(17, 145, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_strip_tags, __pyx_t_1) < 0) __PYX_ERR(17, 145, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_68strip_tags, 0, __pyx_n_s_strip_tags, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__596)); if (unlikely(!__pyx_t_2)) __PYX_ERR(17, 145, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_strip_tags, __pyx_t_2) < 0) __PYX_ERR(17, 145, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
/* "src/lxml/extensions.pxi":368
*
* u"""Extension(module, function_mapping=None, ns=None)
*
*/
- __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 426, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_ns, ((PyObject *)Py_None)) < 0) __PYX_ERR(10, 426, __pyx_L1_error)
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_70Extension, 0, __pyx_n_s_Extension, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__599)); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 426, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 426, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_2, __pyx_tuple__600);
- __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_2, __pyx_t_1);
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_Extension, __pyx_t_2) < 0) __PYX_ERR(10, 426, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_ns, ((PyObject *)Py_None)) < 0) __PYX_ERR(10, 426, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_70Extension, 0, __pyx_n_s_Extension, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__599)); if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 426, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_7, __pyx_tuple__600);
+ __Pyx_CyFunction_SetDefaultsKwDict(__pyx_t_7, __pyx_t_2);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_Extension, __pyx_t_7) < 0) __PYX_ERR(10, 426, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
/* "src/lxml/extensions.pxi":498
* return rexp_compiled
* flags = self._make_string(flags)
* s = self._make_string(s)
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ExsltRegExp_3test, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ExsltRegExp_test, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__602)); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 498, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ExsltRegExp->tp_dict, __pyx_n_s_test, __pyx_t_2) < 0) __PYX_ERR(10, 498, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ExsltRegExp_3test, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ExsltRegExp_test, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__602)); if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 498, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ExsltRegExp->tp_dict, __pyx_n_s_test, __pyx_t_7) < 0) __PYX_ERR(10, 498, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ExsltRegExp);
/* "src/lxml/extensions.pxi":507
* cdef list result_list
* flags = self._make_string(flags)
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ExsltRegExp_5match, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ExsltRegExp_match, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__604)); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 507, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ExsltRegExp->tp_dict, __pyx_n_s_match, __pyx_t_2) < 0) __PYX_ERR(10, 507, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ExsltRegExp_5match, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ExsltRegExp_match, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__604)); if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 507, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ExsltRegExp->tp_dict, __pyx_n_s_match, __pyx_t_7) < 0) __PYX_ERR(10, 507, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ExsltRegExp);
/* "src/lxml/extensions.pxi":533
* replacement = self._make_string(replacement)
* flags = self._make_string(flags)
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ExsltRegExp_7replace, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ExsltRegExp_replace, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__606)); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 533, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ExsltRegExp->tp_dict, __pyx_n_s_replace, __pyx_t_2) < 0) __PYX_ERR(10, 533, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_12_ExsltRegExp_7replace, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ExsltRegExp_replace, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__606)); if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 533, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ExsltRegExp->tp_dict, __pyx_n_s_replace, __pyx_t_7) < 0) __PYX_ERR(10, 533, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ExsltRegExp);
/* "src/lxml/extensions.pxi":730
* return self._parent
*
*/
- __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_21_ElementUnicodeResult_1getparent, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementUnicodeResult_getparent, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__608)); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 730, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementUnicodeResult->tp_dict, __pyx_n_s_getparent, __pyx_t_2) < 0) __PYX_ERR(10, 730, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __pyx_t_7 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_21_ElementUnicodeResult_1getparent, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_ElementUnicodeResult_getparent, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__608)); if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 730, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__ElementUnicodeResult->tp_dict, __pyx_n_s_getparent, __pyx_t_7) < 0) __PYX_ERR(10, 730, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__ElementUnicodeResult);
/* "src/lxml/extensions.pxi":734
* # we need to use a Python class here, or PyPy will crash on creation
* # https://bitbucket.org/pypy/pypy/issues/2021/pypy3-pytype_ready-crashes-for-extension
*/
- __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 735, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
+ __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 735, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
__Pyx_INCREF(((PyObject *)(&PyUnicode_Type)));
__Pyx_GIVEREF(((PyObject *)(&PyUnicode_Type)));
- PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)(&PyUnicode_Type)));
- __pyx_t_1 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 735, __pyx_L1_error)
+ PyTuple_SET_ITEM(__pyx_t_7, 0, ((PyObject *)(&PyUnicode_Type)));
+ __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 735, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __pyx_t_1 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_7, __pyx_n_s_PyElementUnicodeResult, __pyx_n_s_PyElementUnicodeResult, (PyObject *) NULL, __pyx_n_s_lxml_etree, (PyObject *) NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 735, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_7 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_2, __pyx_n_s_PyElementUnicodeResult, __pyx_n_s_PyElementUnicodeResult, (PyObject *) NULL, __pyx_n_s_lxml_etree, (PyObject *) NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 735, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
/* "src/lxml/extensions.pxi":738
* # we need to use a Python class here, or PyPy will crash on creation
*/
__pyx_t_12 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_23_PyElementUnicodeResult_1getparent, 0, __pyx_n_s_PyElementUnicodeResult_getparen, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__610)); if (unlikely(!__pyx_t_12)) __PYX_ERR(10, 738, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_12);
- if (__Pyx_SetNameInClass(__pyx_t_7, __pyx_n_s_getparent, __pyx_t_12) < 0) __PYX_ERR(10, 738, __pyx_L1_error)
+ if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_getparent, __pyx_t_12) < 0) __PYX_ERR(10, 738, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
/* "src/lxml/extensions.pxi":735
* # we need to use a Python class here, or PyPy will crash on creation
* # https://bitbucket.org/pypy/pypy/issues/2021/pypy3-pytype_ready-crashes-for-extension
*/
- __pyx_t_12 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_PyElementUnicodeResult, __pyx_t_2, __pyx_t_7, NULL, 0, 1); if (unlikely(!__pyx_t_12)) __PYX_ERR(10, 735, __pyx_L1_error)
+ __pyx_t_12 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_PyElementUnicodeResult, __pyx_t_7, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_12)) __PYX_ERR(10, 735, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_12);
__Pyx_XGOTREF(__pyx_v_4lxml_5etree__PyElementUnicodeResult);
__Pyx_DECREF_SET(__pyx_v_4lxml_5etree__PyElementUnicodeResult, __pyx_t_12);
__Pyx_GIVEREF(__pyx_t_12);
__pyx_t_12 = 0;
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
/* "src/lxml/extensions.pxi":734
*
* # we need to use a Python class here, bytes cannot be C-subclassed
* # in Pyrex/Cython
*/
- __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 741, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
+ __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 741, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
__Pyx_INCREF(((PyObject *)(&PyBytes_Type)));
__Pyx_GIVEREF(((PyObject *)(&PyBytes_Type)));
- PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)(&PyBytes_Type)));
- __pyx_t_1 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 741, __pyx_L1_error)
+ PyTuple_SET_ITEM(__pyx_t_7, 0, ((PyObject *)(&PyBytes_Type)));
+ __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(10, 741, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __pyx_t_1 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_7, __pyx_n_s_ElementStringResult, __pyx_n_s_ElementStringResult, (PyObject *) NULL, __pyx_n_s_lxml_etree, (PyObject *) NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 741, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
- __pyx_t_7 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_2, __pyx_n_s_ElementStringResult, __pyx_n_s_ElementStringResult, (PyObject *) NULL, __pyx_n_s_lxml_etree, (PyObject *) NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(10, 741, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
/* "src/lxml/extensions.pxi":744
* # we need to use a Python class here, bytes cannot be C-subclassed
*/
__pyx_t_12 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_20_ElementStringResult_1getparent, 0, __pyx_n_s_ElementStringResult_getparent, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__612)); if (unlikely(!__pyx_t_12)) __PYX_ERR(10, 744, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_12);
- if (__Pyx_SetNameInClass(__pyx_t_7, __pyx_n_s_getparent, __pyx_t_12) < 0) __PYX_ERR(10, 744, __pyx_L1_error)
+ if (__Pyx_SetNameInClass(__pyx_t_1, __pyx_n_s_getparent, __pyx_t_12) < 0) __PYX_ERR(10, 744, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
/* "src/lxml/extensions.pxi":741
* # we need to use a Python class here, bytes cannot be C-subclassed
* # in Pyrex/Cython
*/
- __pyx_t_12 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_ElementStringResult, __pyx_t_2, __pyx_t_7, NULL, 0, 1); if (unlikely(!__pyx_t_12)) __PYX_ERR(10, 741, __pyx_L1_error)
+ __pyx_t_12 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_ElementStringResult, __pyx_t_7, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_12)) __PYX_ERR(10, 741, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_12);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_ElementStringResult, __pyx_t_12) < 0) __PYX_ERR(10, 741, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
- __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
/* "src/lxml/xpath.pxi":3
* # XPath evaluation
* pass
*
*/
- __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_LxmlSyntaxError); if (unlikely(!__pyx_t_2)) __PYX_ERR(18, 3, __pyx_L1_error)
+ __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_n_s_LxmlSyntaxError); if (unlikely(!__pyx_t_7)) __PYX_ERR(18, 3, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(18, 3, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(18, 3, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- __Pyx_GIVEREF(__pyx_t_2);
- PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
+ __Pyx_GIVEREF(__pyx_t_7);
+ PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_7);
__Pyx_INCREF(((PyObject *)__pyx_ptype_4lxml_5etree_XPathError));
__Pyx_GIVEREF(((PyObject *)__pyx_ptype_4lxml_5etree_XPathError));
- PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_ptype_4lxml_5etree_XPathError));
- __pyx_t_2 = 0;
- __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(18, 3, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
- __pyx_t_7 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_1, __pyx_n_s_XPathSyntaxError, __pyx_n_s_XPathSyntaxError, (PyObject *) NULL, __pyx_n_s_lxml_etree, (PyObject *) NULL); if (unlikely(!__pyx_t_7)) __PYX_ERR(18, 3, __pyx_L1_error)
+ PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_ptype_4lxml_5etree_XPathError));
+ __pyx_t_7 = 0;
+ __pyx_t_7 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_7)) __PYX_ERR(18, 3, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
- __pyx_t_12 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_XPathSyntaxError, __pyx_t_1, __pyx_t_7, NULL, 0, 1); if (unlikely(!__pyx_t_12)) __PYX_ERR(18, 3, __pyx_L1_error)
+ __pyx_t_1 = __Pyx_Py3MetaclassPrepare(__pyx_t_7, __pyx_t_2, __pyx_n_s_XPathSyntaxError, __pyx_n_s_XPathSyntaxError, (PyObject *) NULL, __pyx_n_s_lxml_etree, (PyObject *) NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(18, 3, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
+ __pyx_t_12 = __Pyx_Py3ClassCreate(__pyx_t_7, __pyx_n_s_XPathSyntaxError, __pyx_t_2, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_12)) __PYX_ERR(18, 3, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_12);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_XPathSyntaxError, __pyx_t_12) < 0) __PYX_ERR(18, 3, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
+ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "src/lxml/xpath.pxi":10
*
* xmlerror.XML_XPATH_UNFINISHED_LITERAL_ERROR,
* xmlerror.XML_XPATH_VARIABLE_REF_ERROR,
*/
- __pyx_t_1 = __Pyx_PyInt_From_xmlParserErrors(XML_XPATH_NUMBER_ERROR); if (unlikely(!__pyx_t_1)) __PYX_ERR(18, 10, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
+ __pyx_t_2 = __Pyx_PyInt_From_xmlParserErrors(XML_XPATH_NUMBER_ERROR); if (unlikely(!__pyx_t_2)) __PYX_ERR(18, 10, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
/* "src/lxml/xpath.pxi":11
* cdef object _XPATH_SYNTAX_ERRORS = (
* xmlerror.XML_XPATH_VARIABLE_REF_ERROR,
* xmlerror.XML_XPATH_INVALID_PREDICATE_ERROR,
*/
- __pyx_t_2 = __Pyx_PyInt_From_xmlParserErrors(XML_XPATH_UNFINISHED_LITERAL_ERROR); if (unlikely(!__pyx_t_2)) __PYX_ERR(18, 11, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
+ __pyx_t_7 = __Pyx_PyInt_From_xmlParserErrors(XML_XPATH_UNFINISHED_LITERAL_ERROR); if (unlikely(!__pyx_t_7)) __PYX_ERR(18, 11, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
/* "src/lxml/xpath.pxi":12
* xmlerror.XML_XPATH_NUMBER_ERROR,
* xmlerror.XML_XPATH_INVALID_PREDICATE_ERROR,
* xmlerror.XML_XPATH_UNCLOSED_ERROR,
*/
- __pyx_t_7 = __Pyx_PyInt_From_xmlParserErrors(XML_XPATH_VARIABLE_REF_ERROR); if (unlikely(!__pyx_t_7)) __PYX_ERR(18, 12, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_1 = __Pyx_PyInt_From_xmlParserErrors(XML_XPATH_VARIABLE_REF_ERROR); if (unlikely(!__pyx_t_1)) __PYX_ERR(18, 12, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
/* "src/lxml/xpath.pxi":13
* xmlerror.XML_XPATH_UNFINISHED_LITERAL_ERROR,
*/
__pyx_t_13 = PyTuple_New(6); if (unlikely(!__pyx_t_13)) __PYX_ERR(18, 10, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_13);
- __Pyx_GIVEREF(__pyx_t_1);
- PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_1);
__Pyx_GIVEREF(__pyx_t_2);
- PyTuple_SET_ITEM(__pyx_t_13, 1, __pyx_t_2);
+ PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_2);
__Pyx_GIVEREF(__pyx_t_7);
- PyTuple_SET_ITEM(__pyx_t_13, 2, __pyx_t_7);
+ PyTuple_SET_ITEM(__pyx_t_13, 1, __pyx_t_7);
+ __Pyx_GIVEREF(__pyx_t_1);
+ PyTuple_SET_ITEM(__pyx_t_13, 2, __pyx_t_1);
__Pyx_GIVEREF(__pyx_t_12);
PyTuple_SET_ITEM(__pyx_t_13, 3, __pyx_t_12);
__Pyx_GIVEREF(__pyx_t_9);
PyTuple_SET_ITEM(__pyx_t_13, 4, __pyx_t_9);
__Pyx_GIVEREF(__pyx_t_8);
PyTuple_SET_ITEM(__pyx_t_13, 5, __pyx_t_8);
- __pyx_t_1 = 0;
__pyx_t_2 = 0;
__pyx_t_7 = 0;
+ __pyx_t_1 = 0;
__pyx_t_12 = 0;
__pyx_t_9 = 0;
__pyx_t_8 = 0;
* xmlerror.XML_XPATH_INVALID_ARITY,
* xmlerror.XML_XPATH_INVALID_CTXT_SIZE,
*/
- __pyx_t_7 = __Pyx_PyInt_From_xmlParserErrors(XML_XPATH_INVALID_TYPE); if (unlikely(!__pyx_t_7)) __PYX_ERR(18, 23, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_7);
+ __pyx_t_1 = __Pyx_PyInt_From_xmlParserErrors(XML_XPATH_INVALID_TYPE); if (unlikely(!__pyx_t_1)) __PYX_ERR(18, 23, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_1);
/* "src/lxml/xpath.pxi":24
* xmlerror.XML_XPATH_INVALID_OPERAND,
* xmlerror.XML_XPATH_INVALID_CTXT_SIZE,
* xmlerror.XML_XPATH_INVALID_CTXT_POSITION
*/
- __pyx_t_2 = __Pyx_PyInt_From_xmlParserErrors(XML_XPATH_INVALID_ARITY); if (unlikely(!__pyx_t_2)) __PYX_ERR(18, 24, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_2);
+ __pyx_t_7 = __Pyx_PyInt_From_xmlParserErrors(XML_XPATH_INVALID_ARITY); if (unlikely(!__pyx_t_7)) __PYX_ERR(18, 24, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
/* "src/lxml/xpath.pxi":25
* xmlerror.XML_XPATH_INVALID_TYPE,
* xmlerror.XML_XPATH_INVALID_CTXT_POSITION
* )
*/
- __pyx_t_1 = __Pyx_PyInt_From_xmlParserErrors(XML_XPATH_INVALID_CTXT_SIZE); if (unlikely(!__pyx_t_1)) __PYX_ERR(18, 25, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
+ __pyx_t_2 = __Pyx_PyInt_From_xmlParserErrors(XML_XPATH_INVALID_CTXT_SIZE); if (unlikely(!__pyx_t_2)) __PYX_ERR(18, 25, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
/* "src/lxml/xpath.pxi":26
* xmlerror.XML_XPATH_INVALID_ARITY,
PyTuple_SET_ITEM(__pyx_t_15, 2, __pyx_t_9);
__Pyx_GIVEREF(__pyx_t_12);
PyTuple_SET_ITEM(__pyx_t_15, 3, __pyx_t_12);
+ __Pyx_GIVEREF(__pyx_t_1);
+ PyTuple_SET_ITEM(__pyx_t_15, 4, __pyx_t_1);
__Pyx_GIVEREF(__pyx_t_7);
- PyTuple_SET_ITEM(__pyx_t_15, 4, __pyx_t_7);
+ PyTuple_SET_ITEM(__pyx_t_15, 5, __pyx_t_7);
__Pyx_GIVEREF(__pyx_t_2);
- PyTuple_SET_ITEM(__pyx_t_15, 5, __pyx_t_2);
- __Pyx_GIVEREF(__pyx_t_1);
- PyTuple_SET_ITEM(__pyx_t_15, 6, __pyx_t_1);
+ PyTuple_SET_ITEM(__pyx_t_15, 6, __pyx_t_2);
__Pyx_GIVEREF(__pyx_t_14);
PyTuple_SET_ITEM(__pyx_t_15, 7, __pyx_t_14);
__pyx_t_13 = 0;
__pyx_t_8 = 0;
__pyx_t_9 = 0;
__pyx_t_12 = 0;
+ __pyx_t_1 = 0;
__pyx_t_7 = 0;
__pyx_t_2 = 0;
- __pyx_t_1 = 0;
__pyx_t_14 = 0;
__Pyx_XGOTREF(__pyx_v_4lxml_5etree__XPATH_EVAL_ERRORS);
__Pyx_DECREF_SET(__pyx_v_4lxml_5etree__XPATH_EVAL_ERRORS, __pyx_t_15);
PyTuple_SET_ITEM(__pyx_t_14, 1, ((PyObject *)__pyx_ptype_4lxml_5etree_SerialisationError));
__pyx_t_15 = __Pyx_CalculateMetaclass(NULL, __pyx_t_14); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 18, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_15);
- __pyx_t_1 = __Pyx_Py3MetaclassPrepare(__pyx_t_15, __pyx_t_14, __pyx_n_s_XSLTSaveError, __pyx_n_s_XSLTSaveError, (PyObject *) NULL, __pyx_n_s_lxml_etree, __pyx_kp_s_Error_serialising_an_XSLT_result); if (unlikely(!__pyx_t_1)) __PYX_ERR(4, 18, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- __pyx_t_2 = __Pyx_Py3ClassCreate(__pyx_t_15, __pyx_n_s_XSLTSaveError, __pyx_t_14, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 18, __pyx_L1_error)
+ __pyx_t_2 = __Pyx_Py3MetaclassPrepare(__pyx_t_15, __pyx_t_14, __pyx_n_s_XSLTSaveError, __pyx_n_s_XSLTSaveError, (PyObject *) NULL, __pyx_n_s_lxml_etree, __pyx_kp_s_Error_serialising_an_XSLT_result); if (unlikely(!__pyx_t_2)) __PYX_ERR(4, 18, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_XSLTSaveError, __pyx_t_2) < 0) __PYX_ERR(4, 18, __pyx_L1_error)
+ __pyx_t_7 = __Pyx_Py3ClassCreate(__pyx_t_15, __pyx_n_s_XSLTSaveError, __pyx_t_14, __pyx_t_2, NULL, 0, 1); if (unlikely(!__pyx_t_7)) __PYX_ERR(4, 18, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_7);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_XSLTSaveError, __pyx_t_7) < 0) __PYX_ERR(4, 18, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
__Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
__Pyx_GIVEREF(__pyx_t_14);
__pyx_t_14 = 0;
- /* "src/lxml/xslt.pxi":438
+ /* "src/lxml/xslt.pxi":439
*
* @staticmethod
* def strparam(strval): # <<<<<<<<<<<<<<
* u"""strparam(strval)
*
*/
- __pyx_t_14 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_4XSLT_7strparam, __Pyx_CYFUNCTION_STATICMETHOD | __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_XSLT_strparam, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__626)); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 438, __pyx_L1_error)
+ __pyx_t_14 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_4XSLT_7strparam, __Pyx_CYFUNCTION_STATICMETHOD | __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_XSLT_strparam, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__626)); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 439, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_14);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_XSLT->tp_dict, __pyx_n_s_strparam, __pyx_t_14) < 0) __PYX_ERR(4, 438, __pyx_L1_error)
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_XSLT->tp_dict, __pyx_n_s_strparam, __pyx_t_14) < 0) __PYX_ERR(4, 439, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_XSLT);
- /* "src/lxml/xslt.pxi":437
+ /* "src/lxml/xslt.pxi":438
* return self._error_log.copy()
*
* @staticmethod # <<<<<<<<<<<<<<
* def strparam(strval):
* u"""strparam(strval)
*/
- __Pyx_GetNameInClass(__pyx_t_14, (PyObject *)__pyx_ptype_4lxml_5etree_XSLT, __pyx_n_s_strparam); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 438, __pyx_L1_error)
+ __Pyx_GetNameInClass(__pyx_t_14, (PyObject *)__pyx_ptype_4lxml_5etree_XSLT, __pyx_n_s_strparam); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 439, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_14);
- __pyx_t_15 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_14); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 437, __pyx_L1_error)
+ __pyx_t_15 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_14); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 438, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_15);
__Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_XSLT->tp_dict, __pyx_n_s_strparam, __pyx_t_15) < 0) __PYX_ERR(4, 438, __pyx_L1_error)
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_XSLT->tp_dict, __pyx_n_s_strparam, __pyx_t_15) < 0) __PYX_ERR(4, 439, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_XSLT);
- /* "src/lxml/xslt.pxi":452
+ /* "src/lxml/xslt.pxi":453
*
* @staticmethod
* def set_global_max_depth(int max_depth): # <<<<<<<<<<<<<<
* u"""set_global_max_depth(max_depth)
*
*/
- __pyx_t_15 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_4XSLT_9set_global_max_depth, __Pyx_CYFUNCTION_STATICMETHOD | __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_XSLT_set_global_max_depth, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__628)); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 452, __pyx_L1_error)
+ __pyx_t_15 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_4XSLT_9set_global_max_depth, __Pyx_CYFUNCTION_STATICMETHOD | __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_XSLT_set_global_max_depth, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__628)); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 453, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_15);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_XSLT->tp_dict, __pyx_n_s_set_global_max_depth, __pyx_t_15) < 0) __PYX_ERR(4, 452, __pyx_L1_error)
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_XSLT->tp_dict, __pyx_n_s_set_global_max_depth, __pyx_t_15) < 0) __PYX_ERR(4, 453, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_XSLT);
- /* "src/lxml/xslt.pxi":451
+ /* "src/lxml/xslt.pxi":452
* return _XSLTQuotedStringParam(strval)
*
* @staticmethod # <<<<<<<<<<<<<<
* def set_global_max_depth(int max_depth):
* u"""set_global_max_depth(max_depth)
*/
- __Pyx_GetNameInClass(__pyx_t_15, (PyObject *)__pyx_ptype_4lxml_5etree_XSLT, __pyx_n_s_set_global_max_depth); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 452, __pyx_L1_error)
+ __Pyx_GetNameInClass(__pyx_t_15, (PyObject *)__pyx_ptype_4lxml_5etree_XSLT, __pyx_n_s_set_global_max_depth); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 453, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_15);
- __pyx_t_14 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_15); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 451, __pyx_L1_error)
+ __pyx_t_14 = __Pyx_PyObject_CallOneArg(__pyx_builtin_staticmethod, __pyx_t_15); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 452, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_14);
__Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_XSLT->tp_dict, __pyx_n_s_set_global_max_depth, __pyx_t_14) < 0) __PYX_ERR(4, 452, __pyx_L1_error)
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_XSLT->tp_dict, __pyx_n_s_set_global_max_depth, __pyx_t_14) < 0) __PYX_ERR(4, 453, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_XSLT);
- /* "src/lxml/xslt.pxi":471
+ /* "src/lxml/xslt.pxi":472
* xslt.xsltMaxDepth = max_depth
*
* def apply(self, _input, *, profile_run=False, **kw): # <<<<<<<<<<<<<<
* u"""apply(self, _input, profile_run=False, **kw)
*
*/
- __pyx_t_14 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_4XSLT_11apply, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_XSLT_apply, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__630)); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 471, __pyx_L1_error)
+ __pyx_t_14 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_4XSLT_11apply, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_XSLT_apply, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__630)); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 472, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_14);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_XSLT->tp_dict, __pyx_n_s_apply, __pyx_t_14) < 0) __PYX_ERR(4, 471, __pyx_L1_error)
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_XSLT->tp_dict, __pyx_n_s_apply, __pyx_t_14) < 0) __PYX_ERR(4, 472, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_XSLT);
- /* "src/lxml/xslt.pxi":477
+ /* "src/lxml/xslt.pxi":478
* return self(_input, profile_run=profile_run, **kw)
*
* def tostring(self, _ElementTree result_tree): # <<<<<<<<<<<<<<
* u"""tostring(self, result_tree)
*
*/
- __pyx_t_14 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_4XSLT_13tostring, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_XSLT_tostring, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__632)); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 477, __pyx_L1_error)
+ __pyx_t_14 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_4XSLT_13tostring, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_XSLT_tostring, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__632)); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 478, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_14);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_XSLT->tp_dict, __pyx_n_s_tostring, __pyx_t_14) < 0) __PYX_ERR(4, 477, __pyx_L1_error)
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_XSLT->tp_dict, __pyx_n_s_tostring, __pyx_t_14) < 0) __PYX_ERR(4, 478, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_XSLT);
- /* "src/lxml/xslt.pxi":486
+ /* "src/lxml/xslt.pxi":487
* return str(result_tree)
*
* def __deepcopy__(self, memo): # <<<<<<<<<<<<<<
* return self.__copy__()
*
*/
- __pyx_t_14 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_4XSLT_15__deepcopy__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_XSLT___deepcopy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__634)); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 486, __pyx_L1_error)
+ __pyx_t_14 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_4XSLT_15__deepcopy__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_XSLT___deepcopy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__634)); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 487, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_14);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_XSLT->tp_dict, __pyx_n_s_deepcopy, __pyx_t_14) < 0) __PYX_ERR(4, 486, __pyx_L1_error)
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_XSLT->tp_dict, __pyx_n_s_deepcopy, __pyx_t_14) < 0) __PYX_ERR(4, 487, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_XSLT);
- /* "src/lxml/xslt.pxi":489
+ /* "src/lxml/xslt.pxi":490
* return self.__copy__()
*
* def __copy__(self): # <<<<<<<<<<<<<<
* return _copyXSLT(self)
*
*/
- __pyx_t_14 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_4XSLT_17__copy__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_XSLT___copy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__636)); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 489, __pyx_L1_error)
+ __pyx_t_14 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_4XSLT_17__copy__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_XSLT___copy, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__636)); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 490, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_14);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_XSLT->tp_dict, __pyx_n_s_copy_2, __pyx_t_14) < 0) __PYX_ERR(4, 489, __pyx_L1_error)
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_XSLT->tp_dict, __pyx_n_s_copy_2, __pyx_t_14) < 0) __PYX_ERR(4, 490, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_XSLT);
- /* "src/lxml/xslt.pxi":717
+ /* "src/lxml/xslt.pxi":718
* cdef Py_ssize_t _buffer_refcnt
*
* def write_output(self, file, *, compression=0): # <<<<<<<<<<<<<<
* """write_output(self, file, *, compression=0)
*
*/
- __pyx_t_14 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_15_XSLTResultTree_1write_output, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_XSLTResultTree_write_output, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__638)); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 717, __pyx_L1_error)
+ __pyx_t_14 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_15_XSLTResultTree_1write_output, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_XSLTResultTree_write_output, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__638)); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 718, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_14);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__XSLTResultTree->tp_dict, __pyx_n_s_write_output, __pyx_t_14) < 0) __PYX_ERR(4, 717, __pyx_L1_error)
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__XSLTResultTree->tp_dict, __pyx_n_s_write_output, __pyx_t_14) < 0) __PYX_ERR(4, 718, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__XSLTResultTree);
- /* "src/lxml/xslt.pxi":787
+ /* "src/lxml/xslt.pxi":788
* return result
*
* def __unicode__(self): # <<<<<<<<<<<<<<
* cdef xmlChar* encoding
* cdef xmlChar* s = NULL
*/
- __pyx_t_14 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_15_XSLTResultTree_5__unicode__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_XSLTResultTree___unicode, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__640)); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 787, __pyx_L1_error)
+ __pyx_t_14 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_15_XSLTResultTree_5__unicode__, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_XSLTResultTree___unicode, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__640)); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 788, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_14);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__XSLTResultTree->tp_dict, __pyx_n_s_unicode_2, __pyx_t_14) < 0) __PYX_ERR(4, 787, __pyx_L1_error)
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__XSLTResultTree->tp_dict, __pyx_n_s_unicode_2, __pyx_t_14) < 0) __PYX_ERR(4, 788, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__XSLTResultTree);
- /* "src/lxml/xslt.pxi":872
+ /* "src/lxml/xslt.pxi":873
* # functions like "output" and "write" are a potential security risk, but we
* # rely on the user to configure XSLTAccessControl as needed
* xslt.xsltRegisterAllExtras() # <<<<<<<<<<<<<<
*/
xsltRegisterAllExtras();
- /* "src/lxml/xslt.pxi":875
+ /* "src/lxml/xslt.pxi":876
*
* # enable EXSLT support for XSLT
* xslt.exsltRegisterAll() # <<<<<<<<<<<<<<
*/
exsltRegisterAll();
- /* "src/lxml/xslt.pxi":881
+ /* "src/lxml/xslt.pxi":882
* # XSLT PI support
*
* cdef object _RE_PI_HREF = re.compile(ur'\s+href\s*=\s*(?:\'([^\']*)\'|"([^"]*)")') # <<<<<<<<<<<<<<
* cdef object _FIND_PI_HREF = _RE_PI_HREF.findall
* cdef object _REPLACE_PI_HREF = _RE_PI_HREF.sub
*/
- __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_re, __pyx_n_s_compile); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 881, __pyx_L1_error)
+ __pyx_t_14 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree_re, __pyx_n_s_compile); if (unlikely(!__pyx_t_14)) __PYX_ERR(4, 882, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_14);
- __pyx_t_15 = __Pyx_PyObject_Call(__pyx_t_14, __pyx_tuple__641, NULL); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 881, __pyx_L1_error)
+ __pyx_t_15 = __Pyx_PyObject_Call(__pyx_t_14, __pyx_tuple__641, NULL); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 882, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_15);
__Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
__Pyx_XGOTREF(__pyx_v_4lxml_5etree__RE_PI_HREF);
__Pyx_GIVEREF(__pyx_t_15);
__pyx_t_15 = 0;
- /* "src/lxml/xslt.pxi":882
+ /* "src/lxml/xslt.pxi":883
*
* cdef object _RE_PI_HREF = re.compile(ur'\s+href\s*=\s*(?:\'([^\']*)\'|"([^"]*)")')
* cdef object _FIND_PI_HREF = _RE_PI_HREF.findall # <<<<<<<<<<<<<<
* cdef object _REPLACE_PI_HREF = _RE_PI_HREF.sub
* cdef XPath __findStylesheetByID = None
*/
- __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree__RE_PI_HREF, __pyx_n_s_findall); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 882, __pyx_L1_error)
+ __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree__RE_PI_HREF, __pyx_n_s_findall); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 883, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_15);
__Pyx_XGOTREF(__pyx_v_4lxml_5etree__FIND_PI_HREF);
__Pyx_DECREF_SET(__pyx_v_4lxml_5etree__FIND_PI_HREF, __pyx_t_15);
__Pyx_GIVEREF(__pyx_t_15);
__pyx_t_15 = 0;
- /* "src/lxml/xslt.pxi":883
+ /* "src/lxml/xslt.pxi":884
* cdef object _RE_PI_HREF = re.compile(ur'\s+href\s*=\s*(?:\'([^\']*)\'|"([^"]*)")')
* cdef object _FIND_PI_HREF = _RE_PI_HREF.findall
* cdef object _REPLACE_PI_HREF = _RE_PI_HREF.sub # <<<<<<<<<<<<<<
* cdef XPath __findStylesheetByID = None
*
*/
- __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree__RE_PI_HREF, __pyx_n_s_sub); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 883, __pyx_L1_error)
+ __pyx_t_15 = __Pyx_PyObject_GetAttrStr(__pyx_v_4lxml_5etree__RE_PI_HREF, __pyx_n_s_sub); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 884, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_15);
__Pyx_XGOTREF(__pyx_v_4lxml_5etree__REPLACE_PI_HREF);
__Pyx_DECREF_SET(__pyx_v_4lxml_5etree__REPLACE_PI_HREF, __pyx_t_15);
__Pyx_GIVEREF(__pyx_t_15);
__pyx_t_15 = 0;
- /* "src/lxml/xslt.pxi":884
+ /* "src/lxml/xslt.pxi":885
* cdef object _FIND_PI_HREF = _RE_PI_HREF.findall
* cdef object _REPLACE_PI_HREF = _RE_PI_HREF.sub
* cdef XPath __findStylesheetByID = None # <<<<<<<<<<<<<<
__Pyx_DECREF_SET(__pyx_v_4lxml_5etree___findStylesheetByID, ((struct __pyx_obj_4lxml_5etree_XPath *)Py_None));
__Pyx_GIVEREF(Py_None);
- /* "src/lxml/xslt.pxi":895
+ /* "src/lxml/xslt.pxi":896
*
* cdef class _XSLTProcessingInstruction(PIBase):
* def parseXSL(self, parser=None): # <<<<<<<<<<<<<<
* u"""parseXSL(self, parser=None)
*
*/
- __pyx_t_15 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_26_XSLTProcessingInstruction_1parseXSL, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_XSLTProcessingInstruction_parse, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__643)); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 895, __pyx_L1_error)
+ __pyx_t_15 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_26_XSLTProcessingInstruction_1parseXSL, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_XSLTProcessingInstruction_parse, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__643)); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 896, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_15);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__XSLTProcessingInstruction->tp_dict, __pyx_n_s_parseXSL, __pyx_t_15) < 0) __PYX_ERR(4, 895, __pyx_L1_error)
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__XSLTProcessingInstruction->tp_dict, __pyx_n_s_parseXSL, __pyx_t_15) < 0) __PYX_ERR(4, 896, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__XSLTProcessingInstruction);
- /* "src/lxml/xslt.pxi":952
+ /* "src/lxml/xslt.pxi":953
* return _elementTreeFactory(result_node._doc, result_node)
*
* def set(self, key, value): # <<<<<<<<<<<<<<
* u"""set(self, key, value)
*
*/
- __pyx_t_15 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_26_XSLTProcessingInstruction_3set, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_XSLTProcessingInstruction_set, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__645)); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 952, __pyx_L1_error)
+ __pyx_t_15 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_26_XSLTProcessingInstruction_3set, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_XSLTProcessingInstruction_set, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__645)); if (unlikely(!__pyx_t_15)) __PYX_ERR(4, 953, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_15);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__XSLTProcessingInstruction->tp_dict, __pyx_n_s_set, __pyx_t_15) < 0) __PYX_ERR(4, 952, __pyx_L1_error)
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__XSLTProcessingInstruction->tp_dict, __pyx_n_s_set, __pyx_t_15) < 0) __PYX_ERR(4, 953, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__XSLTProcessingInstruction);
__Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_XSLTExtension);
- /* "lxml/etree.pyx":3625
+ /* "lxml/etree.pyx":3628
* self._error_log = _ErrorLog()
*
* def validate(self, etree): # <<<<<<<<<<<<<<
* u"""validate(self, etree)
*
*/
- __pyx_t_15 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_10_Validator_3validate, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Validator_validate, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__653)); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 3625, __pyx_L1_error)
+ __pyx_t_15 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_10_Validator_3validate, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Validator_validate, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__653)); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 3628, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_15);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Validator->tp_dict, __pyx_n_s_validate, __pyx_t_15) < 0) __PYX_ERR(0, 3625, __pyx_L1_error)
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Validator->tp_dict, __pyx_n_s_validate, __pyx_t_15) < 0) __PYX_ERR(0, 3628, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Validator);
- /* "lxml/etree.pyx":3634
+ /* "lxml/etree.pyx":3637
* return self(etree)
*
* def assertValid(self, etree): # <<<<<<<<<<<<<<
* u"""assertValid(self, etree)
*
*/
- __pyx_t_15 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_10_Validator_5assertValid, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Validator_assertValid, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__655)); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 3634, __pyx_L1_error)
+ __pyx_t_15 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_10_Validator_5assertValid, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Validator_assertValid, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__655)); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 3637, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_15);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Validator->tp_dict, __pyx_n_s_assertValid, __pyx_t_15) < 0) __PYX_ERR(0, 3634, __pyx_L1_error)
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Validator->tp_dict, __pyx_n_s_assertValid, __pyx_t_15) < 0) __PYX_ERR(0, 3637, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Validator);
- /* "lxml/etree.pyx":3644
+ /* "lxml/etree.pyx":3647
* self._error_log)
*
* def assert_(self, etree): # <<<<<<<<<<<<<<
* u"""assert_(self, etree)
*
*/
- __pyx_t_15 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_10_Validator_7assert_, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Validator_assert, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__657)); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 3644, __pyx_L1_error)
+ __pyx_t_15 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_10_Validator_7assert_, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Validator_assert, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__657)); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 3647, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_15);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Validator->tp_dict, __pyx_n_s_assert, __pyx_t_15) < 0) __PYX_ERR(0, 3644, __pyx_L1_error)
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Validator->tp_dict, __pyx_n_s_assert, __pyx_t_15) < 0) __PYX_ERR(0, 3647, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Validator);
- /* "lxml/etree.pyx":3653
+ /* "lxml/etree.pyx":3656
* u"Document does not comply with schema")
*
* cpdef _append_log_message(self, int domain, int type, int level, int line, # <<<<<<<<<<<<<<
* message, filename):
* self._error_log._receiveGeneric(domain, type, level, line, message,
*/
- __pyx_t_15 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_10_Validator_9_append_log_message, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Validator__append_log_message, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__659)); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 3653, __pyx_L1_error)
+ __pyx_t_15 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_10_Validator_9_append_log_message, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Validator__append_log_message, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__659)); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 3656, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_15);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Validator->tp_dict, __pyx_n_s_append_log_message, __pyx_t_15) < 0) __PYX_ERR(0, 3653, __pyx_L1_error)
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Validator->tp_dict, __pyx_n_s_append_log_message, __pyx_t_15) < 0) __PYX_ERR(0, 3656, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Validator);
- /* "lxml/etree.pyx":3658
+ /* "lxml/etree.pyx":3661
* filename)
*
* cpdef _clear_error_log(self): # <<<<<<<<<<<<<<
* self._error_log.clear()
*
*/
- __pyx_t_15 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_10_Validator_11_clear_error_log, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Validator__clear_error_log, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__661)); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 3658, __pyx_L1_error)
+ __pyx_t_15 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_10_Validator_11_clear_error_log, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_Validator__clear_error_log, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__661)); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 3661, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_15);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Validator->tp_dict, __pyx_n_s_clear_error_log, __pyx_t_15) < 0) __PYX_ERR(0, 3658, __pyx_L1_error)
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__Validator->tp_dict, __pyx_n_s_clear_error_log, __pyx_t_15) < 0) __PYX_ERR(0, 3661, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__Validator);
__pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ImportError);
if (__pyx_t_6) {
__Pyx_AddTraceback("lxml.etree", __pyx_clineno, __pyx_lineno, __pyx_filename);
- if (__Pyx_GetException(&__pyx_t_15, &__pyx_t_14, &__pyx_t_1) < 0) __PYX_ERR(21, 7, __pyx_L32_except_error)
+ if (__Pyx_GetException(&__pyx_t_15, &__pyx_t_14, &__pyx_t_2) < 0) __PYX_ERR(21, 7, __pyx_L32_except_error)
__Pyx_GOTREF(__pyx_t_15);
__Pyx_GOTREF(__pyx_t_14);
- __Pyx_GOTREF(__pyx_t_1);
+ __Pyx_GOTREF(__pyx_t_2);
/* "src/lxml/relaxng.pxi":8
* import rnc2rng as _rnc2rng
__Pyx_GIVEREF(Py_None);
__Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0;
__Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0;
- __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
goto __pyx_L31_exception_handled;
}
goto __pyx_L32_except_error;
* """Parse a RelaxNG schema in compact syntax from a text string
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7RelaxNG_9from_rnc_string, __Pyx_CYFUNCTION_CLASSMETHOD | __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_RelaxNG_from_rnc_string, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__675)); if (unlikely(!__pyx_t_1)) __PYX_ERR(21, 153, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_RelaxNG->tp_dict, __pyx_n_s_from_rnc_string, __pyx_t_1) < 0) __PYX_ERR(21, 153, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_7RelaxNG_9from_rnc_string, __Pyx_CYFUNCTION_CLASSMETHOD | __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_RelaxNG_from_rnc_string, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__675)); if (unlikely(!__pyx_t_2)) __PYX_ERR(21, 153, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_RelaxNG->tp_dict, __pyx_n_s_from_rnc_string, __pyx_t_2) < 0) __PYX_ERR(21, 153, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_RelaxNG);
/* "src/lxml/relaxng.pxi":152
* def from_rnc_string(cls, src, base_url=None):
* """Parse a RelaxNG schema in compact syntax from a text string
*/
- __Pyx_GetNameInClass(__pyx_t_1, (PyObject *)__pyx_ptype_4lxml_5etree_RelaxNG, __pyx_n_s_from_rnc_string); if (unlikely(!__pyx_t_1)) __PYX_ERR(21, 153, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- __pyx_t_14 = __Pyx_Method_ClassMethod(__pyx_t_1); if (unlikely(!__pyx_t_14)) __PYX_ERR(21, 152, __pyx_L1_error)
+ __Pyx_GetNameInClass(__pyx_t_2, (PyObject *)__pyx_ptype_4lxml_5etree_RelaxNG, __pyx_n_s_from_rnc_string); if (unlikely(!__pyx_t_2)) __PYX_ERR(21, 153, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ __pyx_t_14 = __Pyx_Method_ClassMethod(__pyx_t_2); if (unlikely(!__pyx_t_14)) __PYX_ERR(21, 152, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_14);
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree_RelaxNG->tp_dict, __pyx_n_s_from_rnc_string, __pyx_t_14) < 0) __PYX_ERR(21, 153, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree_RelaxNG);
*/
__pyx_t_14 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_14)) __PYX_ERR(22, 23, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_14);
- __pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(22, 23, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_t_1, __pyx_n_u_xs, __pyx_kp_u_http_www_w3_org_2001_XMLSchema) < 0) __PYX_ERR(22, 23, __pyx_L1_error)
- if (PyDict_SetItem(__pyx_t_14, __pyx_n_s_namespaces, __pyx_t_1) < 0) __PYX_ERR(22, 23, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(22, 23, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem(__pyx_t_2, __pyx_n_u_xs, __pyx_kp_u_http_www_w3_org_2001_XMLSchema) < 0) __PYX_ERR(22, 23, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_14, __pyx_n_s_namespaces, __pyx_t_2) < 0) __PYX_ERR(22, 23, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
/* "src/lxml/xmlschema.pxi":21
* # XMLSchema
* u"boolean(//xs:attribute[@default or @fixed][1])",
* namespaces={u'xs': u'http://www.w3.org/2001/XMLSchema'})
*/
- __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_XPath), __pyx_tuple__676, __pyx_t_14); if (unlikely(!__pyx_t_1)) __PYX_ERR(22, 21, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
+ __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_4lxml_5etree_XPath), __pyx_tuple__676, __pyx_t_14); if (unlikely(!__pyx_t_2)) __PYX_ERR(22, 21, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0;
__Pyx_XGOTREF(((PyObject *)__pyx_v_4lxml_5etree__check_for_default_attributes));
- __Pyx_DECREF_SET(__pyx_v_4lxml_5etree__check_for_default_attributes, ((struct __pyx_obj_4lxml_5etree_XPath *)__pyx_t_1));
- __Pyx_GIVEREF(__pyx_t_1);
- __pyx_t_1 = 0;
+ __Pyx_DECREF_SET(__pyx_v_4lxml_5etree__check_for_default_attributes, ((struct __pyx_obj_4lxml_5etree_XPath *)__pyx_t_2));
+ __Pyx_GIVEREF(__pyx_t_2);
+ __pyx_t_2 = 0;
/* "src/lxml/debug.pxi":7
* """Debugging support for the memory allocation in libxml2.
* """bytes_used(self)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_9_MemDebug_1bytes_used, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MemDebug_bytes_used, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__678)); if (unlikely(!__pyx_t_1)) __PYX_ERR(25, 7, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__MemDebug->tp_dict, __pyx_n_s_bytes_used, __pyx_t_1) < 0) __PYX_ERR(25, 7, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_9_MemDebug_1bytes_used, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MemDebug_bytes_used, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__678)); if (unlikely(!__pyx_t_2)) __PYX_ERR(25, 7, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__MemDebug->tp_dict, __pyx_n_s_bytes_used, __pyx_t_2) < 0) __PYX_ERR(25, 7, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__MemDebug);
/* "src/lxml/debug.pxi":16
* """blocks_used(self)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_9_MemDebug_3blocks_used, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MemDebug_blocks_used, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__680)); if (unlikely(!__pyx_t_1)) __PYX_ERR(25, 16, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__MemDebug->tp_dict, __pyx_n_s_blocks_used, __pyx_t_1) < 0) __PYX_ERR(25, 16, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_9_MemDebug_3blocks_used, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MemDebug_blocks_used, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__680)); if (unlikely(!__pyx_t_2)) __PYX_ERR(25, 16, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__MemDebug->tp_dict, __pyx_n_s_blocks_used, __pyx_t_2) < 0) __PYX_ERR(25, 16, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__MemDebug);
/* "src/lxml/debug.pxi":25
* """dict_size(self)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_9_MemDebug_5dict_size, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MemDebug_dict_size, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__682)); if (unlikely(!__pyx_t_1)) __PYX_ERR(25, 25, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__MemDebug->tp_dict, __pyx_n_s_dict_size, __pyx_t_1) < 0) __PYX_ERR(25, 25, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_9_MemDebug_5dict_size, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MemDebug_dict_size, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__682)); if (unlikely(!__pyx_t_2)) __PYX_ERR(25, 25, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__MemDebug->tp_dict, __pyx_n_s_dict_size, __pyx_t_2) < 0) __PYX_ERR(25, 25, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__MemDebug);
/* "src/lxml/debug.pxi":36
* """dump(self, output_file=None, byte_count=None)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_9_MemDebug_7dump, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MemDebug_dump, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__684)); if (unlikely(!__pyx_t_1)) __PYX_ERR(25, 36, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__MemDebug->tp_dict, __pyx_n_s_dump, __pyx_t_1) < 0) __PYX_ERR(25, 36, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_9_MemDebug_7dump, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MemDebug_dump, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__684)); if (unlikely(!__pyx_t_2)) __PYX_ERR(25, 36, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__MemDebug->tp_dict, __pyx_n_s_dump, __pyx_t_2) < 0) __PYX_ERR(25, 36, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__MemDebug);
/* "src/lxml/debug.pxi":66
* """show(self, output_file=None, block_count=None)
*
*/
- __pyx_t_1 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_9_MemDebug_9show, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MemDebug_show, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__686)); if (unlikely(!__pyx_t_1)) __PYX_ERR(25, 66, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__MemDebug->tp_dict, __pyx_n_s_show, __pyx_t_1) < 0) __PYX_ERR(25, 66, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4lxml_5etree_9_MemDebug_9show, __Pyx_CYFUNCTION_CCLASS, __pyx_n_s_MemDebug_show, NULL, __pyx_n_s_lxml_etree, __pyx_d, ((PyObject *)__pyx_codeobj__686)); if (unlikely(!__pyx_t_2)) __PYX_ERR(25, 66, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem((PyObject *)__pyx_ptype_4lxml_5etree__MemDebug->tp_dict, __pyx_n_s_show, __pyx_t_2) < 0) __PYX_ERR(25, 66, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
PyType_Modified(__pyx_ptype_4lxml_5etree__MemDebug);
/* "src/lxml/debug.pxi":91
*
* memory_debugger = _MemDebug() # <<<<<<<<<<<<<<
*/
- __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree__MemDebug)); if (unlikely(!__pyx_t_1)) __PYX_ERR(25, 91, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_memory_debugger, __pyx_t_1) < 0) __PYX_ERR(25, 91, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_4lxml_5etree__MemDebug)); if (unlikely(!__pyx_t_2)) __PYX_ERR(25, 91, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_memory_debugger, __pyx_t_2) < 0) __PYX_ERR(25, 91, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
/* "lxml/etree.pyx":1
* # cython: binding=True # <<<<<<<<<<<<<<
* # cython: auto_pickle=False
* # cython: language_level=2
*/
- __pyx_t_1 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
- __Pyx_GOTREF(__pyx_t_1);
- if (PyDict_SetItem(__pyx_t_1, __pyx_kp_u_XML_line_3208, __pyx_kp_u_XML_text_parser_None_base_url_No) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
- if (PyDict_SetItem(__pyx_t_1, __pyx_kp_u_FunctionNamespace_line_207, __pyx_kp_u_FunctionNamespace_ns_uri_Retriev) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
- if (PyDict_SetItem(__pyx_d, __pyx_n_s_test_2, __pyx_t_1) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
- __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
+ __pyx_t_2 = __Pyx_PyDict_NewPresized(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1, __pyx_L1_error)
+ __Pyx_GOTREF(__pyx_t_2);
+ if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_XML_line_3211, __pyx_kp_u_XML_text_parser_None_base_url_No) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_t_2, __pyx_kp_u_FunctionNamespace_line_207, __pyx_kp_u_FunctionNamespace_ns_uri_Retriev) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
+ if (PyDict_SetItem(__pyx_d, __pyx_n_s_test_2, __pyx_t_2) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
+ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
/*--- Wrapped vars code ---*/
- if (__Pyx_RegisterCleanup()) __PYX_ERR(0, 1, __pyx_L1_error);
+ if (__Pyx_RegisterCleanup()) __PYX_ERR(0, 1, __pyx_L1_error)
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
Py_CLEAR(__pyx_v_4lxml_5etree__DEFAULT_NAMESPACE_PREFIXES);
Py_CLEAR(__pyx_v_4lxml_5etree__FILENAME_ENCODING);
Py_CLEAR(__pyx_v_4lxml_5etree_IMMUTABLE_EMPTY_MAPPING);
+ Py_CLEAR(__pyx_v_4lxml_5etree_MutableMapping);
Py_CLEAR(__pyx_v_4lxml_5etree_ITER_EMPTY);
Py_CLEAR(__pyx_v_4lxml_5etree_islice);
Py_CLEAR(__pyx_v_4lxml_5etree_partial);
}
PyErr_SetObject(type, value);
if (tb) {
-#if CYTHON_COMPILING_IN_PYPY
- PyObject *tmp_type, *tmp_value, *tmp_tb;
- PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb);
- Py_INCREF(tb);
- PyErr_Restore(tmp_type, tmp_value, tb);
- Py_XDECREF(tmp_tb);
-#else
+#if CYTHON_FAST_THREAD_STATE
PyThreadState *tstate = __Pyx_PyThreadState_Current;
PyObject* tmp_tb = tstate->curexc_traceback;
if (tb != tmp_tb) {
tstate->curexc_traceback = tb;
Py_XDECREF(tmp_tb);
}
+#else
+ PyObject *tmp_type, *tmp_value, *tmp_tb;
+ PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb);
+ Py_INCREF(tb);
+ PyErr_Restore(tmp_type, tmp_value, tb);
+ Py_XDECREF(tmp_tb);
#endif
}
bad:
Py_DECREF(retval);
__Pyx_RaiseTooManyValuesError(expected);
return -1;
- } else {
- return __Pyx_IterFinish();
}
- return 0;
+ return __Pyx_IterFinish();
}
/* decode_c_bytes */
return __Pyx_PyFunction_FastCall(func, NULL, 0);
}
#endif
-#ifdef __Pyx_CyFunction_USED
+#if defined(__Pyx_CyFunction_USED) && defined(NDEBUG)
if (likely(PyCFunction_Check(func) || __Pyx_CyFunction_Check(func)))
#else
if (likely(PyCFunction_Check(func)))
PyGILState_STATE state;
if (nogil)
state = PyGILState_Ensure();
-#ifdef _MSC_VER
- else state = (PyGILState_STATE)-1;
-#endif
+ else state = (PyGILState_STATE)0;
#endif
__Pyx_PyThreadState_assign
__Pyx_ErrFetch(&old_exc, &old_val, &old_tb);
padding = PyUnicode_FromOrdinal(padding_char);
if (likely(padding) && uoffset > prepend_sign + 1) {
PyObject *tmp;
- PyObject *repeat = PyInt_FromSize_t(uoffset - prepend_sign);
+ PyObject *repeat = PyInt_FromSsize_t(uoffset - prepend_sign);
if (unlikely(!repeat)) goto done_or_error;
tmp = PyNumber_Multiply(padding, repeat);
Py_DECREF(repeat);
/* ObjectGetItem */
#if CYTHON_USE_TYPE_SLOTS
static PyObject *__Pyx_PyObject_GetIndex(PyObject *obj, PyObject* index) {
- PyObject *runerr;
+ PyObject *runerr = NULL;
Py_ssize_t key_value;
PySequenceMethods *m = Py_TYPE(obj)->tp_as_sequence;
if (unlikely(!(m && m->sq_item))) {
PyObject* next;
iternextfunc iternext = Py_TYPE(iterator)->tp_iternext;
if (likely(iternext)) {
-#if CYTHON_USE_TYPE_SLOTS
+#if CYTHON_USE_TYPE_SLOTS || CYTHON_COMPILING_IN_PYPY
next = iternext(iterator);
if (likely(next))
return next;
- #if PY_VERSION_HEX >= 0x02070000
+ #if PY_VERSION_HEX >= 0x02070000 && CYTHON_COMPILING_IN_CPYTHON
if (unlikely(iternext == &_PyObject_NextNotImplemented))
return NULL;
#endif
if (flag == METH_O) {
return (*(cfunc->func))(self, arg);
} else if (PY_VERSION_HEX >= 0x030600B1 && flag == METH_FASTCALL) {
- if (PY_VERSION_HEX >= 0x030700A0) {
+ #if PY_VERSION_HEX >= 0x030700A0
return (*(__Pyx_PyCFunctionFast)(void*)(PyCFunction)cfunc->func)(self, &arg, 1);
- } else {
+ #else
return (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)cfunc->func)(self, &arg, 1, NULL);
- }
+ #endif
} else if (PY_VERSION_HEX >= 0x030700A0 && flag == (METH_FASTCALL | METH_KEYWORDS)) {
return (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)cfunc->func)(self, &arg, 1, NULL);
}
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0,
#endif
-#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+#if PY_VERSION_HEX >= 0x030C0000
+ 0,
+#endif
+#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0,
#endif
};
self = PyTuple_GetItem(args, 0);
if (unlikely(!self)) {
Py_DECREF(new_args);
+#if PY_MAJOR_VERSION > 2
PyErr_Format(PyExc_TypeError,
"unbound method %.200S() needs an argument",
cyfunc->func_qualname);
+#else
+ PyErr_SetString(PyExc_TypeError,
+ "unbound method needs an argument");
+#endif
return NULL;
}
result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw);
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0,
#endif
-#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+#if PY_VERSION_HEX >= 0x030C0000
+ 0,
+#endif
+#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0,
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0,
#endif
-#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+#if PY_VERSION_HEX >= 0x030C0000
+ 0,
+#endif
+#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0,
#endif
};
#if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
0,
#endif
-#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
+#if PY_VERSION_HEX >= 0x030C0000
+ 0,
+#endif
+#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
0,
#endif
};
} else
#endif
#if CYTHON_COMPILING_IN_CPYTHON && defined(CO_ITERABLE_COROUTINE)
+#if PY_VERSION_HEX >= 0x030C00A6
+ if (PyGen_CheckExact(obj) && (PyGen_GetCode((PyGenObject*)obj)->co_flags & CO_ITERABLE_COROUTINE)) {
+#else
if (PyGen_CheckExact(obj) && ((PyGenObject*)obj)->gi_code && ((PyCodeObject *)((PyGenObject*)obj)->gi_code)->co_flags & CO_ITERABLE_COROUTINE) {
+#endif
return __Pyx_NewRef(obj);
} else
#endif
}
/* CoroutineYieldFrom */
-static PyObject* __Pyx__Coroutine_Yield_From_Generic(__pyx_CoroutineObject *gen, PyObject *source) {
+ static PyObject* __Pyx__Coroutine_Yield_From_Generic(__pyx_CoroutineObject *gen, PyObject *source) {
PyObject *retval;
PyObject *source_gen = __Pyx__Coroutine_GetAwaitableIter(source);
if (unlikely(!source_gen)) {
}
/* py_dict_values */
-static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d) {
+ static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d) {
if (PY_MAJOR_VERSION >= 3)
return __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyDict_Type_values, d);
else
}
/* dict_getitem_default */
-static PyObject* __Pyx_PyDict_GetItemDefault(PyObject* d, PyObject* key, PyObject* default_value) {
+ static PyObject* __Pyx_PyDict_GetItemDefault(PyObject* d, PyObject* key, PyObject* default_value) {
PyObject* value;
#if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
value = PyDict_GetItemWithError(d, key);
}
/* MergeKeywords */
-static int __Pyx_MergeKeywords(PyObject *kwdict, PyObject *source_mapping) {
+ static int __Pyx_MergeKeywords(PyObject *kwdict, PyObject *source_mapping) {
PyObject *iter, *key = NULL, *value = NULL;
int source_is_dict, result;
Py_ssize_t orig_length, ppos = 0;
}
/* set_iter */
-static CYTHON_INLINE PyObject* __Pyx_set_iterator(PyObject* iterable, int is_set,
+ static CYTHON_INLINE PyObject* __Pyx_set_iterator(PyObject* iterable, int is_set,
Py_ssize_t* p_orig_length, int* p_source_is_set) {
#if CYTHON_COMPILING_IN_CPYTHON
is_set = is_set || likely(PySet_CheckExact(iterable) || PyFrozenSet_CheckExact(iterable));
}
/* CIntToPyUnicode */
-static CYTHON_INLINE PyObject* __Pyx_PyUnicode_From_xmlXPathObjectType(xmlXPathObjectType value, Py_ssize_t width, char padding_char, char format_char) {
+ static CYTHON_INLINE PyObject* __Pyx_PyUnicode_From_xmlXPathObjectType(xmlXPathObjectType value, Py_ssize_t width, char padding_char, char format_char) {
char digits[sizeof(xmlXPathObjectType)*3+2];
char *dpos, *end = digits + sizeof(xmlXPathObjectType)*3+2;
const char *hex_digits = DIGITS_HEX;
}
/* CallNextTpTraverse */
-static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc v, void *a, traverseproc current_tp_traverse) {
+ static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc v, void *a, traverseproc current_tp_traverse) {
PyTypeObject* type = Py_TYPE(obj);
while (type && type->tp_traverse != current_tp_traverse)
type = type->tp_base;
}
/* CallNextTpClear */
-static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_clear) {
+ static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_clear) {
PyTypeObject* type = Py_TYPE(obj);
while (type && type->tp_clear != current_tp_clear)
type = type->tp_base;
}
/* PyObject_GenericGetAttr */
-#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
+ #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name) {
if (unlikely(Py_TYPE(obj)->tp_dictoffset)) {
return PyObject_GenericGetAttr(obj, attr_name);
#endif
/* SetVTable */
-static int __Pyx_SetVtable(PyObject *dict, void *vtable) {
+ static int __Pyx_SetVtable(PyObject *dict, void *vtable) {
#if PY_VERSION_HEX >= 0x02070000
PyObject *ob = PyCapsule_New(vtable, 0, 0);
#else
}
/* TypeImport */
-#ifndef __PYX_HAVE_RT_ImportType
-#define __PYX_HAVE_RT_ImportType
-static PyTypeObject *__Pyx_ImportType(PyObject *module, const char *module_name, const char *class_name,
- size_t size, enum __Pyx_ImportType_CheckSize check_size)
+ #ifndef __PYX_HAVE_RT_ImportType_0_29_36
+#define __PYX_HAVE_RT_ImportType_0_29_36
+static PyTypeObject *__Pyx_ImportType_0_29_36(PyObject *module, const char *module_name, const char *class_name,
+ size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_0_29_36 check_size)
{
PyObject *result = 0;
char warning[200];
Py_ssize_t basicsize;
+ Py_ssize_t itemsize;
#ifdef Py_LIMITED_API
PyObject *py_basicsize;
+ PyObject *py_itemsize;
#endif
result = PyObject_GetAttrString(module, class_name);
if (!result)
}
#ifndef Py_LIMITED_API
basicsize = ((PyTypeObject *)result)->tp_basicsize;
+ itemsize = ((PyTypeObject *)result)->tp_itemsize;
#else
py_basicsize = PyObject_GetAttrString(result, "__basicsize__");
if (!py_basicsize)
py_basicsize = 0;
if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred())
goto bad;
+ py_itemsize = PyObject_GetAttrString(result, "__itemsize__");
+ if (!py_itemsize)
+ goto bad;
+ itemsize = PyLong_AsSsize_t(py_itemsize);
+ Py_DECREF(py_itemsize);
+ py_itemsize = 0;
+ if (itemsize == (Py_ssize_t)-1 && PyErr_Occurred())
+ goto bad;
#endif
- if ((size_t)basicsize < size) {
+ if (itemsize) {
+ if (size % alignment) {
+ alignment = size % alignment;
+ }
+ if (itemsize < (Py_ssize_t)alignment)
+ itemsize = (Py_ssize_t)alignment;
+ }
+ if ((size_t)(basicsize + itemsize) < size) {
PyErr_Format(PyExc_ValueError,
"%.200s.%.200s size changed, may indicate binary incompatibility. "
"Expected %zd from C header, got %zd from PyObject",
module_name, class_name, size, basicsize);
goto bad;
}
- if (check_size == __Pyx_ImportType_CheckSize_Error && (size_t)basicsize != size) {
+ if (check_size == __Pyx_ImportType_CheckSize_Error_0_29_36 && (size_t)basicsize != size) {
PyErr_Format(PyExc_ValueError,
"%.200s.%.200s size changed, may indicate binary incompatibility. "
"Expected %zd from C header, got %zd from PyObject",
module_name, class_name, size, basicsize);
goto bad;
}
- else if (check_size == __Pyx_ImportType_CheckSize_Warn && (size_t)basicsize > size) {
+ else if (check_size == __Pyx_ImportType_CheckSize_Warn_0_29_36 && (size_t)basicsize > size) {
PyOS_snprintf(warning, sizeof(warning),
"%s.%s size changed, may indicate binary incompatibility. "
"Expected %zd from C header, got %zd from PyObject",
#endif
/* CalculateMetaclass */
-static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) {
+ static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) {
Py_ssize_t i, nbases = PyTuple_GET_SIZE(bases);
for (i=0; i < nbases; i++) {
PyTypeObject *tmptype;
}
/* Py3ClassCreate */
-static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name,
+ static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name,
PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc) {
PyObject *ns;
if (metaclass) {
}
/* PatchInspect */
-static PyObject* __Pyx_patch_inspect(PyObject* module) {
+ static PyObject* __Pyx_patch_inspect(PyObject* module) {
#if defined(__Pyx_Generator_USED) && (!defined(CYTHON_PATCH_INSPECT) || CYTHON_PATCH_INSPECT)
static int inspect_patched = 0;
if (unlikely((!inspect_patched) && module)) {
}
/* GetNameInClass */
-static PyObject *__Pyx_GetGlobalNameAfterAttributeLookup(PyObject *name) {
+ static PyObject *__Pyx_GetGlobalNameAfterAttributeLookup(PyObject *name) {
PyObject *result;
__Pyx_PyThreadState_declare
__Pyx_PyThreadState_assign
}
/* ClassMethod */
-static PyObject* __Pyx_Method_ClassMethod(PyObject *method) {
+ static PyObject* __Pyx_Method_ClassMethod(PyObject *method) {
#if CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM <= 0x05080000
if (PyObject_TypeCheck(method, &PyWrapperDescr_Type)) {
return PyClassMethod_New(method);
}
/* RegisterModuleCleanup */
-#if PY_MAJOR_VERSION < 3 || CYTHON_COMPILING_IN_PYPY
+ #if PY_MAJOR_VERSION < 3 || CYTHON_COMPILING_IN_PYPY
static PyObject* __pyx_module_cleanup_atexit(PyObject *module, CYTHON_UNUSED PyObject *unused) {
__pyx_module_cleanup(module);
Py_INCREF(Py_None); return Py_None;
#endif
/* CLineInTraceback */
-#ifndef CYTHON_CLINE_IN_TRACEBACK
-static int __Pyx_CLineForTraceback(CYTHON_NCP_UNUSED PyThreadState *tstate, int c_line) {
+ #ifndef CYTHON_CLINE_IN_TRACEBACK
+static int __Pyx_CLineForTraceback(CYTHON_UNUSED PyThreadState *tstate, int c_line) {
PyObject *use_cline;
PyObject *ptype, *pvalue, *ptraceback;
#if CYTHON_COMPILING_IN_CPYTHON
#endif
/* CodeObjectCache */
-static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
+ static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
int start = 0, mid = 0, end = count - 1;
if (end >= 0 && code_line > entries[end].code_line) {
return count;
}
/* AddTraceback */
-#include "compile.h"
+ #include "compile.h"
#include "frameobject.h"
#include "traceback.h"
#if PY_VERSION_HEX >= 0x030b00a6
}
/* CIntFromPyVerify */
-#define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
+ #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
__PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
#define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
__PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
}
/* Print */
-#if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION < 3
+ #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION < 3
static PyObject *__Pyx_GetStdout(void) {
PyObject *f = PySys_GetObject((char *)"stdout");
if (!f) {
#endif
/* CIntFromPy */
-static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
+ static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
break;
}
#endif
-#if CYTHON_COMPILING_IN_CPYTHON
+#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
if (unlikely(Py_SIZE(x) < 0)) {
goto raise_neg_overflow;
}
}
/* PrintOne */
-#if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION < 3
+ #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION < 3
static int __Pyx_PrintOne(PyObject* f, PyObject *o) {
if (!f) {
if (!(f = __Pyx_GetStdout()))
#endif
/* CIntToPy */
-static CYTHON_INLINE PyObject* __Pyx_PyInt_From_xmlParserErrors(xmlParserErrors value) {
+ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_xmlParserErrors(xmlParserErrors value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
}
/* CIntToPy */
-static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
+ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
}
/* CIntFromPy */
-static CYTHON_INLINE size_t __Pyx_PyInt_As_size_t(PyObject *x) {
+ static CYTHON_INLINE size_t __Pyx_PyInt_As_size_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
break;
}
#endif
-#if CYTHON_COMPILING_IN_CPYTHON
+#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
if (unlikely(Py_SIZE(x) < 0)) {
goto raise_neg_overflow;
}
}
/* CIntFromPy */
-static CYTHON_INLINE unsigned int __Pyx_PyInt_As_unsigned_int(PyObject *x) {
+ static CYTHON_INLINE unsigned int __Pyx_PyInt_As_unsigned_int(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
break;
}
#endif
-#if CYTHON_COMPILING_IN_CPYTHON
+#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
if (unlikely(Py_SIZE(x) < 0)) {
goto raise_neg_overflow;
}
}
/* CIntFromPy */
-static CYTHON_INLINE signed char __Pyx_PyInt_As_signed__char(PyObject *x) {
+ static CYTHON_INLINE signed char __Pyx_PyInt_As_signed__char(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
break;
}
#endif
-#if CYTHON_COMPILING_IN_CPYTHON
+#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
if (unlikely(Py_SIZE(x) < 0)) {
goto raise_neg_overflow;
}
}
/* CIntToPy */
-static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) {
+ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
}
/* CIntFromPy */
-static CYTHON_INLINE unsigned short __Pyx_PyInt_As_unsigned_short(PyObject *x) {
+ static CYTHON_INLINE unsigned short __Pyx_PyInt_As_unsigned_short(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
break;
}
#endif
-#if CYTHON_COMPILING_IN_CPYTHON
+#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
if (unlikely(Py_SIZE(x) < 0)) {
goto raise_neg_overflow;
}
}
/* CIntToPy */
-static CYTHON_INLINE PyObject* __Pyx_PyInt_From_char(char value) {
+ static CYTHON_INLINE PyObject* __Pyx_PyInt_From_char(char value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
}
/* CIntFromPy */
-static CYTHON_INLINE xmlChar __Pyx_PyInt_As_xmlChar(PyObject *x) {
+ static CYTHON_INLINE xmlChar __Pyx_PyInt_As_xmlChar(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
break;
}
#endif
-#if CYTHON_COMPILING_IN_CPYTHON
+#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
if (unlikely(Py_SIZE(x) < 0)) {
goto raise_neg_overflow;
}
}
/* BytesContains */
-static CYTHON_INLINE int __Pyx_BytesContains(PyObject* bytes, char character) {
+ static CYTHON_INLINE int __Pyx_BytesContains(PyObject* bytes, char character) {
const Py_ssize_t length = PyBytes_GET_SIZE(bytes);
char* char_start = PyBytes_AS_STRING(bytes);
return memchr(char_start, (unsigned char)character, (size_t)length) != NULL;
}
/* CIntFromPy */
-static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
+ static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
break;
}
#endif
-#if CYTHON_COMPILING_IN_CPYTHON
+#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
if (unlikely(Py_SIZE(x) < 0)) {
goto raise_neg_overflow;
}
}
/* CheckBinaryVersion */
-static int __Pyx_check_binary_version(void) {
+ static int __Pyx_check_binary_version(void) {
char ctversion[5];
int same=1, i, found_dot;
const char* rt_from_call = Py_GetVersion();
}
/* FunctionExport */
-static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig) {
+ static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig) {
PyObject *d = 0;
PyObject *cobj = 0;
union {
}
/* InitStrings */
-static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
+ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
while (t->p) {
#if PY_MAJOR_VERSION < 3
if (t->is_unicode) {