/* Generated code for Python source for module 'bs4.builder._html5lib' * created by Nuitka version 0.6.0 * * This code is in part copyright 2018 Kay Hayen. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "nuitka/prelude.h" #include "__helpers.h" /* The _module_bs4$builder$_html5lib is a Python object pointer of module type. */ /* Note: For full compatibility with CPython, every module variable access * needs to go through it except for cases where the module cannot possibly * have changed in the mean time. */ PyObject *module_bs4$builder$_html5lib; PyDictObject *moduledict_bs4$builder$_html5lib; /* The module constants used, if any. */ static PyObject *const_str_digest_92a3e7b3a53e3d0b5366429af3829c48; extern PyObject *const_str_plain_warn; extern PyObject *const_str_plain_Node; static PyObject *const_str_digest_9ae5a8c91b41a0fa8cde6465e581aefb; static PyObject *const_str_digest_1c92e6858a12d2f8936c12399f6d4891; extern PyObject *const_str_plain_index; extern PyObject *const_str_plain_metaclass; extern PyObject *const_str_plain_Element; extern PyObject *const_str_plain_tag; extern PyObject *const_str_plain_parse_only; extern PyObject *const_str_digest_9b2a32a10f34854554acce4f0a1e5df6; static PyObject *const_tuple_str_plain__base_tuple; extern PyObject *const_str_plain_html5lib; extern PyObject *const_str_plain___name__; static PyObject *const_str_digest_0eeb5c19ca174d491af58d63935cfc9f; extern PyObject *const_str_plain_removeChild; static PyObject *const_tuple_str_plain_NamespacedAttribute_str_plain_whitespace_re_tuple; static PyObject *const_str_plain_last_childs_last_descendant; extern PyObject *const_tuple_str_plain___class___tuple; extern PyObject *const_str_plain_sorted; extern PyObject *const_tuple_false_tuple; static PyObject *const_str_plain_TextNode; extern PyObject *const_str_angle_metaclass; extern PyObject *const_str_plain_elementClass; static PyObject *const_str_digest_972458ab3ef1c2a273f97970521ec788; static PyObject *const_tuple_700016710dac82f075bd666028c7e8fb_tuple; extern PyObject *const_str_plain_markup; extern PyObject *const_str_plain___file__; extern PyObject *const_str_plain_object; static PyObject *const_str_digest_215e68bc120bcaa7fcea912f0f8f33cb; extern PyObject *const_tuple_str_plain_self_str_plain_namespaceHTMLElements_tuple; static PyObject *const_list_str_plain_HTML5TreeBuilder_list; extern PyObject *const_str_plain_group; static PyObject *const_str_digest_d789b4f90cabf78a705c48c32c18c5c2; extern PyObject *const_str_plain_tree; extern PyObject *const_str_digest_d88ce7ae55f41923b25b890fe28acd5a; extern PyObject *const_str_digest_d28f76e6b15ce9150f396f12113eff02; static PyObject *const_str_digest_33a811bbdb354554771a90321b6034ae; extern PyObject *const_str_plain_getAttributes; extern PyObject *const_str_plain__last_descendant; extern PyObject *const_tuple_false_false_tuple; extern PyObject *const_str_plain_getFragment; extern PyObject *const_str_plain_items; extern PyObject *const_int_neg_1; extern PyObject *const_str_plain_TreeBuilder; static PyObject *const_tuple_d32adfda5c435f6b6b593ce30f8a8022_tuple; extern PyObject *const_str_plain_rv; extern PyObject *const_str_plain_m; extern PyObject *const_str_plain_NavigableString; extern PyObject *const_str_chr_42; extern PyObject *const_str_plain_fragment; static PyObject *const_str_digest_4dcc2c5696414a134841af261deae0e4; extern PyObject *const_str_digest_a694a1497725bd5d49805e1c282892b9; extern PyObject *const_str_plain_doctype; extern PyObject *const_str_plain_None; static PyObject *const_str_plain_new_parent; extern PyObject *const_str_plain_next_sibling; extern PyObject *const_str_plain_insertText; static PyObject *const_tuple_b3db4b73ed090acb4fa33bde2be52234_tuple; extern PyObject *const_tuple_str_plain_BeautifulSoup_tuple; extern PyObject *const_str_plain_replace_with; extern PyObject *const_str_plain_builder; extern PyObject *const_str_plain_next_element; extern PyObject *const_str_plain_HTML_5; extern PyObject *const_str_plain_join; static PyObject *const_tuple_a3016637c945f843b5152e2025f5ec1b_tuple; extern PyObject *const_str_digest_c94e49aa6b31218158c33258bda42655; static PyObject *const_tuple_39e3ee08801dc1158ed540a809fabf49_tuple; static PyObject *const_str_plain_first_child; static PyObject *const_str_digest_2884c8220b027e354fccb69f51574561; extern PyObject *const_tuple_int_pos_1_tuple; static PyObject *const_str_plain_lastindex; extern PyObject *const_str_plain_children; extern PyObject *const_str_plain_re; extern PyObject *const_str_plain___doc__; static PyObject *const_str_digest_c074204eb66b66b4a674100bec85b541; extern PyObject *const_str_plain___debug__; extern PyObject *const_str_plain_publicId; extern PyObject *const_str_plain___orig_bases__; extern PyObject *const_str_plain_new_name; static PyObject *const_str_digest_b8f5ff66404d2dfd3fa72280ec60871e; static PyObject *const_str_digest_4deb5980ac1d6b98c66cc7ed60f6a14d; extern PyObject *const_str_digest_34507a802131c06d84b0df3091b690ab; extern PyObject *const_str_plain_attrs; extern PyObject *const_str_plain_NamespacedAttribute; extern PyObject *const_str_plain_features; extern PyObject *const_str_plain_test_fragment_to_document; static PyObject *const_str_digest_9fd92504c714f83e298be124b3bb9bc8; extern PyObject *const_str_plain_data; extern PyObject *const_tuple_str_plain_namespaces_str_plain_prefixes_tuple; extern PyObject *const_str_plain_extract; static PyObject *const_str_digest_ce251a47e2df78bd1d1a9359296a3d52; extern PyObject *const_str_plain___len__; extern PyObject *const_str_plain_warnings; static PyObject *const_tuple_34b457a5a48fdb52f8508d1ddd95f7be_tuple; extern PyObject *const_str_plain_str; static PyObject *const_str_digest_0c53e5483c4d4c11f0cacd9a782c8984; extern PyObject *const_str_plain_most_recent_element; extern PyObject *const_str_plain_previous_sibling; extern PyObject *const_str_plain___qualname__; static PyObject *const_tuple_str_digest_d00eeea15e46a3e8fb3ff0ec6400a01f_tuple; extern PyObject *const_tuple_int_pos_4_tuple; extern PyObject *const_str_plain_tokenizer; static PyObject *const_str_digest_1a8f76cbc7d0520dda9338e2b9c79cae; extern PyObject *const_str_plain_insertBefore; extern PyObject *const_str_plain_node; static PyObject *const_str_digest_6b9d894189c1f74b8bf90492e700db0d; static PyObject *const_tuple_2e607c546f7f3eb2e0c49e1971e98cc8_tuple; static PyObject *const_tuple_false_true_tuple; static PyObject *const_str_digest_e58ef089254db86af5077c09d80cd276; extern PyObject *const_tuple_str_plain_self_tuple; extern PyObject *const_str_plain_value; extern PyObject *const_str_plain_insert; extern PyObject *const_str_plain__most_recent_element; static PyObject *const_str_digest_23b16362062aa5bd60242db5965601b1; extern PyObject *const_str_plain_parent; extern PyObject *const_str_plain_e; extern PyObject *const_str_plain_Doctype; extern PyObject *const_str_plain_previous_element; static PyObject *const_tuple_195bdb5b3cf1405a9395833971578673_tuple; static PyObject *const_str_digest_647bf12304a32489cc5b8b58e0535445; extern PyObject *const_str_plain_keys; static PyObject *const_tuple_str_plain_self_str_plain_element_str_plain_soup_tuple; extern PyObject *const_str_plain_nameTuple; static PyObject *const_str_plain_converted_attributes; static PyObject *const_str_plain_old_node; extern PyObject *const_str_plain_bs4; extern PyObject *const_str_plain_refNode; extern PyObject *const_str_plain_setAttributes; extern PyObject *const_str_plain_indent; extern PyObject *const_str_plain__replace_cdata_list_attribute_values; extern PyObject *const_tuple_empty; extern PyObject *const_str_space; extern PyObject *const_str_plain_append; extern PyObject *const_str_digest_9f98288462e75229767715081c82f8e3; extern PyObject *const_str_digest_23be8245b5c2c31c44519cc2152700d7; extern PyObject *const_str_digest_3d21011b2dcbb4225ec1bdd53959a296; extern PyObject *const_str_plain_object_was_parsed; extern PyObject *const_str_plain_HTMLTreeBuilder; static PyObject *const_str_digest_2ba83d45719ab4ac14b3c6f89d0ffc2f; extern PyObject *const_str_plain_cloneNode; extern PyObject *const_str_plain_name; extern PyObject *const_str_plain_documentClass; extern PyObject *const_str_plain_systemId; extern PyObject *const_str_plain_element; extern PyObject *const_str_plain_parser; extern PyObject *const_str_plain_compile; static PyObject *const_str_plain_create_treebuilder; extern PyObject *const_str_plain_split; static PyObject *const_tuple_str_digest_9fd92504c714f83e298be124b3bb9bc8_tuple; extern PyObject *const_str_plain_match; extern PyObject *const_tuple_int_0_tuple; static PyObject *const_str_plain_new_parent_element; extern PyObject *const_str_plain_token; static PyObject *const_str_digest_40ba509333e3e5179adc318103200357; static PyObject *const_str_digest_14b0cf50585a9c7df79ebc4003576f45; static PyObject *const_str_plain_new_str; extern PyObject *const_str_plain_new_tag; extern PyObject *const_str_plain_False; extern PyObject *const_str_plain___contains__; extern PyObject *const_str_plain___getitem__; extern PyObject *const_tuple_int_pos_3_tuple; extern PyObject *const_str_plain_stream; extern PyObject *const_str_digest_dd7821ef5da0b0455a4d6eb0dd008921; extern PyObject *const_str_plain___all__; extern PyObject *const_str_plain_list; extern PyObject *const_tuple_str_plain_base_tuple; extern PyObject *const_str_plain_namespaceHTMLElements; extern PyObject *const_str_plain_PERMISSIVE; extern PyObject *const_str_plain_encoding; extern PyObject *const_str_plain_AttrList; extern PyObject *const_str_plain_soup; extern PyObject *const_str_plain_user_specified_encoding; extern PyObject *const_tuple_ec512915ca5ee576ef0510ca52a4c550_tuple; extern PyObject *const_int_0; static PyObject *const_str_plain_underlying_builder; extern PyObject *const_str_plain_cdata_list_attributes; extern PyObject *const_str_plain_NAME; static PyObject *const_tuple_30c3370003e8cf0eea7e2329bbe348b2_tuple; extern PyObject *const_str_plain_for_name_and_ids; extern PyObject *const_str_plain_getDocument; static PyObject *const_str_plain_to_append; extern PyObject *const_str_plain_hasContent; static PyObject *const_str_digest_a9f7fd277b279ff044c892e9263852ec; static PyObject *const_str_digest_84193ae9a166a09e5e91b35f20638600; extern PyObject *const_str_plain_charEncoding; extern PyObject *const_str_plain_reset; extern PyObject *const_tuple_int_pos_2_tuple; extern PyObject *const_str_plain_reparentChildren; extern PyObject *const_str_plain_getNameTuple; extern PyObject *const_str_plain_text; static PyObject *const_str_digest_40a4aa7c990c9ec58e370a66189a7cf3; extern PyObject *const_str_plain_exclude_encodings; static PyObject *const_tuple_str_plain_self_str_plain_BeautifulSoup_tuple; extern PyObject *const_tuple_str_plain_self_str_plain_name_tuple; static PyObject *const_str_plain_string_child; extern PyObject *const_str_digest_75fd71b1edada749c2ef7ac810062295; extern PyObject *const_str_plain_html; static PyObject *const_str_digest_b9d7db902b4319c890205e71f628fb1d; extern PyObject *const_tuple_str_plain_self_str_plain_fragment_tuple; static PyObject *const_str_plain_doctype_re; extern PyObject *const_str_plain_Tag; static PyObject *const_str_digest_d18613d2541bb5efb2b90c19ae2914a7; static PyObject *const_str_digest_a1c0be3342eb645828d8d08e46315363; static PyObject *const_str_digest_90742a7c87e23858f3d9b3b8e1c55b84; extern PyObject *const_str_plain_base; static PyObject *const_str_digest_ea50f9dd30855f31b690411f91516997; static PyObject *const_str_digest_6c359b437b0ff6f3c6b608ce533686ca; extern PyObject *const_tuple_5188a47cc2c53c190249f3369f2dab66_tuple; static PyObject *const_str_plain_new_parents_last_descendant; extern PyObject *const_int_pos_4; extern PyObject *const_str_plain_Comment; static PyObject *const_str_plain_HTML5TreeBuilder; static PyObject *const_tuple_a041f5f12c26f30b3795e6ba3f81c7fd_tuple; extern PyObject *const_str_plain_type; extern PyObject *const_str_plain_HTMLParser; static PyObject *const_str_digest_b9d92bb032071e093cb2773e0141ee14; extern PyObject *const_str_plain_namespace; extern PyObject *const_str_plain_insertDoctype; extern PyObject *const_str_plain_HTML; extern PyObject *const_str_plain___cached__; extern PyObject *const_str_plain_contents; extern PyObject *const_str_plain___class__; static PyObject *const_str_digest_3d5fba1e94b4958bb91ad0af4088e046; extern PyObject *const_str_digest_6f9a872a47904aea57244dbda428a451; extern PyObject *const_tuple_none_tuple; static PyObject *const_str_plain_new_html5lib; static PyObject *const_str_digest_b003ae88ab5def8fba7c4ce5e0f75bb8; extern PyObject *const_str_plain___module__; extern PyObject *const_tuple_type_object_tuple; extern PyObject *const_str_plain_namespaces; extern PyObject *const_str_plain_fragmentClass; extern PyObject *const_str_plain_prefixes; extern PyObject *const_str_plain_whitespace_re; static PyObject *const_tuple_7252b6f61126637f9436ed3da6163550_tuple; static PyObject *const_str_plain_old_element; extern PyObject *const_str_plain_doc; extern PyObject *const_str_plain_appendChild; static PyObject *const_tuple_5804a4898f3a23255e772c24e1d02805_tuple; static PyObject *const_str_plain_final_next_element; static PyObject *const_str_plain_new_parents_last_child; extern PyObject *const_int_pos_1; static PyObject *const_str_plain_new_parents_last_descendant_next_element; extern PyObject *const_str_plain_tuple; static PyObject *const_str_digest_3e9c546a8903992568d7f9f399a59063; static PyObject *const_tuple_fc4e3110933342542a2025457d749eaf_tuple; static PyObject *const_str_digest_f781ab06f4620217cc1b6f4d96b88fad; extern PyObject *const_tuple_str_plain_self_str_plain_element_tuple; extern PyObject *const_str_plain_key; static PyObject *const_str_plain_extra_kwargs; extern PyObject *const_str_newline; extern PyObject *const_str_plain_commentClass; extern PyObject *const_str_digest_8b66c83f0d5a673f5d9f47acffe24fee; static PyObject *const_tuple_str_empty_str_digest_c94e49aa6b31218158c33258bda42655_tuple; extern PyObject *const_str_plain___init__; extern PyObject *const_str_plain___prepare__; extern PyObject *const_str_plain_original_encoding; extern PyObject *const_str_digest_0e7af32cca32356d9b45a72fd6bf1257; extern PyObject *const_str_plain___setitem__; static PyObject *const_str_digest_d6d67aa9644374fbe99fd299dbd21130; extern PyObject *const_tuple_str_plain_self_str_plain_data_tuple; extern PyObject *const_int_pos_3; extern PyObject *const_str_plain_parse; extern PyObject *const_str_plain_prepare_markup; static PyObject *const_str_plain_TreeBuilderForHtml5lib; extern PyObject *const_str_plain__base; extern PyObject *const_str_digest_8f988524f287d2e609acf4ccbd01e462; extern PyObject *const_str_plain_self; static PyObject *const_str_plain_new_element; static PyObject *const_tuple_8dc437e2c1bf51bb8107c9462b9bce7c_tuple; static PyObject *const_str_digest_5921b81dfc7215fb7e2d25bca9c4c463; extern PyObject *const_str_plain_testSerializer; static PyObject *const_str_plain_treebuilder_base; static PyObject *const_str_digest_1df37cc25b68d222ca12b0b1a3870269; extern PyObject *const_str_plain_child; extern PyObject *const_str_plain_serializeElement; static PyObject *const_str_digest_159357012a9e9103f39cd3e045085792; static PyObject *const_tuple_str_digest_3d5fba1e94b4958bb91ad0af4088e046_tuple; static PyObject *const_str_digest_705811222fc5d1ae224a2513522bac8c; extern PyObject *const_int_pos_2; static PyObject *const_str_digest_140d872914655f81d5f0b35cd263c3c6; extern PyObject *const_str_plain_BeautifulSoup; extern PyObject *const_str_plain_property; static PyObject *const_str_digest_7eb4371df9e81d44b58cbfd236d2917f; extern PyObject *const_str_plain_set_up_substitutions; extern PyObject *const_str_plain_override_encoding; extern PyObject *const_str_empty; extern PyObject *const_str_plain_attributes; extern PyObject *const_str_plain_feed; extern PyObject *const_str_plain___iter__; extern PyObject *const_str_plain_new_string; extern PyObject *const_tuple_none_none_tuple; static PyObject *const_str_digest_d00eeea15e46a3e8fb3ff0ec6400a01f; static PyObject *const_str_plain_list_attr; extern PyObject *const_str_plain_document_declared_encoding; static PyObject *const_tuple_8316c34c132232c66b47c564ff8533f8_tuple; extern PyObject *const_tuple_str_plain_self_str_plain_node_tuple; static PyObject *module_filename_obj; static bool constants_created = false; static void createModuleConstants( void ) { const_str_digest_92a3e7b3a53e3d0b5366429af3829c48 = UNSTREAM_STRING( &constant_bin[ 107693 ], 19, 0 ); const_str_digest_9ae5a8c91b41a0fa8cde6465e581aefb = UNSTREAM_STRING( &constant_bin[ 107712 ], 36, 0 ); const_str_digest_1c92e6858a12d2f8936c12399f6d4891 = UNSTREAM_STRING( &constant_bin[ 107748 ], 17, 0 ); const_tuple_str_plain__base_tuple = PyTuple_New( 1 ); PyTuple_SET_ITEM( const_tuple_str_plain__base_tuple, 0, const_str_plain__base ); Py_INCREF( const_str_plain__base ); const_str_digest_0eeb5c19ca174d491af58d63935cfc9f = UNSTREAM_STRING( &constant_bin[ 107765 ], 21, 0 ); const_tuple_str_plain_NamespacedAttribute_str_plain_whitespace_re_tuple = PyTuple_New( 2 ); PyTuple_SET_ITEM( const_tuple_str_plain_NamespacedAttribute_str_plain_whitespace_re_tuple, 0, const_str_plain_NamespacedAttribute ); Py_INCREF( const_str_plain_NamespacedAttribute ); PyTuple_SET_ITEM( const_tuple_str_plain_NamespacedAttribute_str_plain_whitespace_re_tuple, 1, const_str_plain_whitespace_re ); Py_INCREF( const_str_plain_whitespace_re ); const_str_plain_last_childs_last_descendant = UNSTREAM_STRING( &constant_bin[ 107786 ], 27, 1 ); const_str_plain_TextNode = UNSTREAM_STRING( &constant_bin[ 107813 ], 8, 1 ); const_str_digest_972458ab3ef1c2a273f97970521ec788 = UNSTREAM_STRING( &constant_bin[ 107821 ], 30, 0 ); const_tuple_700016710dac82f075bd666028c7e8fb_tuple = PyTuple_New( 6 ); PyTuple_SET_ITEM( const_tuple_700016710dac82f075bd666028c7e8fb_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self ); PyTuple_SET_ITEM( const_tuple_700016710dac82f075bd666028c7e8fb_tuple, 1, const_str_plain_attributes ); Py_INCREF( const_str_plain_attributes ); const_str_plain_converted_attributes = UNSTREAM_STRING( &constant_bin[ 107851 ], 20, 1 ); PyTuple_SET_ITEM( const_tuple_700016710dac82f075bd666028c7e8fb_tuple, 2, const_str_plain_converted_attributes ); Py_INCREF( const_str_plain_converted_attributes ); PyTuple_SET_ITEM( const_tuple_700016710dac82f075bd666028c7e8fb_tuple, 3, const_str_plain_name ); Py_INCREF( const_str_plain_name ); PyTuple_SET_ITEM( const_tuple_700016710dac82f075bd666028c7e8fb_tuple, 4, const_str_plain_value ); Py_INCREF( const_str_plain_value ); PyTuple_SET_ITEM( const_tuple_700016710dac82f075bd666028c7e8fb_tuple, 5, const_str_plain_new_name ); Py_INCREF( const_str_plain_new_name ); const_str_digest_215e68bc120bcaa7fcea912f0f8f33cb = UNSTREAM_STRING( &constant_bin[ 107871 ], 63, 0 ); const_list_str_plain_HTML5TreeBuilder_list = PyList_New( 1 ); const_str_plain_HTML5TreeBuilder = UNSTREAM_STRING( &constant_bin[ 107934 ], 16, 1 ); PyList_SET_ITEM( const_list_str_plain_HTML5TreeBuilder_list, 0, const_str_plain_HTML5TreeBuilder ); Py_INCREF( const_str_plain_HTML5TreeBuilder ); const_str_digest_d789b4f90cabf78a705c48c32c18c5c2 = UNSTREAM_STRING( &constant_bin[ 107950 ], 35, 0 ); const_str_digest_33a811bbdb354554771a90321b6034ae = UNSTREAM_STRING( &constant_bin[ 107985 ], 13, 0 ); const_tuple_d32adfda5c435f6b6b593ce30f8a8022_tuple = PyTuple_New( 6 ); PyTuple_SET_ITEM( const_tuple_d32adfda5c435f6b6b593ce30f8a8022_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self ); PyTuple_SET_ITEM( const_tuple_d32adfda5c435f6b6b593ce30f8a8022_tuple, 1, const_str_plain_node ); Py_INCREF( const_str_plain_node ); PyTuple_SET_ITEM( const_tuple_d32adfda5c435f6b6b593ce30f8a8022_tuple, 2, const_str_plain_refNode ); Py_INCREF( const_str_plain_refNode ); PyTuple_SET_ITEM( const_tuple_d32adfda5c435f6b6b593ce30f8a8022_tuple, 3, const_str_plain_index ); Py_INCREF( const_str_plain_index ); const_str_plain_old_node = UNSTREAM_STRING( &constant_bin[ 107998 ], 8, 1 ); PyTuple_SET_ITEM( const_tuple_d32adfda5c435f6b6b593ce30f8a8022_tuple, 4, const_str_plain_old_node ); Py_INCREF( const_str_plain_old_node ); const_str_plain_new_str = UNSTREAM_STRING( &constant_bin[ 98689 ], 7, 1 ); PyTuple_SET_ITEM( const_tuple_d32adfda5c435f6b6b593ce30f8a8022_tuple, 5, const_str_plain_new_str ); Py_INCREF( const_str_plain_new_str ); const_str_digest_4dcc2c5696414a134841af261deae0e4 = UNSTREAM_STRING( &constant_bin[ 108006 ], 35, 0 ); const_str_plain_new_parent = UNSTREAM_STRING( &constant_bin[ 108041 ], 10, 1 ); const_tuple_b3db4b73ed090acb4fa33bde2be52234_tuple = PyTuple_New( 4 ); PyTuple_SET_ITEM( const_tuple_b3db4b73ed090acb4fa33bde2be52234_tuple, 0, const_str_plain_PERMISSIVE ); Py_INCREF( const_str_plain_PERMISSIVE ); PyTuple_SET_ITEM( const_tuple_b3db4b73ed090acb4fa33bde2be52234_tuple, 1, const_str_plain_HTML ); Py_INCREF( const_str_plain_HTML ); PyTuple_SET_ITEM( const_tuple_b3db4b73ed090acb4fa33bde2be52234_tuple, 2, const_str_plain_HTML_5 ); Py_INCREF( const_str_plain_HTML_5 ); PyTuple_SET_ITEM( const_tuple_b3db4b73ed090acb4fa33bde2be52234_tuple, 3, const_str_plain_HTMLTreeBuilder ); Py_INCREF( const_str_plain_HTMLTreeBuilder ); const_tuple_a3016637c945f843b5152e2025f5ec1b_tuple = PyTuple_New( 5 ); PyTuple_SET_ITEM( const_tuple_a3016637c945f843b5152e2025f5ec1b_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self ); PyTuple_SET_ITEM( const_tuple_a3016637c945f843b5152e2025f5ec1b_tuple, 1, const_str_plain_tag ); Py_INCREF( const_str_plain_tag ); PyTuple_SET_ITEM( const_tuple_a3016637c945f843b5152e2025f5ec1b_tuple, 2, const_str_plain_node ); Py_INCREF( const_str_plain_node ); PyTuple_SET_ITEM( const_tuple_a3016637c945f843b5152e2025f5ec1b_tuple, 3, const_str_plain_key ); Py_INCREF( const_str_plain_key ); PyTuple_SET_ITEM( const_tuple_a3016637c945f843b5152e2025f5ec1b_tuple, 4, const_str_plain_value ); Py_INCREF( const_str_plain_value ); const_tuple_39e3ee08801dc1158ed540a809fabf49_tuple = PyTuple_New( 12 ); PyTuple_SET_ITEM( const_tuple_39e3ee08801dc1158ed540a809fabf49_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self ); PyTuple_SET_ITEM( const_tuple_39e3ee08801dc1158ed540a809fabf49_tuple, 1, const_str_plain_new_parent ); Py_INCREF( const_str_plain_new_parent ); PyTuple_SET_ITEM( const_tuple_39e3ee08801dc1158ed540a809fabf49_tuple, 2, const_str_plain_element ); Py_INCREF( const_str_plain_element ); const_str_plain_new_parent_element = UNSTREAM_STRING( &constant_bin[ 108051 ], 18, 1 ); PyTuple_SET_ITEM( const_tuple_39e3ee08801dc1158ed540a809fabf49_tuple, 3, const_str_plain_new_parent_element ); Py_INCREF( const_str_plain_new_parent_element ); const_str_plain_final_next_element = UNSTREAM_STRING( &constant_bin[ 108069 ], 18, 1 ); PyTuple_SET_ITEM( const_tuple_39e3ee08801dc1158ed540a809fabf49_tuple, 4, const_str_plain_final_next_element ); Py_INCREF( const_str_plain_final_next_element ); const_str_plain_new_parents_last_descendant = UNSTREAM_STRING( &constant_bin[ 108087 ], 27, 1 ); PyTuple_SET_ITEM( const_tuple_39e3ee08801dc1158ed540a809fabf49_tuple, 5, const_str_plain_new_parents_last_descendant ); Py_INCREF( const_str_plain_new_parents_last_descendant ); const_str_plain_new_parents_last_child = UNSTREAM_STRING( &constant_bin[ 108114 ], 22, 1 ); PyTuple_SET_ITEM( const_tuple_39e3ee08801dc1158ed540a809fabf49_tuple, 6, const_str_plain_new_parents_last_child ); Py_INCREF( const_str_plain_new_parents_last_child ); const_str_plain_new_parents_last_descendant_next_element = UNSTREAM_STRING( &constant_bin[ 108136 ], 40, 1 ); PyTuple_SET_ITEM( const_tuple_39e3ee08801dc1158ed540a809fabf49_tuple, 7, const_str_plain_new_parents_last_descendant_next_element ); Py_INCREF( const_str_plain_new_parents_last_descendant_next_element ); const_str_plain_to_append = UNSTREAM_STRING( &constant_bin[ 108176 ], 9, 1 ); PyTuple_SET_ITEM( const_tuple_39e3ee08801dc1158ed540a809fabf49_tuple, 8, const_str_plain_to_append ); Py_INCREF( const_str_plain_to_append ); const_str_plain_first_child = UNSTREAM_STRING( &constant_bin[ 108185 ], 11, 1 ); PyTuple_SET_ITEM( const_tuple_39e3ee08801dc1158ed540a809fabf49_tuple, 9, const_str_plain_first_child ); Py_INCREF( const_str_plain_first_child ); PyTuple_SET_ITEM( const_tuple_39e3ee08801dc1158ed540a809fabf49_tuple, 10, const_str_plain_last_childs_last_descendant ); Py_INCREF( const_str_plain_last_childs_last_descendant ); PyTuple_SET_ITEM( const_tuple_39e3ee08801dc1158ed540a809fabf49_tuple, 11, const_str_plain_child ); Py_INCREF( const_str_plain_child ); const_str_digest_2884c8220b027e354fccb69f51574561 = UNSTREAM_STRING( &constant_bin[ 108196 ], 21, 0 ); const_str_plain_lastindex = UNSTREAM_STRING( &constant_bin[ 108217 ], 9, 1 ); const_str_digest_c074204eb66b66b4a674100bec85b541 = UNSTREAM_STRING( &constant_bin[ 108226 ], 18, 0 ); const_str_digest_b8f5ff66404d2dfd3fa72280ec60871e = UNSTREAM_STRING( &constant_bin[ 107829 ], 21, 0 ); const_str_digest_4deb5980ac1d6b98c66cc7ed60f6a14d = UNSTREAM_STRING( &constant_bin[ 108244 ], 16, 0 ); const_str_digest_9fd92504c714f83e298be124b3bb9bc8 = UNSTREAM_STRING( &constant_bin[ 108260 ], 130, 0 ); const_str_digest_ce251a47e2df78bd1d1a9359296a3d52 = UNSTREAM_STRING( &constant_bin[ 108390 ], 17, 0 ); const_tuple_34b457a5a48fdb52f8508d1ddd95f7be_tuple = PyTuple_New( 7 ); PyTuple_SET_ITEM( const_tuple_34b457a5a48fdb52f8508d1ddd95f7be_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self ); PyTuple_SET_ITEM( const_tuple_34b457a5a48fdb52f8508d1ddd95f7be_tuple, 1, const_str_plain_node ); Py_INCREF( const_str_plain_node ); const_str_plain_string_child = UNSTREAM_STRING( &constant_bin[ 108407 ], 12, 1 ); PyTuple_SET_ITEM( const_tuple_34b457a5a48fdb52f8508d1ddd95f7be_tuple, 2, const_str_plain_string_child ); Py_INCREF( const_str_plain_string_child ); PyTuple_SET_ITEM( const_tuple_34b457a5a48fdb52f8508d1ddd95f7be_tuple, 3, const_str_plain_child ); Py_INCREF( const_str_plain_child ); const_str_plain_old_element = UNSTREAM_STRING( &constant_bin[ 108419 ], 11, 1 ); PyTuple_SET_ITEM( const_tuple_34b457a5a48fdb52f8508d1ddd95f7be_tuple, 4, const_str_plain_old_element ); Py_INCREF( const_str_plain_old_element ); const_str_plain_new_element = UNSTREAM_STRING( &constant_bin[ 108430 ], 11, 1 ); PyTuple_SET_ITEM( const_tuple_34b457a5a48fdb52f8508d1ddd95f7be_tuple, 5, const_str_plain_new_element ); Py_INCREF( const_str_plain_new_element ); PyTuple_SET_ITEM( const_tuple_34b457a5a48fdb52f8508d1ddd95f7be_tuple, 6, const_str_plain_most_recent_element ); Py_INCREF( const_str_plain_most_recent_element ); const_str_digest_0c53e5483c4d4c11f0cacd9a782c8984 = UNSTREAM_STRING( &constant_bin[ 108441 ], 36, 0 ); const_tuple_str_digest_d00eeea15e46a3e8fb3ff0ec6400a01f_tuple = PyTuple_New( 1 ); const_str_digest_d00eeea15e46a3e8fb3ff0ec6400a01f = UNSTREAM_STRING( &constant_bin[ 108477 ], 56, 0 ); PyTuple_SET_ITEM( const_tuple_str_digest_d00eeea15e46a3e8fb3ff0ec6400a01f_tuple, 0, const_str_digest_d00eeea15e46a3e8fb3ff0ec6400a01f ); Py_INCREF( const_str_digest_d00eeea15e46a3e8fb3ff0ec6400a01f ); const_str_digest_1a8f76cbc7d0520dda9338e2b9c79cae = UNSTREAM_STRING( &constant_bin[ 108533 ], 31, 0 ); const_str_digest_6b9d894189c1f74b8bf90492e700db0d = UNSTREAM_STRING( &constant_bin[ 108564 ], 24, 0 ); const_tuple_2e607c546f7f3eb2e0c49e1971e98cc8_tuple = PyTuple_New( 4 ); PyTuple_SET_ITEM( const_tuple_2e607c546f7f3eb2e0c49e1971e98cc8_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self ); PyTuple_SET_ITEM( const_tuple_2e607c546f7f3eb2e0c49e1971e98cc8_tuple, 1, const_str_plain_name ); Py_INCREF( const_str_plain_name ); PyTuple_SET_ITEM( const_tuple_2e607c546f7f3eb2e0c49e1971e98cc8_tuple, 2, const_str_plain_namespace ); Py_INCREF( const_str_plain_namespace ); PyTuple_SET_ITEM( const_tuple_2e607c546f7f3eb2e0c49e1971e98cc8_tuple, 3, const_str_plain_tag ); Py_INCREF( const_str_plain_tag ); const_tuple_false_true_tuple = PyTuple_New( 2 ); PyTuple_SET_ITEM( const_tuple_false_true_tuple, 0, Py_False ); Py_INCREF( Py_False ); PyTuple_SET_ITEM( const_tuple_false_true_tuple, 1, Py_True ); Py_INCREF( Py_True ); const_str_digest_e58ef089254db86af5077c09d80cd276 = UNSTREAM_STRING( &constant_bin[ 108588 ], 14, 0 ); const_str_digest_23b16362062aa5bd60242db5965601b1 = UNSTREAM_STRING( &constant_bin[ 108602 ], 34, 0 ); const_tuple_195bdb5b3cf1405a9395833971578673_tuple = PyTuple_New( 6 ); PyTuple_SET_ITEM( const_tuple_195bdb5b3cf1405a9395833971578673_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self ); PyTuple_SET_ITEM( const_tuple_195bdb5b3cf1405a9395833971578673_tuple, 1, const_str_plain_markup ); Py_INCREF( const_str_plain_markup ); PyTuple_SET_ITEM( const_tuple_195bdb5b3cf1405a9395833971578673_tuple, 2, const_str_plain_parser ); Py_INCREF( const_str_plain_parser ); const_str_plain_extra_kwargs = UNSTREAM_STRING( &constant_bin[ 108636 ], 12, 1 ); PyTuple_SET_ITEM( const_tuple_195bdb5b3cf1405a9395833971578673_tuple, 3, const_str_plain_extra_kwargs ); Py_INCREF( const_str_plain_extra_kwargs ); PyTuple_SET_ITEM( const_tuple_195bdb5b3cf1405a9395833971578673_tuple, 4, const_str_plain_doc ); Py_INCREF( const_str_plain_doc ); PyTuple_SET_ITEM( const_tuple_195bdb5b3cf1405a9395833971578673_tuple, 5, const_str_plain_original_encoding ); Py_INCREF( const_str_plain_original_encoding ); const_str_digest_647bf12304a32489cc5b8b58e0535445 = UNSTREAM_STRING( &constant_bin[ 108648 ], 20, 0 ); const_tuple_str_plain_self_str_plain_element_str_plain_soup_tuple = PyTuple_New( 3 ); PyTuple_SET_ITEM( const_tuple_str_plain_self_str_plain_element_str_plain_soup_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self ); PyTuple_SET_ITEM( const_tuple_str_plain_self_str_plain_element_str_plain_soup_tuple, 1, const_str_plain_element ); Py_INCREF( const_str_plain_element ); PyTuple_SET_ITEM( const_tuple_str_plain_self_str_plain_element_str_plain_soup_tuple, 2, const_str_plain_soup ); Py_INCREF( const_str_plain_soup ); const_str_digest_2ba83d45719ab4ac14b3c6f89d0ffc2f = UNSTREAM_STRING( &constant_bin[ 108668 ], 16, 0 ); const_str_plain_create_treebuilder = UNSTREAM_STRING( &constant_bin[ 107967 ], 18, 1 ); const_tuple_str_digest_9fd92504c714f83e298be124b3bb9bc8_tuple = PyTuple_New( 1 ); PyTuple_SET_ITEM( const_tuple_str_digest_9fd92504c714f83e298be124b3bb9bc8_tuple, 0, const_str_digest_9fd92504c714f83e298be124b3bb9bc8 ); Py_INCREF( const_str_digest_9fd92504c714f83e298be124b3bb9bc8 ); const_str_digest_40ba509333e3e5179adc318103200357 = UNSTREAM_STRING( &constant_bin[ 108684 ], 35, 0 ); const_str_digest_14b0cf50585a9c7df79ebc4003576f45 = UNSTREAM_STRING( &constant_bin[ 108719 ], 57, 0 ); const_str_plain_underlying_builder = UNSTREAM_STRING( &constant_bin[ 108776 ], 18, 1 ); const_tuple_30c3370003e8cf0eea7e2329bbe348b2_tuple = PyTuple_New( 4 ); PyTuple_SET_ITEM( const_tuple_30c3370003e8cf0eea7e2329bbe348b2_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self ); PyTuple_SET_ITEM( const_tuple_30c3370003e8cf0eea7e2329bbe348b2_tuple, 1, const_str_plain_name ); Py_INCREF( const_str_plain_name ); PyTuple_SET_ITEM( const_tuple_30c3370003e8cf0eea7e2329bbe348b2_tuple, 2, const_str_plain_value ); Py_INCREF( const_str_plain_value ); const_str_plain_list_attr = UNSTREAM_STRING( &constant_bin[ 106052 ], 9, 1 ); PyTuple_SET_ITEM( const_tuple_30c3370003e8cf0eea7e2329bbe348b2_tuple, 3, const_str_plain_list_attr ); Py_INCREF( const_str_plain_list_attr ); const_str_digest_a9f7fd277b279ff044c892e9263852ec = UNSTREAM_STRING( &constant_bin[ 108794 ], 17, 0 ); const_str_digest_84193ae9a166a09e5e91b35f20638600 = UNSTREAM_STRING( &constant_bin[ 108811 ], 21, 0 ); const_str_digest_40a4aa7c990c9ec58e370a66189a7cf3 = UNSTREAM_STRING( &constant_bin[ 108832 ], 20, 0 ); const_tuple_str_plain_self_str_plain_BeautifulSoup_tuple = PyTuple_New( 2 ); PyTuple_SET_ITEM( const_tuple_str_plain_self_str_plain_BeautifulSoup_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self ); PyTuple_SET_ITEM( const_tuple_str_plain_self_str_plain_BeautifulSoup_tuple, 1, const_str_plain_BeautifulSoup ); Py_INCREF( const_str_plain_BeautifulSoup ); const_str_digest_b9d7db902b4319c890205e71f628fb1d = UNSTREAM_STRING( &constant_bin[ 108852 ], 36, 0 ); const_str_plain_doctype_re = UNSTREAM_STRING( &constant_bin[ 108888 ], 10, 1 ); const_str_digest_d18613d2541bb5efb2b90c19ae2914a7 = UNSTREAM_STRING( &constant_bin[ 108898 ], 17, 0 ); const_str_digest_a1c0be3342eb645828d8d08e46315363 = UNSTREAM_STRING( &constant_bin[ 108915 ], 49, 0 ); const_str_digest_90742a7c87e23858f3d9b3b8e1c55b84 = UNSTREAM_STRING( &constant_bin[ 108964 ], 29, 0 ); const_str_digest_ea50f9dd30855f31b690411f91516997 = UNSTREAM_STRING( &constant_bin[ 107871 ], 37, 0 ); const_str_digest_6c359b437b0ff6f3c6b608ce533686ca = UNSTREAM_STRING( &constant_bin[ 108993 ], 18, 0 ); const_tuple_a041f5f12c26f30b3795e6ba3f81c7fd_tuple = PyTuple_New( 4 ); PyTuple_SET_ITEM( const_tuple_a041f5f12c26f30b3795e6ba3f81c7fd_tuple, 0, const_str_plain_Comment ); Py_INCREF( const_str_plain_Comment ); PyTuple_SET_ITEM( const_tuple_a041f5f12c26f30b3795e6ba3f81c7fd_tuple, 1, const_str_plain_Doctype ); Py_INCREF( const_str_plain_Doctype ); PyTuple_SET_ITEM( const_tuple_a041f5f12c26f30b3795e6ba3f81c7fd_tuple, 2, const_str_plain_NavigableString ); Py_INCREF( const_str_plain_NavigableString ); PyTuple_SET_ITEM( const_tuple_a041f5f12c26f30b3795e6ba3f81c7fd_tuple, 3, const_str_plain_Tag ); Py_INCREF( const_str_plain_Tag ); const_str_digest_b9d92bb032071e093cb2773e0141ee14 = UNSTREAM_STRING( &constant_bin[ 109011 ], 19, 0 ); const_str_digest_3d5fba1e94b4958bb91ad0af4088e046 = UNSTREAM_STRING( &constant_bin[ 109030 ], 106, 0 ); const_str_plain_new_html5lib = UNSTREAM_STRING( &constant_bin[ 109136 ], 12, 1 ); const_str_digest_b003ae88ab5def8fba7c4ce5e0f75bb8 = UNSTREAM_STRING( &constant_bin[ 109148 ], 34, 0 ); const_tuple_7252b6f61126637f9436ed3da6163550_tuple = PyTuple_New( 13 ); PyTuple_SET_ITEM( const_tuple_7252b6f61126637f9436ed3da6163550_tuple, 0, const_str_plain_element ); Py_INCREF( const_str_plain_element ); PyTuple_SET_ITEM( const_tuple_7252b6f61126637f9436ed3da6163550_tuple, 1, const_str_plain_indent ); Py_INCREF( const_str_plain_indent ); PyTuple_SET_ITEM( const_tuple_7252b6f61126637f9436ed3da6163550_tuple, 2, const_str_plain_m ); Py_INCREF( const_str_plain_m ); PyTuple_SET_ITEM( const_tuple_7252b6f61126637f9436ed3da6163550_tuple, 3, const_str_plain_name ); Py_INCREF( const_str_plain_name ); PyTuple_SET_ITEM( const_tuple_7252b6f61126637f9436ed3da6163550_tuple, 4, const_str_plain_publicId ); Py_INCREF( const_str_plain_publicId ); PyTuple_SET_ITEM( const_tuple_7252b6f61126637f9436ed3da6163550_tuple, 5, const_str_plain_systemId ); Py_INCREF( const_str_plain_systemId ); PyTuple_SET_ITEM( const_tuple_7252b6f61126637f9436ed3da6163550_tuple, 6, const_str_plain_attributes ); Py_INCREF( const_str_plain_attributes ); PyTuple_SET_ITEM( const_tuple_7252b6f61126637f9436ed3da6163550_tuple, 7, const_str_plain_value ); Py_INCREF( const_str_plain_value ); PyTuple_SET_ITEM( const_tuple_7252b6f61126637f9436ed3da6163550_tuple, 8, const_str_plain_child ); Py_INCREF( const_str_plain_child ); PyTuple_SET_ITEM( const_tuple_7252b6f61126637f9436ed3da6163550_tuple, 9, const_str_plain_BeautifulSoup ); Py_INCREF( const_str_plain_BeautifulSoup ); PyTuple_SET_ITEM( const_tuple_7252b6f61126637f9436ed3da6163550_tuple, 10, const_str_plain_doctype_re ); Py_INCREF( const_str_plain_doctype_re ); PyTuple_SET_ITEM( const_tuple_7252b6f61126637f9436ed3da6163550_tuple, 11, const_str_plain_rv ); Py_INCREF( const_str_plain_rv ); PyTuple_SET_ITEM( const_tuple_7252b6f61126637f9436ed3da6163550_tuple, 12, const_str_plain_serializeElement ); Py_INCREF( const_str_plain_serializeElement ); const_tuple_5804a4898f3a23255e772c24e1d02805_tuple = PyTuple_New( 5 ); PyTuple_SET_ITEM( const_tuple_5804a4898f3a23255e772c24e1d02805_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self ); PyTuple_SET_ITEM( const_tuple_5804a4898f3a23255e772c24e1d02805_tuple, 1, const_str_plain_namespaceHTMLElements ); Py_INCREF( const_str_plain_namespaceHTMLElements ); PyTuple_SET_ITEM( const_tuple_5804a4898f3a23255e772c24e1d02805_tuple, 2, const_str_plain_soup ); Py_INCREF( const_str_plain_soup ); PyTuple_SET_ITEM( const_tuple_5804a4898f3a23255e772c24e1d02805_tuple, 3, const_str_plain_BeautifulSoup ); Py_INCREF( const_str_plain_BeautifulSoup ); PyTuple_SET_ITEM( const_tuple_5804a4898f3a23255e772c24e1d02805_tuple, 4, const_str_plain___class__ ); Py_INCREF( const_str_plain___class__ ); const_str_digest_3e9c546a8903992568d7f9f399a59063 = UNSTREAM_STRING( &constant_bin[ 109182 ], 42, 0 ); const_tuple_fc4e3110933342542a2025457d749eaf_tuple = PyTuple_New( 4 ); PyTuple_SET_ITEM( const_tuple_fc4e3110933342542a2025457d749eaf_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self ); PyTuple_SET_ITEM( const_tuple_fc4e3110933342542a2025457d749eaf_tuple, 1, const_str_plain_element ); Py_INCREF( const_str_plain_element ); PyTuple_SET_ITEM( const_tuple_fc4e3110933342542a2025457d749eaf_tuple, 2, const_str_plain_soup ); Py_INCREF( const_str_plain_soup ); PyTuple_SET_ITEM( const_tuple_fc4e3110933342542a2025457d749eaf_tuple, 3, const_str_plain_namespace ); Py_INCREF( const_str_plain_namespace ); const_str_digest_f781ab06f4620217cc1b6f4d96b88fad = UNSTREAM_STRING( &constant_bin[ 109224 ], 20, 0 ); const_tuple_str_empty_str_digest_c94e49aa6b31218158c33258bda42655_tuple = PyTuple_New( 2 ); PyTuple_SET_ITEM( const_tuple_str_empty_str_digest_c94e49aa6b31218158c33258bda42655_tuple, 0, const_str_empty ); Py_INCREF( const_str_empty ); PyTuple_SET_ITEM( const_tuple_str_empty_str_digest_c94e49aa6b31218158c33258bda42655_tuple, 1, const_str_digest_c94e49aa6b31218158c33258bda42655 ); Py_INCREF( const_str_digest_c94e49aa6b31218158c33258bda42655 ); const_str_digest_d6d67aa9644374fbe99fd299dbd21130 = UNSTREAM_STRING( &constant_bin[ 109244 ], 18, 0 ); const_str_plain_TreeBuilderForHtml5lib = UNSTREAM_STRING( &constant_bin[ 107712 ], 22, 1 ); const_tuple_8dc437e2c1bf51bb8107c9462b9bce7c_tuple = PyTuple_New( 6 ); PyTuple_SET_ITEM( const_tuple_8dc437e2c1bf51bb8107c9462b9bce7c_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self ); PyTuple_SET_ITEM( const_tuple_8dc437e2c1bf51bb8107c9462b9bce7c_tuple, 1, const_str_plain_element ); Py_INCREF( const_str_plain_element ); PyTuple_SET_ITEM( const_tuple_8dc437e2c1bf51bb8107c9462b9bce7c_tuple, 2, const_str_plain_BeautifulSoup ); Py_INCREF( const_str_plain_BeautifulSoup ); PyTuple_SET_ITEM( const_tuple_8dc437e2c1bf51bb8107c9462b9bce7c_tuple, 3, const_str_plain_rv ); Py_INCREF( const_str_plain_rv ); PyTuple_SET_ITEM( const_tuple_8dc437e2c1bf51bb8107c9462b9bce7c_tuple, 4, const_str_plain_doctype_re ); Py_INCREF( const_str_plain_doctype_re ); PyTuple_SET_ITEM( const_tuple_8dc437e2c1bf51bb8107c9462b9bce7c_tuple, 5, const_str_plain_serializeElement ); Py_INCREF( const_str_plain_serializeElement ); const_str_digest_5921b81dfc7215fb7e2d25bca9c4c463 = UNSTREAM_STRING( &constant_bin[ 109262 ], 41, 0 ); const_str_plain_treebuilder_base = UNSTREAM_STRING( &constant_bin[ 109303 ], 16, 1 ); const_str_digest_1df37cc25b68d222ca12b0b1a3870269 = UNSTREAM_STRING( &constant_bin[ 109319 ], 21, 0 ); const_str_digest_159357012a9e9103f39cd3e045085792 = UNSTREAM_STRING( &constant_bin[ 109340 ], 20, 0 ); const_tuple_str_digest_3d5fba1e94b4958bb91ad0af4088e046_tuple = PyTuple_New( 1 ); PyTuple_SET_ITEM( const_tuple_str_digest_3d5fba1e94b4958bb91ad0af4088e046_tuple, 0, const_str_digest_3d5fba1e94b4958bb91ad0af4088e046 ); Py_INCREF( const_str_digest_3d5fba1e94b4958bb91ad0af4088e046 ); const_str_digest_705811222fc5d1ae224a2513522bac8c = UNSTREAM_STRING( &constant_bin[ 109360 ], 31, 0 ); const_str_digest_140d872914655f81d5f0b35cd263c3c6 = UNSTREAM_STRING( &constant_bin[ 109391 ], 19, 0 ); const_str_digest_7eb4371df9e81d44b58cbfd236d2917f = UNSTREAM_STRING( &constant_bin[ 109410 ], 34, 0 ); const_tuple_8316c34c132232c66b47c564ff8533f8_tuple = PyTuple_New( 5 ); PyTuple_SET_ITEM( const_tuple_8316c34c132232c66b47c564ff8533f8_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self ); PyTuple_SET_ITEM( const_tuple_8316c34c132232c66b47c564ff8533f8_tuple, 1, const_str_plain_markup ); Py_INCREF( const_str_plain_markup ); PyTuple_SET_ITEM( const_tuple_8316c34c132232c66b47c564ff8533f8_tuple, 2, const_str_plain_user_specified_encoding ); Py_INCREF( const_str_plain_user_specified_encoding ); PyTuple_SET_ITEM( const_tuple_8316c34c132232c66b47c564ff8533f8_tuple, 3, const_str_plain_document_declared_encoding ); Py_INCREF( const_str_plain_document_declared_encoding ); PyTuple_SET_ITEM( const_tuple_8316c34c132232c66b47c564ff8533f8_tuple, 4, const_str_plain_exclude_encodings ); Py_INCREF( const_str_plain_exclude_encodings ); constants_created = true; } #ifndef __NUITKA_NO_ASSERT__ void checkModuleConstants_bs4$builder$_html5lib( void ) { // The module may not have been used at all. if (constants_created == false) return; } #endif // The module code objects. static PyCodeObject *codeobj_190956253b9a419daac23f67668d6fc5; static PyCodeObject *codeobj_eb6db0b8839c87a270ee3cf36407ef04; static PyCodeObject *codeobj_d3dcf6647e60aa06adb5a9257535e559; static PyCodeObject *codeobj_02ae3e7b4e938f48c992ad550877bdbb; static PyCodeObject *codeobj_7a917daf59bc0143119af86b7747ac6d; static PyCodeObject *codeobj_2e977f5ce6e31317eb86ff7e5bde8e67; static PyCodeObject *codeobj_59036593ad2c983bbf3db312dc50dd63; static PyCodeObject *codeobj_ac773837c6efb44ee932e964ff235bb8; static PyCodeObject *codeobj_e5238202841a449b0fe675887c8c127c; static PyCodeObject *codeobj_862903e006904a47cfb737335fa8e969; static PyCodeObject *codeobj_a49afc773f6ed00ebc38fd16aeae958b; static PyCodeObject *codeobj_4bc2fb75d2ec8350a5345abc3b4c3f38; static PyCodeObject *codeobj_46658e33b0509c309eac25b858d6cec0; static PyCodeObject *codeobj_99c62f79c7a9c864a2d0241621052697; static PyCodeObject *codeobj_6ded8a14e912a14d37067d1d97cb6133; static PyCodeObject *codeobj_60dc340a1f9cb82135fdc5999b8a1f6f; static PyCodeObject *codeobj_d6e104211ad483b8ab15f86f297090e8; static PyCodeObject *codeobj_699e7f1c248d875e1601732f5b798d95; static PyCodeObject *codeobj_9e38b70f8abb9541c318269ba7030a73; static PyCodeObject *codeobj_842eda5127517017b16637d129696484; static PyCodeObject *codeobj_03356bb8d25faf8ed7137afa41c65191; static PyCodeObject *codeobj_18b019f67e357fe63dc2021e665ae864; static PyCodeObject *codeobj_ca1798d9f22d94d9f8fac5732b3f68a0; static PyCodeObject *codeobj_b5df6feb2ab831ba7b08e7f8011c2e3f; static PyCodeObject *codeobj_7f88c6650f945f7641129c4145e27c52; static PyCodeObject *codeobj_b59ce5223e4e2dfd2fc98070cdbb9d16; static PyCodeObject *codeobj_e60a236db3a14cb2458d02def75a27cc; static PyCodeObject *codeobj_7134c5be048dde74f22047bcbc35fb7d; static PyCodeObject *codeobj_bd8cace448216250d34b27c3d58f901f; static PyCodeObject *codeobj_703044c4c8cbe8d5406532d1c77c4377; static PyCodeObject *codeobj_c76f7e9a85ecdffddd4d611afc65b023; static PyCodeObject *codeobj_6db4f39ead434c1c58fde91234955a2c; static PyCodeObject *codeobj_393cea2d108818ac8cd67d70384f1655; static PyCodeObject *codeobj_7150f6ef3ab91125d7eddca7e9ff6e15; static PyCodeObject *codeobj_71c27579a86c11878acd608308adba36; static PyCodeObject *codeobj_be57c19b6323868a51c94fa79707b521; static PyCodeObject *codeobj_ca23e12c9fa58de0a656fa5c32d0614f; static PyCodeObject *codeobj_898fa9993b80ae71daaaca7bb8b3a584; static PyCodeObject *codeobj_2cac38a5727d0b1a295d9efb5458dd50; static PyCodeObject *codeobj_880ad0c3c14171fe04c296863fb1e208; static PyCodeObject *codeobj_b4a8744a449badcda89b9c58a2df9a07; static PyCodeObject *codeobj_65e5814b2e94eb798c90a811e24fb7ba; static void createModuleCodeObjects(void) { module_filename_obj = const_str_digest_14b0cf50585a9c7df79ebc4003576f45; codeobj_190956253b9a419daac23f67668d6fc5 = MAKE_CODEOBJ( module_filename_obj, const_str_digest_972458ab3ef1c2a273f97970521ec788, 1, const_tuple_empty, 0, 0, CO_NOFREE ); codeobj_eb6db0b8839c87a270ee3cf36407ef04 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_AttrList, 193, const_tuple_str_plain___class___tuple, 0, 0, CO_NOFREE ); codeobj_d3dcf6647e60aa06adb5a9257535e559 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_Element, 223, const_tuple_str_plain___class___tuple, 0, 0, CO_NOFREE ); codeobj_02ae3e7b4e938f48c992ad550877bdbb = MAKE_CODEOBJ( module_filename_obj, const_str_plain_HTML5TreeBuilder, 41, const_tuple_str_plain___class___tuple, 0, 0, CO_NOFREE ); codeobj_7a917daf59bc0143119af86b7747ac6d = MAKE_CODEOBJ( module_filename_obj, const_str_plain_TextNode, 419, const_tuple_str_plain___class___tuple, 0, 0, CO_NOFREE ); codeobj_2e977f5ce6e31317eb86ff7e5bde8e67 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_TreeBuilderForHtml5lib, 98, const_tuple_str_plain___class___tuple, 0, 0, CO_NOFREE ); codeobj_59036593ad2c983bbf3db312dc50dd63 = MAKE_CODEOBJ( module_filename_obj, const_str_plain___contains__, 219, const_tuple_str_plain_self_str_plain_name_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_ac773837c6efb44ee932e964ff235bb8 = MAKE_CODEOBJ( module_filename_obj, const_str_plain___getitem__, 217, const_tuple_str_plain_self_str_plain_name_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_e5238202841a449b0fe675887c8c127c = MAKE_CODEOBJ( module_filename_obj, const_str_plain___init__, 100, const_tuple_5804a4898f3a23255e772c24e1d02805_tuple, 3, 0, CO_OPTIMIZED | CO_NEWLOCALS ); codeobj_862903e006904a47cfb737335fa8e969 = MAKE_CODEOBJ( module_filename_obj, const_str_plain___init__, 194, const_tuple_str_plain_self_str_plain_element_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_a49afc773f6ed00ebc38fd16aeae958b = MAKE_CODEOBJ( module_filename_obj, const_str_plain___init__, 224, const_tuple_fc4e3110933342542a2025457d749eaf_tuple, 4, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_4bc2fb75d2ec8350a5345abc3b4c3f38 = MAKE_CODEOBJ( module_filename_obj, const_str_plain___init__, 420, const_tuple_str_plain_self_str_plain_element_str_plain_soup_tuple, 3, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_46658e33b0509c309eac25b858d6cec0 = MAKE_CODEOBJ( module_filename_obj, const_str_plain___iter__, 197, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_99c62f79c7a9c864a2d0241621052697 = MAKE_CODEOBJ( module_filename_obj, const_str_plain___len__, 215, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_6ded8a14e912a14d37067d1d97cb6133 = MAKE_CODEOBJ( module_filename_obj, const_str_plain___setitem__, 199, const_tuple_30c3370003e8cf0eea7e2329bbe348b2_tuple, 3, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_60dc340a1f9cb82135fdc5999b8a1f6f = MAKE_CODEOBJ( module_filename_obj, const_str_plain_appendChild, 133, const_tuple_str_plain_self_str_plain_node_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_d6e104211ad483b8ab15f86f297090e8 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_appendChild, 230, const_tuple_34b457a5a48fdb52f8508d1ddd95f7be_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_699e7f1c248d875e1601732f5b798d95 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_cloneNode, 401, const_tuple_a3016637c945f843b5152e2025f5ec1b_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_9e38b70f8abb9541c318269ba7030a73 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_cloneNode, 425, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_842eda5127517017b16637d129696484 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_commentClass, 124, const_tuple_str_plain_self_str_plain_data_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_03356bb8d25faf8ed7137afa41c65191 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_create_treebuilder, 88, const_tuple_str_plain_self_str_plain_namespaceHTMLElements_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_18b019f67e357fe63dc2021e665ae864 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_documentClass, 108, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_ca1798d9f22d94d9f8fac5732b3f68a0 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_elementClass, 120, const_tuple_2e607c546f7f3eb2e0c49e1971e98cc8_tuple, 3, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_b5df6feb2ab831ba7b08e7f8011c2e3f = MAKE_CODEOBJ( module_filename_obj, const_str_plain_feed, 61, const_tuple_195bdb5b3cf1405a9395833971578673_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_7f88c6650f945f7641129c4145e27c52 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_fragmentClass, 127, const_tuple_str_plain_self_str_plain_BeautifulSoup_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_b59ce5223e4e2dfd2fc98070cdbb9d16 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_getAttributes, 284, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_e60a236db3a14cb2458d02def75a27cc = MAKE_CODEOBJ( module_filename_obj, const_str_plain_getDocument, 137, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_7134c5be048dde74f22047bcbc35fb7d = MAKE_CODEOBJ( module_filename_obj, const_str_plain_getFragment, 140, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_bd8cace448216250d34b27c3d58f901f = MAKE_CODEOBJ( module_filename_obj, const_str_plain_getNameTuple, 411, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_703044c4c8cbe8d5406532d1c77c4377 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_hasContent, 408, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_c76f7e9a85ecdffddd4d611afc65b023 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_insertBefore, 320, const_tuple_d32adfda5c435f6b6b593ce30f8a8022_tuple, 3, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_6db4f39ead434c1c58fde91234955a2c = MAKE_CODEOBJ( module_filename_obj, const_str_plain_insertDoctype, 112, const_tuple_ec512915ca5ee576ef0510ca52a4c550_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_393cea2d108818ac8cd67d70384f1655 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_insertText, 313, const_tuple_5188a47cc2c53c190249f3369f2dab66_tuple, 3, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_7150f6ef3ab91125d7eddca7e9ff6e15 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_items, 211, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_71c27579a86c11878acd608308adba36 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_keys, 213, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_be57c19b6323868a51c94fa79707b521 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_prepare_markup, 48, const_tuple_8316c34c132232c66b47c564ff8533f8_tuple, 5, 0, CO_GENERATOR | CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_ca23e12c9fa58de0a656fa5c32d0614f = MAKE_CODEOBJ( module_filename_obj, const_str_plain_removeChild, 332, const_tuple_str_plain_self_str_plain_node_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_898fa9993b80ae71daaaca7bb8b3a584 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_reparentChildren, 335, const_tuple_39e3ee08801dc1158ed540a809fabf49_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_2cac38a5727d0b1a295d9efb5458dd50 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_serializeElement, 148, const_tuple_7252b6f61126637f9436ed3da6163550_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS ); codeobj_880ad0c3c14171fe04c296863fb1e208 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_setAttributes, 289, const_tuple_700016710dac82f075bd666028c7e8fb_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_b4a8744a449badcda89b9c58a2df9a07 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_testSerializer, 143, const_tuple_8dc437e2c1bf51bb8107c9462b9bce7c_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_65e5814b2e94eb798c90a811e24fb7ba = MAKE_CODEOBJ( module_filename_obj, const_str_plain_test_fragment_to_document, 93, const_tuple_str_plain_self_str_plain_fragment_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); } // The module function declarations. static PyObject *bs4$builder$_html5lib$$$function_1_prepare_markup$$$genobj_1_prepare_markup_maker( void ); NUITKA_CROSS_MODULE PyObject *impl___internal__$$$function_1__mro_entries_conversion( PyObject **python_pars ); NUITKA_CROSS_MODULE PyObject *impl___internal__$$$function_5_complex_call_helper_pos_star_dict( PyObject **python_pars ); NUITKA_CROSS_MODULE PyObject *impl___internal__$$$function_2_complex_call_helper_star_list( PyObject **python_pars ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_10_fragmentClass( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_11_appendChild( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_12_getDocument( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_13_getFragment( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_14_testSerializer( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_14_testSerializer$$$function_1_serializeElement( PyObject *defaults ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_15___init__( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_16___iter__( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_17___setitem__( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_18_items( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_19_keys( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_1_prepare_markup( PyObject *defaults ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_20___len__( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_21___getitem__( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_22___contains__( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_23___init__( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_24_appendChild( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_25_getAttributes( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_26_setAttributes( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_27_insertText( PyObject *defaults ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_28_insertBefore( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_29_removeChild( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_2_feed( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_30_reparentChildren( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_31_cloneNode( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_32_hasContent( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_33_getNameTuple( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_34___init__( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_35_cloneNode( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_3_create_treebuilder( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_4_test_fragment_to_document( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_5___init__( PyObject *defaults ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_6_documentClass( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_7_insertDoctype( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_8_elementClass( ); static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_9_commentClass( ); // The module function definitions. static PyObject *impl_bs4$builder$_html5lib$$$function_1_prepare_markup( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. struct Nuitka_CellObject *par_self = PyCell_NEW1( python_pars[ 0 ] ); struct Nuitka_CellObject *par_markup = PyCell_NEW1( python_pars[ 1 ] ); struct Nuitka_CellObject *par_user_specified_encoding = PyCell_NEW1( python_pars[ 2 ] ); PyObject *par_document_declared_encoding = python_pars[ 3 ]; struct Nuitka_CellObject *par_exclude_encodings = PyCell_NEW1( python_pars[ 4 ] ); PyObject *tmp_return_value = NULL; // Actual function code. { // Tried code: { tmp_return_value = bs4$builder$_html5lib$$$function_1_prepare_markup$$$genobj_1_prepare_markup_maker(); ((struct Nuitka_GeneratorObject *)tmp_return_value)->m_closure[0] = PyCell_NEW0( par_document_declared_encoding ); ((struct Nuitka_GeneratorObject *)tmp_return_value)->m_closure[1] = par_exclude_encodings; Py_INCREF( ((struct Nuitka_GeneratorObject *)tmp_return_value)->m_closure[1] ); ((struct Nuitka_GeneratorObject *)tmp_return_value)->m_closure[2] = par_markup; Py_INCREF( ((struct Nuitka_GeneratorObject *)tmp_return_value)->m_closure[2] ); ((struct Nuitka_GeneratorObject *)tmp_return_value)->m_closure[3] = par_self; Py_INCREF( ((struct Nuitka_GeneratorObject *)tmp_return_value)->m_closure[3] ); ((struct Nuitka_GeneratorObject *)tmp_return_value)->m_closure[4] = par_user_specified_encoding; Py_INCREF( ((struct Nuitka_GeneratorObject *)tmp_return_value)->m_closure[4] ); goto try_return_handler_1; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_1_prepare_markup ); return NULL; // Return handler code: try_return_handler_1:; { CHECK_OBJECT( (PyObject *)par_self ); Py_DECREF( par_self ); par_self = NULL; } { CHECK_OBJECT( (PyObject *)par_markup ); Py_DECREF( par_markup ); par_markup = NULL; } { CHECK_OBJECT( (PyObject *)par_user_specified_encoding ); Py_DECREF( par_user_specified_encoding ); par_user_specified_encoding = NULL; } { Py_XDECREF( par_document_declared_encoding ); par_document_declared_encoding = NULL; } { CHECK_OBJECT( (PyObject *)par_exclude_encodings ); Py_DECREF( par_exclude_encodings ); par_exclude_encodings = NULL; } { goto function_return_exit; } // End of try: } { CHECK_OBJECT( (PyObject *)par_self ); Py_DECREF( par_self ); par_self = NULL; } { CHECK_OBJECT( (PyObject *)par_markup ); Py_DECREF( par_markup ); par_markup = NULL; } { CHECK_OBJECT( (PyObject *)par_user_specified_encoding ); Py_DECREF( par_user_specified_encoding ); par_user_specified_encoding = NULL; } { Py_XDECREF( par_document_declared_encoding ); par_document_declared_encoding = NULL; } { CHECK_OBJECT( (PyObject *)par_exclude_encodings ); Py_DECREF( par_exclude_encodings ); par_exclude_encodings = NULL; } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_1_prepare_markup ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } struct bs4$builder$_html5lib$$$function_1_prepare_markup$$$genobj_1_prepare_markup_locals { char const *type_description_1; PyObject *exception_type; PyObject *exception_value; PyTracebackObject *exception_tb; int exception_lineno; bool tmp_result; char yield_tmps[1024]; }; static PyObject *bs4$builder$_html5lib$$$function_1_prepare_markup$$$genobj_1_prepare_markup_context( struct Nuitka_GeneratorObject *generator, PyObject *yield_return_value ) { CHECK_OBJECT( (PyObject *)generator ); assert( Nuitka_Generator_Check( (PyObject *)generator ) ); // Heap access if used. struct bs4$builder$_html5lib$$$function_1_prepare_markup$$$genobj_1_prepare_markup_locals *generator_heap = (struct bs4$builder$_html5lib$$$function_1_prepare_markup$$$genobj_1_prepare_markup_locals *)generator->m_heap_storage; // Dispatch to yield based on return label index: switch(generator->m_yield_return_index) { case 1: goto yield_return_1; } // Local variable initialization NUITKA_MAY_BE_UNUSED PyObject *tmp_unused; static struct Nuitka_FrameObject *cache_m_frame = NULL; generator_heap->type_description_1 = NULL; generator_heap->exception_type = NULL; generator_heap->exception_value = NULL; generator_heap->exception_tb = NULL; generator_heap->exception_lineno = 0; // Actual function code. MAKE_OR_REUSE_FRAME( cache_m_frame, codeobj_be57c19b6323868a51c94fa79707b521, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) ); generator->m_frame = cache_m_frame; // Mark the frame object as in use, ref count 1 will be up for reuse. Py_INCREF( generator->m_frame ); assert( Py_REFCNT( generator->m_frame ) == 2 ); // Frame stack #if PYTHON_VERSION >= 340 generator->m_frame->m_frame.f_gen = (PyObject *)generator; #endif Py_CLEAR( generator->m_frame->m_frame.f_back ); generator->m_frame->m_frame.f_back = PyThreadState_GET()->frame; Py_INCREF( generator->m_frame->m_frame.f_back ); PyThreadState_GET()->frame = &generator->m_frame->m_frame; Py_INCREF( generator->m_frame ); Nuitka_Frame_MarkAsExecuting( generator->m_frame ); #if PYTHON_VERSION >= 300 // Accept currently existing exception as the one to publish again when we // yield or yield from. { PyThreadState *thread_state = PyThreadState_GET(); #if PYTHON_VERSION < 370 generator->m_frame->m_frame.f_exc_type = EXC_TYPE( thread_state ); if ( generator->m_frame->m_frame.f_exc_type == Py_None ) generator->m_frame->m_frame.f_exc_type = NULL; Py_XINCREF( generator->m_frame->m_frame.f_exc_type ); generator->m_frame->m_frame.f_exc_value = EXC_VALUE( thread_state ); Py_XINCREF( generator->m_frame->m_frame.f_exc_value ); generator->m_frame->m_frame.f_exc_traceback = EXC_TRACEBACK( thread_state ); Py_XINCREF( generator->m_frame->m_frame.f_exc_traceback ); #else generator->m_exc_state.exc_type = EXC_TYPE( thread_state ); if ( generator->m_exc_state.exc_type == Py_None ) generator->m_exc_state.exc_type = NULL; Py_XINCREF( generator->m_exc_state.exc_type ); generator->m_exc_state.exc_value = EXC_VALUE( thread_state ); Py_XINCREF( generator->m_exc_state.exc_value ); generator->m_exc_state.exc_traceback = EXC_TRACEBACK( thread_state ); Py_XINCREF( generator->m_exc_state.exc_traceback ); #endif } #endif // Framed code: { PyObject *tmp_assattr_name_1; PyObject *tmp_assattr_target_1; if ( PyCell_GET( generator->m_closure[4] ) == NULL ) { generator_heap->exception_type = PyExc_NameError; Py_INCREF( generator_heap->exception_type ); generator_heap->exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "user_specified_encoding" ); generator_heap->exception_tb = NULL; NORMALIZE_EXCEPTION( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb ); CHAIN_EXCEPTION( generator_heap->exception_value ); generator_heap->exception_lineno = 51; generator_heap->type_description_1 = "ccccc"; goto frame_exception_exit_1; } tmp_assattr_name_1 = PyCell_GET( generator->m_closure[4] ); if ( PyCell_GET( generator->m_closure[3] ) == NULL ) { generator_heap->exception_type = PyExc_NameError; Py_INCREF( generator_heap->exception_type ); generator_heap->exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "self" ); generator_heap->exception_tb = NULL; NORMALIZE_EXCEPTION( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb ); CHAIN_EXCEPTION( generator_heap->exception_value ); generator_heap->exception_lineno = 51; generator_heap->type_description_1 = "ccccc"; goto frame_exception_exit_1; } tmp_assattr_target_1 = PyCell_GET( generator->m_closure[3] ); generator_heap->tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain_user_specified_encoding, tmp_assattr_name_1 ); if ( generator_heap->tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb ); generator_heap->exception_lineno = 51; generator_heap->type_description_1 = "ccccc"; goto frame_exception_exit_1; } } { nuitka_bool tmp_condition_result_1; int tmp_truth_name_1; if ( PyCell_GET( generator->m_closure[1] ) == NULL ) { generator_heap->exception_type = PyExc_NameError; Py_INCREF( generator_heap->exception_type ); generator_heap->exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "exclude_encodings" ); generator_heap->exception_tb = NULL; NORMALIZE_EXCEPTION( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb ); CHAIN_EXCEPTION( generator_heap->exception_value ); generator_heap->exception_lineno = 56; generator_heap->type_description_1 = "ccccc"; goto frame_exception_exit_1; } tmp_truth_name_1 = CHECK_IF_TRUE( PyCell_GET( generator->m_closure[1] ) ); if ( tmp_truth_name_1 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb ); generator_heap->exception_lineno = 56; generator_heap->type_description_1 = "ccccc"; goto frame_exception_exit_1; } tmp_condition_result_1 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { PyObject *tmp_called_instance_1; PyObject *tmp_mvar_value_1; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_warnings ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_warnings ); } if ( tmp_mvar_value_1 == NULL ) { generator_heap->exception_type = PyExc_NameError; Py_INCREF( generator_heap->exception_type ); generator_heap->exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "warnings" ); generator_heap->exception_tb = NULL; NORMALIZE_EXCEPTION( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb ); CHAIN_EXCEPTION( generator_heap->exception_value ); generator_heap->exception_lineno = 57; generator_heap->type_description_1 = "ccccc"; goto frame_exception_exit_1; } tmp_called_instance_1 = tmp_mvar_value_1; generator->m_frame->m_frame.f_lineno = 57; tmp_unused = CALL_METHOD_WITH_ARGS1( tmp_called_instance_1, const_str_plain_warn, &PyTuple_GET_ITEM( const_tuple_str_digest_3d5fba1e94b4958bb91ad0af4088e046_tuple, 0 ) ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb ); generator_heap->exception_lineno = 57; generator_heap->type_description_1 = "ccccc"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } branch_no_1:; } { PyObject *tmp_expression_name_1; PyObject *tmp_tuple_element_1; if ( PyCell_GET( generator->m_closure[2] ) == NULL ) { generator_heap->exception_type = PyExc_NameError; Py_INCREF( generator_heap->exception_type ); generator_heap->exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "markup" ); generator_heap->exception_tb = NULL; NORMALIZE_EXCEPTION( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb ); CHAIN_EXCEPTION( generator_heap->exception_value ); generator_heap->exception_lineno = 58; generator_heap->type_description_1 = "ccccc"; goto frame_exception_exit_1; } tmp_tuple_element_1 = PyCell_GET( generator->m_closure[2] ); tmp_expression_name_1 = PyTuple_New( 4 ); Py_INCREF( tmp_tuple_element_1 ); PyTuple_SET_ITEM( tmp_expression_name_1, 0, tmp_tuple_element_1 ); tmp_tuple_element_1 = Py_None; Py_INCREF( tmp_tuple_element_1 ); PyTuple_SET_ITEM( tmp_expression_name_1, 1, tmp_tuple_element_1 ); tmp_tuple_element_1 = Py_None; Py_INCREF( tmp_tuple_element_1 ); PyTuple_SET_ITEM( tmp_expression_name_1, 2, tmp_tuple_element_1 ); tmp_tuple_element_1 = Py_False; Py_INCREF( tmp_tuple_element_1 ); PyTuple_SET_ITEM( tmp_expression_name_1, 3, tmp_tuple_element_1 ); Nuitka_PreserveHeap( generator_heap->yield_tmps, &tmp_tuple_element_1, sizeof(PyObject *), NULL ); generator->m_yield_return_index = 1; return tmp_expression_name_1; yield_return_1: Nuitka_RestoreHeap( generator_heap->yield_tmps, &tmp_tuple_element_1, sizeof(PyObject *), NULL ); if ( yield_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb ); generator_heap->exception_lineno = 58; generator_heap->type_description_1 = "ccccc"; goto frame_exception_exit_1; } tmp_unused = yield_return_value; } Nuitka_Frame_MarkAsNotExecuting( generator->m_frame ); #if PYTHON_VERSION >= 370 Py_CLEAR( generator->m_exc_state.exc_type ); Py_CLEAR( generator->m_exc_state.exc_value ); Py_CLEAR( generator->m_exc_state.exc_traceback ); #elif PYTHON_VERSION >= 300 Py_CLEAR( generator->m_frame->m_frame.f_exc_type ); Py_CLEAR( generator->m_frame->m_frame.f_exc_value ); Py_CLEAR( generator->m_frame->m_frame.f_exc_traceback ); #endif // Allow re-use of the frame again. Py_DECREF( generator->m_frame ); goto frame_no_exception_1; frame_exception_exit_1:; // If it's not an exit exception, consider and create a traceback for it. if ( !EXCEPTION_MATCH_GENERATOR( generator_heap->exception_type ) ) { if ( generator_heap->exception_tb == NULL ) { generator_heap->exception_tb = MAKE_TRACEBACK( generator->m_frame, generator_heap->exception_lineno ); } else if ( generator_heap->exception_tb->tb_frame != &generator->m_frame->m_frame ) { generator_heap->exception_tb = ADD_TRACEBACK( generator_heap->exception_tb, generator->m_frame, generator_heap->exception_lineno ); } Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)generator->m_frame, generator_heap->type_description_1, generator->m_closure[3], generator->m_closure[2], generator->m_closure[4], generator->m_closure[0], generator->m_closure[1] ); // Release cached frame. if ( generator->m_frame == cache_m_frame ) { Py_DECREF( generator->m_frame ); } cache_m_frame = NULL; assertFrameObject( generator->m_frame ); } #if PYTHON_VERSION >= 370 Py_CLEAR( generator->m_exc_state.exc_type ); Py_CLEAR( generator->m_exc_state.exc_value ); Py_CLEAR( generator->m_exc_state.exc_traceback ); #elif PYTHON_VERSION >= 300 Py_CLEAR( generator->m_frame->m_frame.f_exc_type ); Py_CLEAR( generator->m_frame->m_frame.f_exc_value ); Py_CLEAR( generator->m_frame->m_frame.f_exc_traceback ); #endif Py_DECREF( generator->m_frame ); // Return the error. goto function_exception_exit; frame_no_exception_1:; return NULL; function_exception_exit: assert( generator_heap->exception_type ); RESTORE_ERROR_OCCURRED( generator_heap->exception_type, generator_heap->exception_value, generator_heap->exception_tb ); return NULL; } static PyObject *bs4$builder$_html5lib$$$function_1_prepare_markup$$$genobj_1_prepare_markup_maker( void ) { return Nuitka_Generator_New( bs4$builder$_html5lib$$$function_1_prepare_markup$$$genobj_1_prepare_markup_context, module_bs4$builder$_html5lib, const_str_plain_prepare_markup, #if PYTHON_VERSION >= 350 const_str_digest_705811222fc5d1ae224a2513522bac8c, #endif codeobj_be57c19b6323868a51c94fa79707b521, 5, sizeof(struct bs4$builder$_html5lib$$$function_1_prepare_markup$$$genobj_1_prepare_markup_locals) ); } static PyObject *impl_bs4$builder$_html5lib$$$function_2_feed( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *par_markup = python_pars[ 1 ]; PyObject *var_parser = NULL; PyObject *var_extra_kwargs = NULL; PyObject *var_doc = NULL; PyObject *var_original_encoding = NULL; struct Nuitka_FrameObject *frame_b5df6feb2ab831ba7b08e7f8011c2e3f; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; NUITKA_MAY_BE_UNUSED PyObject *tmp_unused; int tmp_res; bool tmp_result; static struct Nuitka_FrameObject *cache_frame_b5df6feb2ab831ba7b08e7f8011c2e3f = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_b5df6feb2ab831ba7b08e7f8011c2e3f, codeobj_b5df6feb2ab831ba7b08e7f8011c2e3f, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) ); frame_b5df6feb2ab831ba7b08e7f8011c2e3f = cache_frame_b5df6feb2ab831ba7b08e7f8011c2e3f; // Push the new frame as the currently active one. pushFrameStack( frame_b5df6feb2ab831ba7b08e7f8011c2e3f ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_b5df6feb2ab831ba7b08e7f8011c2e3f ) == 2 ); // Frame stack // Framed code: { nuitka_bool tmp_condition_result_1; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; PyObject *tmp_source_name_1; PyObject *tmp_source_name_2; CHECK_OBJECT( par_self ); tmp_source_name_2 = par_self; tmp_source_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_soup ); if ( tmp_source_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 62; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_parse_only ); Py_DECREF( tmp_source_name_1 ); if ( tmp_compexpr_left_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 62; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_compexpr_right_1 = Py_None; tmp_condition_result_1 = ( tmp_compexpr_left_1 != tmp_compexpr_right_1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_compexpr_left_1 ); if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { PyObject *tmp_called_instance_1; PyObject *tmp_mvar_value_1; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_warnings ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_warnings ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "warnings" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 63; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_called_instance_1 = tmp_mvar_value_1; frame_b5df6feb2ab831ba7b08e7f8011c2e3f->m_frame.f_lineno = 63; tmp_unused = CALL_METHOD_WITH_ARGS1( tmp_called_instance_1, const_str_plain_warn, &PyTuple_GET_ITEM( const_tuple_str_digest_9fd92504c714f83e298be124b3bb9bc8_tuple, 0 ) ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 63; type_description_1 = "oooooo"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } branch_no_1:; } { PyObject *tmp_assign_source_1; PyObject *tmp_called_name_1; PyObject *tmp_source_name_3; PyObject *tmp_mvar_value_2; PyObject *tmp_kw_name_1; PyObject *tmp_dict_key_1; PyObject *tmp_dict_value_1; PyObject *tmp_source_name_4; tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_html5lib ); if (unlikely( tmp_mvar_value_2 == NULL )) { tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_html5lib ); } if ( tmp_mvar_value_2 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "html5lib" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 64; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_source_name_3 = tmp_mvar_value_2; tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_HTMLParser ); if ( tmp_called_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 64; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_dict_key_1 = const_str_plain_tree; if ( par_self == NULL ) { Py_DECREF( tmp_called_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 64; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_source_name_4 = par_self; tmp_dict_value_1 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_create_treebuilder ); if ( tmp_dict_value_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_1 ); exception_lineno = 64; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_kw_name_1 = _PyDict_NewPresized( 1 ); tmp_res = PyDict_SetItem( tmp_kw_name_1, tmp_dict_key_1, tmp_dict_value_1 ); Py_DECREF( tmp_dict_value_1 ); assert( !(tmp_res != 0) ); frame_b5df6feb2ab831ba7b08e7f8011c2e3f->m_frame.f_lineno = 64; tmp_assign_source_1 = CALL_FUNCTION_WITH_KEYARGS( tmp_called_name_1, tmp_kw_name_1 ); Py_DECREF( tmp_called_name_1 ); Py_DECREF( tmp_kw_name_1 ); if ( tmp_assign_source_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 64; type_description_1 = "oooooo"; goto frame_exception_exit_1; } assert( var_parser == NULL ); var_parser = tmp_assign_source_1; } { PyObject *tmp_assign_source_2; tmp_assign_source_2 = PyDict_New(); assert( var_extra_kwargs == NULL ); var_extra_kwargs = tmp_assign_source_2; } { nuitka_bool tmp_condition_result_2; PyObject *tmp_operand_name_1; PyObject *tmp_isinstance_inst_1; PyObject *tmp_isinstance_cls_1; if ( par_markup == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "markup" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 67; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_isinstance_inst_1 = par_markup; tmp_isinstance_cls_1 = (PyObject *)&PyUnicode_Type; tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_1, tmp_isinstance_cls_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 67; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_operand_name_1 = ( tmp_res != 0 ) ? Py_True : Py_False; tmp_res = CHECK_IF_TRUE( tmp_operand_name_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 67; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_condition_result_2 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE ) { goto branch_yes_2; } else { goto branch_no_2; } branch_yes_2:; { nuitka_bool tmp_condition_result_3; PyObject *tmp_mvar_value_3; int tmp_truth_name_1; tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_new_html5lib ); if (unlikely( tmp_mvar_value_3 == NULL )) { tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_new_html5lib ); } if ( tmp_mvar_value_3 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "new_html5lib" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 68; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_truth_name_1 = CHECK_IF_TRUE( tmp_mvar_value_3 ); if ( tmp_truth_name_1 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 68; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_condition_result_3 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_3 == NUITKA_BOOL_TRUE ) { goto branch_yes_3; } else { goto branch_no_3; } branch_yes_3:; { PyObject *tmp_ass_subvalue_1; PyObject *tmp_source_name_5; PyObject *tmp_ass_subscribed_1; PyObject *tmp_ass_subscript_1; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 69; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_source_name_5 = par_self; tmp_ass_subvalue_1 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain_user_specified_encoding ); if ( tmp_ass_subvalue_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 69; type_description_1 = "oooooo"; goto frame_exception_exit_1; } if ( var_extra_kwargs == NULL ) { Py_DECREF( tmp_ass_subvalue_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "extra_kwargs" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 69; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_ass_subscribed_1 = var_extra_kwargs; tmp_ass_subscript_1 = const_str_plain_override_encoding; tmp_result = SET_SUBSCRIPT( tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1 ); Py_DECREF( tmp_ass_subvalue_1 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 69; type_description_1 = "oooooo"; goto frame_exception_exit_1; } } goto branch_end_3; branch_no_3:; { PyObject *tmp_ass_subvalue_2; PyObject *tmp_source_name_6; PyObject *tmp_ass_subscribed_2; PyObject *tmp_ass_subscript_2; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 71; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_source_name_6 = par_self; tmp_ass_subvalue_2 = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain_user_specified_encoding ); if ( tmp_ass_subvalue_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 71; type_description_1 = "oooooo"; goto frame_exception_exit_1; } if ( var_extra_kwargs == NULL ) { Py_DECREF( tmp_ass_subvalue_2 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "extra_kwargs" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 71; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_ass_subscribed_2 = var_extra_kwargs; tmp_ass_subscript_2 = const_str_plain_encoding; tmp_result = SET_SUBSCRIPT( tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2 ); Py_DECREF( tmp_ass_subvalue_2 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 71; type_description_1 = "oooooo"; goto frame_exception_exit_1; } } branch_end_3:; } branch_no_2:; } { PyObject *tmp_assign_source_3; PyObject *tmp_dircall_arg1_1; PyObject *tmp_source_name_7; PyObject *tmp_dircall_arg2_1; PyObject *tmp_tuple_element_1; PyObject *tmp_dircall_arg3_1; if ( var_parser == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "parser" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 72; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_source_name_7 = var_parser; tmp_dircall_arg1_1 = LOOKUP_ATTRIBUTE( tmp_source_name_7, const_str_plain_parse ); if ( tmp_dircall_arg1_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 72; type_description_1 = "oooooo"; goto frame_exception_exit_1; } if ( par_markup == NULL ) { Py_DECREF( tmp_dircall_arg1_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "markup" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 72; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_tuple_element_1 = par_markup; tmp_dircall_arg2_1 = PyTuple_New( 1 ); Py_INCREF( tmp_tuple_element_1 ); PyTuple_SET_ITEM( tmp_dircall_arg2_1, 0, tmp_tuple_element_1 ); if ( var_extra_kwargs == NULL ) { Py_DECREF( tmp_dircall_arg1_1 ); Py_DECREF( tmp_dircall_arg2_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "extra_kwargs" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 72; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_dircall_arg3_1 = var_extra_kwargs; Py_INCREF( tmp_dircall_arg3_1 ); { PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1}; tmp_assign_source_3 = impl___internal__$$$function_5_complex_call_helper_pos_star_dict( dir_call_args ); } if ( tmp_assign_source_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 72; type_description_1 = "oooooo"; goto frame_exception_exit_1; } assert( var_doc == NULL ); var_doc = tmp_assign_source_3; } { nuitka_bool tmp_condition_result_4; PyObject *tmp_isinstance_inst_2; PyObject *tmp_isinstance_cls_2; if ( par_markup == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "markup" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 75; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_isinstance_inst_2 = par_markup; tmp_isinstance_cls_2 = (PyObject *)&PyUnicode_Type; tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_2, tmp_isinstance_cls_2 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 75; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_condition_result_4 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_4 == NUITKA_BOOL_TRUE ) { goto branch_yes_4; } else { goto branch_no_4; } branch_yes_4:; { PyObject *tmp_assattr_name_1; PyObject *tmp_assattr_target_1; tmp_assattr_name_1 = Py_None; CHECK_OBJECT( var_doc ); tmp_assattr_target_1 = var_doc; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain_original_encoding, tmp_assattr_name_1 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 78; type_description_1 = "oooooo"; goto frame_exception_exit_1; } } goto branch_end_4; branch_no_4:; { PyObject *tmp_assign_source_4; PyObject *tmp_subscribed_name_1; PyObject *tmp_source_name_8; PyObject *tmp_source_name_9; PyObject *tmp_source_name_10; PyObject *tmp_subscript_name_1; if ( var_parser == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "parser" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 80; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_source_name_10 = var_parser; tmp_source_name_9 = LOOKUP_ATTRIBUTE( tmp_source_name_10, const_str_plain_tokenizer ); if ( tmp_source_name_9 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 80; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_source_name_8 = LOOKUP_ATTRIBUTE( tmp_source_name_9, const_str_plain_stream ); Py_DECREF( tmp_source_name_9 ); if ( tmp_source_name_8 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 80; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_subscribed_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_8, const_str_plain_charEncoding ); Py_DECREF( tmp_source_name_8 ); if ( tmp_subscribed_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 80; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_subscript_name_1 = const_int_0; tmp_assign_source_4 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_1, tmp_subscript_name_1, 0 ); Py_DECREF( tmp_subscribed_name_1 ); if ( tmp_assign_source_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 80; type_description_1 = "oooooo"; goto frame_exception_exit_1; } assert( var_original_encoding == NULL ); var_original_encoding = tmp_assign_source_4; } { nuitka_bool tmp_condition_result_5; PyObject *tmp_operand_name_2; PyObject *tmp_isinstance_inst_3; PyObject *tmp_isinstance_cls_3; CHECK_OBJECT( var_original_encoding ); tmp_isinstance_inst_3 = var_original_encoding; tmp_isinstance_cls_3 = (PyObject *)&PyUnicode_Type; tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_3, tmp_isinstance_cls_3 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 81; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_operand_name_2 = ( tmp_res != 0 ) ? Py_True : Py_False; tmp_res = CHECK_IF_TRUE( tmp_operand_name_2 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 81; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_condition_result_5 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_5 == NUITKA_BOOL_TRUE ) { goto branch_yes_5; } else { goto branch_no_5; } branch_yes_5:; { PyObject *tmp_assign_source_5; PyObject *tmp_source_name_11; if ( var_original_encoding == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "original_encoding" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 85; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_source_name_11 = var_original_encoding; tmp_assign_source_5 = LOOKUP_ATTRIBUTE( tmp_source_name_11, const_str_plain_name ); if ( tmp_assign_source_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 85; type_description_1 = "oooooo"; goto frame_exception_exit_1; } { PyObject *old = var_original_encoding; var_original_encoding = tmp_assign_source_5; Py_XDECREF( old ); } } branch_no_5:; } { PyObject *tmp_assattr_name_2; PyObject *tmp_assattr_target_2; if ( var_original_encoding == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "original_encoding" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 86; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_assattr_name_2 = var_original_encoding; if ( var_doc == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "doc" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 86; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_assattr_target_2 = var_doc; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_2, const_str_plain_original_encoding, tmp_assattr_name_2 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 86; type_description_1 = "oooooo"; goto frame_exception_exit_1; } } branch_end_4:; } #if 0 RESTORE_FRAME_EXCEPTION( frame_b5df6feb2ab831ba7b08e7f8011c2e3f ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_b5df6feb2ab831ba7b08e7f8011c2e3f ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_b5df6feb2ab831ba7b08e7f8011c2e3f, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_b5df6feb2ab831ba7b08e7f8011c2e3f->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_b5df6feb2ab831ba7b08e7f8011c2e3f, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_b5df6feb2ab831ba7b08e7f8011c2e3f, type_description_1, par_self, par_markup, var_parser, var_extra_kwargs, var_doc, var_original_encoding ); // Release cached frame. if ( frame_b5df6feb2ab831ba7b08e7f8011c2e3f == cache_frame_b5df6feb2ab831ba7b08e7f8011c2e3f ) { Py_DECREF( frame_b5df6feb2ab831ba7b08e7f8011c2e3f ); } cache_frame_b5df6feb2ab831ba7b08e7f8011c2e3f = NULL; assertFrameObject( frame_b5df6feb2ab831ba7b08e7f8011c2e3f ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; { tmp_return_value = Py_None; Py_INCREF( tmp_return_value ); goto try_return_handler_1; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_2_feed ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_markup ); par_markup = NULL; } { Py_XDECREF( var_parser ); var_parser = NULL; } { Py_XDECREF( var_extra_kwargs ); var_extra_kwargs = NULL; } { Py_XDECREF( var_doc ); var_doc = NULL; } { Py_XDECREF( var_original_encoding ); var_original_encoding = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_markup ); par_markup = NULL; } { Py_XDECREF( var_parser ); var_parser = NULL; } { Py_XDECREF( var_extra_kwargs ); var_extra_kwargs = NULL; } { Py_XDECREF( var_doc ); var_doc = NULL; } { Py_XDECREF( var_original_encoding ); var_original_encoding = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_2_feed ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_3_create_treebuilder( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *par_namespaceHTMLElements = python_pars[ 1 ]; struct Nuitka_FrameObject *frame_03356bb8d25faf8ed7137afa41c65191; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; bool tmp_result; PyObject *tmp_return_value = NULL; static struct Nuitka_FrameObject *cache_frame_03356bb8d25faf8ed7137afa41c65191 = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_03356bb8d25faf8ed7137afa41c65191, codeobj_03356bb8d25faf8ed7137afa41c65191, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *) ); frame_03356bb8d25faf8ed7137afa41c65191 = cache_frame_03356bb8d25faf8ed7137afa41c65191; // Push the new frame as the currently active one. pushFrameStack( frame_03356bb8d25faf8ed7137afa41c65191 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_03356bb8d25faf8ed7137afa41c65191 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_assattr_name_1; PyObject *tmp_called_name_1; PyObject *tmp_mvar_value_1; PyObject *tmp_args_element_name_1; PyObject *tmp_args_element_name_2; PyObject *tmp_source_name_1; PyObject *tmp_assattr_target_1; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_TreeBuilderForHtml5lib ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_TreeBuilderForHtml5lib ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "TreeBuilderForHtml5lib" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 89; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_called_name_1 = tmp_mvar_value_1; CHECK_OBJECT( par_namespaceHTMLElements ); tmp_args_element_name_1 = par_namespaceHTMLElements; CHECK_OBJECT( par_self ); tmp_source_name_1 = par_self; tmp_args_element_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_soup ); if ( tmp_args_element_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 90; type_description_1 = "oo"; goto frame_exception_exit_1; } frame_03356bb8d25faf8ed7137afa41c65191->m_frame.f_lineno = 89; { PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_2 }; tmp_assattr_name_1 = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_1, call_args ); } Py_DECREF( tmp_args_element_name_2 ); if ( tmp_assattr_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 89; type_description_1 = "oo"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_assattr_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 89; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_assattr_target_1 = par_self; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain_underlying_builder, tmp_assattr_name_1 ); Py_DECREF( tmp_assattr_name_1 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 89; type_description_1 = "oo"; goto frame_exception_exit_1; } } { PyObject *tmp_source_name_2; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 91; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_source_name_2 = par_self; tmp_return_value = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_underlying_builder ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 91; type_description_1 = "oo"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_03356bb8d25faf8ed7137afa41c65191 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_03356bb8d25faf8ed7137afa41c65191 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_03356bb8d25faf8ed7137afa41c65191 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_03356bb8d25faf8ed7137afa41c65191, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_03356bb8d25faf8ed7137afa41c65191->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_03356bb8d25faf8ed7137afa41c65191, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_03356bb8d25faf8ed7137afa41c65191, type_description_1, par_self, par_namespaceHTMLElements ); // Release cached frame. if ( frame_03356bb8d25faf8ed7137afa41c65191 == cache_frame_03356bb8d25faf8ed7137afa41c65191 ) { Py_DECREF( frame_03356bb8d25faf8ed7137afa41c65191 ); } cache_frame_03356bb8d25faf8ed7137afa41c65191 = NULL; assertFrameObject( frame_03356bb8d25faf8ed7137afa41c65191 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_3_create_treebuilder ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_namespaceHTMLElements ); par_namespaceHTMLElements = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_namespaceHTMLElements ); par_namespaceHTMLElements = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_3_create_treebuilder ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_4_test_fragment_to_document( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *par_fragment = python_pars[ 1 ]; struct Nuitka_FrameObject *frame_65e5814b2e94eb798c90a811e24fb7ba; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; static struct Nuitka_FrameObject *cache_frame_65e5814b2e94eb798c90a811e24fb7ba = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_65e5814b2e94eb798c90a811e24fb7ba, codeobj_65e5814b2e94eb798c90a811e24fb7ba, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *) ); frame_65e5814b2e94eb798c90a811e24fb7ba = cache_frame_65e5814b2e94eb798c90a811e24fb7ba; // Push the new frame as the currently active one. pushFrameStack( frame_65e5814b2e94eb798c90a811e24fb7ba ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_65e5814b2e94eb798c90a811e24fb7ba ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_left_name_1; PyObject *tmp_right_name_1; tmp_left_name_1 = const_str_digest_5921b81dfc7215fb7e2d25bca9c4c463; CHECK_OBJECT( par_fragment ); tmp_right_name_1 = par_fragment; tmp_return_value = BINARY_OPERATION_REMAINDER( tmp_left_name_1, tmp_right_name_1 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 95; type_description_1 = "oo"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_65e5814b2e94eb798c90a811e24fb7ba ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_65e5814b2e94eb798c90a811e24fb7ba ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_65e5814b2e94eb798c90a811e24fb7ba ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_65e5814b2e94eb798c90a811e24fb7ba, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_65e5814b2e94eb798c90a811e24fb7ba->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_65e5814b2e94eb798c90a811e24fb7ba, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_65e5814b2e94eb798c90a811e24fb7ba, type_description_1, par_self, par_fragment ); // Release cached frame. if ( frame_65e5814b2e94eb798c90a811e24fb7ba == cache_frame_65e5814b2e94eb798c90a811e24fb7ba ) { Py_DECREF( frame_65e5814b2e94eb798c90a811e24fb7ba ); } cache_frame_65e5814b2e94eb798c90a811e24fb7ba = NULL; assertFrameObject( frame_65e5814b2e94eb798c90a811e24fb7ba ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_4_test_fragment_to_document ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_fragment ); par_fragment = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_fragment ); par_fragment = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_4_test_fragment_to_document ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_5___init__( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *par_namespaceHTMLElements = python_pars[ 1 ]; PyObject *par_soup = python_pars[ 2 ]; PyObject *var_BeautifulSoup = NULL; struct Nuitka_FrameObject *frame_e5238202841a449b0fe675887c8c127c; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; bool tmp_result; NUITKA_MAY_BE_UNUSED PyObject *tmp_unused; static struct Nuitka_FrameObject *cache_frame_e5238202841a449b0fe675887c8c127c = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_e5238202841a449b0fe675887c8c127c, codeobj_e5238202841a449b0fe675887c8c127c, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) ); frame_e5238202841a449b0fe675887c8c127c = cache_frame_e5238202841a449b0fe675887c8c127c; // Push the new frame as the currently active one. pushFrameStack( frame_e5238202841a449b0fe675887c8c127c ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_e5238202841a449b0fe675887c8c127c ) == 2 ); // Frame stack // Framed code: { nuitka_bool tmp_condition_result_1; int tmp_truth_name_1; CHECK_OBJECT( par_soup ); tmp_truth_name_1 = CHECK_IF_TRUE( par_soup ); if ( tmp_truth_name_1 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 101; type_description_1 = "ooooN"; goto frame_exception_exit_1; } tmp_condition_result_1 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { PyObject *tmp_assattr_name_1; PyObject *tmp_assattr_target_1; CHECK_OBJECT( par_soup ); tmp_assattr_name_1 = par_soup; CHECK_OBJECT( par_self ); tmp_assattr_target_1 = par_self; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain_soup, tmp_assattr_name_1 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 102; type_description_1 = "ooooN"; goto frame_exception_exit_1; } } goto branch_end_1; branch_no_1:; { PyObject *tmp_assign_source_1; PyObject *tmp_import_name_from_1; PyObject *tmp_name_name_1; PyObject *tmp_globals_name_1; PyObject *tmp_locals_name_1; PyObject *tmp_fromlist_name_1; PyObject *tmp_level_name_1; tmp_name_name_1 = const_str_plain_bs4; tmp_globals_name_1 = (PyObject *)moduledict_bs4$builder$_html5lib; tmp_locals_name_1 = Py_None; tmp_fromlist_name_1 = const_tuple_str_plain_BeautifulSoup_tuple; tmp_level_name_1 = const_int_0; frame_e5238202841a449b0fe675887c8c127c->m_frame.f_lineno = 104; tmp_import_name_from_1 = IMPORT_MODULE5( tmp_name_name_1, tmp_globals_name_1, tmp_locals_name_1, tmp_fromlist_name_1, tmp_level_name_1 ); if ( tmp_import_name_from_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 104; type_description_1 = "ooooN"; goto frame_exception_exit_1; } tmp_assign_source_1 = IMPORT_NAME( tmp_import_name_from_1, const_str_plain_BeautifulSoup ); Py_DECREF( tmp_import_name_from_1 ); if ( tmp_assign_source_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 104; type_description_1 = "ooooN"; goto frame_exception_exit_1; } assert( var_BeautifulSoup == NULL ); var_BeautifulSoup = tmp_assign_source_1; } { PyObject *tmp_assattr_name_2; PyObject *tmp_called_name_1; PyObject *tmp_assattr_target_2; CHECK_OBJECT( var_BeautifulSoup ); tmp_called_name_1 = var_BeautifulSoup; frame_e5238202841a449b0fe675887c8c127c->m_frame.f_lineno = 105; tmp_assattr_name_2 = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_1, &PyTuple_GET_ITEM( const_tuple_str_empty_str_digest_c94e49aa6b31218158c33258bda42655_tuple, 0 ) ); if ( tmp_assattr_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 105; type_description_1 = "ooooN"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_assattr_name_2 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 105; type_description_1 = "ooooN"; goto frame_exception_exit_1; } tmp_assattr_target_2 = par_self; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_2, const_str_plain_soup, tmp_assattr_name_2 ); Py_DECREF( tmp_assattr_name_2 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 105; type_description_1 = "ooooN"; goto frame_exception_exit_1; } } branch_end_1:; } { PyObject *tmp_called_name_2; PyObject *tmp_source_name_1; PyObject *tmp_type_name_1; PyObject *tmp_mvar_value_1; PyObject *tmp_object_name_1; PyObject *tmp_args_element_name_1; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_TreeBuilderForHtml5lib ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_TreeBuilderForHtml5lib ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "TreeBuilderForHtml5lib" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 106; type_description_1 = "ooooN"; goto frame_exception_exit_1; } tmp_type_name_1 = tmp_mvar_value_1; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 106; type_description_1 = "ooooN"; goto frame_exception_exit_1; } tmp_object_name_1 = par_self; tmp_source_name_1 = BUILTIN_SUPER( tmp_type_name_1, tmp_object_name_1 ); if ( tmp_source_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 106; type_description_1 = "ooooN"; goto frame_exception_exit_1; } tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain___init__ ); Py_DECREF( tmp_source_name_1 ); if ( tmp_called_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 106; type_description_1 = "ooooN"; goto frame_exception_exit_1; } if ( par_namespaceHTMLElements == NULL ) { Py_DECREF( tmp_called_name_2 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "namespaceHTMLElements" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 106; type_description_1 = "ooooN"; goto frame_exception_exit_1; } tmp_args_element_name_1 = par_namespaceHTMLElements; frame_e5238202841a449b0fe675887c8c127c->m_frame.f_lineno = 106; { PyObject *call_args[] = { tmp_args_element_name_1 }; tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_2, call_args ); } Py_DECREF( tmp_called_name_2 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 106; type_description_1 = "ooooN"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } #if 0 RESTORE_FRAME_EXCEPTION( frame_e5238202841a449b0fe675887c8c127c ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_e5238202841a449b0fe675887c8c127c ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_e5238202841a449b0fe675887c8c127c, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_e5238202841a449b0fe675887c8c127c->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_e5238202841a449b0fe675887c8c127c, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_e5238202841a449b0fe675887c8c127c, type_description_1, par_self, par_namespaceHTMLElements, par_soup, var_BeautifulSoup, NULL ); // Release cached frame. if ( frame_e5238202841a449b0fe675887c8c127c == cache_frame_e5238202841a449b0fe675887c8c127c ) { Py_DECREF( frame_e5238202841a449b0fe675887c8c127c ); } cache_frame_e5238202841a449b0fe675887c8c127c = NULL; assertFrameObject( frame_e5238202841a449b0fe675887c8c127c ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; { tmp_return_value = Py_None; Py_INCREF( tmp_return_value ); goto try_return_handler_1; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_5___init__ ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_namespaceHTMLElements ); par_namespaceHTMLElements = NULL; } { Py_XDECREF( par_soup ); par_soup = NULL; } { Py_XDECREF( var_BeautifulSoup ); var_BeautifulSoup = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_namespaceHTMLElements ); par_namespaceHTMLElements = NULL; } { Py_XDECREF( par_soup ); par_soup = NULL; } { Py_XDECREF( var_BeautifulSoup ); var_BeautifulSoup = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_5___init__ ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_6_documentClass( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; struct Nuitka_FrameObject *frame_18b019f67e357fe63dc2021e665ae864; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; NUITKA_MAY_BE_UNUSED PyObject *tmp_unused; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; PyObject *tmp_return_value = NULL; static struct Nuitka_FrameObject *cache_frame_18b019f67e357fe63dc2021e665ae864 = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_18b019f67e357fe63dc2021e665ae864, codeobj_18b019f67e357fe63dc2021e665ae864, module_bs4$builder$_html5lib, sizeof(void *) ); frame_18b019f67e357fe63dc2021e665ae864 = cache_frame_18b019f67e357fe63dc2021e665ae864; // Push the new frame as the currently active one. pushFrameStack( frame_18b019f67e357fe63dc2021e665ae864 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_18b019f67e357fe63dc2021e665ae864 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_called_instance_1; PyObject *tmp_source_name_1; CHECK_OBJECT( par_self ); tmp_source_name_1 = par_self; tmp_called_instance_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_soup ); if ( tmp_called_instance_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 109; type_description_1 = "o"; goto frame_exception_exit_1; } frame_18b019f67e357fe63dc2021e665ae864->m_frame.f_lineno = 109; tmp_unused = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain_reset ); Py_DECREF( tmp_called_instance_1 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 109; type_description_1 = "o"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } { PyObject *tmp_called_name_1; PyObject *tmp_mvar_value_1; PyObject *tmp_args_element_name_1; PyObject *tmp_source_name_2; PyObject *tmp_args_element_name_2; PyObject *tmp_source_name_3; PyObject *tmp_args_element_name_3; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_Element ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_Element ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "Element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 110; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_called_name_1 = tmp_mvar_value_1; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 110; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_2 = par_self; tmp_args_element_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_soup ); if ( tmp_args_element_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 110; type_description_1 = "o"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_args_element_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 110; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_3 = par_self; tmp_args_element_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_soup ); if ( tmp_args_element_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_args_element_name_1 ); exception_lineno = 110; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_args_element_name_3 = Py_None; frame_18b019f67e357fe63dc2021e665ae864->m_frame.f_lineno = 110; { PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3 }; tmp_return_value = CALL_FUNCTION_WITH_ARGS3( tmp_called_name_1, call_args ); } Py_DECREF( tmp_args_element_name_1 ); Py_DECREF( tmp_args_element_name_2 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 110; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_18b019f67e357fe63dc2021e665ae864 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_18b019f67e357fe63dc2021e665ae864 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_18b019f67e357fe63dc2021e665ae864 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_18b019f67e357fe63dc2021e665ae864, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_18b019f67e357fe63dc2021e665ae864->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_18b019f67e357fe63dc2021e665ae864, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_18b019f67e357fe63dc2021e665ae864, type_description_1, par_self ); // Release cached frame. if ( frame_18b019f67e357fe63dc2021e665ae864 == cache_frame_18b019f67e357fe63dc2021e665ae864 ) { Py_DECREF( frame_18b019f67e357fe63dc2021e665ae864 ); } cache_frame_18b019f67e357fe63dc2021e665ae864 = NULL; assertFrameObject( frame_18b019f67e357fe63dc2021e665ae864 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_6_documentClass ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_6_documentClass ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_7_insertDoctype( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *par_token = python_pars[ 1 ]; PyObject *var_name = NULL; PyObject *var_publicId = NULL; PyObject *var_systemId = NULL; PyObject *var_doctype = NULL; struct Nuitka_FrameObject *frame_6db4f39ead434c1c58fde91234955a2c; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; NUITKA_MAY_BE_UNUSED PyObject *tmp_unused; static struct Nuitka_FrameObject *cache_frame_6db4f39ead434c1c58fde91234955a2c = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_6db4f39ead434c1c58fde91234955a2c, codeobj_6db4f39ead434c1c58fde91234955a2c, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) ); frame_6db4f39ead434c1c58fde91234955a2c = cache_frame_6db4f39ead434c1c58fde91234955a2c; // Push the new frame as the currently active one. pushFrameStack( frame_6db4f39ead434c1c58fde91234955a2c ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_6db4f39ead434c1c58fde91234955a2c ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_assign_source_1; PyObject *tmp_subscribed_name_1; PyObject *tmp_subscript_name_1; CHECK_OBJECT( par_token ); tmp_subscribed_name_1 = par_token; tmp_subscript_name_1 = const_str_plain_name; tmp_assign_source_1 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_1, tmp_subscript_name_1 ); if ( tmp_assign_source_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 113; type_description_1 = "oooooo"; goto frame_exception_exit_1; } assert( var_name == NULL ); var_name = tmp_assign_source_1; } { PyObject *tmp_assign_source_2; PyObject *tmp_subscribed_name_2; PyObject *tmp_subscript_name_2; if ( par_token == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "token" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 114; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_subscribed_name_2 = par_token; tmp_subscript_name_2 = const_str_plain_publicId; tmp_assign_source_2 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_2, tmp_subscript_name_2 ); if ( tmp_assign_source_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 114; type_description_1 = "oooooo"; goto frame_exception_exit_1; } assert( var_publicId == NULL ); var_publicId = tmp_assign_source_2; } { PyObject *tmp_assign_source_3; PyObject *tmp_subscribed_name_3; PyObject *tmp_subscript_name_3; if ( par_token == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "token" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 115; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_subscribed_name_3 = par_token; tmp_subscript_name_3 = const_str_plain_systemId; tmp_assign_source_3 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_3, tmp_subscript_name_3 ); if ( tmp_assign_source_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 115; type_description_1 = "oooooo"; goto frame_exception_exit_1; } assert( var_systemId == NULL ); var_systemId = tmp_assign_source_3; } { PyObject *tmp_assign_source_4; PyObject *tmp_called_name_1; PyObject *tmp_source_name_1; PyObject *tmp_mvar_value_1; PyObject *tmp_args_element_name_1; PyObject *tmp_args_element_name_2; PyObject *tmp_args_element_name_3; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_Doctype ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_Doctype ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "Doctype" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 117; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_source_name_1 = tmp_mvar_value_1; tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_for_name_and_ids ); if ( tmp_called_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 117; type_description_1 = "oooooo"; goto frame_exception_exit_1; } if ( var_name == NULL ) { Py_DECREF( tmp_called_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 117; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_args_element_name_1 = var_name; if ( var_publicId == NULL ) { Py_DECREF( tmp_called_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "publicId" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 117; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_args_element_name_2 = var_publicId; if ( var_systemId == NULL ) { Py_DECREF( tmp_called_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "systemId" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 117; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_args_element_name_3 = var_systemId; frame_6db4f39ead434c1c58fde91234955a2c->m_frame.f_lineno = 117; { PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3 }; tmp_assign_source_4 = CALL_FUNCTION_WITH_ARGS3( tmp_called_name_1, call_args ); } Py_DECREF( tmp_called_name_1 ); if ( tmp_assign_source_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 117; type_description_1 = "oooooo"; goto frame_exception_exit_1; } assert( var_doctype == NULL ); var_doctype = tmp_assign_source_4; } { PyObject *tmp_called_name_2; PyObject *tmp_source_name_2; PyObject *tmp_source_name_3; PyObject *tmp_args_element_name_4; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 118; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_source_name_3 = par_self; tmp_source_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_soup ); if ( tmp_source_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 118; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_object_was_parsed ); Py_DECREF( tmp_source_name_2 ); if ( tmp_called_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 118; type_description_1 = "oooooo"; goto frame_exception_exit_1; } if ( var_doctype == NULL ) { Py_DECREF( tmp_called_name_2 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "doctype" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 118; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_args_element_name_4 = var_doctype; frame_6db4f39ead434c1c58fde91234955a2c->m_frame.f_lineno = 118; { PyObject *call_args[] = { tmp_args_element_name_4 }; tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_2, call_args ); } Py_DECREF( tmp_called_name_2 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 118; type_description_1 = "oooooo"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } #if 0 RESTORE_FRAME_EXCEPTION( frame_6db4f39ead434c1c58fde91234955a2c ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_6db4f39ead434c1c58fde91234955a2c ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_6db4f39ead434c1c58fde91234955a2c, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_6db4f39ead434c1c58fde91234955a2c->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_6db4f39ead434c1c58fde91234955a2c, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_6db4f39ead434c1c58fde91234955a2c, type_description_1, par_self, par_token, var_name, var_publicId, var_systemId, var_doctype ); // Release cached frame. if ( frame_6db4f39ead434c1c58fde91234955a2c == cache_frame_6db4f39ead434c1c58fde91234955a2c ) { Py_DECREF( frame_6db4f39ead434c1c58fde91234955a2c ); } cache_frame_6db4f39ead434c1c58fde91234955a2c = NULL; assertFrameObject( frame_6db4f39ead434c1c58fde91234955a2c ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; { tmp_return_value = Py_None; Py_INCREF( tmp_return_value ); goto try_return_handler_1; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_7_insertDoctype ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_token ); par_token = NULL; } { Py_XDECREF( var_name ); var_name = NULL; } { Py_XDECREF( var_publicId ); var_publicId = NULL; } { Py_XDECREF( var_systemId ); var_systemId = NULL; } { Py_XDECREF( var_doctype ); var_doctype = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_token ); par_token = NULL; } { Py_XDECREF( var_name ); var_name = NULL; } { Py_XDECREF( var_publicId ); var_publicId = NULL; } { Py_XDECREF( var_systemId ); var_systemId = NULL; } { Py_XDECREF( var_doctype ); var_doctype = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_7_insertDoctype ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_8_elementClass( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *par_name = python_pars[ 1 ]; PyObject *par_namespace = python_pars[ 2 ]; PyObject *var_tag = NULL; struct Nuitka_FrameObject *frame_ca1798d9f22d94d9f8fac5732b3f68a0; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; PyObject *tmp_return_value = NULL; static struct Nuitka_FrameObject *cache_frame_ca1798d9f22d94d9f8fac5732b3f68a0 = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_ca1798d9f22d94d9f8fac5732b3f68a0, codeobj_ca1798d9f22d94d9f8fac5732b3f68a0, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) ); frame_ca1798d9f22d94d9f8fac5732b3f68a0 = cache_frame_ca1798d9f22d94d9f8fac5732b3f68a0; // Push the new frame as the currently active one. pushFrameStack( frame_ca1798d9f22d94d9f8fac5732b3f68a0 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_ca1798d9f22d94d9f8fac5732b3f68a0 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_assign_source_1; PyObject *tmp_called_name_1; PyObject *tmp_source_name_1; PyObject *tmp_source_name_2; PyObject *tmp_args_element_name_1; PyObject *tmp_args_element_name_2; CHECK_OBJECT( par_self ); tmp_source_name_2 = par_self; tmp_source_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_soup ); if ( tmp_source_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 121; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_new_tag ); Py_DECREF( tmp_source_name_1 ); if ( tmp_called_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 121; type_description_1 = "oooo"; goto frame_exception_exit_1; } if ( par_name == NULL ) { Py_DECREF( tmp_called_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 121; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_args_element_name_1 = par_name; if ( par_namespace == NULL ) { Py_DECREF( tmp_called_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "namespace" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 121; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_args_element_name_2 = par_namespace; frame_ca1798d9f22d94d9f8fac5732b3f68a0->m_frame.f_lineno = 121; { PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_2 }; tmp_assign_source_1 = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_1, call_args ); } Py_DECREF( tmp_called_name_1 ); if ( tmp_assign_source_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 121; type_description_1 = "oooo"; goto frame_exception_exit_1; } assert( var_tag == NULL ); var_tag = tmp_assign_source_1; } { PyObject *tmp_called_name_2; PyObject *tmp_mvar_value_1; PyObject *tmp_args_element_name_3; PyObject *tmp_args_element_name_4; PyObject *tmp_source_name_3; PyObject *tmp_args_element_name_5; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_Element ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_Element ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "Element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 122; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_called_name_2 = tmp_mvar_value_1; CHECK_OBJECT( var_tag ); tmp_args_element_name_3 = var_tag; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 122; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_source_name_3 = par_self; tmp_args_element_name_4 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_soup ); if ( tmp_args_element_name_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 122; type_description_1 = "oooo"; goto frame_exception_exit_1; } if ( par_namespace == NULL ) { Py_DECREF( tmp_args_element_name_4 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "namespace" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 122; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_args_element_name_5 = par_namespace; frame_ca1798d9f22d94d9f8fac5732b3f68a0->m_frame.f_lineno = 122; { PyObject *call_args[] = { tmp_args_element_name_3, tmp_args_element_name_4, tmp_args_element_name_5 }; tmp_return_value = CALL_FUNCTION_WITH_ARGS3( tmp_called_name_2, call_args ); } Py_DECREF( tmp_args_element_name_4 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 122; type_description_1 = "oooo"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_ca1798d9f22d94d9f8fac5732b3f68a0 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_ca1798d9f22d94d9f8fac5732b3f68a0 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_ca1798d9f22d94d9f8fac5732b3f68a0 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_ca1798d9f22d94d9f8fac5732b3f68a0, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_ca1798d9f22d94d9f8fac5732b3f68a0->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_ca1798d9f22d94d9f8fac5732b3f68a0, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_ca1798d9f22d94d9f8fac5732b3f68a0, type_description_1, par_self, par_name, par_namespace, var_tag ); // Release cached frame. if ( frame_ca1798d9f22d94d9f8fac5732b3f68a0 == cache_frame_ca1798d9f22d94d9f8fac5732b3f68a0 ) { Py_DECREF( frame_ca1798d9f22d94d9f8fac5732b3f68a0 ); } cache_frame_ca1798d9f22d94d9f8fac5732b3f68a0 = NULL; assertFrameObject( frame_ca1798d9f22d94d9f8fac5732b3f68a0 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_8_elementClass ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_name ); par_name = NULL; } { Py_XDECREF( par_namespace ); par_namespace = NULL; } { Py_XDECREF( var_tag ); var_tag = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_name ); par_name = NULL; } { Py_XDECREF( par_namespace ); par_namespace = NULL; } { Py_XDECREF( var_tag ); var_tag = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_8_elementClass ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_9_commentClass( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *par_data = python_pars[ 1 ]; struct Nuitka_FrameObject *frame_842eda5127517017b16637d129696484; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; static struct Nuitka_FrameObject *cache_frame_842eda5127517017b16637d129696484 = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_842eda5127517017b16637d129696484, codeobj_842eda5127517017b16637d129696484, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *) ); frame_842eda5127517017b16637d129696484 = cache_frame_842eda5127517017b16637d129696484; // Push the new frame as the currently active one. pushFrameStack( frame_842eda5127517017b16637d129696484 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_842eda5127517017b16637d129696484 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_called_name_1; PyObject *tmp_mvar_value_1; PyObject *tmp_args_element_name_1; PyObject *tmp_called_name_2; PyObject *tmp_mvar_value_2; PyObject *tmp_args_element_name_2; PyObject *tmp_args_element_name_3; PyObject *tmp_source_name_1; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_TextNode ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_TextNode ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "TextNode" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 125; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_called_name_1 = tmp_mvar_value_1; tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_Comment ); if (unlikely( tmp_mvar_value_2 == NULL )) { tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_Comment ); } if ( tmp_mvar_value_2 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "Comment" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 125; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_called_name_2 = tmp_mvar_value_2; CHECK_OBJECT( par_data ); tmp_args_element_name_2 = par_data; frame_842eda5127517017b16637d129696484->m_frame.f_lineno = 125; { PyObject *call_args[] = { tmp_args_element_name_2 }; tmp_args_element_name_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_2, call_args ); } if ( tmp_args_element_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 125; type_description_1 = "oo"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_args_element_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 125; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_source_name_1 = par_self; tmp_args_element_name_3 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_soup ); if ( tmp_args_element_name_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_args_element_name_1 ); exception_lineno = 125; type_description_1 = "oo"; goto frame_exception_exit_1; } frame_842eda5127517017b16637d129696484->m_frame.f_lineno = 125; { PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_3 }; tmp_return_value = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_1, call_args ); } Py_DECREF( tmp_args_element_name_1 ); Py_DECREF( tmp_args_element_name_3 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 125; type_description_1 = "oo"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_842eda5127517017b16637d129696484 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_842eda5127517017b16637d129696484 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_842eda5127517017b16637d129696484 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_842eda5127517017b16637d129696484, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_842eda5127517017b16637d129696484->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_842eda5127517017b16637d129696484, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_842eda5127517017b16637d129696484, type_description_1, par_self, par_data ); // Release cached frame. if ( frame_842eda5127517017b16637d129696484 == cache_frame_842eda5127517017b16637d129696484 ) { Py_DECREF( frame_842eda5127517017b16637d129696484 ); } cache_frame_842eda5127517017b16637d129696484 = NULL; assertFrameObject( frame_842eda5127517017b16637d129696484 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_9_commentClass ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_data ); par_data = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_data ); par_data = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_9_commentClass ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_10_fragmentClass( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *var_BeautifulSoup = NULL; struct Nuitka_FrameObject *frame_7f88c6650f945f7641129c4145e27c52; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; bool tmp_result; PyObject *tmp_return_value = NULL; static struct Nuitka_FrameObject *cache_frame_7f88c6650f945f7641129c4145e27c52 = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_7f88c6650f945f7641129c4145e27c52, codeobj_7f88c6650f945f7641129c4145e27c52, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *) ); frame_7f88c6650f945f7641129c4145e27c52 = cache_frame_7f88c6650f945f7641129c4145e27c52; // Push the new frame as the currently active one. pushFrameStack( frame_7f88c6650f945f7641129c4145e27c52 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_7f88c6650f945f7641129c4145e27c52 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_assign_source_1; PyObject *tmp_import_name_from_1; PyObject *tmp_name_name_1; PyObject *tmp_globals_name_1; PyObject *tmp_locals_name_1; PyObject *tmp_fromlist_name_1; PyObject *tmp_level_name_1; tmp_name_name_1 = const_str_plain_bs4; tmp_globals_name_1 = (PyObject *)moduledict_bs4$builder$_html5lib; tmp_locals_name_1 = Py_None; tmp_fromlist_name_1 = const_tuple_str_plain_BeautifulSoup_tuple; tmp_level_name_1 = const_int_0; frame_7f88c6650f945f7641129c4145e27c52->m_frame.f_lineno = 128; tmp_import_name_from_1 = IMPORT_MODULE5( tmp_name_name_1, tmp_globals_name_1, tmp_locals_name_1, tmp_fromlist_name_1, tmp_level_name_1 ); if ( tmp_import_name_from_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 128; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_assign_source_1 = IMPORT_NAME( tmp_import_name_from_1, const_str_plain_BeautifulSoup ); Py_DECREF( tmp_import_name_from_1 ); if ( tmp_assign_source_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 128; type_description_1 = "oo"; goto frame_exception_exit_1; } assert( var_BeautifulSoup == NULL ); var_BeautifulSoup = tmp_assign_source_1; } { PyObject *tmp_assattr_name_1; PyObject *tmp_called_name_1; PyObject *tmp_assattr_target_1; CHECK_OBJECT( var_BeautifulSoup ); tmp_called_name_1 = var_BeautifulSoup; frame_7f88c6650f945f7641129c4145e27c52->m_frame.f_lineno = 129; tmp_assattr_name_1 = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_1, &PyTuple_GET_ITEM( const_tuple_str_empty_str_digest_c94e49aa6b31218158c33258bda42655_tuple, 0 ) ); if ( tmp_assattr_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 129; type_description_1 = "oo"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_assattr_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 129; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_assattr_target_1 = par_self; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain_soup, tmp_assattr_name_1 ); Py_DECREF( tmp_assattr_name_1 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 129; type_description_1 = "oo"; goto frame_exception_exit_1; } } { PyObject *tmp_assattr_name_2; PyObject *tmp_assattr_target_2; PyObject *tmp_source_name_1; tmp_assattr_name_2 = const_str_digest_140d872914655f81d5f0b35cd263c3c6; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 130; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_source_name_1 = par_self; tmp_assattr_target_2 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_soup ); if ( tmp_assattr_target_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 130; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_result = SET_ATTRIBUTE( tmp_assattr_target_2, const_str_plain_name, tmp_assattr_name_2 ); Py_DECREF( tmp_assattr_target_2 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 130; type_description_1 = "oo"; goto frame_exception_exit_1; } } { PyObject *tmp_called_name_2; PyObject *tmp_mvar_value_1; PyObject *tmp_args_element_name_1; PyObject *tmp_source_name_2; PyObject *tmp_args_element_name_2; PyObject *tmp_source_name_3; PyObject *tmp_args_element_name_3; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_Element ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_Element ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "Element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 131; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_called_name_2 = tmp_mvar_value_1; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 131; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_source_name_2 = par_self; tmp_args_element_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_soup ); if ( tmp_args_element_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 131; type_description_1 = "oo"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_args_element_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 131; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_source_name_3 = par_self; tmp_args_element_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_soup ); if ( tmp_args_element_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_args_element_name_1 ); exception_lineno = 131; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_args_element_name_3 = Py_None; frame_7f88c6650f945f7641129c4145e27c52->m_frame.f_lineno = 131; { PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3 }; tmp_return_value = CALL_FUNCTION_WITH_ARGS3( tmp_called_name_2, call_args ); } Py_DECREF( tmp_args_element_name_1 ); Py_DECREF( tmp_args_element_name_2 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 131; type_description_1 = "oo"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_7f88c6650f945f7641129c4145e27c52 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_7f88c6650f945f7641129c4145e27c52 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_7f88c6650f945f7641129c4145e27c52 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_7f88c6650f945f7641129c4145e27c52, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_7f88c6650f945f7641129c4145e27c52->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_7f88c6650f945f7641129c4145e27c52, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_7f88c6650f945f7641129c4145e27c52, type_description_1, par_self, var_BeautifulSoup ); // Release cached frame. if ( frame_7f88c6650f945f7641129c4145e27c52 == cache_frame_7f88c6650f945f7641129c4145e27c52 ) { Py_DECREF( frame_7f88c6650f945f7641129c4145e27c52 ); } cache_frame_7f88c6650f945f7641129c4145e27c52 = NULL; assertFrameObject( frame_7f88c6650f945f7641129c4145e27c52 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_10_fragmentClass ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( var_BeautifulSoup ); var_BeautifulSoup = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( var_BeautifulSoup ); var_BeautifulSoup = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_10_fragmentClass ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_11_appendChild( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *par_node = python_pars[ 1 ]; struct Nuitka_FrameObject *frame_60dc340a1f9cb82135fdc5999b8a1f6f; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; NUITKA_MAY_BE_UNUSED PyObject *tmp_unused; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; static struct Nuitka_FrameObject *cache_frame_60dc340a1f9cb82135fdc5999b8a1f6f = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_60dc340a1f9cb82135fdc5999b8a1f6f, codeobj_60dc340a1f9cb82135fdc5999b8a1f6f, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *) ); frame_60dc340a1f9cb82135fdc5999b8a1f6f = cache_frame_60dc340a1f9cb82135fdc5999b8a1f6f; // Push the new frame as the currently active one. pushFrameStack( frame_60dc340a1f9cb82135fdc5999b8a1f6f ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_60dc340a1f9cb82135fdc5999b8a1f6f ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_called_name_1; PyObject *tmp_source_name_1; PyObject *tmp_source_name_2; PyObject *tmp_args_element_name_1; PyObject *tmp_source_name_3; CHECK_OBJECT( par_self ); tmp_source_name_2 = par_self; tmp_source_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_soup ); if ( tmp_source_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 135; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_append ); Py_DECREF( tmp_source_name_1 ); if ( tmp_called_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 135; type_description_1 = "oo"; goto frame_exception_exit_1; } if ( par_node == NULL ) { Py_DECREF( tmp_called_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "node" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 135; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_source_name_3 = par_node; tmp_args_element_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_element ); if ( tmp_args_element_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_1 ); exception_lineno = 135; type_description_1 = "oo"; goto frame_exception_exit_1; } frame_60dc340a1f9cb82135fdc5999b8a1f6f->m_frame.f_lineno = 135; { PyObject *call_args[] = { tmp_args_element_name_1 }; tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args ); } Py_DECREF( tmp_called_name_1 ); Py_DECREF( tmp_args_element_name_1 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 135; type_description_1 = "oo"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } #if 0 RESTORE_FRAME_EXCEPTION( frame_60dc340a1f9cb82135fdc5999b8a1f6f ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_60dc340a1f9cb82135fdc5999b8a1f6f ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_60dc340a1f9cb82135fdc5999b8a1f6f, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_60dc340a1f9cb82135fdc5999b8a1f6f->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_60dc340a1f9cb82135fdc5999b8a1f6f, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_60dc340a1f9cb82135fdc5999b8a1f6f, type_description_1, par_self, par_node ); // Release cached frame. if ( frame_60dc340a1f9cb82135fdc5999b8a1f6f == cache_frame_60dc340a1f9cb82135fdc5999b8a1f6f ) { Py_DECREF( frame_60dc340a1f9cb82135fdc5999b8a1f6f ); } cache_frame_60dc340a1f9cb82135fdc5999b8a1f6f = NULL; assertFrameObject( frame_60dc340a1f9cb82135fdc5999b8a1f6f ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; { tmp_return_value = Py_None; Py_INCREF( tmp_return_value ); goto try_return_handler_1; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_11_appendChild ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_node ); par_node = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_node ); par_node = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_11_appendChild ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_12_getDocument( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; struct Nuitka_FrameObject *frame_e60a236db3a14cb2458d02def75a27cc; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; static struct Nuitka_FrameObject *cache_frame_e60a236db3a14cb2458d02def75a27cc = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_e60a236db3a14cb2458d02def75a27cc, codeobj_e60a236db3a14cb2458d02def75a27cc, module_bs4$builder$_html5lib, sizeof(void *) ); frame_e60a236db3a14cb2458d02def75a27cc = cache_frame_e60a236db3a14cb2458d02def75a27cc; // Push the new frame as the currently active one. pushFrameStack( frame_e60a236db3a14cb2458d02def75a27cc ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_e60a236db3a14cb2458d02def75a27cc ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_source_name_1; CHECK_OBJECT( par_self ); tmp_source_name_1 = par_self; tmp_return_value = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_soup ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 138; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_e60a236db3a14cb2458d02def75a27cc ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_e60a236db3a14cb2458d02def75a27cc ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_e60a236db3a14cb2458d02def75a27cc ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_e60a236db3a14cb2458d02def75a27cc, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_e60a236db3a14cb2458d02def75a27cc->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_e60a236db3a14cb2458d02def75a27cc, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_e60a236db3a14cb2458d02def75a27cc, type_description_1, par_self ); // Release cached frame. if ( frame_e60a236db3a14cb2458d02def75a27cc == cache_frame_e60a236db3a14cb2458d02def75a27cc ) { Py_DECREF( frame_e60a236db3a14cb2458d02def75a27cc ); } cache_frame_e60a236db3a14cb2458d02def75a27cc = NULL; assertFrameObject( frame_e60a236db3a14cb2458d02def75a27cc ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_12_getDocument ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_12_getDocument ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_13_getFragment( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; struct Nuitka_FrameObject *frame_7134c5be048dde74f22047bcbc35fb7d; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; static struct Nuitka_FrameObject *cache_frame_7134c5be048dde74f22047bcbc35fb7d = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_7134c5be048dde74f22047bcbc35fb7d, codeobj_7134c5be048dde74f22047bcbc35fb7d, module_bs4$builder$_html5lib, sizeof(void *) ); frame_7134c5be048dde74f22047bcbc35fb7d = cache_frame_7134c5be048dde74f22047bcbc35fb7d; // Push the new frame as the currently active one. pushFrameStack( frame_7134c5be048dde74f22047bcbc35fb7d ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_7134c5be048dde74f22047bcbc35fb7d ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_source_name_1; PyObject *tmp_called_name_1; PyObject *tmp_source_name_2; PyObject *tmp_source_name_3; PyObject *tmp_mvar_value_1; PyObject *tmp_args_element_name_1; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_treebuilder_base ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_treebuilder_base ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "treebuilder_base" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 141; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_3 = tmp_mvar_value_1; tmp_source_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_TreeBuilder ); if ( tmp_source_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 141; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_getFragment ); Py_DECREF( tmp_source_name_2 ); if ( tmp_called_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 141; type_description_1 = "o"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_called_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 141; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_args_element_name_1 = par_self; frame_7134c5be048dde74f22047bcbc35fb7d->m_frame.f_lineno = 141; { PyObject *call_args[] = { tmp_args_element_name_1 }; tmp_source_name_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args ); } Py_DECREF( tmp_called_name_1 ); if ( tmp_source_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 141; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_return_value = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_element ); Py_DECREF( tmp_source_name_1 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 141; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_7134c5be048dde74f22047bcbc35fb7d ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_7134c5be048dde74f22047bcbc35fb7d ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_7134c5be048dde74f22047bcbc35fb7d ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_7134c5be048dde74f22047bcbc35fb7d, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_7134c5be048dde74f22047bcbc35fb7d->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_7134c5be048dde74f22047bcbc35fb7d, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_7134c5be048dde74f22047bcbc35fb7d, type_description_1, par_self ); // Release cached frame. if ( frame_7134c5be048dde74f22047bcbc35fb7d == cache_frame_7134c5be048dde74f22047bcbc35fb7d ) { Py_DECREF( frame_7134c5be048dde74f22047bcbc35fb7d ); } cache_frame_7134c5be048dde74f22047bcbc35fb7d = NULL; assertFrameObject( frame_7134c5be048dde74f22047bcbc35fb7d ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_13_getFragment ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_13_getFragment ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_14_testSerializer( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *par_element = python_pars[ 1 ]; struct Nuitka_CellObject *var_BeautifulSoup = PyCell_EMPTY(); struct Nuitka_CellObject *var_rv = PyCell_EMPTY(); struct Nuitka_CellObject *var_doctype_re = PyCell_EMPTY(); struct Nuitka_CellObject *var_serializeElement = PyCell_EMPTY(); struct Nuitka_FrameObject *frame_b4a8744a449badcda89b9c58a2df9a07; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; NUITKA_MAY_BE_UNUSED PyObject *tmp_unused; PyObject *tmp_return_value = NULL; static struct Nuitka_FrameObject *cache_frame_b4a8744a449badcda89b9c58a2df9a07 = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_b4a8744a449badcda89b9c58a2df9a07, codeobj_b4a8744a449badcda89b9c58a2df9a07, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) ); frame_b4a8744a449badcda89b9c58a2df9a07 = cache_frame_b4a8744a449badcda89b9c58a2df9a07; // Push the new frame as the currently active one. pushFrameStack( frame_b4a8744a449badcda89b9c58a2df9a07 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_b4a8744a449badcda89b9c58a2df9a07 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_assign_source_1; PyObject *tmp_import_name_from_1; PyObject *tmp_name_name_1; PyObject *tmp_globals_name_1; PyObject *tmp_locals_name_1; PyObject *tmp_fromlist_name_1; PyObject *tmp_level_name_1; tmp_name_name_1 = const_str_plain_bs4; tmp_globals_name_1 = (PyObject *)moduledict_bs4$builder$_html5lib; tmp_locals_name_1 = Py_None; tmp_fromlist_name_1 = const_tuple_str_plain_BeautifulSoup_tuple; tmp_level_name_1 = const_int_0; frame_b4a8744a449badcda89b9c58a2df9a07->m_frame.f_lineno = 144; tmp_import_name_from_1 = IMPORT_MODULE5( tmp_name_name_1, tmp_globals_name_1, tmp_locals_name_1, tmp_fromlist_name_1, tmp_level_name_1 ); if ( tmp_import_name_from_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 144; type_description_1 = "oocccc"; goto frame_exception_exit_1; } tmp_assign_source_1 = IMPORT_NAME( tmp_import_name_from_1, const_str_plain_BeautifulSoup ); Py_DECREF( tmp_import_name_from_1 ); if ( tmp_assign_source_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 144; type_description_1 = "oocccc"; goto frame_exception_exit_1; } assert( PyCell_GET( var_BeautifulSoup ) == NULL ); PyCell_SET( var_BeautifulSoup, tmp_assign_source_1 ); } { PyObject *tmp_assign_source_2; tmp_assign_source_2 = PyList_New( 0 ); assert( PyCell_GET( var_rv ) == NULL ); PyCell_SET( var_rv, tmp_assign_source_2 ); } { PyObject *tmp_assign_source_3; PyObject *tmp_called_instance_1; PyObject *tmp_mvar_value_1; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_re ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_re ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "re" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 146; type_description_1 = "oocccc"; goto frame_exception_exit_1; } tmp_called_instance_1 = tmp_mvar_value_1; frame_b4a8744a449badcda89b9c58a2df9a07->m_frame.f_lineno = 146; tmp_assign_source_3 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_1, const_str_plain_compile, &PyTuple_GET_ITEM( const_tuple_str_digest_d00eeea15e46a3e8fb3ff0ec6400a01f_tuple, 0 ) ); if ( tmp_assign_source_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 146; type_description_1 = "oocccc"; goto frame_exception_exit_1; } assert( PyCell_GET( var_doctype_re ) == NULL ); PyCell_SET( var_doctype_re, tmp_assign_source_3 ); } { PyObject *tmp_assign_source_4; PyObject *tmp_defaults_1; tmp_defaults_1 = const_tuple_int_0_tuple; Py_INCREF( tmp_defaults_1 ); tmp_assign_source_4 = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_14_testSerializer$$$function_1_serializeElement( tmp_defaults_1 ); ((struct Nuitka_FunctionObject *)tmp_assign_source_4)->m_closure[0] = var_BeautifulSoup; Py_INCREF( ((struct Nuitka_FunctionObject *)tmp_assign_source_4)->m_closure[0] ); ((struct Nuitka_FunctionObject *)tmp_assign_source_4)->m_closure[1] = var_doctype_re; Py_INCREF( ((struct Nuitka_FunctionObject *)tmp_assign_source_4)->m_closure[1] ); ((struct Nuitka_FunctionObject *)tmp_assign_source_4)->m_closure[2] = var_rv; Py_INCREF( ((struct Nuitka_FunctionObject *)tmp_assign_source_4)->m_closure[2] ); ((struct Nuitka_FunctionObject *)tmp_assign_source_4)->m_closure[3] = var_serializeElement; Py_INCREF( ((struct Nuitka_FunctionObject *)tmp_assign_source_4)->m_closure[3] ); assert( PyCell_GET( var_serializeElement ) == NULL ); PyCell_SET( var_serializeElement, tmp_assign_source_4 ); } { PyObject *tmp_called_name_1; PyObject *tmp_args_element_name_1; PyObject *tmp_args_element_name_2; CHECK_OBJECT( PyCell_GET( var_serializeElement ) ); tmp_called_name_1 = PyCell_GET( var_serializeElement ); if ( par_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 189; type_description_1 = "oocccc"; goto frame_exception_exit_1; } tmp_args_element_name_1 = par_element; tmp_args_element_name_2 = const_int_0; frame_b4a8744a449badcda89b9c58a2df9a07->m_frame.f_lineno = 189; { PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_2 }; tmp_unused = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_1, call_args ); } if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 189; type_description_1 = "oocccc"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } { PyObject *tmp_called_name_2; PyObject *tmp_source_name_1; PyObject *tmp_args_element_name_3; tmp_source_name_1 = const_str_newline; tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_join ); assert( !(tmp_called_name_2 == NULL) ); if ( PyCell_GET( var_rv ) == NULL ) { Py_DECREF( tmp_called_name_2 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "rv" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 191; type_description_1 = "oocccc"; goto frame_exception_exit_1; } tmp_args_element_name_3 = PyCell_GET( var_rv ); frame_b4a8744a449badcda89b9c58a2df9a07->m_frame.f_lineno = 191; { PyObject *call_args[] = { tmp_args_element_name_3 }; tmp_return_value = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_2, call_args ); } Py_DECREF( tmp_called_name_2 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 191; type_description_1 = "oocccc"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_b4a8744a449badcda89b9c58a2df9a07 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_b4a8744a449badcda89b9c58a2df9a07 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_b4a8744a449badcda89b9c58a2df9a07 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_b4a8744a449badcda89b9c58a2df9a07, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_b4a8744a449badcda89b9c58a2df9a07->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_b4a8744a449badcda89b9c58a2df9a07, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_b4a8744a449badcda89b9c58a2df9a07, type_description_1, par_self, par_element, var_BeautifulSoup, var_rv, var_doctype_re, var_serializeElement ); // Release cached frame. if ( frame_b4a8744a449badcda89b9c58a2df9a07 == cache_frame_b4a8744a449badcda89b9c58a2df9a07 ) { Py_DECREF( frame_b4a8744a449badcda89b9c58a2df9a07 ); } cache_frame_b4a8744a449badcda89b9c58a2df9a07 = NULL; assertFrameObject( frame_b4a8744a449badcda89b9c58a2df9a07 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_14_testSerializer ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_element ); par_element = NULL; } { CHECK_OBJECT( (PyObject *)var_BeautifulSoup ); Py_DECREF( var_BeautifulSoup ); var_BeautifulSoup = NULL; } { CHECK_OBJECT( (PyObject *)var_rv ); Py_DECREF( var_rv ); var_rv = NULL; } { CHECK_OBJECT( (PyObject *)var_doctype_re ); Py_DECREF( var_doctype_re ); var_doctype_re = NULL; } { CHECK_OBJECT( (PyObject *)var_serializeElement ); Py_DECREF( var_serializeElement ); var_serializeElement = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_element ); par_element = NULL; } { CHECK_OBJECT( (PyObject *)var_BeautifulSoup ); Py_DECREF( var_BeautifulSoup ); var_BeautifulSoup = NULL; } { CHECK_OBJECT( (PyObject *)var_rv ); Py_DECREF( var_rv ); var_rv = NULL; } { CHECK_OBJECT( (PyObject *)var_doctype_re ); Py_DECREF( var_doctype_re ); var_doctype_re = NULL; } { CHECK_OBJECT( (PyObject *)var_serializeElement ); Py_DECREF( var_serializeElement ); var_serializeElement = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_14_testSerializer ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_14_testSerializer$$$function_1_serializeElement( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_element = python_pars[ 0 ]; PyObject *par_indent = python_pars[ 1 ]; PyObject *var_m = NULL; PyObject *var_name = NULL; PyObject *var_publicId = NULL; PyObject *var_systemId = NULL; PyObject *var_attributes = NULL; PyObject *var_value = NULL; PyObject *var_child = NULL; PyObject *tmp_for_loop_1__for_iterator = NULL; PyObject *tmp_for_loop_1__iter_value = NULL; PyObject *tmp_for_loop_2__for_iterator = NULL; PyObject *tmp_for_loop_2__iter_value = NULL; PyObject *tmp_for_loop_3__for_iterator = NULL; PyObject *tmp_for_loop_3__iter_value = NULL; PyObject *tmp_tuple_unpack_1__element_1 = NULL; PyObject *tmp_tuple_unpack_1__element_2 = NULL; PyObject *tmp_tuple_unpack_1__source_iter = NULL; PyObject *tmp_tuple_unpack_2__element_1 = NULL; PyObject *tmp_tuple_unpack_2__element_2 = NULL; PyObject *tmp_tuple_unpack_2__source_iter = NULL; struct Nuitka_FrameObject *frame_2cac38a5727d0b1a295d9efb5458dd50; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; NUITKA_MAY_BE_UNUSED PyObject *tmp_unused; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; int tmp_res; PyObject *tmp_iterator_attempt; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; PyObject *exception_keeper_type_2; PyObject *exception_keeper_value_2; PyTracebackObject *exception_keeper_tb_2; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; PyObject *exception_keeper_type_3; PyObject *exception_keeper_value_3; PyTracebackObject *exception_keeper_tb_3; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; PyObject *exception_keeper_type_4; PyObject *exception_keeper_value_4; PyTracebackObject *exception_keeper_tb_4; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; PyObject *exception_keeper_type_5; PyObject *exception_keeper_value_5; PyTracebackObject *exception_keeper_tb_5; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; PyObject *exception_keeper_type_6; PyObject *exception_keeper_value_6; PyTracebackObject *exception_keeper_tb_6; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; bool tmp_result; PyObject *exception_keeper_type_7; PyObject *exception_keeper_value_7; PyTracebackObject *exception_keeper_tb_7; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; static struct Nuitka_FrameObject *cache_frame_2cac38a5727d0b1a295d9efb5458dd50 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_keeper_type_8; PyObject *exception_keeper_value_8; PyTracebackObject *exception_keeper_tb_8; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_2cac38a5727d0b1a295d9efb5458dd50, codeobj_2cac38a5727d0b1a295d9efb5458dd50, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) ); frame_2cac38a5727d0b1a295d9efb5458dd50 = cache_frame_2cac38a5727d0b1a295d9efb5458dd50; // Push the new frame as the currently active one. pushFrameStack( frame_2cac38a5727d0b1a295d9efb5458dd50 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_2cac38a5727d0b1a295d9efb5458dd50 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_value_name_1; PyObject *tmp_operand_name_1; PyObject *tmp_isinstance_inst_1; PyObject *tmp_isinstance_cls_1; CHECK_OBJECT( par_element ); tmp_isinstance_inst_1 = par_element; if ( PyCell_GET( self->m_closure[0] ) == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "BeautifulSoup" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 149; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_isinstance_cls_1 = PyCell_GET( self->m_closure[0] ); tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_1, tmp_isinstance_cls_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 149; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_operand_name_1 = ( tmp_res != 0 ) ? Py_True : Py_False; tmp_res = CHECK_IF_TRUE( tmp_operand_name_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 149; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_value_name_1 = ( tmp_res == 0 ) ? Py_True : Py_False; tmp_res = CHECK_IF_TRUE( tmp_value_name_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 149; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_unused = ( tmp_res != 0 ) ? Py_True : Py_False; } { nuitka_bool tmp_condition_result_1; PyObject *tmp_isinstance_inst_2; PyObject *tmp_isinstance_cls_2; PyObject *tmp_mvar_value_1; if ( par_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 151; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_isinstance_inst_2 = par_element; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_Doctype ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_Doctype ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "Doctype" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 151; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_isinstance_cls_2 = tmp_mvar_value_1; tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_2, tmp_isinstance_cls_2 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 151; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_condition_result_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { PyObject *tmp_assign_source_1; PyObject *tmp_called_name_1; PyObject *tmp_source_name_1; PyObject *tmp_args_element_name_1; if ( PyCell_GET( self->m_closure[1] ) == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "doctype_re" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 152; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_source_name_1 = PyCell_GET( self->m_closure[1] ); tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_match ); if ( tmp_called_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 152; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } if ( par_element == NULL ) { Py_DECREF( tmp_called_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 152; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_args_element_name_1 = par_element; frame_2cac38a5727d0b1a295d9efb5458dd50->m_frame.f_lineno = 152; { PyObject *call_args[] = { tmp_args_element_name_1 }; tmp_assign_source_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args ); } Py_DECREF( tmp_called_name_1 ); if ( tmp_assign_source_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 152; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } assert( var_m == NULL ); var_m = tmp_assign_source_1; } { nuitka_bool tmp_condition_result_2; int tmp_truth_name_1; CHECK_OBJECT( var_m ); tmp_truth_name_1 = CHECK_IF_TRUE( var_m ); if ( tmp_truth_name_1 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 153; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_condition_result_2 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE ) { goto branch_yes_2; } else { goto branch_no_2; } branch_yes_2:; { PyObject *tmp_assign_source_2; PyObject *tmp_called_instance_1; CHECK_OBJECT( var_m ); tmp_called_instance_1 = var_m; frame_2cac38a5727d0b1a295d9efb5458dd50->m_frame.f_lineno = 154; tmp_assign_source_2 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_1, const_str_plain_group, &PyTuple_GET_ITEM( const_tuple_int_pos_1_tuple, 0 ) ); if ( tmp_assign_source_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 154; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } assert( var_name == NULL ); var_name = tmp_assign_source_2; } { nuitka_bool tmp_condition_result_3; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; PyObject *tmp_source_name_2; if ( var_m == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "m" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 155; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_source_name_2 = var_m; tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_lastindex ); if ( tmp_compexpr_left_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 155; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_compexpr_right_1 = const_int_pos_1; tmp_res = RICH_COMPARE_BOOL_GT( tmp_compexpr_left_1, tmp_compexpr_right_1 ); Py_DECREF( tmp_compexpr_left_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 155; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_condition_result_3 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_3 == NUITKA_BOOL_TRUE ) { goto branch_yes_3; } else { goto branch_no_3; } branch_yes_3:; { PyObject *tmp_assign_source_3; int tmp_or_left_truth_1; PyObject *tmp_or_left_value_1; PyObject *tmp_or_right_value_1; PyObject *tmp_called_instance_2; if ( var_m == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "m" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 156; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_called_instance_2 = var_m; frame_2cac38a5727d0b1a295d9efb5458dd50->m_frame.f_lineno = 156; tmp_or_left_value_1 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_2, const_str_plain_group, &PyTuple_GET_ITEM( const_tuple_int_pos_2_tuple, 0 ) ); if ( tmp_or_left_value_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 156; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_or_left_truth_1 = CHECK_IF_TRUE( tmp_or_left_value_1 ); if ( tmp_or_left_truth_1 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_or_left_value_1 ); exception_lineno = 156; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } if ( tmp_or_left_truth_1 == 1 ) { goto or_left_1; } else { goto or_right_1; } or_right_1:; Py_DECREF( tmp_or_left_value_1 ); tmp_or_right_value_1 = const_str_empty; Py_INCREF( tmp_or_right_value_1 ); tmp_assign_source_3 = tmp_or_right_value_1; goto or_end_1; or_left_1:; tmp_assign_source_3 = tmp_or_left_value_1; or_end_1:; assert( var_publicId == NULL ); var_publicId = tmp_assign_source_3; } { PyObject *tmp_assign_source_4; int tmp_or_left_truth_2; PyObject *tmp_or_left_value_2; PyObject *tmp_or_right_value_2; PyObject *tmp_called_instance_3; int tmp_or_left_truth_3; PyObject *tmp_or_left_value_3; PyObject *tmp_or_right_value_3; PyObject *tmp_called_instance_4; if ( var_m == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "m" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 157; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_called_instance_3 = var_m; frame_2cac38a5727d0b1a295d9efb5458dd50->m_frame.f_lineno = 157; tmp_or_left_value_2 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_3, const_str_plain_group, &PyTuple_GET_ITEM( const_tuple_int_pos_3_tuple, 0 ) ); if ( tmp_or_left_value_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 157; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_or_left_truth_2 = CHECK_IF_TRUE( tmp_or_left_value_2 ); if ( tmp_or_left_truth_2 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_or_left_value_2 ); exception_lineno = 157; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } if ( tmp_or_left_truth_2 == 1 ) { goto or_left_2; } else { goto or_right_2; } or_right_2:; Py_DECREF( tmp_or_left_value_2 ); if ( var_m == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "m" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 157; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_called_instance_4 = var_m; frame_2cac38a5727d0b1a295d9efb5458dd50->m_frame.f_lineno = 157; tmp_or_left_value_3 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_4, const_str_plain_group, &PyTuple_GET_ITEM( const_tuple_int_pos_4_tuple, 0 ) ); if ( tmp_or_left_value_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 157; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_or_left_truth_3 = CHECK_IF_TRUE( tmp_or_left_value_3 ); if ( tmp_or_left_truth_3 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_or_left_value_3 ); exception_lineno = 157; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } if ( tmp_or_left_truth_3 == 1 ) { goto or_left_3; } else { goto or_right_3; } or_right_3:; Py_DECREF( tmp_or_left_value_3 ); tmp_or_right_value_3 = const_str_empty; Py_INCREF( tmp_or_right_value_3 ); tmp_or_right_value_2 = tmp_or_right_value_3; goto or_end_3; or_left_3:; tmp_or_right_value_2 = tmp_or_left_value_3; or_end_3:; tmp_assign_source_4 = tmp_or_right_value_2; goto or_end_2; or_left_2:; tmp_assign_source_4 = tmp_or_left_value_2; or_end_2:; assert( var_systemId == NULL ); var_systemId = tmp_assign_source_4; } { PyObject *tmp_called_name_2; PyObject *tmp_source_name_3; PyObject *tmp_args_element_name_2; PyObject *tmp_left_name_1; PyObject *tmp_right_name_1; PyObject *tmp_tuple_element_1; PyObject *tmp_left_name_2; PyObject *tmp_right_name_2; if ( PyCell_GET( self->m_closure[2] ) == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "rv" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 158; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_source_name_3 = PyCell_GET( self->m_closure[2] ); tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_append ); if ( tmp_called_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 158; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_left_name_1 = const_str_digest_dd7821ef5da0b0455a4d6eb0dd008921; tmp_left_name_2 = const_str_space; if ( par_indent == NULL ) { Py_DECREF( tmp_called_name_2 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "indent" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 159; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_right_name_2 = par_indent; tmp_tuple_element_1 = BINARY_OPERATION_MUL( tmp_left_name_2, tmp_right_name_2 ); if ( tmp_tuple_element_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_2 ); exception_lineno = 159; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_right_name_1 = PyTuple_New( 4 ); PyTuple_SET_ITEM( tmp_right_name_1, 0, tmp_tuple_element_1 ); if ( var_name == NULL ) { Py_DECREF( tmp_called_name_2 ); Py_DECREF( tmp_right_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 159; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_tuple_element_1 = var_name; Py_INCREF( tmp_tuple_element_1 ); PyTuple_SET_ITEM( tmp_right_name_1, 1, tmp_tuple_element_1 ); if ( var_publicId == NULL ) { Py_DECREF( tmp_called_name_2 ); Py_DECREF( tmp_right_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "publicId" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 159; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_tuple_element_1 = var_publicId; Py_INCREF( tmp_tuple_element_1 ); PyTuple_SET_ITEM( tmp_right_name_1, 2, tmp_tuple_element_1 ); if ( var_systemId == NULL ) { Py_DECREF( tmp_called_name_2 ); Py_DECREF( tmp_right_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "systemId" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 159; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_tuple_element_1 = var_systemId; Py_INCREF( tmp_tuple_element_1 ); PyTuple_SET_ITEM( tmp_right_name_1, 3, tmp_tuple_element_1 ); tmp_args_element_name_2 = BINARY_OPERATION_REMAINDER( tmp_left_name_1, tmp_right_name_1 ); Py_DECREF( tmp_right_name_1 ); if ( tmp_args_element_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_2 ); exception_lineno = 158; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } frame_2cac38a5727d0b1a295d9efb5458dd50->m_frame.f_lineno = 158; { PyObject *call_args[] = { tmp_args_element_name_2 }; tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_2, call_args ); } Py_DECREF( tmp_called_name_2 ); Py_DECREF( tmp_args_element_name_2 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 158; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } goto branch_end_3; branch_no_3:; { PyObject *tmp_called_name_3; PyObject *tmp_source_name_4; PyObject *tmp_args_element_name_3; PyObject *tmp_left_name_3; PyObject *tmp_right_name_3; PyObject *tmp_tuple_element_2; PyObject *tmp_left_name_4; PyObject *tmp_right_name_4; if ( PyCell_GET( self->m_closure[2] ) == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "rv" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 161; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_source_name_4 = PyCell_GET( self->m_closure[2] ); tmp_called_name_3 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_append ); if ( tmp_called_name_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 161; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_left_name_3 = const_str_digest_34507a802131c06d84b0df3091b690ab; tmp_left_name_4 = const_str_space; if ( par_indent == NULL ) { Py_DECREF( tmp_called_name_3 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "indent" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 161; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_right_name_4 = par_indent; tmp_tuple_element_2 = BINARY_OPERATION_MUL( tmp_left_name_4, tmp_right_name_4 ); if ( tmp_tuple_element_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_3 ); exception_lineno = 161; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_right_name_3 = PyTuple_New( 2 ); PyTuple_SET_ITEM( tmp_right_name_3, 0, tmp_tuple_element_2 ); if ( var_name == NULL ) { Py_DECREF( tmp_called_name_3 ); Py_DECREF( tmp_right_name_3 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 161; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_tuple_element_2 = var_name; Py_INCREF( tmp_tuple_element_2 ); PyTuple_SET_ITEM( tmp_right_name_3, 1, tmp_tuple_element_2 ); tmp_args_element_name_3 = BINARY_OPERATION_REMAINDER( tmp_left_name_3, tmp_right_name_3 ); Py_DECREF( tmp_right_name_3 ); if ( tmp_args_element_name_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_3 ); exception_lineno = 161; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } frame_2cac38a5727d0b1a295d9efb5458dd50->m_frame.f_lineno = 161; { PyObject *call_args[] = { tmp_args_element_name_3 }; tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_3, call_args ); } Py_DECREF( tmp_called_name_3 ); Py_DECREF( tmp_args_element_name_3 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 161; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } branch_end_3:; } goto branch_end_2; branch_no_2:; { PyObject *tmp_called_name_4; PyObject *tmp_source_name_5; PyObject *tmp_args_element_name_4; PyObject *tmp_left_name_5; PyObject *tmp_right_name_5; PyObject *tmp_tuple_element_3; PyObject *tmp_left_name_6; PyObject *tmp_right_name_6; if ( PyCell_GET( self->m_closure[2] ) == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "rv" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 163; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_source_name_5 = PyCell_GET( self->m_closure[2] ); tmp_called_name_4 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain_append ); if ( tmp_called_name_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 163; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_left_name_5 = const_str_digest_8f988524f287d2e609acf4ccbd01e462; tmp_left_name_6 = const_str_space; if ( par_indent == NULL ) { Py_DECREF( tmp_called_name_4 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "indent" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 163; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_right_name_6 = par_indent; tmp_tuple_element_3 = BINARY_OPERATION_MUL( tmp_left_name_6, tmp_right_name_6 ); if ( tmp_tuple_element_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_4 ); exception_lineno = 163; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_right_name_5 = PyTuple_New( 1 ); PyTuple_SET_ITEM( tmp_right_name_5, 0, tmp_tuple_element_3 ); tmp_args_element_name_4 = BINARY_OPERATION_REMAINDER( tmp_left_name_5, tmp_right_name_5 ); Py_DECREF( tmp_right_name_5 ); if ( tmp_args_element_name_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_4 ); exception_lineno = 163; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } frame_2cac38a5727d0b1a295d9efb5458dd50->m_frame.f_lineno = 163; { PyObject *call_args[] = { tmp_args_element_name_4 }; tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_4, call_args ); } Py_DECREF( tmp_called_name_4 ); Py_DECREF( tmp_args_element_name_4 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 163; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } branch_end_2:; } goto branch_end_1; branch_no_1:; { nuitka_bool tmp_condition_result_4; PyObject *tmp_isinstance_inst_3; PyObject *tmp_isinstance_cls_3; PyObject *tmp_mvar_value_2; if ( par_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 164; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_isinstance_inst_3 = par_element; tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_Comment ); if (unlikely( tmp_mvar_value_2 == NULL )) { tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_Comment ); } if ( tmp_mvar_value_2 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "Comment" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 164; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_isinstance_cls_3 = tmp_mvar_value_2; tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_3, tmp_isinstance_cls_3 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 164; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_condition_result_4 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_4 == NUITKA_BOOL_TRUE ) { goto branch_yes_4; } else { goto branch_no_4; } branch_yes_4:; { PyObject *tmp_called_name_5; PyObject *tmp_source_name_6; PyObject *tmp_args_element_name_5; PyObject *tmp_left_name_7; PyObject *tmp_right_name_7; PyObject *tmp_tuple_element_4; PyObject *tmp_left_name_8; PyObject *tmp_right_name_8; if ( PyCell_GET( self->m_closure[2] ) == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "rv" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 165; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_source_name_6 = PyCell_GET( self->m_closure[2] ); tmp_called_name_5 = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain_append ); if ( tmp_called_name_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 165; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_left_name_7 = const_str_digest_9f98288462e75229767715081c82f8e3; tmp_left_name_8 = const_str_space; if ( par_indent == NULL ) { Py_DECREF( tmp_called_name_5 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "indent" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 165; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_right_name_8 = par_indent; tmp_tuple_element_4 = BINARY_OPERATION_MUL( tmp_left_name_8, tmp_right_name_8 ); if ( tmp_tuple_element_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_5 ); exception_lineno = 165; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_right_name_7 = PyTuple_New( 2 ); PyTuple_SET_ITEM( tmp_right_name_7, 0, tmp_tuple_element_4 ); if ( par_element == NULL ) { Py_DECREF( tmp_called_name_5 ); Py_DECREF( tmp_right_name_7 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 165; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_tuple_element_4 = par_element; Py_INCREF( tmp_tuple_element_4 ); PyTuple_SET_ITEM( tmp_right_name_7, 1, tmp_tuple_element_4 ); tmp_args_element_name_5 = BINARY_OPERATION_REMAINDER( tmp_left_name_7, tmp_right_name_7 ); Py_DECREF( tmp_right_name_7 ); if ( tmp_args_element_name_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_5 ); exception_lineno = 165; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } frame_2cac38a5727d0b1a295d9efb5458dd50->m_frame.f_lineno = 165; { PyObject *call_args[] = { tmp_args_element_name_5 }; tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_5, call_args ); } Py_DECREF( tmp_called_name_5 ); Py_DECREF( tmp_args_element_name_5 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 165; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } goto branch_end_4; branch_no_4:; { nuitka_bool tmp_condition_result_5; PyObject *tmp_isinstance_inst_4; PyObject *tmp_isinstance_cls_4; PyObject *tmp_mvar_value_3; if ( par_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 166; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_isinstance_inst_4 = par_element; tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_NavigableString ); if (unlikely( tmp_mvar_value_3 == NULL )) { tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_NavigableString ); } if ( tmp_mvar_value_3 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "NavigableString" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 166; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_isinstance_cls_4 = tmp_mvar_value_3; tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_4, tmp_isinstance_cls_4 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 166; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_condition_result_5 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_5 == NUITKA_BOOL_TRUE ) { goto branch_yes_5; } else { goto branch_no_5; } branch_yes_5:; { PyObject *tmp_called_name_6; PyObject *tmp_source_name_7; PyObject *tmp_args_element_name_6; PyObject *tmp_left_name_9; PyObject *tmp_right_name_9; PyObject *tmp_tuple_element_5; PyObject *tmp_left_name_10; PyObject *tmp_right_name_10; if ( PyCell_GET( self->m_closure[2] ) == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "rv" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 167; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_source_name_7 = PyCell_GET( self->m_closure[2] ); tmp_called_name_6 = LOOKUP_ATTRIBUTE( tmp_source_name_7, const_str_plain_append ); if ( tmp_called_name_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 167; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_left_name_9 = const_str_digest_3d21011b2dcbb4225ec1bdd53959a296; tmp_left_name_10 = const_str_space; if ( par_indent == NULL ) { Py_DECREF( tmp_called_name_6 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "indent" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 167; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_right_name_10 = par_indent; tmp_tuple_element_5 = BINARY_OPERATION_MUL( tmp_left_name_10, tmp_right_name_10 ); if ( tmp_tuple_element_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_6 ); exception_lineno = 167; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_right_name_9 = PyTuple_New( 2 ); PyTuple_SET_ITEM( tmp_right_name_9, 0, tmp_tuple_element_5 ); if ( par_element == NULL ) { Py_DECREF( tmp_called_name_6 ); Py_DECREF( tmp_right_name_9 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 167; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_tuple_element_5 = par_element; Py_INCREF( tmp_tuple_element_5 ); PyTuple_SET_ITEM( tmp_right_name_9, 1, tmp_tuple_element_5 ); tmp_args_element_name_6 = BINARY_OPERATION_REMAINDER( tmp_left_name_9, tmp_right_name_9 ); Py_DECREF( tmp_right_name_9 ); if ( tmp_args_element_name_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_6 ); exception_lineno = 167; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } frame_2cac38a5727d0b1a295d9efb5458dd50->m_frame.f_lineno = 167; { PyObject *call_args[] = { tmp_args_element_name_6 }; tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_6, call_args ); } Py_DECREF( tmp_called_name_6 ); Py_DECREF( tmp_args_element_name_6 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 167; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } goto branch_end_5; branch_no_5:; { nuitka_bool tmp_condition_result_6; PyObject *tmp_source_name_8; PyObject *tmp_attribute_value_1; int tmp_truth_name_2; if ( par_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 169; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_source_name_8 = par_element; tmp_attribute_value_1 = LOOKUP_ATTRIBUTE( tmp_source_name_8, const_str_plain_namespace ); if ( tmp_attribute_value_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 169; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_truth_name_2 = CHECK_IF_TRUE( tmp_attribute_value_1 ); if ( tmp_truth_name_2 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_attribute_value_1 ); exception_lineno = 169; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_condition_result_6 = tmp_truth_name_2 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_attribute_value_1 ); if ( tmp_condition_result_6 == NUITKA_BOOL_TRUE ) { goto branch_yes_6; } else { goto branch_no_6; } branch_yes_6:; { PyObject *tmp_assign_source_5; PyObject *tmp_left_name_11; PyObject *tmp_right_name_11; PyObject *tmp_tuple_element_6; PyObject *tmp_subscribed_name_1; PyObject *tmp_mvar_value_4; PyObject *tmp_subscript_name_1; PyObject *tmp_source_name_9; PyObject *tmp_source_name_10; tmp_left_name_11 = const_str_digest_9b2a32a10f34854554acce4f0a1e5df6; tmp_mvar_value_4 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_prefixes ); if (unlikely( tmp_mvar_value_4 == NULL )) { tmp_mvar_value_4 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_prefixes ); } if ( tmp_mvar_value_4 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "prefixes" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 170; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_subscribed_name_1 = tmp_mvar_value_4; if ( par_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 170; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_source_name_9 = par_element; tmp_subscript_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_9, const_str_plain_namespace ); if ( tmp_subscript_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 170; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_tuple_element_6 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_1, tmp_subscript_name_1 ); Py_DECREF( tmp_subscript_name_1 ); if ( tmp_tuple_element_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 170; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_right_name_11 = PyTuple_New( 2 ); PyTuple_SET_ITEM( tmp_right_name_11, 0, tmp_tuple_element_6 ); if ( par_element == NULL ) { Py_DECREF( tmp_right_name_11 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 171; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_source_name_10 = par_element; tmp_tuple_element_6 = LOOKUP_ATTRIBUTE( tmp_source_name_10, const_str_plain_name ); if ( tmp_tuple_element_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_right_name_11 ); exception_lineno = 171; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } PyTuple_SET_ITEM( tmp_right_name_11, 1, tmp_tuple_element_6 ); tmp_assign_source_5 = BINARY_OPERATION_REMAINDER( tmp_left_name_11, tmp_right_name_11 ); Py_DECREF( tmp_right_name_11 ); if ( tmp_assign_source_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 170; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } assert( var_name == NULL ); var_name = tmp_assign_source_5; } goto branch_end_6; branch_no_6:; { PyObject *tmp_assign_source_6; PyObject *tmp_source_name_11; if ( par_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 173; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_source_name_11 = par_element; tmp_assign_source_6 = LOOKUP_ATTRIBUTE( tmp_source_name_11, const_str_plain_name ); if ( tmp_assign_source_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 173; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } assert( var_name == NULL ); var_name = tmp_assign_source_6; } branch_end_6:; } { PyObject *tmp_called_name_7; PyObject *tmp_source_name_12; PyObject *tmp_args_element_name_7; PyObject *tmp_left_name_12; PyObject *tmp_right_name_12; PyObject *tmp_tuple_element_7; PyObject *tmp_left_name_13; PyObject *tmp_right_name_13; if ( PyCell_GET( self->m_closure[2] ) == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "rv" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 174; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_source_name_12 = PyCell_GET( self->m_closure[2] ); tmp_called_name_7 = LOOKUP_ATTRIBUTE( tmp_source_name_12, const_str_plain_append ); if ( tmp_called_name_7 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 174; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_left_name_12 = const_str_digest_6f9a872a47904aea57244dbda428a451; tmp_left_name_13 = const_str_space; if ( par_indent == NULL ) { Py_DECREF( tmp_called_name_7 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "indent" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 174; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_right_name_13 = par_indent; tmp_tuple_element_7 = BINARY_OPERATION_MUL( tmp_left_name_13, tmp_right_name_13 ); if ( tmp_tuple_element_7 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_7 ); exception_lineno = 174; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_right_name_12 = PyTuple_New( 2 ); PyTuple_SET_ITEM( tmp_right_name_12, 0, tmp_tuple_element_7 ); if ( var_name == NULL ) { Py_DECREF( tmp_called_name_7 ); Py_DECREF( tmp_right_name_12 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 174; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_tuple_element_7 = var_name; Py_INCREF( tmp_tuple_element_7 ); PyTuple_SET_ITEM( tmp_right_name_12, 1, tmp_tuple_element_7 ); tmp_args_element_name_7 = BINARY_OPERATION_REMAINDER( tmp_left_name_12, tmp_right_name_12 ); Py_DECREF( tmp_right_name_12 ); if ( tmp_args_element_name_7 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_7 ); exception_lineno = 174; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } frame_2cac38a5727d0b1a295d9efb5458dd50->m_frame.f_lineno = 174; { PyObject *call_args[] = { tmp_args_element_name_7 }; tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_7, call_args ); } Py_DECREF( tmp_called_name_7 ); Py_DECREF( tmp_args_element_name_7 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 174; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } { nuitka_bool tmp_condition_result_7; PyObject *tmp_source_name_13; PyObject *tmp_attribute_value_2; int tmp_truth_name_3; if ( par_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 175; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_source_name_13 = par_element; tmp_attribute_value_2 = LOOKUP_ATTRIBUTE( tmp_source_name_13, const_str_plain_attrs ); if ( tmp_attribute_value_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 175; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_truth_name_3 = CHECK_IF_TRUE( tmp_attribute_value_2 ); if ( tmp_truth_name_3 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_attribute_value_2 ); exception_lineno = 175; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_condition_result_7 = tmp_truth_name_3 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_attribute_value_2 ); if ( tmp_condition_result_7 == NUITKA_BOOL_TRUE ) { goto branch_yes_7; } else { goto branch_no_7; } branch_yes_7:; { PyObject *tmp_assign_source_7; tmp_assign_source_7 = PyList_New( 0 ); assert( var_attributes == NULL ); var_attributes = tmp_assign_source_7; } { PyObject *tmp_assign_source_8; PyObject *tmp_iter_arg_1; PyObject *tmp_list_arg_1; PyObject *tmp_called_instance_5; PyObject *tmp_source_name_14; if ( par_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 177; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_source_name_14 = par_element; tmp_called_instance_5 = LOOKUP_ATTRIBUTE( tmp_source_name_14, const_str_plain_attrs ); if ( tmp_called_instance_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 177; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } frame_2cac38a5727d0b1a295d9efb5458dd50->m_frame.f_lineno = 177; tmp_list_arg_1 = CALL_METHOD_NO_ARGS( tmp_called_instance_5, const_str_plain_items ); Py_DECREF( tmp_called_instance_5 ); if ( tmp_list_arg_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 177; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_iter_arg_1 = PySequence_List( tmp_list_arg_1 ); Py_DECREF( tmp_list_arg_1 ); if ( tmp_iter_arg_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 177; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_assign_source_8 = MAKE_ITERATOR( tmp_iter_arg_1 ); Py_DECREF( tmp_iter_arg_1 ); if ( tmp_assign_source_8 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 177; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } assert( tmp_for_loop_1__for_iterator == NULL ); tmp_for_loop_1__for_iterator = tmp_assign_source_8; } { // Tried code: { loop_start_1:; { PyObject *tmp_next_source_1; PyObject *tmp_assign_source_9; CHECK_OBJECT( tmp_for_loop_1__for_iterator ); tmp_next_source_1 = tmp_for_loop_1__for_iterator; tmp_assign_source_9 = ITERATOR_NEXT( tmp_next_source_1 ); if ( tmp_assign_source_9 == NULL ) { if ( CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED() ) { goto loop_end_1; } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); type_description_1 = "ooooooooocccc"; exception_lineno = 177; goto try_except_handler_2; } } { PyObject *old = tmp_for_loop_1__iter_value; tmp_for_loop_1__iter_value = tmp_assign_source_9; Py_XDECREF( old ); } } { // Tried code: { PyObject *tmp_assign_source_10; PyObject *tmp_iter_arg_2; CHECK_OBJECT( tmp_for_loop_1__iter_value ); tmp_iter_arg_2 = tmp_for_loop_1__iter_value; tmp_assign_source_10 = MAKE_UNPACK_ITERATOR( tmp_iter_arg_2 ); if ( tmp_assign_source_10 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 177; type_description_1 = "ooooooooocccc"; goto try_except_handler_3; } { PyObject *old = tmp_tuple_unpack_1__source_iter; tmp_tuple_unpack_1__source_iter = tmp_assign_source_10; Py_XDECREF( old ); } } { // Tried code: { PyObject *tmp_assign_source_11; PyObject *tmp_unpack_1; CHECK_OBJECT( tmp_tuple_unpack_1__source_iter ); tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; tmp_assign_source_11 = UNPACK_NEXT( tmp_unpack_1, 0, 2 ); if ( tmp_assign_source_11 == NULL ) { if ( !ERROR_OCCURRED() ) { exception_type = PyExc_StopIteration; Py_INCREF( exception_type ); exception_value = NULL; exception_tb = NULL; } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); } type_description_1 = "ooooooooocccc"; exception_lineno = 177; goto try_except_handler_4; } { PyObject *old = tmp_tuple_unpack_1__element_1; tmp_tuple_unpack_1__element_1 = tmp_assign_source_11; Py_XDECREF( old ); } } { PyObject *tmp_assign_source_12; PyObject *tmp_unpack_2; CHECK_OBJECT( tmp_tuple_unpack_1__source_iter ); tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; tmp_assign_source_12 = UNPACK_NEXT( tmp_unpack_2, 1, 2 ); if ( tmp_assign_source_12 == NULL ) { if ( !ERROR_OCCURRED() ) { exception_type = PyExc_StopIteration; Py_INCREF( exception_type ); exception_value = NULL; exception_tb = NULL; } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); } type_description_1 = "ooooooooocccc"; exception_lineno = 177; goto try_except_handler_4; } { PyObject *old = tmp_tuple_unpack_1__element_2; tmp_tuple_unpack_1__element_2 = tmp_assign_source_12; Py_XDECREF( old ); } } { PyObject *tmp_iterator_name_1; CHECK_OBJECT( tmp_tuple_unpack_1__source_iter ); tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; // Check if iterator has left-over elements. CHECK_OBJECT( tmp_iterator_name_1 ); assert( HAS_ITERNEXT( tmp_iterator_name_1 ) ); tmp_iterator_attempt = (*Py_TYPE( tmp_iterator_name_1 )->tp_iternext)( tmp_iterator_name_1 ); if (likely( tmp_iterator_attempt == NULL )) { PyObject *error = GET_ERROR_OCCURRED(); if ( error != NULL ) { if ( EXCEPTION_MATCH_BOOL_SINGLE( error, PyExc_StopIteration )) { CLEAR_ERROR_OCCURRED(); } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); type_description_1 = "ooooooooocccc"; exception_lineno = 177; goto try_except_handler_4; } } } else { Py_DECREF( tmp_iterator_attempt ); // TODO: Could avoid PyErr_Format. #if PYTHON_VERSION < 300 PyErr_Format( PyExc_ValueError, "too many values to unpack" ); #else PyErr_Format( PyExc_ValueError, "too many values to unpack (expected 2)" ); #endif FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); type_description_1 = "ooooooooocccc"; exception_lineno = 177; goto try_except_handler_4; } } goto try_end_1; // Exception handler code: try_except_handler_4:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { CHECK_OBJECT( (PyObject *)tmp_tuple_unpack_1__source_iter ); Py_DECREF( tmp_tuple_unpack_1__source_iter ); tmp_tuple_unpack_1__source_iter = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto try_except_handler_3; } // End of try: try_end_1:; } goto try_end_2; // Exception handler code: try_except_handler_3:; exception_keeper_type_2 = exception_type; exception_keeper_value_2 = exception_value; exception_keeper_tb_2 = exception_tb; exception_keeper_lineno_2 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( tmp_tuple_unpack_1__element_1 ); tmp_tuple_unpack_1__element_1 = NULL; } { Py_XDECREF( tmp_tuple_unpack_1__element_2 ); tmp_tuple_unpack_1__element_2 = NULL; } { // Re-raise. exception_type = exception_keeper_type_2; exception_value = exception_keeper_value_2; exception_tb = exception_keeper_tb_2; exception_lineno = exception_keeper_lineno_2; goto try_except_handler_2; } // End of try: try_end_2:; } { CHECK_OBJECT( (PyObject *)tmp_tuple_unpack_1__source_iter ); Py_DECREF( tmp_tuple_unpack_1__source_iter ); tmp_tuple_unpack_1__source_iter = NULL; } { PyObject *tmp_assign_source_13; CHECK_OBJECT( tmp_tuple_unpack_1__element_1 ); tmp_assign_source_13 = tmp_tuple_unpack_1__element_1; { PyObject *old = var_name; var_name = tmp_assign_source_13; Py_INCREF( var_name ); Py_XDECREF( old ); } } { Py_XDECREF( tmp_tuple_unpack_1__element_1 ); tmp_tuple_unpack_1__element_1 = NULL; } { PyObject *tmp_assign_source_14; CHECK_OBJECT( tmp_tuple_unpack_1__element_2 ); tmp_assign_source_14 = tmp_tuple_unpack_1__element_2; { PyObject *old = var_value; var_value = tmp_assign_source_14; Py_INCREF( var_value ); Py_XDECREF( old ); } } { Py_XDECREF( tmp_tuple_unpack_1__element_2 ); tmp_tuple_unpack_1__element_2 = NULL; } { nuitka_bool tmp_condition_result_8; PyObject *tmp_isinstance_inst_5; PyObject *tmp_isinstance_cls_5; PyObject *tmp_mvar_value_5; if ( var_name == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 178; type_description_1 = "ooooooooocccc"; goto try_except_handler_2; } tmp_isinstance_inst_5 = var_name; tmp_mvar_value_5 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_NamespacedAttribute ); if (unlikely( tmp_mvar_value_5 == NULL )) { tmp_mvar_value_5 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_NamespacedAttribute ); } if ( tmp_mvar_value_5 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "NamespacedAttribute" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 178; type_description_1 = "ooooooooocccc"; goto try_except_handler_2; } tmp_isinstance_cls_5 = tmp_mvar_value_5; tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_5, tmp_isinstance_cls_5 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 178; type_description_1 = "ooooooooocccc"; goto try_except_handler_2; } tmp_condition_result_8 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_8 == NUITKA_BOOL_TRUE ) { goto branch_yes_8; } else { goto branch_no_8; } branch_yes_8:; { PyObject *tmp_assign_source_15; PyObject *tmp_left_name_14; PyObject *tmp_right_name_14; PyObject *tmp_tuple_element_8; PyObject *tmp_subscribed_name_2; PyObject *tmp_mvar_value_6; PyObject *tmp_subscript_name_2; PyObject *tmp_source_name_15; PyObject *tmp_source_name_16; tmp_left_name_14 = const_str_digest_9b2a32a10f34854554acce4f0a1e5df6; tmp_mvar_value_6 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_prefixes ); if (unlikely( tmp_mvar_value_6 == NULL )) { tmp_mvar_value_6 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_prefixes ); } if ( tmp_mvar_value_6 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "prefixes" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 179; type_description_1 = "ooooooooocccc"; goto try_except_handler_2; } tmp_subscribed_name_2 = tmp_mvar_value_6; if ( var_name == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 179; type_description_1 = "ooooooooocccc"; goto try_except_handler_2; } tmp_source_name_15 = var_name; tmp_subscript_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_15, const_str_plain_namespace ); if ( tmp_subscript_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 179; type_description_1 = "ooooooooocccc"; goto try_except_handler_2; } tmp_tuple_element_8 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_2, tmp_subscript_name_2 ); Py_DECREF( tmp_subscript_name_2 ); if ( tmp_tuple_element_8 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 179; type_description_1 = "ooooooooocccc"; goto try_except_handler_2; } tmp_right_name_14 = PyTuple_New( 2 ); PyTuple_SET_ITEM( tmp_right_name_14, 0, tmp_tuple_element_8 ); if ( var_name == NULL ) { Py_DECREF( tmp_right_name_14 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 179; type_description_1 = "ooooooooocccc"; goto try_except_handler_2; } tmp_source_name_16 = var_name; tmp_tuple_element_8 = LOOKUP_ATTRIBUTE( tmp_source_name_16, const_str_plain_name ); if ( tmp_tuple_element_8 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_right_name_14 ); exception_lineno = 179; type_description_1 = "ooooooooocccc"; goto try_except_handler_2; } PyTuple_SET_ITEM( tmp_right_name_14, 1, tmp_tuple_element_8 ); tmp_assign_source_15 = BINARY_OPERATION_REMAINDER( tmp_left_name_14, tmp_right_name_14 ); Py_DECREF( tmp_right_name_14 ); if ( tmp_assign_source_15 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 179; type_description_1 = "ooooooooocccc"; goto try_except_handler_2; } { PyObject *old = var_name; var_name = tmp_assign_source_15; Py_XDECREF( old ); } } branch_no_8:; } { nuitka_bool tmp_condition_result_9; PyObject *tmp_isinstance_inst_6; PyObject *tmp_isinstance_cls_6; if ( var_value == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "value" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 180; type_description_1 = "ooooooooocccc"; goto try_except_handler_2; } tmp_isinstance_inst_6 = var_value; tmp_isinstance_cls_6 = (PyObject *)&PyList_Type; tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_6, tmp_isinstance_cls_6 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 180; type_description_1 = "ooooooooocccc"; goto try_except_handler_2; } tmp_condition_result_9 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_9 == NUITKA_BOOL_TRUE ) { goto branch_yes_9; } else { goto branch_no_9; } branch_yes_9:; { PyObject *tmp_assign_source_16; PyObject *tmp_called_name_8; PyObject *tmp_source_name_17; PyObject *tmp_args_element_name_8; tmp_source_name_17 = const_str_space; tmp_called_name_8 = LOOKUP_ATTRIBUTE( tmp_source_name_17, const_str_plain_join ); assert( !(tmp_called_name_8 == NULL) ); if ( var_value == NULL ) { Py_DECREF( tmp_called_name_8 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "value" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 181; type_description_1 = "ooooooooocccc"; goto try_except_handler_2; } tmp_args_element_name_8 = var_value; frame_2cac38a5727d0b1a295d9efb5458dd50->m_frame.f_lineno = 181; { PyObject *call_args[] = { tmp_args_element_name_8 }; tmp_assign_source_16 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_8, call_args ); } Py_DECREF( tmp_called_name_8 ); if ( tmp_assign_source_16 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 181; type_description_1 = "ooooooooocccc"; goto try_except_handler_2; } { PyObject *old = var_value; var_value = tmp_assign_source_16; Py_XDECREF( old ); } } branch_no_9:; } { PyObject *tmp_called_name_9; PyObject *tmp_source_name_18; PyObject *tmp_args_element_name_9; PyObject *tmp_tuple_element_9; if ( var_attributes == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "attributes" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 182; type_description_1 = "ooooooooocccc"; goto try_except_handler_2; } tmp_source_name_18 = var_attributes; tmp_called_name_9 = LOOKUP_ATTRIBUTE( tmp_source_name_18, const_str_plain_append ); if ( tmp_called_name_9 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 182; type_description_1 = "ooooooooocccc"; goto try_except_handler_2; } if ( var_name == NULL ) { Py_DECREF( tmp_called_name_9 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 182; type_description_1 = "ooooooooocccc"; goto try_except_handler_2; } tmp_tuple_element_9 = var_name; tmp_args_element_name_9 = PyTuple_New( 2 ); Py_INCREF( tmp_tuple_element_9 ); PyTuple_SET_ITEM( tmp_args_element_name_9, 0, tmp_tuple_element_9 ); if ( var_value == NULL ) { Py_DECREF( tmp_called_name_9 ); Py_DECREF( tmp_args_element_name_9 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "value" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 182; type_description_1 = "ooooooooocccc"; goto try_except_handler_2; } tmp_tuple_element_9 = var_value; Py_INCREF( tmp_tuple_element_9 ); PyTuple_SET_ITEM( tmp_args_element_name_9, 1, tmp_tuple_element_9 ); frame_2cac38a5727d0b1a295d9efb5458dd50->m_frame.f_lineno = 182; { PyObject *call_args[] = { tmp_args_element_name_9 }; tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_9, call_args ); } Py_DECREF( tmp_called_name_9 ); Py_DECREF( tmp_args_element_name_9 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 182; type_description_1 = "ooooooooocccc"; goto try_except_handler_2; } Py_DECREF( tmp_unused ); } if ( CONSIDER_THREADING() == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 177; type_description_1 = "ooooooooocccc"; goto try_except_handler_2; } goto loop_start_1; loop_end_1:; } goto try_end_3; // Exception handler code: try_except_handler_2:; exception_keeper_type_3 = exception_type; exception_keeper_value_3 = exception_value; exception_keeper_tb_3 = exception_tb; exception_keeper_lineno_3 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( tmp_for_loop_1__iter_value ); tmp_for_loop_1__iter_value = NULL; } { CHECK_OBJECT( (PyObject *)tmp_for_loop_1__for_iterator ); Py_DECREF( tmp_for_loop_1__for_iterator ); tmp_for_loop_1__for_iterator = NULL; } { // Re-raise. exception_type = exception_keeper_type_3; exception_value = exception_keeper_value_3; exception_tb = exception_keeper_tb_3; exception_lineno = exception_keeper_lineno_3; goto frame_exception_exit_1; } // End of try: try_end_3:; } { Py_XDECREF( tmp_for_loop_1__iter_value ); tmp_for_loop_1__iter_value = NULL; } { CHECK_OBJECT( (PyObject *)tmp_for_loop_1__for_iterator ); Py_DECREF( tmp_for_loop_1__for_iterator ); tmp_for_loop_1__for_iterator = NULL; } { PyObject *tmp_assign_source_17; PyObject *tmp_iter_arg_3; PyObject *tmp_called_name_10; PyObject *tmp_args_element_name_10; tmp_called_name_10 = LOOKUP_BUILTIN( const_str_plain_sorted ); assert( tmp_called_name_10 != NULL ); if ( var_attributes == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "attributes" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 184; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_args_element_name_10 = var_attributes; frame_2cac38a5727d0b1a295d9efb5458dd50->m_frame.f_lineno = 184; { PyObject *call_args[] = { tmp_args_element_name_10 }; tmp_iter_arg_3 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_10, call_args ); } if ( tmp_iter_arg_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 184; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_assign_source_17 = MAKE_ITERATOR( tmp_iter_arg_3 ); Py_DECREF( tmp_iter_arg_3 ); if ( tmp_assign_source_17 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 184; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } assert( tmp_for_loop_2__for_iterator == NULL ); tmp_for_loop_2__for_iterator = tmp_assign_source_17; } { // Tried code: { loop_start_2:; { PyObject *tmp_next_source_2; PyObject *tmp_assign_source_18; CHECK_OBJECT( tmp_for_loop_2__for_iterator ); tmp_next_source_2 = tmp_for_loop_2__for_iterator; tmp_assign_source_18 = ITERATOR_NEXT( tmp_next_source_2 ); if ( tmp_assign_source_18 == NULL ) { if ( CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED() ) { goto loop_end_2; } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); type_description_1 = "ooooooooocccc"; exception_lineno = 184; goto try_except_handler_5; } } { PyObject *old = tmp_for_loop_2__iter_value; tmp_for_loop_2__iter_value = tmp_assign_source_18; Py_XDECREF( old ); } } { // Tried code: { PyObject *tmp_assign_source_19; PyObject *tmp_iter_arg_4; CHECK_OBJECT( tmp_for_loop_2__iter_value ); tmp_iter_arg_4 = tmp_for_loop_2__iter_value; tmp_assign_source_19 = MAKE_UNPACK_ITERATOR( tmp_iter_arg_4 ); if ( tmp_assign_source_19 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 184; type_description_1 = "ooooooooocccc"; goto try_except_handler_6; } { PyObject *old = tmp_tuple_unpack_2__source_iter; tmp_tuple_unpack_2__source_iter = tmp_assign_source_19; Py_XDECREF( old ); } } { // Tried code: { PyObject *tmp_assign_source_20; PyObject *tmp_unpack_3; CHECK_OBJECT( tmp_tuple_unpack_2__source_iter ); tmp_unpack_3 = tmp_tuple_unpack_2__source_iter; tmp_assign_source_20 = UNPACK_NEXT( tmp_unpack_3, 0, 2 ); if ( tmp_assign_source_20 == NULL ) { if ( !ERROR_OCCURRED() ) { exception_type = PyExc_StopIteration; Py_INCREF( exception_type ); exception_value = NULL; exception_tb = NULL; } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); } type_description_1 = "ooooooooocccc"; exception_lineno = 184; goto try_except_handler_7; } { PyObject *old = tmp_tuple_unpack_2__element_1; tmp_tuple_unpack_2__element_1 = tmp_assign_source_20; Py_XDECREF( old ); } } { PyObject *tmp_assign_source_21; PyObject *tmp_unpack_4; CHECK_OBJECT( tmp_tuple_unpack_2__source_iter ); tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; tmp_assign_source_21 = UNPACK_NEXT( tmp_unpack_4, 1, 2 ); if ( tmp_assign_source_21 == NULL ) { if ( !ERROR_OCCURRED() ) { exception_type = PyExc_StopIteration; Py_INCREF( exception_type ); exception_value = NULL; exception_tb = NULL; } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); } type_description_1 = "ooooooooocccc"; exception_lineno = 184; goto try_except_handler_7; } { PyObject *old = tmp_tuple_unpack_2__element_2; tmp_tuple_unpack_2__element_2 = tmp_assign_source_21; Py_XDECREF( old ); } } { PyObject *tmp_iterator_name_2; CHECK_OBJECT( tmp_tuple_unpack_2__source_iter ); tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; // Check if iterator has left-over elements. CHECK_OBJECT( tmp_iterator_name_2 ); assert( HAS_ITERNEXT( tmp_iterator_name_2 ) ); tmp_iterator_attempt = (*Py_TYPE( tmp_iterator_name_2 )->tp_iternext)( tmp_iterator_name_2 ); if (likely( tmp_iterator_attempt == NULL )) { PyObject *error = GET_ERROR_OCCURRED(); if ( error != NULL ) { if ( EXCEPTION_MATCH_BOOL_SINGLE( error, PyExc_StopIteration )) { CLEAR_ERROR_OCCURRED(); } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); type_description_1 = "ooooooooocccc"; exception_lineno = 184; goto try_except_handler_7; } } } else { Py_DECREF( tmp_iterator_attempt ); // TODO: Could avoid PyErr_Format. #if PYTHON_VERSION < 300 PyErr_Format( PyExc_ValueError, "too many values to unpack" ); #else PyErr_Format( PyExc_ValueError, "too many values to unpack (expected 2)" ); #endif FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); type_description_1 = "ooooooooocccc"; exception_lineno = 184; goto try_except_handler_7; } } goto try_end_4; // Exception handler code: try_except_handler_7:; exception_keeper_type_4 = exception_type; exception_keeper_value_4 = exception_value; exception_keeper_tb_4 = exception_tb; exception_keeper_lineno_4 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { CHECK_OBJECT( (PyObject *)tmp_tuple_unpack_2__source_iter ); Py_DECREF( tmp_tuple_unpack_2__source_iter ); tmp_tuple_unpack_2__source_iter = NULL; } { // Re-raise. exception_type = exception_keeper_type_4; exception_value = exception_keeper_value_4; exception_tb = exception_keeper_tb_4; exception_lineno = exception_keeper_lineno_4; goto try_except_handler_6; } // End of try: try_end_4:; } goto try_end_5; // Exception handler code: try_except_handler_6:; exception_keeper_type_5 = exception_type; exception_keeper_value_5 = exception_value; exception_keeper_tb_5 = exception_tb; exception_keeper_lineno_5 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( tmp_tuple_unpack_2__element_1 ); tmp_tuple_unpack_2__element_1 = NULL; } { Py_XDECREF( tmp_tuple_unpack_2__element_2 ); tmp_tuple_unpack_2__element_2 = NULL; } { // Re-raise. exception_type = exception_keeper_type_5; exception_value = exception_keeper_value_5; exception_tb = exception_keeper_tb_5; exception_lineno = exception_keeper_lineno_5; goto try_except_handler_5; } // End of try: try_end_5:; } { CHECK_OBJECT( (PyObject *)tmp_tuple_unpack_2__source_iter ); Py_DECREF( tmp_tuple_unpack_2__source_iter ); tmp_tuple_unpack_2__source_iter = NULL; } { PyObject *tmp_assign_source_22; CHECK_OBJECT( tmp_tuple_unpack_2__element_1 ); tmp_assign_source_22 = tmp_tuple_unpack_2__element_1; { PyObject *old = var_name; var_name = tmp_assign_source_22; Py_INCREF( var_name ); Py_XDECREF( old ); } } { Py_XDECREF( tmp_tuple_unpack_2__element_1 ); tmp_tuple_unpack_2__element_1 = NULL; } { PyObject *tmp_assign_source_23; CHECK_OBJECT( tmp_tuple_unpack_2__element_2 ); tmp_assign_source_23 = tmp_tuple_unpack_2__element_2; { PyObject *old = var_value; var_value = tmp_assign_source_23; Py_INCREF( var_value ); Py_XDECREF( old ); } } { Py_XDECREF( tmp_tuple_unpack_2__element_2 ); tmp_tuple_unpack_2__element_2 = NULL; } { PyObject *tmp_called_name_11; PyObject *tmp_source_name_19; PyObject *tmp_args_element_name_11; PyObject *tmp_left_name_15; PyObject *tmp_right_name_15; PyObject *tmp_tuple_element_10; PyObject *tmp_left_name_16; PyObject *tmp_right_name_16; PyObject *tmp_left_name_17; PyObject *tmp_right_name_17; if ( PyCell_GET( self->m_closure[2] ) == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "rv" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 185; type_description_1 = "ooooooooocccc"; goto try_except_handler_5; } tmp_source_name_19 = PyCell_GET( self->m_closure[2] ); tmp_called_name_11 = LOOKUP_ATTRIBUTE( tmp_source_name_19, const_str_plain_append ); if ( tmp_called_name_11 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 185; type_description_1 = "ooooooooocccc"; goto try_except_handler_5; } tmp_left_name_15 = const_str_digest_23be8245b5c2c31c44519cc2152700d7; tmp_left_name_16 = const_str_space; if ( par_indent == NULL ) { Py_DECREF( tmp_called_name_11 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "indent" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 185; type_description_1 = "ooooooooocccc"; goto try_except_handler_5; } tmp_left_name_17 = par_indent; tmp_right_name_17 = const_int_pos_2; tmp_right_name_16 = BINARY_OPERATION_ADD( tmp_left_name_17, tmp_right_name_17 ); if ( tmp_right_name_16 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_11 ); exception_lineno = 185; type_description_1 = "ooooooooocccc"; goto try_except_handler_5; } tmp_tuple_element_10 = BINARY_OPERATION_MUL( tmp_left_name_16, tmp_right_name_16 ); Py_DECREF( tmp_right_name_16 ); if ( tmp_tuple_element_10 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_11 ); exception_lineno = 185; type_description_1 = "ooooooooocccc"; goto try_except_handler_5; } tmp_right_name_15 = PyTuple_New( 3 ); PyTuple_SET_ITEM( tmp_right_name_15, 0, tmp_tuple_element_10 ); if ( var_name == NULL ) { Py_DECREF( tmp_called_name_11 ); Py_DECREF( tmp_right_name_15 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 185; type_description_1 = "ooooooooocccc"; goto try_except_handler_5; } tmp_tuple_element_10 = var_name; Py_INCREF( tmp_tuple_element_10 ); PyTuple_SET_ITEM( tmp_right_name_15, 1, tmp_tuple_element_10 ); if ( var_value == NULL ) { Py_DECREF( tmp_called_name_11 ); Py_DECREF( tmp_right_name_15 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "value" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 185; type_description_1 = "ooooooooocccc"; goto try_except_handler_5; } tmp_tuple_element_10 = var_value; Py_INCREF( tmp_tuple_element_10 ); PyTuple_SET_ITEM( tmp_right_name_15, 2, tmp_tuple_element_10 ); tmp_args_element_name_11 = BINARY_OPERATION_REMAINDER( tmp_left_name_15, tmp_right_name_15 ); Py_DECREF( tmp_right_name_15 ); if ( tmp_args_element_name_11 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_11 ); exception_lineno = 185; type_description_1 = "ooooooooocccc"; goto try_except_handler_5; } frame_2cac38a5727d0b1a295d9efb5458dd50->m_frame.f_lineno = 185; { PyObject *call_args[] = { tmp_args_element_name_11 }; tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_11, call_args ); } Py_DECREF( tmp_called_name_11 ); Py_DECREF( tmp_args_element_name_11 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 185; type_description_1 = "ooooooooocccc"; goto try_except_handler_5; } Py_DECREF( tmp_unused ); } if ( CONSIDER_THREADING() == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 184; type_description_1 = "ooooooooocccc"; goto try_except_handler_5; } goto loop_start_2; loop_end_2:; } goto try_end_6; // Exception handler code: try_except_handler_5:; exception_keeper_type_6 = exception_type; exception_keeper_value_6 = exception_value; exception_keeper_tb_6 = exception_tb; exception_keeper_lineno_6 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( tmp_for_loop_2__iter_value ); tmp_for_loop_2__iter_value = NULL; } { CHECK_OBJECT( (PyObject *)tmp_for_loop_2__for_iterator ); Py_DECREF( tmp_for_loop_2__for_iterator ); tmp_for_loop_2__for_iterator = NULL; } { // Re-raise. exception_type = exception_keeper_type_6; exception_value = exception_keeper_value_6; exception_tb = exception_keeper_tb_6; exception_lineno = exception_keeper_lineno_6; goto frame_exception_exit_1; } // End of try: try_end_6:; } { Py_XDECREF( tmp_for_loop_2__iter_value ); tmp_for_loop_2__iter_value = NULL; } { CHECK_OBJECT( (PyObject *)tmp_for_loop_2__for_iterator ); Py_DECREF( tmp_for_loop_2__for_iterator ); tmp_for_loop_2__for_iterator = NULL; } branch_no_7:; } { PyObject *tmp_assign_source_24; PyObject *tmp_left_name_18; PyObject *tmp_right_name_18; if ( par_indent == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "indent" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 186; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_left_name_18 = par_indent; tmp_right_name_18 = const_int_pos_2; tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE( &tmp_left_name_18, tmp_right_name_18 ); tmp_assign_source_24 = tmp_left_name_18; if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 186; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } par_indent = tmp_assign_source_24; } { PyObject *tmp_assign_source_25; PyObject *tmp_iter_arg_5; PyObject *tmp_source_name_20; if ( par_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 187; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_source_name_20 = par_element; tmp_iter_arg_5 = LOOKUP_ATTRIBUTE( tmp_source_name_20, const_str_plain_children ); if ( tmp_iter_arg_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 187; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } tmp_assign_source_25 = MAKE_ITERATOR( tmp_iter_arg_5 ); Py_DECREF( tmp_iter_arg_5 ); if ( tmp_assign_source_25 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 187; type_description_1 = "ooooooooocccc"; goto frame_exception_exit_1; } assert( tmp_for_loop_3__for_iterator == NULL ); tmp_for_loop_3__for_iterator = tmp_assign_source_25; } { // Tried code: { loop_start_3:; { PyObject *tmp_next_source_3; PyObject *tmp_assign_source_26; CHECK_OBJECT( tmp_for_loop_3__for_iterator ); tmp_next_source_3 = tmp_for_loop_3__for_iterator; tmp_assign_source_26 = ITERATOR_NEXT( tmp_next_source_3 ); if ( tmp_assign_source_26 == NULL ) { if ( CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED() ) { goto loop_end_3; } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); type_description_1 = "ooooooooocccc"; exception_lineno = 187; goto try_except_handler_8; } } { PyObject *old = tmp_for_loop_3__iter_value; tmp_for_loop_3__iter_value = tmp_assign_source_26; Py_XDECREF( old ); } } { PyObject *tmp_assign_source_27; CHECK_OBJECT( tmp_for_loop_3__iter_value ); tmp_assign_source_27 = tmp_for_loop_3__iter_value; { PyObject *old = var_child; var_child = tmp_assign_source_27; Py_INCREF( var_child ); Py_XDECREF( old ); } } { PyObject *tmp_called_name_12; PyObject *tmp_args_element_name_12; PyObject *tmp_args_element_name_13; if ( PyCell_GET( self->m_closure[3] ) == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "serializeElement" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 188; type_description_1 = "ooooooooocccc"; goto try_except_handler_8; } tmp_called_name_12 = PyCell_GET( self->m_closure[3] ); CHECK_OBJECT( var_child ); tmp_args_element_name_12 = var_child; if ( par_indent == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "indent" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 188; type_description_1 = "ooooooooocccc"; goto try_except_handler_8; } tmp_args_element_name_13 = par_indent; frame_2cac38a5727d0b1a295d9efb5458dd50->m_frame.f_lineno = 188; { PyObject *call_args[] = { tmp_args_element_name_12, tmp_args_element_name_13 }; tmp_unused = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_12, call_args ); } if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 188; type_description_1 = "ooooooooocccc"; goto try_except_handler_8; } Py_DECREF( tmp_unused ); } if ( CONSIDER_THREADING() == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 187; type_description_1 = "ooooooooocccc"; goto try_except_handler_8; } goto loop_start_3; loop_end_3:; } goto try_end_7; // Exception handler code: try_except_handler_8:; exception_keeper_type_7 = exception_type; exception_keeper_value_7 = exception_value; exception_keeper_tb_7 = exception_tb; exception_keeper_lineno_7 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( tmp_for_loop_3__iter_value ); tmp_for_loop_3__iter_value = NULL; } { CHECK_OBJECT( (PyObject *)tmp_for_loop_3__for_iterator ); Py_DECREF( tmp_for_loop_3__for_iterator ); tmp_for_loop_3__for_iterator = NULL; } { // Re-raise. exception_type = exception_keeper_type_7; exception_value = exception_keeper_value_7; exception_tb = exception_keeper_tb_7; exception_lineno = exception_keeper_lineno_7; goto frame_exception_exit_1; } // End of try: try_end_7:; } { Py_XDECREF( tmp_for_loop_3__iter_value ); tmp_for_loop_3__iter_value = NULL; } { CHECK_OBJECT( (PyObject *)tmp_for_loop_3__for_iterator ); Py_DECREF( tmp_for_loop_3__for_iterator ); tmp_for_loop_3__for_iterator = NULL; } branch_end_5:; } branch_end_4:; } branch_end_1:; } #if 0 RESTORE_FRAME_EXCEPTION( frame_2cac38a5727d0b1a295d9efb5458dd50 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_2cac38a5727d0b1a295d9efb5458dd50 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_2cac38a5727d0b1a295d9efb5458dd50, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_2cac38a5727d0b1a295d9efb5458dd50->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_2cac38a5727d0b1a295d9efb5458dd50, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_2cac38a5727d0b1a295d9efb5458dd50, type_description_1, par_element, par_indent, var_m, var_name, var_publicId, var_systemId, var_attributes, var_value, var_child, self->m_closure[0], self->m_closure[1], self->m_closure[2], self->m_closure[3] ); // Release cached frame. if ( frame_2cac38a5727d0b1a295d9efb5458dd50 == cache_frame_2cac38a5727d0b1a295d9efb5458dd50 ) { Py_DECREF( frame_2cac38a5727d0b1a295d9efb5458dd50 ); } cache_frame_2cac38a5727d0b1a295d9efb5458dd50 = NULL; assertFrameObject( frame_2cac38a5727d0b1a295d9efb5458dd50 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; { tmp_return_value = Py_None; Py_INCREF( tmp_return_value ); goto try_return_handler_1; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_14_testSerializer$$$function_1_serializeElement ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_element ); par_element = NULL; } { Py_XDECREF( par_indent ); par_indent = NULL; } { Py_XDECREF( var_m ); var_m = NULL; } { Py_XDECREF( var_name ); var_name = NULL; } { Py_XDECREF( var_publicId ); var_publicId = NULL; } { Py_XDECREF( var_systemId ); var_systemId = NULL; } { Py_XDECREF( var_attributes ); var_attributes = NULL; } { Py_XDECREF( var_value ); var_value = NULL; } { Py_XDECREF( var_child ); var_child = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_8 = exception_type; exception_keeper_value_8 = exception_value; exception_keeper_tb_8 = exception_tb; exception_keeper_lineno_8 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_element ); par_element = NULL; } { Py_XDECREF( par_indent ); par_indent = NULL; } { Py_XDECREF( var_m ); var_m = NULL; } { Py_XDECREF( var_name ); var_name = NULL; } { Py_XDECREF( var_publicId ); var_publicId = NULL; } { Py_XDECREF( var_systemId ); var_systemId = NULL; } { Py_XDECREF( var_attributes ); var_attributes = NULL; } { Py_XDECREF( var_value ); var_value = NULL; } { Py_XDECREF( var_child ); var_child = NULL; } { // Re-raise. exception_type = exception_keeper_type_8; exception_value = exception_keeper_value_8; exception_tb = exception_keeper_tb_8; exception_lineno = exception_keeper_lineno_8; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_14_testSerializer$$$function_1_serializeElement ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_15___init__( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *par_element = python_pars[ 1 ]; struct Nuitka_FrameObject *frame_862903e006904a47cfb737335fa8e969; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; bool tmp_result; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; static struct Nuitka_FrameObject *cache_frame_862903e006904a47cfb737335fa8e969 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_862903e006904a47cfb737335fa8e969, codeobj_862903e006904a47cfb737335fa8e969, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *) ); frame_862903e006904a47cfb737335fa8e969 = cache_frame_862903e006904a47cfb737335fa8e969; // Push the new frame as the currently active one. pushFrameStack( frame_862903e006904a47cfb737335fa8e969 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_862903e006904a47cfb737335fa8e969 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_assattr_name_1; PyObject *tmp_assattr_target_1; CHECK_OBJECT( par_element ); tmp_assattr_name_1 = par_element; CHECK_OBJECT( par_self ); tmp_assattr_target_1 = par_self; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain_element, tmp_assattr_name_1 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 195; type_description_1 = "oo"; goto frame_exception_exit_1; } } { PyObject *tmp_assattr_name_2; PyObject *tmp_dict_seq_1; PyObject *tmp_source_name_1; PyObject *tmp_source_name_2; PyObject *tmp_assattr_target_2; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 196; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_source_name_2 = par_self; tmp_source_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_element ); if ( tmp_source_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 196; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_dict_seq_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_attrs ); Py_DECREF( tmp_source_name_1 ); if ( tmp_dict_seq_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 196; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_assattr_name_2 = TO_DICT( tmp_dict_seq_1, NULL ); Py_DECREF( tmp_dict_seq_1 ); if ( tmp_assattr_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 196; type_description_1 = "oo"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_assattr_name_2 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 196; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_assattr_target_2 = par_self; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_2, const_str_plain_attrs, tmp_assattr_name_2 ); Py_DECREF( tmp_assattr_name_2 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 196; type_description_1 = "oo"; goto frame_exception_exit_1; } } #if 0 RESTORE_FRAME_EXCEPTION( frame_862903e006904a47cfb737335fa8e969 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_862903e006904a47cfb737335fa8e969 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_862903e006904a47cfb737335fa8e969, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_862903e006904a47cfb737335fa8e969->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_862903e006904a47cfb737335fa8e969, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_862903e006904a47cfb737335fa8e969, type_description_1, par_self, par_element ); // Release cached frame. if ( frame_862903e006904a47cfb737335fa8e969 == cache_frame_862903e006904a47cfb737335fa8e969 ) { Py_DECREF( frame_862903e006904a47cfb737335fa8e969 ); } cache_frame_862903e006904a47cfb737335fa8e969 = NULL; assertFrameObject( frame_862903e006904a47cfb737335fa8e969 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; { tmp_return_value = Py_None; Py_INCREF( tmp_return_value ); goto try_return_handler_1; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_15___init__ ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_element ); par_element = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_element ); par_element = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_15___init__ ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_16___iter__( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; struct Nuitka_FrameObject *frame_46658e33b0509c309eac25b858d6cec0; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; static struct Nuitka_FrameObject *cache_frame_46658e33b0509c309eac25b858d6cec0 = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_46658e33b0509c309eac25b858d6cec0, codeobj_46658e33b0509c309eac25b858d6cec0, module_bs4$builder$_html5lib, sizeof(void *) ); frame_46658e33b0509c309eac25b858d6cec0 = cache_frame_46658e33b0509c309eac25b858d6cec0; // Push the new frame as the currently active one. pushFrameStack( frame_46658e33b0509c309eac25b858d6cec0 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_46658e33b0509c309eac25b858d6cec0 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_called_instance_1; PyObject *tmp_list_arg_1; PyObject *tmp_called_instance_2; PyObject *tmp_source_name_1; CHECK_OBJECT( par_self ); tmp_source_name_1 = par_self; tmp_called_instance_2 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_attrs ); if ( tmp_called_instance_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 198; type_description_1 = "o"; goto frame_exception_exit_1; } frame_46658e33b0509c309eac25b858d6cec0->m_frame.f_lineno = 198; tmp_list_arg_1 = CALL_METHOD_NO_ARGS( tmp_called_instance_2, const_str_plain_items ); Py_DECREF( tmp_called_instance_2 ); if ( tmp_list_arg_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 198; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_called_instance_1 = PySequence_List( tmp_list_arg_1 ); Py_DECREF( tmp_list_arg_1 ); if ( tmp_called_instance_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 198; type_description_1 = "o"; goto frame_exception_exit_1; } frame_46658e33b0509c309eac25b858d6cec0->m_frame.f_lineno = 198; tmp_return_value = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain___iter__ ); Py_DECREF( tmp_called_instance_1 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 198; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_46658e33b0509c309eac25b858d6cec0 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_46658e33b0509c309eac25b858d6cec0 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_46658e33b0509c309eac25b858d6cec0 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_46658e33b0509c309eac25b858d6cec0, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_46658e33b0509c309eac25b858d6cec0->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_46658e33b0509c309eac25b858d6cec0, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_46658e33b0509c309eac25b858d6cec0, type_description_1, par_self ); // Release cached frame. if ( frame_46658e33b0509c309eac25b858d6cec0 == cache_frame_46658e33b0509c309eac25b858d6cec0 ) { Py_DECREF( frame_46658e33b0509c309eac25b858d6cec0 ); } cache_frame_46658e33b0509c309eac25b858d6cec0 = NULL; assertFrameObject( frame_46658e33b0509c309eac25b858d6cec0 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_16___iter__ ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_16___iter__ ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_17___setitem__( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *par_name = python_pars[ 1 ]; PyObject *par_value = python_pars[ 2 ]; PyObject *var_list_attr = NULL; struct Nuitka_FrameObject *frame_6ded8a14e912a14d37067d1d97cb6133; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; int tmp_res; bool tmp_result; static struct Nuitka_FrameObject *cache_frame_6ded8a14e912a14d37067d1d97cb6133 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_6ded8a14e912a14d37067d1d97cb6133, codeobj_6ded8a14e912a14d37067d1d97cb6133, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) ); frame_6ded8a14e912a14d37067d1d97cb6133 = cache_frame_6ded8a14e912a14d37067d1d97cb6133; // Push the new frame as the currently active one. pushFrameStack( frame_6ded8a14e912a14d37067d1d97cb6133 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_6ded8a14e912a14d37067d1d97cb6133 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_assign_source_1; PyObject *tmp_source_name_1; PyObject *tmp_mvar_value_1; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_HTML5TreeBuilder ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_HTML5TreeBuilder ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "HTML5TreeBuilder" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 202; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_source_name_1 = tmp_mvar_value_1; tmp_assign_source_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_cdata_list_attributes ); if ( tmp_assign_source_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 202; type_description_1 = "oooo"; goto frame_exception_exit_1; } assert( var_list_attr == NULL ); var_list_attr = tmp_assign_source_1; } { nuitka_bool tmp_condition_result_1; int tmp_or_left_truth_1; nuitka_bool tmp_or_left_value_1; nuitka_bool tmp_or_right_value_1; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; PyObject *tmp_subscribed_name_1; PyObject *tmp_subscript_name_1; int tmp_and_left_truth_1; nuitka_bool tmp_and_left_value_1; nuitka_bool tmp_and_right_value_1; PyObject *tmp_compexpr_left_2; PyObject *tmp_compexpr_right_2; PyObject *tmp_source_name_2; PyObject *tmp_source_name_3; PyObject *tmp_compexpr_left_3; PyObject *tmp_compexpr_right_3; PyObject *tmp_subscribed_name_2; PyObject *tmp_subscript_name_2; PyObject *tmp_source_name_4; PyObject *tmp_source_name_5; if ( par_name == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 203; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_compexpr_left_1 = par_name; CHECK_OBJECT( var_list_attr ); tmp_subscribed_name_1 = var_list_attr; tmp_subscript_name_1 = const_str_chr_42; tmp_compexpr_right_1 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_1, tmp_subscript_name_1 ); if ( tmp_compexpr_right_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 203; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_res = PySequence_Contains( tmp_compexpr_right_1, tmp_compexpr_left_1 ); Py_DECREF( tmp_compexpr_right_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 203; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_or_left_value_1 = ( tmp_res == 1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; tmp_or_left_truth_1 = tmp_or_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; if ( tmp_or_left_truth_1 == 1 ) { goto or_left_1; } else { goto or_right_1; } or_right_1:; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 204; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_source_name_3 = par_self; tmp_source_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_element ); if ( tmp_source_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 204; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_compexpr_left_2 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_name ); Py_DECREF( tmp_source_name_2 ); if ( tmp_compexpr_left_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 204; type_description_1 = "oooo"; goto frame_exception_exit_1; } if ( var_list_attr == NULL ) { Py_DECREF( tmp_compexpr_left_2 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "list_attr" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 204; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_compexpr_right_2 = var_list_attr; tmp_res = PySequence_Contains( tmp_compexpr_right_2, tmp_compexpr_left_2 ); Py_DECREF( tmp_compexpr_left_2 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 204; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_and_left_value_1 = ( tmp_res == 1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; if ( tmp_and_left_truth_1 == 1 ) { goto and_right_1; } else { goto and_left_1; } and_right_1:; if ( par_name == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 205; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_compexpr_left_3 = par_name; if ( var_list_attr == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "list_attr" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 205; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_subscribed_name_2 = var_list_attr; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 205; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_source_name_5 = par_self; tmp_source_name_4 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain_element ); if ( tmp_source_name_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 205; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_subscript_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_name ); Py_DECREF( tmp_source_name_4 ); if ( tmp_subscript_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 205; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_compexpr_right_3 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_2, tmp_subscript_name_2 ); Py_DECREF( tmp_subscript_name_2 ); if ( tmp_compexpr_right_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 205; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_res = PySequence_Contains( tmp_compexpr_right_3, tmp_compexpr_left_3 ); Py_DECREF( tmp_compexpr_right_3 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 205; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_and_right_value_1 = ( tmp_res == 1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; tmp_or_right_value_1 = tmp_and_right_value_1; goto and_end_1; and_left_1:; tmp_or_right_value_1 = tmp_and_left_value_1; and_end_1:; tmp_condition_result_1 = tmp_or_right_value_1; goto or_end_1; or_left_1:; tmp_condition_result_1 = tmp_or_left_value_1; or_end_1:; if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { nuitka_bool tmp_condition_result_2; PyObject *tmp_operand_name_1; PyObject *tmp_isinstance_inst_1; PyObject *tmp_isinstance_cls_1; if ( par_value == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "value" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 208; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_isinstance_inst_1 = par_value; tmp_isinstance_cls_1 = (PyObject *)&PyList_Type; tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_1, tmp_isinstance_cls_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 208; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_operand_name_1 = ( tmp_res != 0 ) ? Py_True : Py_False; tmp_res = CHECK_IF_TRUE( tmp_operand_name_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 208; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_condition_result_2 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE ) { goto branch_yes_2; } else { goto branch_no_2; } branch_yes_2:; { PyObject *tmp_assign_source_2; PyObject *tmp_called_name_1; PyObject *tmp_source_name_6; PyObject *tmp_mvar_value_2; PyObject *tmp_args_element_name_1; tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_whitespace_re ); if (unlikely( tmp_mvar_value_2 == NULL )) { tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_whitespace_re ); } if ( tmp_mvar_value_2 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "whitespace_re" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 209; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_source_name_6 = tmp_mvar_value_2; tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain_split ); if ( tmp_called_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 209; type_description_1 = "oooo"; goto frame_exception_exit_1; } if ( par_value == NULL ) { Py_DECREF( tmp_called_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "value" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 209; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_args_element_name_1 = par_value; frame_6ded8a14e912a14d37067d1d97cb6133->m_frame.f_lineno = 209; { PyObject *call_args[] = { tmp_args_element_name_1 }; tmp_assign_source_2 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args ); } Py_DECREF( tmp_called_name_1 ); if ( tmp_assign_source_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 209; type_description_1 = "oooo"; goto frame_exception_exit_1; } { PyObject *old = par_value; par_value = tmp_assign_source_2; Py_XDECREF( old ); } } branch_no_2:; } branch_no_1:; } { PyObject *tmp_ass_subvalue_1; PyObject *tmp_ass_subscribed_1; PyObject *tmp_source_name_7; PyObject *tmp_ass_subscript_1; if ( par_value == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "value" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 210; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_ass_subvalue_1 = par_value; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 210; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_source_name_7 = par_self; tmp_ass_subscribed_1 = LOOKUP_ATTRIBUTE( tmp_source_name_7, const_str_plain_element ); if ( tmp_ass_subscribed_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 210; type_description_1 = "oooo"; goto frame_exception_exit_1; } if ( par_name == NULL ) { Py_DECREF( tmp_ass_subscribed_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 210; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_ass_subscript_1 = par_name; tmp_result = SET_SUBSCRIPT( tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1 ); Py_DECREF( tmp_ass_subscribed_1 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 210; type_description_1 = "oooo"; goto frame_exception_exit_1; } } #if 0 RESTORE_FRAME_EXCEPTION( frame_6ded8a14e912a14d37067d1d97cb6133 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_6ded8a14e912a14d37067d1d97cb6133 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_6ded8a14e912a14d37067d1d97cb6133, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_6ded8a14e912a14d37067d1d97cb6133->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_6ded8a14e912a14d37067d1d97cb6133, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_6ded8a14e912a14d37067d1d97cb6133, type_description_1, par_self, par_name, par_value, var_list_attr ); // Release cached frame. if ( frame_6ded8a14e912a14d37067d1d97cb6133 == cache_frame_6ded8a14e912a14d37067d1d97cb6133 ) { Py_DECREF( frame_6ded8a14e912a14d37067d1d97cb6133 ); } cache_frame_6ded8a14e912a14d37067d1d97cb6133 = NULL; assertFrameObject( frame_6ded8a14e912a14d37067d1d97cb6133 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; { tmp_return_value = Py_None; Py_INCREF( tmp_return_value ); goto try_return_handler_1; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_17___setitem__ ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_name ); par_name = NULL; } { Py_XDECREF( par_value ); par_value = NULL; } { Py_XDECREF( var_list_attr ); var_list_attr = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_name ); par_name = NULL; } { Py_XDECREF( par_value ); par_value = NULL; } { Py_XDECREF( var_list_attr ); var_list_attr = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_17___setitem__ ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_18_items( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; struct Nuitka_FrameObject *frame_7150f6ef3ab91125d7eddca7e9ff6e15; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; static struct Nuitka_FrameObject *cache_frame_7150f6ef3ab91125d7eddca7e9ff6e15 = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_7150f6ef3ab91125d7eddca7e9ff6e15, codeobj_7150f6ef3ab91125d7eddca7e9ff6e15, module_bs4$builder$_html5lib, sizeof(void *) ); frame_7150f6ef3ab91125d7eddca7e9ff6e15 = cache_frame_7150f6ef3ab91125d7eddca7e9ff6e15; // Push the new frame as the currently active one. pushFrameStack( frame_7150f6ef3ab91125d7eddca7e9ff6e15 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_7150f6ef3ab91125d7eddca7e9ff6e15 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_list_arg_1; PyObject *tmp_called_instance_1; PyObject *tmp_source_name_1; CHECK_OBJECT( par_self ); tmp_source_name_1 = par_self; tmp_called_instance_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_attrs ); if ( tmp_called_instance_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 212; type_description_1 = "o"; goto frame_exception_exit_1; } frame_7150f6ef3ab91125d7eddca7e9ff6e15->m_frame.f_lineno = 212; tmp_list_arg_1 = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain_items ); Py_DECREF( tmp_called_instance_1 ); if ( tmp_list_arg_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 212; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_return_value = PySequence_List( tmp_list_arg_1 ); Py_DECREF( tmp_list_arg_1 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 212; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_7150f6ef3ab91125d7eddca7e9ff6e15 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_7150f6ef3ab91125d7eddca7e9ff6e15 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_7150f6ef3ab91125d7eddca7e9ff6e15 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_7150f6ef3ab91125d7eddca7e9ff6e15, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_7150f6ef3ab91125d7eddca7e9ff6e15->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_7150f6ef3ab91125d7eddca7e9ff6e15, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_7150f6ef3ab91125d7eddca7e9ff6e15, type_description_1, par_self ); // Release cached frame. if ( frame_7150f6ef3ab91125d7eddca7e9ff6e15 == cache_frame_7150f6ef3ab91125d7eddca7e9ff6e15 ) { Py_DECREF( frame_7150f6ef3ab91125d7eddca7e9ff6e15 ); } cache_frame_7150f6ef3ab91125d7eddca7e9ff6e15 = NULL; assertFrameObject( frame_7150f6ef3ab91125d7eddca7e9ff6e15 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_18_items ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_18_items ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_19_keys( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; struct Nuitka_FrameObject *frame_71c27579a86c11878acd608308adba36; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; static struct Nuitka_FrameObject *cache_frame_71c27579a86c11878acd608308adba36 = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_71c27579a86c11878acd608308adba36, codeobj_71c27579a86c11878acd608308adba36, module_bs4$builder$_html5lib, sizeof(void *) ); frame_71c27579a86c11878acd608308adba36 = cache_frame_71c27579a86c11878acd608308adba36; // Push the new frame as the currently active one. pushFrameStack( frame_71c27579a86c11878acd608308adba36 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_71c27579a86c11878acd608308adba36 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_list_arg_1; PyObject *tmp_called_instance_1; PyObject *tmp_source_name_1; CHECK_OBJECT( par_self ); tmp_source_name_1 = par_self; tmp_called_instance_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_attrs ); if ( tmp_called_instance_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 214; type_description_1 = "o"; goto frame_exception_exit_1; } frame_71c27579a86c11878acd608308adba36->m_frame.f_lineno = 214; tmp_list_arg_1 = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain_keys ); Py_DECREF( tmp_called_instance_1 ); if ( tmp_list_arg_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 214; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_return_value = PySequence_List( tmp_list_arg_1 ); Py_DECREF( tmp_list_arg_1 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 214; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_71c27579a86c11878acd608308adba36 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_71c27579a86c11878acd608308adba36 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_71c27579a86c11878acd608308adba36 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_71c27579a86c11878acd608308adba36, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_71c27579a86c11878acd608308adba36->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_71c27579a86c11878acd608308adba36, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_71c27579a86c11878acd608308adba36, type_description_1, par_self ); // Release cached frame. if ( frame_71c27579a86c11878acd608308adba36 == cache_frame_71c27579a86c11878acd608308adba36 ) { Py_DECREF( frame_71c27579a86c11878acd608308adba36 ); } cache_frame_71c27579a86c11878acd608308adba36 = NULL; assertFrameObject( frame_71c27579a86c11878acd608308adba36 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_19_keys ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_19_keys ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_20___len__( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; struct Nuitka_FrameObject *frame_99c62f79c7a9c864a2d0241621052697; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; static struct Nuitka_FrameObject *cache_frame_99c62f79c7a9c864a2d0241621052697 = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_99c62f79c7a9c864a2d0241621052697, codeobj_99c62f79c7a9c864a2d0241621052697, module_bs4$builder$_html5lib, sizeof(void *) ); frame_99c62f79c7a9c864a2d0241621052697 = cache_frame_99c62f79c7a9c864a2d0241621052697; // Push the new frame as the currently active one. pushFrameStack( frame_99c62f79c7a9c864a2d0241621052697 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_99c62f79c7a9c864a2d0241621052697 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_len_arg_1; PyObject *tmp_source_name_1; CHECK_OBJECT( par_self ); tmp_source_name_1 = par_self; tmp_len_arg_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_attrs ); if ( tmp_len_arg_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 216; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_return_value = BUILTIN_LEN( tmp_len_arg_1 ); Py_DECREF( tmp_len_arg_1 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 216; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_99c62f79c7a9c864a2d0241621052697 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_99c62f79c7a9c864a2d0241621052697 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_99c62f79c7a9c864a2d0241621052697 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_99c62f79c7a9c864a2d0241621052697, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_99c62f79c7a9c864a2d0241621052697->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_99c62f79c7a9c864a2d0241621052697, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_99c62f79c7a9c864a2d0241621052697, type_description_1, par_self ); // Release cached frame. if ( frame_99c62f79c7a9c864a2d0241621052697 == cache_frame_99c62f79c7a9c864a2d0241621052697 ) { Py_DECREF( frame_99c62f79c7a9c864a2d0241621052697 ); } cache_frame_99c62f79c7a9c864a2d0241621052697 = NULL; assertFrameObject( frame_99c62f79c7a9c864a2d0241621052697 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_20___len__ ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_20___len__ ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_21___getitem__( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *par_name = python_pars[ 1 ]; struct Nuitka_FrameObject *frame_ac773837c6efb44ee932e964ff235bb8; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; static struct Nuitka_FrameObject *cache_frame_ac773837c6efb44ee932e964ff235bb8 = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_ac773837c6efb44ee932e964ff235bb8, codeobj_ac773837c6efb44ee932e964ff235bb8, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *) ); frame_ac773837c6efb44ee932e964ff235bb8 = cache_frame_ac773837c6efb44ee932e964ff235bb8; // Push the new frame as the currently active one. pushFrameStack( frame_ac773837c6efb44ee932e964ff235bb8 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_ac773837c6efb44ee932e964ff235bb8 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_subscribed_name_1; PyObject *tmp_source_name_1; PyObject *tmp_subscript_name_1; CHECK_OBJECT( par_self ); tmp_source_name_1 = par_self; tmp_subscribed_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_attrs ); if ( tmp_subscribed_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 218; type_description_1 = "oo"; goto frame_exception_exit_1; } if ( par_name == NULL ) { Py_DECREF( tmp_subscribed_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 218; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_subscript_name_1 = par_name; tmp_return_value = LOOKUP_SUBSCRIPT( tmp_subscribed_name_1, tmp_subscript_name_1 ); Py_DECREF( tmp_subscribed_name_1 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 218; type_description_1 = "oo"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_ac773837c6efb44ee932e964ff235bb8 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_ac773837c6efb44ee932e964ff235bb8 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_ac773837c6efb44ee932e964ff235bb8 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_ac773837c6efb44ee932e964ff235bb8, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_ac773837c6efb44ee932e964ff235bb8->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_ac773837c6efb44ee932e964ff235bb8, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_ac773837c6efb44ee932e964ff235bb8, type_description_1, par_self, par_name ); // Release cached frame. if ( frame_ac773837c6efb44ee932e964ff235bb8 == cache_frame_ac773837c6efb44ee932e964ff235bb8 ) { Py_DECREF( frame_ac773837c6efb44ee932e964ff235bb8 ); } cache_frame_ac773837c6efb44ee932e964ff235bb8 = NULL; assertFrameObject( frame_ac773837c6efb44ee932e964ff235bb8 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_21___getitem__ ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_name ); par_name = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_name ); par_name = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_21___getitem__ ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_22___contains__( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *par_name = python_pars[ 1 ]; struct Nuitka_FrameObject *frame_59036593ad2c983bbf3db312dc50dd63; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; int tmp_res; static struct Nuitka_FrameObject *cache_frame_59036593ad2c983bbf3db312dc50dd63 = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_59036593ad2c983bbf3db312dc50dd63, codeobj_59036593ad2c983bbf3db312dc50dd63, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *) ); frame_59036593ad2c983bbf3db312dc50dd63 = cache_frame_59036593ad2c983bbf3db312dc50dd63; // Push the new frame as the currently active one. pushFrameStack( frame_59036593ad2c983bbf3db312dc50dd63 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_59036593ad2c983bbf3db312dc50dd63 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; PyObject *tmp_list_arg_1; PyObject *tmp_called_instance_1; PyObject *tmp_source_name_1; CHECK_OBJECT( par_name ); tmp_compexpr_left_1 = par_name; CHECK_OBJECT( par_self ); tmp_source_name_1 = par_self; tmp_called_instance_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_attrs ); if ( tmp_called_instance_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 220; type_description_1 = "oo"; goto frame_exception_exit_1; } frame_59036593ad2c983bbf3db312dc50dd63->m_frame.f_lineno = 220; tmp_list_arg_1 = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain_keys ); Py_DECREF( tmp_called_instance_1 ); if ( tmp_list_arg_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 220; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_compexpr_right_1 = PySequence_List( tmp_list_arg_1 ); Py_DECREF( tmp_list_arg_1 ); if ( tmp_compexpr_right_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 220; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_res = PySequence_Contains( tmp_compexpr_right_1, tmp_compexpr_left_1 ); Py_DECREF( tmp_compexpr_right_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 220; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_return_value = ( tmp_res == 1 ) ? Py_True : Py_False; Py_INCREF( tmp_return_value ); goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_59036593ad2c983bbf3db312dc50dd63 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_59036593ad2c983bbf3db312dc50dd63 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_59036593ad2c983bbf3db312dc50dd63 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_59036593ad2c983bbf3db312dc50dd63, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_59036593ad2c983bbf3db312dc50dd63->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_59036593ad2c983bbf3db312dc50dd63, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_59036593ad2c983bbf3db312dc50dd63, type_description_1, par_self, par_name ); // Release cached frame. if ( frame_59036593ad2c983bbf3db312dc50dd63 == cache_frame_59036593ad2c983bbf3db312dc50dd63 ) { Py_DECREF( frame_59036593ad2c983bbf3db312dc50dd63 ); } cache_frame_59036593ad2c983bbf3db312dc50dd63 = NULL; assertFrameObject( frame_59036593ad2c983bbf3db312dc50dd63 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_22___contains__ ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_name ); par_name = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_name ); par_name = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_22___contains__ ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_23___init__( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *par_element = python_pars[ 1 ]; PyObject *par_soup = python_pars[ 2 ]; PyObject *par_namespace = python_pars[ 3 ]; struct Nuitka_FrameObject *frame_a49afc773f6ed00ebc38fd16aeae958b; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; NUITKA_MAY_BE_UNUSED PyObject *tmp_unused; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; bool tmp_result; static struct Nuitka_FrameObject *cache_frame_a49afc773f6ed00ebc38fd16aeae958b = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_a49afc773f6ed00ebc38fd16aeae958b, codeobj_a49afc773f6ed00ebc38fd16aeae958b, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) ); frame_a49afc773f6ed00ebc38fd16aeae958b = cache_frame_a49afc773f6ed00ebc38fd16aeae958b; // Push the new frame as the currently active one. pushFrameStack( frame_a49afc773f6ed00ebc38fd16aeae958b ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_a49afc773f6ed00ebc38fd16aeae958b ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_called_name_1; PyObject *tmp_source_name_1; PyObject *tmp_source_name_2; PyObject *tmp_mvar_value_1; PyObject *tmp_args_element_name_1; PyObject *tmp_args_element_name_2; PyObject *tmp_source_name_3; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_treebuilder_base ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_treebuilder_base ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "treebuilder_base" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 225; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_source_name_2 = tmp_mvar_value_1; tmp_source_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_Node ); if ( tmp_source_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 225; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain___init__ ); Py_DECREF( tmp_source_name_1 ); if ( tmp_called_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 225; type_description_1 = "oooo"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_called_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 225; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_args_element_name_1 = par_self; if ( par_element == NULL ) { Py_DECREF( tmp_called_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 225; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_source_name_3 = par_element; tmp_args_element_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_name ); if ( tmp_args_element_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_1 ); exception_lineno = 225; type_description_1 = "oooo"; goto frame_exception_exit_1; } frame_a49afc773f6ed00ebc38fd16aeae958b->m_frame.f_lineno = 225; { PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_2 }; tmp_unused = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_1, call_args ); } Py_DECREF( tmp_called_name_1 ); Py_DECREF( tmp_args_element_name_2 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 225; type_description_1 = "oooo"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } { PyObject *tmp_assattr_name_1; PyObject *tmp_assattr_target_1; if ( par_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 226; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_assattr_name_1 = par_element; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 226; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_assattr_target_1 = par_self; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain_element, tmp_assattr_name_1 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 226; type_description_1 = "oooo"; goto frame_exception_exit_1; } } { PyObject *tmp_assattr_name_2; PyObject *tmp_assattr_target_2; if ( par_soup == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "soup" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 227; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_assattr_name_2 = par_soup; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 227; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_assattr_target_2 = par_self; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_2, const_str_plain_soup, tmp_assattr_name_2 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 227; type_description_1 = "oooo"; goto frame_exception_exit_1; } } { PyObject *tmp_assattr_name_3; PyObject *tmp_assattr_target_3; if ( par_namespace == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "namespace" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 228; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_assattr_name_3 = par_namespace; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 228; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_assattr_target_3 = par_self; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_3, const_str_plain_namespace, tmp_assattr_name_3 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 228; type_description_1 = "oooo"; goto frame_exception_exit_1; } } #if 0 RESTORE_FRAME_EXCEPTION( frame_a49afc773f6ed00ebc38fd16aeae958b ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_a49afc773f6ed00ebc38fd16aeae958b ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_a49afc773f6ed00ebc38fd16aeae958b, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_a49afc773f6ed00ebc38fd16aeae958b->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_a49afc773f6ed00ebc38fd16aeae958b, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_a49afc773f6ed00ebc38fd16aeae958b, type_description_1, par_self, par_element, par_soup, par_namespace ); // Release cached frame. if ( frame_a49afc773f6ed00ebc38fd16aeae958b == cache_frame_a49afc773f6ed00ebc38fd16aeae958b ) { Py_DECREF( frame_a49afc773f6ed00ebc38fd16aeae958b ); } cache_frame_a49afc773f6ed00ebc38fd16aeae958b = NULL; assertFrameObject( frame_a49afc773f6ed00ebc38fd16aeae958b ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; { tmp_return_value = Py_None; Py_INCREF( tmp_return_value ); goto try_return_handler_1; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_23___init__ ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_element ); par_element = NULL; } { Py_XDECREF( par_soup ); par_soup = NULL; } { Py_XDECREF( par_namespace ); par_namespace = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_element ); par_element = NULL; } { Py_XDECREF( par_soup ); par_soup = NULL; } { Py_XDECREF( par_namespace ); par_namespace = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_23___init__ ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_24_appendChild( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *par_node = python_pars[ 1 ]; PyObject *var_string_child = NULL; PyObject *var_child = NULL; PyObject *var_old_element = NULL; PyObject *var_new_element = NULL; PyObject *var_most_recent_element = NULL; PyObject *tmp_assign_unpack_2__assign_source = NULL; PyObject *tmp_assign_unpack_3__assign_source = NULL; struct Nuitka_FrameObject *frame_d6e104211ad483b8ab15f86f297090e8; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; int tmp_res; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; bool tmp_result; NUITKA_MAY_BE_UNUSED PyObject *tmp_unused; static struct Nuitka_FrameObject *cache_frame_d6e104211ad483b8ab15f86f297090e8 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { PyObject *tmp_assign_source_1; tmp_assign_source_1 = Py_None; assert( var_string_child == NULL ); Py_INCREF( tmp_assign_source_1 ); var_string_child = tmp_assign_source_1; } { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_d6e104211ad483b8ab15f86f297090e8, codeobj_d6e104211ad483b8ab15f86f297090e8, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) ); frame_d6e104211ad483b8ab15f86f297090e8 = cache_frame_d6e104211ad483b8ab15f86f297090e8; // Push the new frame as the currently active one. pushFrameStack( frame_d6e104211ad483b8ab15f86f297090e8 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_d6e104211ad483b8ab15f86f297090e8 ) == 2 ); // Frame stack // Framed code: { nuitka_bool tmp_condition_result_1; PyObject *tmp_isinstance_inst_1; PyObject *tmp_isinstance_cls_1; CHECK_OBJECT( par_node ); tmp_isinstance_inst_1 = par_node; tmp_isinstance_cls_1 = (PyObject *)&PyUnicode_Type; tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_1, tmp_isinstance_cls_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 232; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_condition_result_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { PyObject *tmp_assign_source_2; CHECK_OBJECT( par_node ); tmp_assign_source_2 = par_node; assert( tmp_assign_unpack_2__assign_source == NULL ); Py_INCREF( tmp_assign_source_2 ); tmp_assign_unpack_2__assign_source = tmp_assign_source_2; } { PyObject *tmp_assign_source_3; CHECK_OBJECT( tmp_assign_unpack_2__assign_source ); tmp_assign_source_3 = tmp_assign_unpack_2__assign_source; { PyObject *old = var_string_child; assert( old != NULL ); var_string_child = tmp_assign_source_3; Py_INCREF( var_string_child ); Py_DECREF( old ); } } { PyObject *tmp_assign_source_4; CHECK_OBJECT( tmp_assign_unpack_2__assign_source ); tmp_assign_source_4 = tmp_assign_unpack_2__assign_source; assert( var_child == NULL ); Py_INCREF( tmp_assign_source_4 ); var_child = tmp_assign_source_4; } { CHECK_OBJECT( (PyObject *)tmp_assign_unpack_2__assign_source ); Py_DECREF( tmp_assign_unpack_2__assign_source ); tmp_assign_unpack_2__assign_source = NULL; } goto branch_end_1; branch_no_1:; { nuitka_bool tmp_condition_result_2; PyObject *tmp_isinstance_inst_2; PyObject *tmp_isinstance_cls_2; PyObject *tmp_mvar_value_1; CHECK_OBJECT( par_node ); tmp_isinstance_inst_2 = par_node; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_Tag ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_Tag ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "Tag" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 237; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_isinstance_cls_2 = tmp_mvar_value_1; tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_2, tmp_isinstance_cls_2 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 237; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_condition_result_2 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE ) { goto branch_yes_2; } else { goto branch_no_2; } branch_yes_2:; { PyObject *tmp_assign_source_5; CHECK_OBJECT( par_node ); tmp_assign_source_5 = par_node; assert( var_child == NULL ); Py_INCREF( tmp_assign_source_5 ); var_child = tmp_assign_source_5; } goto branch_end_2; branch_no_2:; { nuitka_bool tmp_condition_result_3; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; PyObject *tmp_source_name_1; PyObject *tmp_source_name_2; PyObject *tmp_mvar_value_2; CHECK_OBJECT( par_node ); tmp_source_name_2 = par_node; tmp_source_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_element ); if ( tmp_source_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 242; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE_CLASS_SLOT( tmp_source_name_1 ); Py_DECREF( tmp_source_name_1 ); if ( tmp_compexpr_left_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 242; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_NavigableString ); if (unlikely( tmp_mvar_value_2 == NULL )) { tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_NavigableString ); } if ( tmp_mvar_value_2 == NULL ) { Py_DECREF( tmp_compexpr_left_1 ); exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "NavigableString" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 242; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_compexpr_right_1 = tmp_mvar_value_2; tmp_res = RICH_COMPARE_BOOL_EQ( tmp_compexpr_left_1, tmp_compexpr_right_1 ); Py_DECREF( tmp_compexpr_left_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 242; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_condition_result_3 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_3 == NUITKA_BOOL_TRUE ) { goto branch_yes_3; } else { goto branch_no_3; } branch_yes_3:; { PyObject *tmp_assign_source_6; PyObject *tmp_source_name_3; if ( par_node == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "node" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 243; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_source_name_3 = par_node; tmp_assign_source_6 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_element ); if ( tmp_assign_source_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 243; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } assert( tmp_assign_unpack_3__assign_source == NULL ); tmp_assign_unpack_3__assign_source = tmp_assign_source_6; } { PyObject *tmp_assign_source_7; CHECK_OBJECT( tmp_assign_unpack_3__assign_source ); tmp_assign_source_7 = tmp_assign_unpack_3__assign_source; { PyObject *old = var_string_child; var_string_child = tmp_assign_source_7; Py_INCREF( var_string_child ); Py_XDECREF( old ); } } { PyObject *tmp_assign_source_8; CHECK_OBJECT( tmp_assign_unpack_3__assign_source ); tmp_assign_source_8 = tmp_assign_unpack_3__assign_source; assert( var_child == NULL ); Py_INCREF( tmp_assign_source_8 ); var_child = tmp_assign_source_8; } { CHECK_OBJECT( (PyObject *)tmp_assign_unpack_3__assign_source ); Py_DECREF( tmp_assign_unpack_3__assign_source ); tmp_assign_unpack_3__assign_source = NULL; } { PyObject *tmp_assattr_name_1; PyObject *tmp_assattr_target_1; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 244; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_assattr_name_1 = par_self; if ( par_node == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "node" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 244; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_assattr_target_1 = par_node; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain_parent, tmp_assattr_name_1 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 244; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } } goto branch_end_3; branch_no_3:; { PyObject *tmp_assign_source_9; PyObject *tmp_source_name_4; if ( par_node == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "node" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 246; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_source_name_4 = par_node; tmp_assign_source_9 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_element ); if ( tmp_assign_source_9 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 246; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } assert( var_child == NULL ); var_child = tmp_assign_source_9; } { PyObject *tmp_assattr_name_2; PyObject *tmp_assattr_target_2; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 247; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_assattr_name_2 = par_self; if ( par_node == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "node" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 247; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_assattr_target_2 = par_node; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_2, const_str_plain_parent, tmp_assattr_name_2 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 247; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } } branch_end_3:; } branch_end_2:; } branch_end_1:; } { nuitka_bool tmp_condition_result_4; int tmp_and_left_truth_1; nuitka_bool tmp_and_left_value_1; nuitka_bool tmp_and_right_value_1; PyObject *tmp_operand_name_1; PyObject *tmp_isinstance_inst_3; PyObject *tmp_isinstance_cls_3; PyObject *tmp_compexpr_left_2; PyObject *tmp_compexpr_right_2; PyObject *tmp_source_name_5; if ( var_child == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "child" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 249; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_isinstance_inst_3 = var_child; tmp_isinstance_cls_3 = (PyObject *)&PyUnicode_Type; tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_3, tmp_isinstance_cls_3 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 249; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_operand_name_1 = ( tmp_res != 0 ) ? Py_True : Py_False; tmp_res = CHECK_IF_TRUE( tmp_operand_name_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 249; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_and_left_value_1 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; if ( tmp_and_left_truth_1 == 1 ) { goto and_right_1; } else { goto and_left_1; } and_right_1:; if ( var_child == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "child" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 249; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_source_name_5 = var_child; tmp_compexpr_left_2 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain_parent ); if ( tmp_compexpr_left_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 249; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_compexpr_right_2 = Py_None; tmp_and_right_value_1 = ( tmp_compexpr_left_2 != tmp_compexpr_right_2 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_compexpr_left_2 ); tmp_condition_result_4 = tmp_and_right_value_1; goto and_end_1; and_left_1:; tmp_condition_result_4 = tmp_and_left_value_1; and_end_1:; if ( tmp_condition_result_4 == NUITKA_BOOL_TRUE ) { goto branch_yes_4; } else { goto branch_no_4; } branch_yes_4:; { PyObject *tmp_called_instance_1; PyObject *tmp_source_name_6; if ( par_node == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "node" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 250; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_source_name_6 = par_node; tmp_called_instance_1 = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain_element ); if ( tmp_called_instance_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 250; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } frame_d6e104211ad483b8ab15f86f297090e8->m_frame.f_lineno = 250; tmp_unused = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain_extract ); Py_DECREF( tmp_called_instance_1 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 250; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } branch_no_4:; } { nuitka_bool tmp_condition_result_5; int tmp_and_left_truth_2; nuitka_bool tmp_and_left_value_2; nuitka_bool tmp_and_right_value_2; int tmp_truth_name_1; int tmp_and_left_truth_3; nuitka_bool tmp_and_left_value_3; nuitka_bool tmp_and_right_value_3; PyObject *tmp_source_name_7; PyObject *tmp_source_name_8; PyObject *tmp_attribute_value_1; int tmp_truth_name_2; PyObject *tmp_compexpr_left_3; PyObject *tmp_compexpr_right_3; PyObject *tmp_source_name_9; PyObject *tmp_subscribed_name_1; PyObject *tmp_source_name_10; PyObject *tmp_source_name_11; PyObject *tmp_subscript_name_1; PyObject *tmp_mvar_value_3; if ( var_string_child == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "string_child" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 252; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_truth_name_1 = CHECK_IF_TRUE( var_string_child ); if ( tmp_truth_name_1 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 252; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_and_left_value_2 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; tmp_and_left_truth_2 = tmp_and_left_value_2 == NUITKA_BOOL_TRUE ? 1 : 0; if ( tmp_and_left_truth_2 == 1 ) { goto and_right_2; } else { goto and_left_2; } and_right_2:; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 252; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_source_name_8 = par_self; tmp_source_name_7 = LOOKUP_ATTRIBUTE( tmp_source_name_8, const_str_plain_element ); if ( tmp_source_name_7 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 252; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_attribute_value_1 = LOOKUP_ATTRIBUTE( tmp_source_name_7, const_str_plain_contents ); Py_DECREF( tmp_source_name_7 ); if ( tmp_attribute_value_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 252; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_truth_name_2 = CHECK_IF_TRUE( tmp_attribute_value_1 ); if ( tmp_truth_name_2 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_attribute_value_1 ); exception_lineno = 252; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_and_left_value_3 = tmp_truth_name_2 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_attribute_value_1 ); tmp_and_left_truth_3 = tmp_and_left_value_3 == NUITKA_BOOL_TRUE ? 1 : 0; if ( tmp_and_left_truth_3 == 1 ) { goto and_right_3; } else { goto and_left_3; } and_right_3:; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 253; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_source_name_11 = par_self; tmp_source_name_10 = LOOKUP_ATTRIBUTE( tmp_source_name_11, const_str_plain_element ); if ( tmp_source_name_10 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 253; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_subscribed_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_10, const_str_plain_contents ); Py_DECREF( tmp_source_name_10 ); if ( tmp_subscribed_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 253; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_subscript_name_1 = const_int_neg_1; tmp_source_name_9 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_1, tmp_subscript_name_1, -1 ); Py_DECREF( tmp_subscribed_name_1 ); if ( tmp_source_name_9 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 253; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_compexpr_left_3 = LOOKUP_ATTRIBUTE_CLASS_SLOT( tmp_source_name_9 ); Py_DECREF( tmp_source_name_9 ); if ( tmp_compexpr_left_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 253; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_NavigableString ); if (unlikely( tmp_mvar_value_3 == NULL )) { tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_NavigableString ); } if ( tmp_mvar_value_3 == NULL ) { Py_DECREF( tmp_compexpr_left_3 ); exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "NavigableString" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 253; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_compexpr_right_3 = tmp_mvar_value_3; tmp_res = RICH_COMPARE_BOOL_EQ( tmp_compexpr_left_3, tmp_compexpr_right_3 ); Py_DECREF( tmp_compexpr_left_3 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 253; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_and_right_value_3 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; tmp_and_right_value_2 = tmp_and_right_value_3; goto and_end_3; and_left_3:; tmp_and_right_value_2 = tmp_and_left_value_3; and_end_3:; tmp_condition_result_5 = tmp_and_right_value_2; goto and_end_2; and_left_2:; tmp_condition_result_5 = tmp_and_left_value_2; and_end_2:; if ( tmp_condition_result_5 == NUITKA_BOOL_TRUE ) { goto branch_yes_5; } else { goto branch_no_5; } branch_yes_5:; { PyObject *tmp_assign_source_10; PyObject *tmp_subscribed_name_2; PyObject *tmp_source_name_12; PyObject *tmp_source_name_13; PyObject *tmp_subscript_name_2; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 257; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_source_name_13 = par_self; tmp_source_name_12 = LOOKUP_ATTRIBUTE( tmp_source_name_13, const_str_plain_element ); if ( tmp_source_name_12 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 257; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_subscribed_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_12, const_str_plain_contents ); Py_DECREF( tmp_source_name_12 ); if ( tmp_subscribed_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 257; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_subscript_name_2 = const_int_neg_1; tmp_assign_source_10 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_2, tmp_subscript_name_2, -1 ); Py_DECREF( tmp_subscribed_name_2 ); if ( tmp_assign_source_10 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 257; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } assert( var_old_element == NULL ); var_old_element = tmp_assign_source_10; } { PyObject *tmp_assign_source_11; PyObject *tmp_called_name_1; PyObject *tmp_source_name_14; PyObject *tmp_source_name_15; PyObject *tmp_args_element_name_1; PyObject *tmp_left_name_1; PyObject *tmp_right_name_1; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 258; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_source_name_15 = par_self; tmp_source_name_14 = LOOKUP_ATTRIBUTE( tmp_source_name_15, const_str_plain_soup ); if ( tmp_source_name_14 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 258; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_14, const_str_plain_new_string ); Py_DECREF( tmp_source_name_14 ); if ( tmp_called_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 258; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } if ( var_old_element == NULL ) { Py_DECREF( tmp_called_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "old_element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 258; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_left_name_1 = var_old_element; if ( var_string_child == NULL ) { Py_DECREF( tmp_called_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "string_child" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 258; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_right_name_1 = var_string_child; tmp_args_element_name_1 = BINARY_OPERATION_ADD( tmp_left_name_1, tmp_right_name_1 ); if ( tmp_args_element_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_1 ); exception_lineno = 258; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } frame_d6e104211ad483b8ab15f86f297090e8->m_frame.f_lineno = 258; { PyObject *call_args[] = { tmp_args_element_name_1 }; tmp_assign_source_11 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args ); } Py_DECREF( tmp_called_name_1 ); Py_DECREF( tmp_args_element_name_1 ); if ( tmp_assign_source_11 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 258; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } assert( var_new_element == NULL ); var_new_element = tmp_assign_source_11; } { PyObject *tmp_called_name_2; PyObject *tmp_source_name_16; PyObject *tmp_args_element_name_2; if ( var_old_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "old_element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 259; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_source_name_16 = var_old_element; tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_16, const_str_plain_replace_with ); if ( tmp_called_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 259; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } if ( var_new_element == NULL ) { Py_DECREF( tmp_called_name_2 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "new_element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 259; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_args_element_name_2 = var_new_element; frame_d6e104211ad483b8ab15f86f297090e8->m_frame.f_lineno = 259; { PyObject *call_args[] = { tmp_args_element_name_2 }; tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_2, call_args ); } Py_DECREF( tmp_called_name_2 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 259; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } { PyObject *tmp_assattr_name_3; PyObject *tmp_assattr_target_3; PyObject *tmp_source_name_17; if ( var_new_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "new_element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 260; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_assattr_name_3 = var_new_element; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 260; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_source_name_17 = par_self; tmp_assattr_target_3 = LOOKUP_ATTRIBUTE( tmp_source_name_17, const_str_plain_soup ); if ( tmp_assattr_target_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 260; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_result = SET_ATTRIBUTE( tmp_assattr_target_3, const_str_plain__most_recent_element, tmp_assattr_name_3 ); Py_DECREF( tmp_assattr_target_3 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 260; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } } goto branch_end_5; branch_no_5:; { nuitka_bool tmp_condition_result_6; PyObject *tmp_isinstance_inst_4; PyObject *tmp_isinstance_cls_4; if ( par_node == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "node" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 262; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_isinstance_inst_4 = par_node; tmp_isinstance_cls_4 = (PyObject *)&PyUnicode_Type; tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_4, tmp_isinstance_cls_4 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 262; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_condition_result_6 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_6 == NUITKA_BOOL_TRUE ) { goto branch_yes_6; } else { goto branch_no_6; } branch_yes_6:; { PyObject *tmp_assign_source_12; PyObject *tmp_called_name_3; PyObject *tmp_source_name_18; PyObject *tmp_source_name_19; PyObject *tmp_args_element_name_3; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 264; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_source_name_19 = par_self; tmp_source_name_18 = LOOKUP_ATTRIBUTE( tmp_source_name_19, const_str_plain_soup ); if ( tmp_source_name_18 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 264; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_called_name_3 = LOOKUP_ATTRIBUTE( tmp_source_name_18, const_str_plain_new_string ); Py_DECREF( tmp_source_name_18 ); if ( tmp_called_name_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 264; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } if ( par_node == NULL ) { Py_DECREF( tmp_called_name_3 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "node" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 264; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_args_element_name_3 = par_node; frame_d6e104211ad483b8ab15f86f297090e8->m_frame.f_lineno = 264; { PyObject *call_args[] = { tmp_args_element_name_3 }; tmp_assign_source_12 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_3, call_args ); } Py_DECREF( tmp_called_name_3 ); if ( tmp_assign_source_12 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 264; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } { PyObject *old = var_child; var_child = tmp_assign_source_12; Py_XDECREF( old ); } } branch_no_6:; } { nuitka_bool tmp_condition_result_7; PyObject *tmp_source_name_20; PyObject *tmp_source_name_21; PyObject *tmp_attribute_value_2; int tmp_truth_name_3; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 269; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_source_name_21 = par_self; tmp_source_name_20 = LOOKUP_ATTRIBUTE( tmp_source_name_21, const_str_plain_element ); if ( tmp_source_name_20 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 269; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_attribute_value_2 = LOOKUP_ATTRIBUTE( tmp_source_name_20, const_str_plain_contents ); Py_DECREF( tmp_source_name_20 ); if ( tmp_attribute_value_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 269; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_truth_name_3 = CHECK_IF_TRUE( tmp_attribute_value_2 ); if ( tmp_truth_name_3 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_attribute_value_2 ); exception_lineno = 269; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_condition_result_7 = tmp_truth_name_3 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_attribute_value_2 ); if ( tmp_condition_result_7 == NUITKA_BOOL_TRUE ) { goto branch_yes_7; } else { goto branch_no_7; } branch_yes_7:; { PyObject *tmp_assign_source_13; PyObject *tmp_called_instance_2; PyObject *tmp_source_name_22; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 270; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_source_name_22 = par_self; tmp_called_instance_2 = LOOKUP_ATTRIBUTE( tmp_source_name_22, const_str_plain_element ); if ( tmp_called_instance_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 270; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } frame_d6e104211ad483b8ab15f86f297090e8->m_frame.f_lineno = 270; tmp_assign_source_13 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_2, const_str_plain__last_descendant, &PyTuple_GET_ITEM( const_tuple_false_tuple, 0 ) ); Py_DECREF( tmp_called_instance_2 ); if ( tmp_assign_source_13 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 270; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } assert( var_most_recent_element == NULL ); var_most_recent_element = tmp_assign_source_13; } goto branch_end_7; branch_no_7:; { nuitka_bool tmp_condition_result_8; PyObject *tmp_compexpr_left_4; PyObject *tmp_compexpr_right_4; PyObject *tmp_source_name_23; PyObject *tmp_source_name_24; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 271; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_source_name_24 = par_self; tmp_source_name_23 = LOOKUP_ATTRIBUTE( tmp_source_name_24, const_str_plain_element ); if ( tmp_source_name_23 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 271; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_compexpr_left_4 = LOOKUP_ATTRIBUTE( tmp_source_name_23, const_str_plain_next_element ); Py_DECREF( tmp_source_name_23 ); if ( tmp_compexpr_left_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 271; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_compexpr_right_4 = Py_None; tmp_condition_result_8 = ( tmp_compexpr_left_4 != tmp_compexpr_right_4 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_compexpr_left_4 ); if ( tmp_condition_result_8 == NUITKA_BOOL_TRUE ) { goto branch_yes_8; } else { goto branch_no_8; } branch_yes_8:; { PyObject *tmp_assign_source_14; PyObject *tmp_called_instance_3; PyObject *tmp_source_name_25; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 276; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_source_name_25 = par_self; tmp_called_instance_3 = LOOKUP_ATTRIBUTE( tmp_source_name_25, const_str_plain_soup ); if ( tmp_called_instance_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 276; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } frame_d6e104211ad483b8ab15f86f297090e8->m_frame.f_lineno = 276; tmp_assign_source_14 = CALL_METHOD_NO_ARGS( tmp_called_instance_3, const_str_plain__last_descendant ); Py_DECREF( tmp_called_instance_3 ); if ( tmp_assign_source_14 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 276; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } { PyObject *old = var_most_recent_element; var_most_recent_element = tmp_assign_source_14; Py_XDECREF( old ); } } goto branch_end_8; branch_no_8:; { PyObject *tmp_assign_source_15; PyObject *tmp_source_name_26; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 278; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_source_name_26 = par_self; tmp_assign_source_15 = LOOKUP_ATTRIBUTE( tmp_source_name_26, const_str_plain_element ); if ( tmp_assign_source_15 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 278; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } { PyObject *old = var_most_recent_element; var_most_recent_element = tmp_assign_source_15; Py_XDECREF( old ); } } branch_end_8:; } branch_end_7:; } { PyObject *tmp_called_name_4; PyObject *tmp_source_name_27; PyObject *tmp_source_name_28; PyObject *tmp_args_name_1; PyObject *tmp_tuple_element_1; PyObject *tmp_kw_name_1; PyObject *tmp_dict_key_1; PyObject *tmp_dict_value_1; PyObject *tmp_source_name_29; PyObject *tmp_dict_key_2; PyObject *tmp_dict_value_2; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 280; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_source_name_28 = par_self; tmp_source_name_27 = LOOKUP_ATTRIBUTE( tmp_source_name_28, const_str_plain_soup ); if ( tmp_source_name_27 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 280; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_called_name_4 = LOOKUP_ATTRIBUTE( tmp_source_name_27, const_str_plain_object_was_parsed ); Py_DECREF( tmp_source_name_27 ); if ( tmp_called_name_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 280; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } if ( var_child == NULL ) { Py_DECREF( tmp_called_name_4 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "child" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 281; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_tuple_element_1 = var_child; tmp_args_name_1 = PyTuple_New( 1 ); Py_INCREF( tmp_tuple_element_1 ); PyTuple_SET_ITEM( tmp_args_name_1, 0, tmp_tuple_element_1 ); tmp_dict_key_1 = const_str_plain_parent; if ( par_self == NULL ) { Py_DECREF( tmp_called_name_4 ); Py_DECREF( tmp_args_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 281; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_source_name_29 = par_self; tmp_dict_value_1 = LOOKUP_ATTRIBUTE( tmp_source_name_29, const_str_plain_element ); if ( tmp_dict_value_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_4 ); Py_DECREF( tmp_args_name_1 ); exception_lineno = 281; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_kw_name_1 = _PyDict_NewPresized( 2 ); tmp_res = PyDict_SetItem( tmp_kw_name_1, tmp_dict_key_1, tmp_dict_value_1 ); Py_DECREF( tmp_dict_value_1 ); assert( !(tmp_res != 0) ); tmp_dict_key_2 = const_str_plain_most_recent_element; if ( var_most_recent_element == NULL ) { Py_DECREF( tmp_called_name_4 ); Py_DECREF( tmp_args_name_1 ); Py_DECREF( tmp_kw_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "most_recent_element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 282; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_dict_value_2 = var_most_recent_element; tmp_res = PyDict_SetItem( tmp_kw_name_1, tmp_dict_key_2, tmp_dict_value_2 ); assert( !(tmp_res != 0) ); frame_d6e104211ad483b8ab15f86f297090e8->m_frame.f_lineno = 280; tmp_unused = CALL_FUNCTION( tmp_called_name_4, tmp_args_name_1, tmp_kw_name_1 ); Py_DECREF( tmp_called_name_4 ); Py_DECREF( tmp_args_name_1 ); Py_DECREF( tmp_kw_name_1 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 280; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } branch_end_5:; } #if 0 RESTORE_FRAME_EXCEPTION( frame_d6e104211ad483b8ab15f86f297090e8 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_d6e104211ad483b8ab15f86f297090e8 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_d6e104211ad483b8ab15f86f297090e8, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_d6e104211ad483b8ab15f86f297090e8->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_d6e104211ad483b8ab15f86f297090e8, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_d6e104211ad483b8ab15f86f297090e8, type_description_1, par_self, par_node, var_string_child, var_child, var_old_element, var_new_element, var_most_recent_element ); // Release cached frame. if ( frame_d6e104211ad483b8ab15f86f297090e8 == cache_frame_d6e104211ad483b8ab15f86f297090e8 ) { Py_DECREF( frame_d6e104211ad483b8ab15f86f297090e8 ); } cache_frame_d6e104211ad483b8ab15f86f297090e8 = NULL; assertFrameObject( frame_d6e104211ad483b8ab15f86f297090e8 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; { tmp_return_value = Py_None; Py_INCREF( tmp_return_value ); goto try_return_handler_1; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_24_appendChild ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_node ); par_node = NULL; } { Py_XDECREF( var_string_child ); var_string_child = NULL; } { Py_XDECREF( var_child ); var_child = NULL; } { Py_XDECREF( var_old_element ); var_old_element = NULL; } { Py_XDECREF( var_new_element ); var_new_element = NULL; } { Py_XDECREF( var_most_recent_element ); var_most_recent_element = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_node ); par_node = NULL; } { Py_XDECREF( var_string_child ); var_string_child = NULL; } { Py_XDECREF( var_child ); var_child = NULL; } { Py_XDECREF( var_old_element ); var_old_element = NULL; } { Py_XDECREF( var_new_element ); var_new_element = NULL; } { Py_XDECREF( var_most_recent_element ); var_most_recent_element = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_24_appendChild ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_25_getAttributes( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; struct Nuitka_FrameObject *frame_b59ce5223e4e2dfd2fc98070cdbb9d16; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; int tmp_res; PyObject *tmp_return_value = NULL; static struct Nuitka_FrameObject *cache_frame_b59ce5223e4e2dfd2fc98070cdbb9d16 = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_b59ce5223e4e2dfd2fc98070cdbb9d16, codeobj_b59ce5223e4e2dfd2fc98070cdbb9d16, module_bs4$builder$_html5lib, sizeof(void *) ); frame_b59ce5223e4e2dfd2fc98070cdbb9d16 = cache_frame_b59ce5223e4e2dfd2fc98070cdbb9d16; // Push the new frame as the currently active one. pushFrameStack( frame_b59ce5223e4e2dfd2fc98070cdbb9d16 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_b59ce5223e4e2dfd2fc98070cdbb9d16 ) == 2 ); // Frame stack // Framed code: { nuitka_bool tmp_condition_result_1; PyObject *tmp_isinstance_inst_1; PyObject *tmp_isinstance_cls_1; PyObject *tmp_source_name_1; PyObject *tmp_mvar_value_1; CHECK_OBJECT( par_self ); tmp_source_name_1 = par_self; tmp_isinstance_inst_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_element ); if ( tmp_isinstance_inst_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 285; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_Comment ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_Comment ); } if ( tmp_mvar_value_1 == NULL ) { Py_DECREF( tmp_isinstance_inst_1 ); exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "Comment" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 285; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_isinstance_cls_1 = tmp_mvar_value_1; tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_1, tmp_isinstance_cls_1 ); Py_DECREF( tmp_isinstance_inst_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 285; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_condition_result_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { tmp_return_value = PyDict_New(); goto frame_return_exit_1; } branch_no_1:; } { PyObject *tmp_called_name_1; PyObject *tmp_mvar_value_2; PyObject *tmp_args_element_name_1; PyObject *tmp_source_name_2; tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_AttrList ); if (unlikely( tmp_mvar_value_2 == NULL )) { tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_AttrList ); } if ( tmp_mvar_value_2 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "AttrList" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 287; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_called_name_1 = tmp_mvar_value_2; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 287; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_2 = par_self; tmp_args_element_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_element ); if ( tmp_args_element_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 287; type_description_1 = "o"; goto frame_exception_exit_1; } frame_b59ce5223e4e2dfd2fc98070cdbb9d16->m_frame.f_lineno = 287; { PyObject *call_args[] = { tmp_args_element_name_1 }; tmp_return_value = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args ); } Py_DECREF( tmp_args_element_name_1 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 287; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_b59ce5223e4e2dfd2fc98070cdbb9d16 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_b59ce5223e4e2dfd2fc98070cdbb9d16 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_b59ce5223e4e2dfd2fc98070cdbb9d16 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_b59ce5223e4e2dfd2fc98070cdbb9d16, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_b59ce5223e4e2dfd2fc98070cdbb9d16->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_b59ce5223e4e2dfd2fc98070cdbb9d16, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_b59ce5223e4e2dfd2fc98070cdbb9d16, type_description_1, par_self ); // Release cached frame. if ( frame_b59ce5223e4e2dfd2fc98070cdbb9d16 == cache_frame_b59ce5223e4e2dfd2fc98070cdbb9d16 ) { Py_DECREF( frame_b59ce5223e4e2dfd2fc98070cdbb9d16 ); } cache_frame_b59ce5223e4e2dfd2fc98070cdbb9d16 = NULL; assertFrameObject( frame_b59ce5223e4e2dfd2fc98070cdbb9d16 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_25_getAttributes ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_25_getAttributes ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_26_setAttributes( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *par_attributes = python_pars[ 1 ]; PyObject *var_name = NULL; PyObject *var_value = NULL; PyObject *var_new_name = NULL; PyObject *tmp_for_loop_1__for_iterator = NULL; PyObject *tmp_for_loop_1__iter_value = NULL; PyObject *tmp_for_loop_2__for_iterator = NULL; PyObject *tmp_for_loop_2__iter_value = NULL; PyObject *tmp_tuple_unpack_1__element_1 = NULL; PyObject *tmp_tuple_unpack_1__element_2 = NULL; PyObject *tmp_tuple_unpack_1__source_iter = NULL; PyObject *tmp_tuple_unpack_2__element_1 = NULL; PyObject *tmp_tuple_unpack_2__element_2 = NULL; PyObject *tmp_tuple_unpack_2__source_iter = NULL; struct Nuitka_FrameObject *frame_880ad0c3c14171fe04c296863fb1e208; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; int tmp_res; PyObject *tmp_iterator_attempt; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; PyObject *exception_keeper_type_2; PyObject *exception_keeper_value_2; PyTracebackObject *exception_keeper_tb_2; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; bool tmp_result; PyObject *exception_keeper_type_3; PyObject *exception_keeper_value_3; PyTracebackObject *exception_keeper_tb_3; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; NUITKA_MAY_BE_UNUSED PyObject *tmp_unused; PyObject *exception_keeper_type_4; PyObject *exception_keeper_value_4; PyTracebackObject *exception_keeper_tb_4; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; PyObject *exception_keeper_type_5; PyObject *exception_keeper_value_5; PyTracebackObject *exception_keeper_tb_5; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; PyObject *exception_keeper_type_6; PyObject *exception_keeper_value_6; PyTracebackObject *exception_keeper_tb_6; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; static struct Nuitka_FrameObject *cache_frame_880ad0c3c14171fe04c296863fb1e208 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_keeper_type_7; PyObject *exception_keeper_value_7; PyTracebackObject *exception_keeper_tb_7; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_880ad0c3c14171fe04c296863fb1e208, codeobj_880ad0c3c14171fe04c296863fb1e208, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) ); frame_880ad0c3c14171fe04c296863fb1e208 = cache_frame_880ad0c3c14171fe04c296863fb1e208; // Push the new frame as the currently active one. pushFrameStack( frame_880ad0c3c14171fe04c296863fb1e208 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_880ad0c3c14171fe04c296863fb1e208 ) == 2 ); // Frame stack // Framed code: { nuitka_bool tmp_condition_result_1; int tmp_and_left_truth_1; nuitka_bool tmp_and_left_value_1; nuitka_bool tmp_and_right_value_1; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; PyObject *tmp_compexpr_left_2; PyObject *tmp_compexpr_right_2; PyObject *tmp_len_arg_1; CHECK_OBJECT( par_attributes ); tmp_compexpr_left_1 = par_attributes; tmp_compexpr_right_1 = Py_None; tmp_and_left_value_1 = ( tmp_compexpr_left_1 != tmp_compexpr_right_1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; if ( tmp_and_left_truth_1 == 1 ) { goto and_right_1; } else { goto and_left_1; } and_right_1:; if ( par_attributes == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "attributes" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 291; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } tmp_len_arg_1 = par_attributes; tmp_compexpr_left_2 = BUILTIN_LEN( tmp_len_arg_1 ); if ( tmp_compexpr_left_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 291; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } tmp_compexpr_right_2 = const_int_0; tmp_res = RICH_COMPARE_BOOL_GT( tmp_compexpr_left_2, tmp_compexpr_right_2 ); Py_DECREF( tmp_compexpr_left_2 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 291; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } tmp_and_right_value_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; tmp_condition_result_1 = tmp_and_right_value_1; goto and_end_1; and_left_1:; tmp_condition_result_1 = tmp_and_left_value_1; and_end_1:; if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { PyObject *tmp_assign_source_1; PyObject *tmp_iter_arg_1; PyObject *tmp_list_arg_1; PyObject *tmp_called_instance_1; if ( par_attributes == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "attributes" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 294; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } tmp_called_instance_1 = par_attributes; frame_880ad0c3c14171fe04c296863fb1e208->m_frame.f_lineno = 294; tmp_list_arg_1 = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain_items ); if ( tmp_list_arg_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 294; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } tmp_iter_arg_1 = PySequence_List( tmp_list_arg_1 ); Py_DECREF( tmp_list_arg_1 ); if ( tmp_iter_arg_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 294; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } tmp_assign_source_1 = MAKE_ITERATOR( tmp_iter_arg_1 ); Py_DECREF( tmp_iter_arg_1 ); if ( tmp_assign_source_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 294; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } assert( tmp_for_loop_1__for_iterator == NULL ); tmp_for_loop_1__for_iterator = tmp_assign_source_1; } { // Tried code: { loop_start_1:; { PyObject *tmp_next_source_1; PyObject *tmp_assign_source_2; CHECK_OBJECT( tmp_for_loop_1__for_iterator ); tmp_next_source_1 = tmp_for_loop_1__for_iterator; tmp_assign_source_2 = ITERATOR_NEXT( tmp_next_source_1 ); if ( tmp_assign_source_2 == NULL ) { if ( CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED() ) { goto loop_end_1; } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); type_description_1 = "ooNooo"; exception_lineno = 294; goto try_except_handler_2; } } { PyObject *old = tmp_for_loop_1__iter_value; tmp_for_loop_1__iter_value = tmp_assign_source_2; Py_XDECREF( old ); } } { // Tried code: { PyObject *tmp_assign_source_3; PyObject *tmp_iter_arg_2; CHECK_OBJECT( tmp_for_loop_1__iter_value ); tmp_iter_arg_2 = tmp_for_loop_1__iter_value; tmp_assign_source_3 = MAKE_UNPACK_ITERATOR( tmp_iter_arg_2 ); if ( tmp_assign_source_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 294; type_description_1 = "ooNooo"; goto try_except_handler_3; } { PyObject *old = tmp_tuple_unpack_1__source_iter; tmp_tuple_unpack_1__source_iter = tmp_assign_source_3; Py_XDECREF( old ); } } { // Tried code: { PyObject *tmp_assign_source_4; PyObject *tmp_unpack_1; CHECK_OBJECT( tmp_tuple_unpack_1__source_iter ); tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; tmp_assign_source_4 = UNPACK_NEXT( tmp_unpack_1, 0, 2 ); if ( tmp_assign_source_4 == NULL ) { if ( !ERROR_OCCURRED() ) { exception_type = PyExc_StopIteration; Py_INCREF( exception_type ); exception_value = NULL; exception_tb = NULL; } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); } type_description_1 = "ooNooo"; exception_lineno = 294; goto try_except_handler_4; } { PyObject *old = tmp_tuple_unpack_1__element_1; tmp_tuple_unpack_1__element_1 = tmp_assign_source_4; Py_XDECREF( old ); } } { PyObject *tmp_assign_source_5; PyObject *tmp_unpack_2; CHECK_OBJECT( tmp_tuple_unpack_1__source_iter ); tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; tmp_assign_source_5 = UNPACK_NEXT( tmp_unpack_2, 1, 2 ); if ( tmp_assign_source_5 == NULL ) { if ( !ERROR_OCCURRED() ) { exception_type = PyExc_StopIteration; Py_INCREF( exception_type ); exception_value = NULL; exception_tb = NULL; } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); } type_description_1 = "ooNooo"; exception_lineno = 294; goto try_except_handler_4; } { PyObject *old = tmp_tuple_unpack_1__element_2; tmp_tuple_unpack_1__element_2 = tmp_assign_source_5; Py_XDECREF( old ); } } { PyObject *tmp_iterator_name_1; CHECK_OBJECT( tmp_tuple_unpack_1__source_iter ); tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; // Check if iterator has left-over elements. CHECK_OBJECT( tmp_iterator_name_1 ); assert( HAS_ITERNEXT( tmp_iterator_name_1 ) ); tmp_iterator_attempt = (*Py_TYPE( tmp_iterator_name_1 )->tp_iternext)( tmp_iterator_name_1 ); if (likely( tmp_iterator_attempt == NULL )) { PyObject *error = GET_ERROR_OCCURRED(); if ( error != NULL ) { if ( EXCEPTION_MATCH_BOOL_SINGLE( error, PyExc_StopIteration )) { CLEAR_ERROR_OCCURRED(); } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); type_description_1 = "ooNooo"; exception_lineno = 294; goto try_except_handler_4; } } } else { Py_DECREF( tmp_iterator_attempt ); // TODO: Could avoid PyErr_Format. #if PYTHON_VERSION < 300 PyErr_Format( PyExc_ValueError, "too many values to unpack" ); #else PyErr_Format( PyExc_ValueError, "too many values to unpack (expected 2)" ); #endif FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); type_description_1 = "ooNooo"; exception_lineno = 294; goto try_except_handler_4; } } goto try_end_1; // Exception handler code: try_except_handler_4:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { CHECK_OBJECT( (PyObject *)tmp_tuple_unpack_1__source_iter ); Py_DECREF( tmp_tuple_unpack_1__source_iter ); tmp_tuple_unpack_1__source_iter = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto try_except_handler_3; } // End of try: try_end_1:; } goto try_end_2; // Exception handler code: try_except_handler_3:; exception_keeper_type_2 = exception_type; exception_keeper_value_2 = exception_value; exception_keeper_tb_2 = exception_tb; exception_keeper_lineno_2 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( tmp_tuple_unpack_1__element_1 ); tmp_tuple_unpack_1__element_1 = NULL; } { Py_XDECREF( tmp_tuple_unpack_1__element_2 ); tmp_tuple_unpack_1__element_2 = NULL; } { // Re-raise. exception_type = exception_keeper_type_2; exception_value = exception_keeper_value_2; exception_tb = exception_keeper_tb_2; exception_lineno = exception_keeper_lineno_2; goto try_except_handler_2; } // End of try: try_end_2:; } { CHECK_OBJECT( (PyObject *)tmp_tuple_unpack_1__source_iter ); Py_DECREF( tmp_tuple_unpack_1__source_iter ); tmp_tuple_unpack_1__source_iter = NULL; } { PyObject *tmp_assign_source_6; CHECK_OBJECT( tmp_tuple_unpack_1__element_1 ); tmp_assign_source_6 = tmp_tuple_unpack_1__element_1; { PyObject *old = var_name; var_name = tmp_assign_source_6; Py_INCREF( var_name ); Py_XDECREF( old ); } } { Py_XDECREF( tmp_tuple_unpack_1__element_1 ); tmp_tuple_unpack_1__element_1 = NULL; } { PyObject *tmp_assign_source_7; CHECK_OBJECT( tmp_tuple_unpack_1__element_2 ); tmp_assign_source_7 = tmp_tuple_unpack_1__element_2; { PyObject *old = var_value; var_value = tmp_assign_source_7; Py_INCREF( var_value ); Py_XDECREF( old ); } } { Py_XDECREF( tmp_tuple_unpack_1__element_2 ); tmp_tuple_unpack_1__element_2 = NULL; } { nuitka_bool tmp_condition_result_2; PyObject *tmp_isinstance_inst_1; PyObject *tmp_isinstance_cls_1; if ( var_name == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 295; type_description_1 = "ooNooo"; goto try_except_handler_2; } tmp_isinstance_inst_1 = var_name; tmp_isinstance_cls_1 = (PyObject *)&PyTuple_Type; tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_1, tmp_isinstance_cls_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 295; type_description_1 = "ooNooo"; goto try_except_handler_2; } tmp_condition_result_2 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE ) { goto branch_yes_2; } else { goto branch_no_2; } branch_yes_2:; { PyObject *tmp_assign_source_8; PyObject *tmp_dircall_arg1_1; PyObject *tmp_mvar_value_1; PyObject *tmp_dircall_arg2_1; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_NamespacedAttribute ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_NamespacedAttribute ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "NamespacedAttribute" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 296; type_description_1 = "ooNooo"; goto try_except_handler_2; } tmp_dircall_arg1_1 = tmp_mvar_value_1; if ( var_name == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 296; type_description_1 = "ooNooo"; goto try_except_handler_2; } tmp_dircall_arg2_1 = var_name; Py_INCREF( tmp_dircall_arg1_1 ); Py_INCREF( tmp_dircall_arg2_1 ); { PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1}; tmp_assign_source_8 = impl___internal__$$$function_2_complex_call_helper_star_list( dir_call_args ); } if ( tmp_assign_source_8 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 296; type_description_1 = "ooNooo"; goto try_except_handler_2; } { PyObject *old = var_new_name; var_new_name = tmp_assign_source_8; Py_XDECREF( old ); } } { PyObject *tmp_delsubscr_target_1; PyObject *tmp_delsubscr_subscript_1; if ( par_attributes == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "attributes" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 297; type_description_1 = "ooNooo"; goto try_except_handler_2; } tmp_delsubscr_target_1 = par_attributes; if ( var_name == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 297; type_description_1 = "ooNooo"; goto try_except_handler_2; } tmp_delsubscr_subscript_1 = var_name; tmp_result = DEL_SUBSCRIPT( tmp_delsubscr_target_1, tmp_delsubscr_subscript_1 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 297; type_description_1 = "ooNooo"; goto try_except_handler_2; } } { PyObject *tmp_ass_subvalue_1; PyObject *tmp_ass_subscribed_1; PyObject *tmp_ass_subscript_1; if ( var_value == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "value" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 298; type_description_1 = "ooNooo"; goto try_except_handler_2; } tmp_ass_subvalue_1 = var_value; if ( par_attributes == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "attributes" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 298; type_description_1 = "ooNooo"; goto try_except_handler_2; } tmp_ass_subscribed_1 = par_attributes; if ( var_new_name == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "new_name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 298; type_description_1 = "ooNooo"; goto try_except_handler_2; } tmp_ass_subscript_1 = var_new_name; tmp_result = SET_SUBSCRIPT( tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 298; type_description_1 = "ooNooo"; goto try_except_handler_2; } } branch_no_2:; } if ( CONSIDER_THREADING() == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 294; type_description_1 = "ooNooo"; goto try_except_handler_2; } goto loop_start_1; loop_end_1:; } goto try_end_3; // Exception handler code: try_except_handler_2:; exception_keeper_type_3 = exception_type; exception_keeper_value_3 = exception_value; exception_keeper_tb_3 = exception_tb; exception_keeper_lineno_3 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( tmp_for_loop_1__iter_value ); tmp_for_loop_1__iter_value = NULL; } { CHECK_OBJECT( (PyObject *)tmp_for_loop_1__for_iterator ); Py_DECREF( tmp_for_loop_1__for_iterator ); tmp_for_loop_1__for_iterator = NULL; } { // Re-raise. exception_type = exception_keeper_type_3; exception_value = exception_keeper_value_3; exception_tb = exception_keeper_tb_3; exception_lineno = exception_keeper_lineno_3; goto frame_exception_exit_1; } // End of try: try_end_3:; } { Py_XDECREF( tmp_for_loop_1__iter_value ); tmp_for_loop_1__iter_value = NULL; } { CHECK_OBJECT( (PyObject *)tmp_for_loop_1__for_iterator ); Py_DECREF( tmp_for_loop_1__for_iterator ); tmp_for_loop_1__for_iterator = NULL; } { PyObject *tmp_called_name_1; PyObject *tmp_source_name_1; PyObject *tmp_source_name_2; PyObject *tmp_source_name_3; PyObject *tmp_args_element_name_1; PyObject *tmp_source_name_4; PyObject *tmp_args_element_name_2; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 300; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } tmp_source_name_3 = par_self; tmp_source_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_soup ); if ( tmp_source_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 300; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } tmp_source_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_builder ); Py_DECREF( tmp_source_name_2 ); if ( tmp_source_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 300; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain__replace_cdata_list_attribute_values ); Py_DECREF( tmp_source_name_1 ); if ( tmp_called_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 300; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_called_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 301; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } tmp_source_name_4 = par_self; tmp_args_element_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_name ); if ( tmp_args_element_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_1 ); exception_lineno = 301; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } if ( par_attributes == NULL ) { Py_DECREF( tmp_called_name_1 ); Py_DECREF( tmp_args_element_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "attributes" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 301; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } tmp_args_element_name_2 = par_attributes; frame_880ad0c3c14171fe04c296863fb1e208->m_frame.f_lineno = 300; { PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_2 }; tmp_unused = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_1, call_args ); } Py_DECREF( tmp_called_name_1 ); Py_DECREF( tmp_args_element_name_1 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 300; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } { PyObject *tmp_assign_source_9; PyObject *tmp_iter_arg_3; PyObject *tmp_list_arg_2; PyObject *tmp_called_instance_2; if ( par_attributes == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "attributes" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 302; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } tmp_called_instance_2 = par_attributes; frame_880ad0c3c14171fe04c296863fb1e208->m_frame.f_lineno = 302; tmp_list_arg_2 = CALL_METHOD_NO_ARGS( tmp_called_instance_2, const_str_plain_items ); if ( tmp_list_arg_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 302; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } tmp_iter_arg_3 = PySequence_List( tmp_list_arg_2 ); Py_DECREF( tmp_list_arg_2 ); if ( tmp_iter_arg_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 302; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } tmp_assign_source_9 = MAKE_ITERATOR( tmp_iter_arg_3 ); Py_DECREF( tmp_iter_arg_3 ); if ( tmp_assign_source_9 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 302; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } assert( tmp_for_loop_2__for_iterator == NULL ); tmp_for_loop_2__for_iterator = tmp_assign_source_9; } { // Tried code: { loop_start_2:; { PyObject *tmp_next_source_2; PyObject *tmp_assign_source_10; CHECK_OBJECT( tmp_for_loop_2__for_iterator ); tmp_next_source_2 = tmp_for_loop_2__for_iterator; tmp_assign_source_10 = ITERATOR_NEXT( tmp_next_source_2 ); if ( tmp_assign_source_10 == NULL ) { if ( CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED() ) { goto loop_end_2; } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); type_description_1 = "ooNooo"; exception_lineno = 302; goto try_except_handler_5; } } { PyObject *old = tmp_for_loop_2__iter_value; tmp_for_loop_2__iter_value = tmp_assign_source_10; Py_XDECREF( old ); } } { // Tried code: { PyObject *tmp_assign_source_11; PyObject *tmp_iter_arg_4; CHECK_OBJECT( tmp_for_loop_2__iter_value ); tmp_iter_arg_4 = tmp_for_loop_2__iter_value; tmp_assign_source_11 = MAKE_UNPACK_ITERATOR( tmp_iter_arg_4 ); if ( tmp_assign_source_11 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 302; type_description_1 = "ooNooo"; goto try_except_handler_6; } { PyObject *old = tmp_tuple_unpack_2__source_iter; tmp_tuple_unpack_2__source_iter = tmp_assign_source_11; Py_XDECREF( old ); } } { // Tried code: { PyObject *tmp_assign_source_12; PyObject *tmp_unpack_3; CHECK_OBJECT( tmp_tuple_unpack_2__source_iter ); tmp_unpack_3 = tmp_tuple_unpack_2__source_iter; tmp_assign_source_12 = UNPACK_NEXT( tmp_unpack_3, 0, 2 ); if ( tmp_assign_source_12 == NULL ) { if ( !ERROR_OCCURRED() ) { exception_type = PyExc_StopIteration; Py_INCREF( exception_type ); exception_value = NULL; exception_tb = NULL; } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); } type_description_1 = "ooNooo"; exception_lineno = 302; goto try_except_handler_7; } { PyObject *old = tmp_tuple_unpack_2__element_1; tmp_tuple_unpack_2__element_1 = tmp_assign_source_12; Py_XDECREF( old ); } } { PyObject *tmp_assign_source_13; PyObject *tmp_unpack_4; CHECK_OBJECT( tmp_tuple_unpack_2__source_iter ); tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; tmp_assign_source_13 = UNPACK_NEXT( tmp_unpack_4, 1, 2 ); if ( tmp_assign_source_13 == NULL ) { if ( !ERROR_OCCURRED() ) { exception_type = PyExc_StopIteration; Py_INCREF( exception_type ); exception_value = NULL; exception_tb = NULL; } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); } type_description_1 = "ooNooo"; exception_lineno = 302; goto try_except_handler_7; } { PyObject *old = tmp_tuple_unpack_2__element_2; tmp_tuple_unpack_2__element_2 = tmp_assign_source_13; Py_XDECREF( old ); } } { PyObject *tmp_iterator_name_2; CHECK_OBJECT( tmp_tuple_unpack_2__source_iter ); tmp_iterator_name_2 = tmp_tuple_unpack_2__source_iter; // Check if iterator has left-over elements. CHECK_OBJECT( tmp_iterator_name_2 ); assert( HAS_ITERNEXT( tmp_iterator_name_2 ) ); tmp_iterator_attempt = (*Py_TYPE( tmp_iterator_name_2 )->tp_iternext)( tmp_iterator_name_2 ); if (likely( tmp_iterator_attempt == NULL )) { PyObject *error = GET_ERROR_OCCURRED(); if ( error != NULL ) { if ( EXCEPTION_MATCH_BOOL_SINGLE( error, PyExc_StopIteration )) { CLEAR_ERROR_OCCURRED(); } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); type_description_1 = "ooNooo"; exception_lineno = 302; goto try_except_handler_7; } } } else { Py_DECREF( tmp_iterator_attempt ); // TODO: Could avoid PyErr_Format. #if PYTHON_VERSION < 300 PyErr_Format( PyExc_ValueError, "too many values to unpack" ); #else PyErr_Format( PyExc_ValueError, "too many values to unpack (expected 2)" ); #endif FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); type_description_1 = "ooNooo"; exception_lineno = 302; goto try_except_handler_7; } } goto try_end_4; // Exception handler code: try_except_handler_7:; exception_keeper_type_4 = exception_type; exception_keeper_value_4 = exception_value; exception_keeper_tb_4 = exception_tb; exception_keeper_lineno_4 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { CHECK_OBJECT( (PyObject *)tmp_tuple_unpack_2__source_iter ); Py_DECREF( tmp_tuple_unpack_2__source_iter ); tmp_tuple_unpack_2__source_iter = NULL; } { // Re-raise. exception_type = exception_keeper_type_4; exception_value = exception_keeper_value_4; exception_tb = exception_keeper_tb_4; exception_lineno = exception_keeper_lineno_4; goto try_except_handler_6; } // End of try: try_end_4:; } goto try_end_5; // Exception handler code: try_except_handler_6:; exception_keeper_type_5 = exception_type; exception_keeper_value_5 = exception_value; exception_keeper_tb_5 = exception_tb; exception_keeper_lineno_5 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( tmp_tuple_unpack_2__element_1 ); tmp_tuple_unpack_2__element_1 = NULL; } { Py_XDECREF( tmp_tuple_unpack_2__element_2 ); tmp_tuple_unpack_2__element_2 = NULL; } { // Re-raise. exception_type = exception_keeper_type_5; exception_value = exception_keeper_value_5; exception_tb = exception_keeper_tb_5; exception_lineno = exception_keeper_lineno_5; goto try_except_handler_5; } // End of try: try_end_5:; } { CHECK_OBJECT( (PyObject *)tmp_tuple_unpack_2__source_iter ); Py_DECREF( tmp_tuple_unpack_2__source_iter ); tmp_tuple_unpack_2__source_iter = NULL; } { PyObject *tmp_assign_source_14; CHECK_OBJECT( tmp_tuple_unpack_2__element_1 ); tmp_assign_source_14 = tmp_tuple_unpack_2__element_1; { PyObject *old = var_name; var_name = tmp_assign_source_14; Py_INCREF( var_name ); Py_XDECREF( old ); } } { Py_XDECREF( tmp_tuple_unpack_2__element_1 ); tmp_tuple_unpack_2__element_1 = NULL; } { PyObject *tmp_assign_source_15; CHECK_OBJECT( tmp_tuple_unpack_2__element_2 ); tmp_assign_source_15 = tmp_tuple_unpack_2__element_2; { PyObject *old = var_value; var_value = tmp_assign_source_15; Py_INCREF( var_value ); Py_XDECREF( old ); } } { Py_XDECREF( tmp_tuple_unpack_2__element_2 ); tmp_tuple_unpack_2__element_2 = NULL; } { PyObject *tmp_ass_subvalue_2; PyObject *tmp_ass_subscribed_2; PyObject *tmp_source_name_5; PyObject *tmp_ass_subscript_2; if ( var_value == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "value" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 303; type_description_1 = "ooNooo"; goto try_except_handler_5; } tmp_ass_subvalue_2 = var_value; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 303; type_description_1 = "ooNooo"; goto try_except_handler_5; } tmp_source_name_5 = par_self; tmp_ass_subscribed_2 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain_element ); if ( tmp_ass_subscribed_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 303; type_description_1 = "ooNooo"; goto try_except_handler_5; } if ( var_name == NULL ) { Py_DECREF( tmp_ass_subscribed_2 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 303; type_description_1 = "ooNooo"; goto try_except_handler_5; } tmp_ass_subscript_2 = var_name; tmp_result = SET_SUBSCRIPT( tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2 ); Py_DECREF( tmp_ass_subscribed_2 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 303; type_description_1 = "ooNooo"; goto try_except_handler_5; } } if ( CONSIDER_THREADING() == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 302; type_description_1 = "ooNooo"; goto try_except_handler_5; } goto loop_start_2; loop_end_2:; } goto try_end_6; // Exception handler code: try_except_handler_5:; exception_keeper_type_6 = exception_type; exception_keeper_value_6 = exception_value; exception_keeper_tb_6 = exception_tb; exception_keeper_lineno_6 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( tmp_for_loop_2__iter_value ); tmp_for_loop_2__iter_value = NULL; } { CHECK_OBJECT( (PyObject *)tmp_for_loop_2__for_iterator ); Py_DECREF( tmp_for_loop_2__for_iterator ); tmp_for_loop_2__for_iterator = NULL; } { // Re-raise. exception_type = exception_keeper_type_6; exception_value = exception_keeper_value_6; exception_tb = exception_keeper_tb_6; exception_lineno = exception_keeper_lineno_6; goto frame_exception_exit_1; } // End of try: try_end_6:; } { Py_XDECREF( tmp_for_loop_2__iter_value ); tmp_for_loop_2__iter_value = NULL; } { CHECK_OBJECT( (PyObject *)tmp_for_loop_2__for_iterator ); Py_DECREF( tmp_for_loop_2__for_iterator ); tmp_for_loop_2__for_iterator = NULL; } { PyObject *tmp_called_name_2; PyObject *tmp_source_name_6; PyObject *tmp_source_name_7; PyObject *tmp_source_name_8; PyObject *tmp_args_element_name_3; PyObject *tmp_source_name_9; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 310; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } tmp_source_name_8 = par_self; tmp_source_name_7 = LOOKUP_ATTRIBUTE( tmp_source_name_8, const_str_plain_soup ); if ( tmp_source_name_7 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 310; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } tmp_source_name_6 = LOOKUP_ATTRIBUTE( tmp_source_name_7, const_str_plain_builder ); Py_DECREF( tmp_source_name_7 ); if ( tmp_source_name_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 310; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain_set_up_substitutions ); Py_DECREF( tmp_source_name_6 ); if ( tmp_called_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 310; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_called_name_2 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 310; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } tmp_source_name_9 = par_self; tmp_args_element_name_3 = LOOKUP_ATTRIBUTE( tmp_source_name_9, const_str_plain_element ); if ( tmp_args_element_name_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_2 ); exception_lineno = 310; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } frame_880ad0c3c14171fe04c296863fb1e208->m_frame.f_lineno = 310; { PyObject *call_args[] = { tmp_args_element_name_3 }; tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_2, call_args ); } Py_DECREF( tmp_called_name_2 ); Py_DECREF( tmp_args_element_name_3 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 310; type_description_1 = "ooNooo"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } branch_no_1:; } #if 0 RESTORE_FRAME_EXCEPTION( frame_880ad0c3c14171fe04c296863fb1e208 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_880ad0c3c14171fe04c296863fb1e208 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_880ad0c3c14171fe04c296863fb1e208, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_880ad0c3c14171fe04c296863fb1e208->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_880ad0c3c14171fe04c296863fb1e208, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_880ad0c3c14171fe04c296863fb1e208, type_description_1, par_self, par_attributes, NULL, var_name, var_value, var_new_name ); // Release cached frame. if ( frame_880ad0c3c14171fe04c296863fb1e208 == cache_frame_880ad0c3c14171fe04c296863fb1e208 ) { Py_DECREF( frame_880ad0c3c14171fe04c296863fb1e208 ); } cache_frame_880ad0c3c14171fe04c296863fb1e208 = NULL; assertFrameObject( frame_880ad0c3c14171fe04c296863fb1e208 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; { tmp_return_value = Py_None; Py_INCREF( tmp_return_value ); goto try_return_handler_1; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_26_setAttributes ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_attributes ); par_attributes = NULL; } { Py_XDECREF( var_name ); var_name = NULL; } { Py_XDECREF( var_value ); var_value = NULL; } { Py_XDECREF( var_new_name ); var_new_name = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_7 = exception_type; exception_keeper_value_7 = exception_value; exception_keeper_tb_7 = exception_tb; exception_keeper_lineno_7 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_attributes ); par_attributes = NULL; } { Py_XDECREF( var_name ); var_name = NULL; } { Py_XDECREF( var_value ); var_value = NULL; } { Py_XDECREF( var_new_name ); var_new_name = NULL; } { // Re-raise. exception_type = exception_keeper_type_7; exception_value = exception_keeper_value_7; exception_tb = exception_keeper_tb_7; exception_lineno = exception_keeper_lineno_7; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_26_setAttributes ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_27_insertText( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *par_data = python_pars[ 1 ]; PyObject *par_insertBefore = python_pars[ 2 ]; PyObject *var_text = NULL; struct Nuitka_FrameObject *frame_393cea2d108818ac8cd67d70384f1655; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; NUITKA_MAY_BE_UNUSED PyObject *tmp_unused; static struct Nuitka_FrameObject *cache_frame_393cea2d108818ac8cd67d70384f1655 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_393cea2d108818ac8cd67d70384f1655, codeobj_393cea2d108818ac8cd67d70384f1655, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) ); frame_393cea2d108818ac8cd67d70384f1655 = cache_frame_393cea2d108818ac8cd67d70384f1655; // Push the new frame as the currently active one. pushFrameStack( frame_393cea2d108818ac8cd67d70384f1655 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_393cea2d108818ac8cd67d70384f1655 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_assign_source_1; PyObject *tmp_called_name_1; PyObject *tmp_mvar_value_1; PyObject *tmp_args_element_name_1; PyObject *tmp_called_name_2; PyObject *tmp_source_name_1; PyObject *tmp_source_name_2; PyObject *tmp_args_element_name_2; PyObject *tmp_args_element_name_3; PyObject *tmp_source_name_3; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_TextNode ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_TextNode ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "TextNode" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 314; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_called_name_1 = tmp_mvar_value_1; CHECK_OBJECT( par_self ); tmp_source_name_2 = par_self; tmp_source_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_soup ); if ( tmp_source_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 314; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_new_string ); Py_DECREF( tmp_source_name_1 ); if ( tmp_called_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 314; type_description_1 = "oooo"; goto frame_exception_exit_1; } if ( par_data == NULL ) { Py_DECREF( tmp_called_name_2 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "data" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 314; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_args_element_name_2 = par_data; frame_393cea2d108818ac8cd67d70384f1655->m_frame.f_lineno = 314; { PyObject *call_args[] = { tmp_args_element_name_2 }; tmp_args_element_name_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_2, call_args ); } Py_DECREF( tmp_called_name_2 ); if ( tmp_args_element_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 314; type_description_1 = "oooo"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_args_element_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 314; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_source_name_3 = par_self; tmp_args_element_name_3 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_soup ); if ( tmp_args_element_name_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_args_element_name_1 ); exception_lineno = 314; type_description_1 = "oooo"; goto frame_exception_exit_1; } frame_393cea2d108818ac8cd67d70384f1655->m_frame.f_lineno = 314; { PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_3 }; tmp_assign_source_1 = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_1, call_args ); } Py_DECREF( tmp_args_element_name_1 ); Py_DECREF( tmp_args_element_name_3 ); if ( tmp_assign_source_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 314; type_description_1 = "oooo"; goto frame_exception_exit_1; } assert( var_text == NULL ); var_text = tmp_assign_source_1; } { nuitka_bool tmp_condition_result_1; int tmp_truth_name_1; if ( par_insertBefore == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "insertBefore" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 315; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_truth_name_1 = CHECK_IF_TRUE( par_insertBefore ); if ( tmp_truth_name_1 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 315; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_condition_result_1 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { PyObject *tmp_called_name_3; PyObject *tmp_source_name_4; PyObject *tmp_args_element_name_4; PyObject *tmp_args_element_name_5; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 316; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_source_name_4 = par_self; tmp_called_name_3 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_insertBefore ); if ( tmp_called_name_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 316; type_description_1 = "oooo"; goto frame_exception_exit_1; } if ( var_text == NULL ) { Py_DECREF( tmp_called_name_3 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "text" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 316; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_args_element_name_4 = var_text; if ( par_insertBefore == NULL ) { Py_DECREF( tmp_called_name_3 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "insertBefore" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 316; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_args_element_name_5 = par_insertBefore; frame_393cea2d108818ac8cd67d70384f1655->m_frame.f_lineno = 316; { PyObject *call_args[] = { tmp_args_element_name_4, tmp_args_element_name_5 }; tmp_unused = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_3, call_args ); } Py_DECREF( tmp_called_name_3 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 316; type_description_1 = "oooo"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } goto branch_end_1; branch_no_1:; { PyObject *tmp_called_name_4; PyObject *tmp_source_name_5; PyObject *tmp_args_element_name_6; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 318; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_source_name_5 = par_self; tmp_called_name_4 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain_appendChild ); if ( tmp_called_name_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 318; type_description_1 = "oooo"; goto frame_exception_exit_1; } if ( var_text == NULL ) { Py_DECREF( tmp_called_name_4 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "text" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 318; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_args_element_name_6 = var_text; frame_393cea2d108818ac8cd67d70384f1655->m_frame.f_lineno = 318; { PyObject *call_args[] = { tmp_args_element_name_6 }; tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_4, call_args ); } Py_DECREF( tmp_called_name_4 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 318; type_description_1 = "oooo"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } branch_end_1:; } #if 0 RESTORE_FRAME_EXCEPTION( frame_393cea2d108818ac8cd67d70384f1655 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_393cea2d108818ac8cd67d70384f1655 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_393cea2d108818ac8cd67d70384f1655, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_393cea2d108818ac8cd67d70384f1655->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_393cea2d108818ac8cd67d70384f1655, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_393cea2d108818ac8cd67d70384f1655, type_description_1, par_self, par_data, par_insertBefore, var_text ); // Release cached frame. if ( frame_393cea2d108818ac8cd67d70384f1655 == cache_frame_393cea2d108818ac8cd67d70384f1655 ) { Py_DECREF( frame_393cea2d108818ac8cd67d70384f1655 ); } cache_frame_393cea2d108818ac8cd67d70384f1655 = NULL; assertFrameObject( frame_393cea2d108818ac8cd67d70384f1655 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; { tmp_return_value = Py_None; Py_INCREF( tmp_return_value ); goto try_return_handler_1; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_27_insertText ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_data ); par_data = NULL; } { Py_XDECREF( par_insertBefore ); par_insertBefore = NULL; } { Py_XDECREF( var_text ); var_text = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_data ); par_data = NULL; } { Py_XDECREF( par_insertBefore ); par_insertBefore = NULL; } { Py_XDECREF( var_text ); var_text = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_27_insertText ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_28_insertBefore( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *par_node = python_pars[ 1 ]; PyObject *par_refNode = python_pars[ 2 ]; PyObject *var_index = NULL; PyObject *var_old_node = NULL; PyObject *var_new_str = NULL; struct Nuitka_FrameObject *frame_c76f7e9a85ecdffddd4d611afc65b023; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; int tmp_res; NUITKA_MAY_BE_UNUSED PyObject *tmp_unused; bool tmp_result; static struct Nuitka_FrameObject *cache_frame_c76f7e9a85ecdffddd4d611afc65b023 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_c76f7e9a85ecdffddd4d611afc65b023, codeobj_c76f7e9a85ecdffddd4d611afc65b023, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) ); frame_c76f7e9a85ecdffddd4d611afc65b023 = cache_frame_c76f7e9a85ecdffddd4d611afc65b023; // Push the new frame as the currently active one. pushFrameStack( frame_c76f7e9a85ecdffddd4d611afc65b023 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_c76f7e9a85ecdffddd4d611afc65b023 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_assign_source_1; PyObject *tmp_called_name_1; PyObject *tmp_source_name_1; PyObject *tmp_source_name_2; PyObject *tmp_args_element_name_1; PyObject *tmp_source_name_3; CHECK_OBJECT( par_self ); tmp_source_name_2 = par_self; tmp_source_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_element ); if ( tmp_source_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 321; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_index ); Py_DECREF( tmp_source_name_1 ); if ( tmp_called_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 321; type_description_1 = "oooooo"; goto frame_exception_exit_1; } if ( par_refNode == NULL ) { Py_DECREF( tmp_called_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "refNode" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 321; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_source_name_3 = par_refNode; tmp_args_element_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_element ); if ( tmp_args_element_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_1 ); exception_lineno = 321; type_description_1 = "oooooo"; goto frame_exception_exit_1; } frame_c76f7e9a85ecdffddd4d611afc65b023->m_frame.f_lineno = 321; { PyObject *call_args[] = { tmp_args_element_name_1 }; tmp_assign_source_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args ); } Py_DECREF( tmp_called_name_1 ); Py_DECREF( tmp_args_element_name_1 ); if ( tmp_assign_source_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 321; type_description_1 = "oooooo"; goto frame_exception_exit_1; } assert( var_index == NULL ); var_index = tmp_assign_source_1; } { nuitka_bool tmp_condition_result_1; int tmp_and_left_truth_1; nuitka_bool tmp_and_left_value_1; nuitka_bool tmp_and_right_value_1; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; PyObject *tmp_source_name_4; PyObject *tmp_source_name_5; PyObject *tmp_mvar_value_1; int tmp_and_left_truth_2; nuitka_bool tmp_and_left_value_2; nuitka_bool tmp_and_right_value_2; PyObject *tmp_source_name_6; PyObject *tmp_source_name_7; PyObject *tmp_attribute_value_1; int tmp_truth_name_1; PyObject *tmp_compexpr_left_2; PyObject *tmp_compexpr_right_2; PyObject *tmp_source_name_8; PyObject *tmp_subscribed_name_1; PyObject *tmp_source_name_9; PyObject *tmp_source_name_10; PyObject *tmp_subscript_name_1; PyObject *tmp_left_name_1; PyObject *tmp_right_name_1; PyObject *tmp_mvar_value_2; if ( par_node == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "node" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 322; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_source_name_5 = par_node; tmp_source_name_4 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain_element ); if ( tmp_source_name_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 322; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE_CLASS_SLOT( tmp_source_name_4 ); Py_DECREF( tmp_source_name_4 ); if ( tmp_compexpr_left_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 322; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_NavigableString ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_NavigableString ); } if ( tmp_mvar_value_1 == NULL ) { Py_DECREF( tmp_compexpr_left_1 ); exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "NavigableString" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 322; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_compexpr_right_1 = tmp_mvar_value_1; tmp_res = RICH_COMPARE_BOOL_EQ( tmp_compexpr_left_1, tmp_compexpr_right_1 ); Py_DECREF( tmp_compexpr_left_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 322; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_and_left_value_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; if ( tmp_and_left_truth_1 == 1 ) { goto and_right_1; } else { goto and_left_1; } and_right_1:; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 322; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_source_name_7 = par_self; tmp_source_name_6 = LOOKUP_ATTRIBUTE( tmp_source_name_7, const_str_plain_element ); if ( tmp_source_name_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 322; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_attribute_value_1 = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain_contents ); Py_DECREF( tmp_source_name_6 ); if ( tmp_attribute_value_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 322; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_truth_name_1 = CHECK_IF_TRUE( tmp_attribute_value_1 ); if ( tmp_truth_name_1 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_attribute_value_1 ); exception_lineno = 322; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_and_left_value_2 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_attribute_value_1 ); tmp_and_left_truth_2 = tmp_and_left_value_2 == NUITKA_BOOL_TRUE ? 1 : 0; if ( tmp_and_left_truth_2 == 1 ) { goto and_right_2; } else { goto and_left_2; } and_right_2:; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 323; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_source_name_10 = par_self; tmp_source_name_9 = LOOKUP_ATTRIBUTE( tmp_source_name_10, const_str_plain_element ); if ( tmp_source_name_9 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 323; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_subscribed_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_9, const_str_plain_contents ); Py_DECREF( tmp_source_name_9 ); if ( tmp_subscribed_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 323; type_description_1 = "oooooo"; goto frame_exception_exit_1; } if ( var_index == NULL ) { Py_DECREF( tmp_subscribed_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "index" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 323; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_left_name_1 = var_index; tmp_right_name_1 = const_int_pos_1; tmp_subscript_name_1 = BINARY_OPERATION_SUB( tmp_left_name_1, tmp_right_name_1 ); if ( tmp_subscript_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_subscribed_name_1 ); exception_lineno = 323; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_source_name_8 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_1, tmp_subscript_name_1 ); Py_DECREF( tmp_subscribed_name_1 ); Py_DECREF( tmp_subscript_name_1 ); if ( tmp_source_name_8 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 323; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_compexpr_left_2 = LOOKUP_ATTRIBUTE_CLASS_SLOT( tmp_source_name_8 ); Py_DECREF( tmp_source_name_8 ); if ( tmp_compexpr_left_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 323; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_NavigableString ); if (unlikely( tmp_mvar_value_2 == NULL )) { tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_NavigableString ); } if ( tmp_mvar_value_2 == NULL ) { Py_DECREF( tmp_compexpr_left_2 ); exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "NavigableString" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 323; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_compexpr_right_2 = tmp_mvar_value_2; tmp_res = RICH_COMPARE_BOOL_EQ( tmp_compexpr_left_2, tmp_compexpr_right_2 ); Py_DECREF( tmp_compexpr_left_2 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 323; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_and_right_value_2 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; tmp_and_right_value_1 = tmp_and_right_value_2; goto and_end_2; and_left_2:; tmp_and_right_value_1 = tmp_and_left_value_2; and_end_2:; tmp_condition_result_1 = tmp_and_right_value_1; goto and_end_1; and_left_1:; tmp_condition_result_1 = tmp_and_left_value_1; and_end_1:; if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { PyObject *tmp_assign_source_2; PyObject *tmp_subscribed_name_2; PyObject *tmp_source_name_11; PyObject *tmp_source_name_12; PyObject *tmp_subscript_name_2; PyObject *tmp_left_name_2; PyObject *tmp_right_name_2; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 325; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_source_name_12 = par_self; tmp_source_name_11 = LOOKUP_ATTRIBUTE( tmp_source_name_12, const_str_plain_element ); if ( tmp_source_name_11 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 325; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_subscribed_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_11, const_str_plain_contents ); Py_DECREF( tmp_source_name_11 ); if ( tmp_subscribed_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 325; type_description_1 = "oooooo"; goto frame_exception_exit_1; } if ( var_index == NULL ) { Py_DECREF( tmp_subscribed_name_2 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "index" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 325; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_left_name_2 = var_index; tmp_right_name_2 = const_int_pos_1; tmp_subscript_name_2 = BINARY_OPERATION_SUB( tmp_left_name_2, tmp_right_name_2 ); if ( tmp_subscript_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_subscribed_name_2 ); exception_lineno = 325; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_assign_source_2 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_2, tmp_subscript_name_2 ); Py_DECREF( tmp_subscribed_name_2 ); Py_DECREF( tmp_subscript_name_2 ); if ( tmp_assign_source_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 325; type_description_1 = "oooooo"; goto frame_exception_exit_1; } assert( var_old_node == NULL ); var_old_node = tmp_assign_source_2; } { PyObject *tmp_assign_source_3; PyObject *tmp_called_name_2; PyObject *tmp_source_name_13; PyObject *tmp_source_name_14; PyObject *tmp_args_element_name_2; PyObject *tmp_left_name_3; PyObject *tmp_right_name_3; PyObject *tmp_source_name_15; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 326; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_source_name_14 = par_self; tmp_source_name_13 = LOOKUP_ATTRIBUTE( tmp_source_name_14, const_str_plain_soup ); if ( tmp_source_name_13 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 326; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_13, const_str_plain_new_string ); Py_DECREF( tmp_source_name_13 ); if ( tmp_called_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 326; type_description_1 = "oooooo"; goto frame_exception_exit_1; } if ( var_old_node == NULL ) { Py_DECREF( tmp_called_name_2 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "old_node" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 326; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_left_name_3 = var_old_node; if ( par_node == NULL ) { Py_DECREF( tmp_called_name_2 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "node" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 326; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_source_name_15 = par_node; tmp_right_name_3 = LOOKUP_ATTRIBUTE( tmp_source_name_15, const_str_plain_element ); if ( tmp_right_name_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_2 ); exception_lineno = 326; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_args_element_name_2 = BINARY_OPERATION_ADD( tmp_left_name_3, tmp_right_name_3 ); Py_DECREF( tmp_right_name_3 ); if ( tmp_args_element_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_2 ); exception_lineno = 326; type_description_1 = "oooooo"; goto frame_exception_exit_1; } frame_c76f7e9a85ecdffddd4d611afc65b023->m_frame.f_lineno = 326; { PyObject *call_args[] = { tmp_args_element_name_2 }; tmp_assign_source_3 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_2, call_args ); } Py_DECREF( tmp_called_name_2 ); Py_DECREF( tmp_args_element_name_2 ); if ( tmp_assign_source_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 326; type_description_1 = "oooooo"; goto frame_exception_exit_1; } assert( var_new_str == NULL ); var_new_str = tmp_assign_source_3; } { PyObject *tmp_called_name_3; PyObject *tmp_source_name_16; PyObject *tmp_args_element_name_3; if ( var_old_node == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "old_node" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 327; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_source_name_16 = var_old_node; tmp_called_name_3 = LOOKUP_ATTRIBUTE( tmp_source_name_16, const_str_plain_replace_with ); if ( tmp_called_name_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 327; type_description_1 = "oooooo"; goto frame_exception_exit_1; } if ( var_new_str == NULL ) { Py_DECREF( tmp_called_name_3 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "new_str" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 327; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_args_element_name_3 = var_new_str; frame_c76f7e9a85ecdffddd4d611afc65b023->m_frame.f_lineno = 327; { PyObject *call_args[] = { tmp_args_element_name_3 }; tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_3, call_args ); } Py_DECREF( tmp_called_name_3 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 327; type_description_1 = "oooooo"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } goto branch_end_1; branch_no_1:; { PyObject *tmp_called_name_4; PyObject *tmp_source_name_17; PyObject *tmp_source_name_18; PyObject *tmp_args_element_name_4; PyObject *tmp_args_element_name_5; PyObject *tmp_source_name_19; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 329; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_source_name_18 = par_self; tmp_source_name_17 = LOOKUP_ATTRIBUTE( tmp_source_name_18, const_str_plain_element ); if ( tmp_source_name_17 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 329; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_called_name_4 = LOOKUP_ATTRIBUTE( tmp_source_name_17, const_str_plain_insert ); Py_DECREF( tmp_source_name_17 ); if ( tmp_called_name_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 329; type_description_1 = "oooooo"; goto frame_exception_exit_1; } if ( var_index == NULL ) { Py_DECREF( tmp_called_name_4 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "index" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 329; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_args_element_name_4 = var_index; if ( par_node == NULL ) { Py_DECREF( tmp_called_name_4 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "node" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 329; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_source_name_19 = par_node; tmp_args_element_name_5 = LOOKUP_ATTRIBUTE( tmp_source_name_19, const_str_plain_element ); if ( tmp_args_element_name_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_4 ); exception_lineno = 329; type_description_1 = "oooooo"; goto frame_exception_exit_1; } frame_c76f7e9a85ecdffddd4d611afc65b023->m_frame.f_lineno = 329; { PyObject *call_args[] = { tmp_args_element_name_4, tmp_args_element_name_5 }; tmp_unused = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_4, call_args ); } Py_DECREF( tmp_called_name_4 ); Py_DECREF( tmp_args_element_name_5 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 329; type_description_1 = "oooooo"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } { PyObject *tmp_assattr_name_1; PyObject *tmp_assattr_target_1; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 330; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_assattr_name_1 = par_self; if ( par_node == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "node" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 330; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_assattr_target_1 = par_node; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain_parent, tmp_assattr_name_1 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 330; type_description_1 = "oooooo"; goto frame_exception_exit_1; } } branch_end_1:; } #if 0 RESTORE_FRAME_EXCEPTION( frame_c76f7e9a85ecdffddd4d611afc65b023 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_c76f7e9a85ecdffddd4d611afc65b023 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_c76f7e9a85ecdffddd4d611afc65b023, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_c76f7e9a85ecdffddd4d611afc65b023->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_c76f7e9a85ecdffddd4d611afc65b023, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_c76f7e9a85ecdffddd4d611afc65b023, type_description_1, par_self, par_node, par_refNode, var_index, var_old_node, var_new_str ); // Release cached frame. if ( frame_c76f7e9a85ecdffddd4d611afc65b023 == cache_frame_c76f7e9a85ecdffddd4d611afc65b023 ) { Py_DECREF( frame_c76f7e9a85ecdffddd4d611afc65b023 ); } cache_frame_c76f7e9a85ecdffddd4d611afc65b023 = NULL; assertFrameObject( frame_c76f7e9a85ecdffddd4d611afc65b023 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; { tmp_return_value = Py_None; Py_INCREF( tmp_return_value ); goto try_return_handler_1; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_28_insertBefore ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_node ); par_node = NULL; } { Py_XDECREF( par_refNode ); par_refNode = NULL; } { Py_XDECREF( var_index ); var_index = NULL; } { Py_XDECREF( var_old_node ); var_old_node = NULL; } { Py_XDECREF( var_new_str ); var_new_str = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_node ); par_node = NULL; } { Py_XDECREF( par_refNode ); par_refNode = NULL; } { Py_XDECREF( var_index ); var_index = NULL; } { Py_XDECREF( var_old_node ); var_old_node = NULL; } { Py_XDECREF( var_new_str ); var_new_str = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_28_insertBefore ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_29_removeChild( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *par_node = python_pars[ 1 ]; struct Nuitka_FrameObject *frame_ca23e12c9fa58de0a656fa5c32d0614f; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; NUITKA_MAY_BE_UNUSED PyObject *tmp_unused; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; static struct Nuitka_FrameObject *cache_frame_ca23e12c9fa58de0a656fa5c32d0614f = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_ca23e12c9fa58de0a656fa5c32d0614f, codeobj_ca23e12c9fa58de0a656fa5c32d0614f, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *) ); frame_ca23e12c9fa58de0a656fa5c32d0614f = cache_frame_ca23e12c9fa58de0a656fa5c32d0614f; // Push the new frame as the currently active one. pushFrameStack( frame_ca23e12c9fa58de0a656fa5c32d0614f ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_ca23e12c9fa58de0a656fa5c32d0614f ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_called_instance_1; PyObject *tmp_source_name_1; CHECK_OBJECT( par_node ); tmp_source_name_1 = par_node; tmp_called_instance_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_element ); if ( tmp_called_instance_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 333; type_description_1 = "oo"; goto frame_exception_exit_1; } frame_ca23e12c9fa58de0a656fa5c32d0614f->m_frame.f_lineno = 333; tmp_unused = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain_extract ); Py_DECREF( tmp_called_instance_1 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 333; type_description_1 = "oo"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } #if 0 RESTORE_FRAME_EXCEPTION( frame_ca23e12c9fa58de0a656fa5c32d0614f ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_ca23e12c9fa58de0a656fa5c32d0614f ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_ca23e12c9fa58de0a656fa5c32d0614f, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_ca23e12c9fa58de0a656fa5c32d0614f->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_ca23e12c9fa58de0a656fa5c32d0614f, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_ca23e12c9fa58de0a656fa5c32d0614f, type_description_1, par_self, par_node ); // Release cached frame. if ( frame_ca23e12c9fa58de0a656fa5c32d0614f == cache_frame_ca23e12c9fa58de0a656fa5c32d0614f ) { Py_DECREF( frame_ca23e12c9fa58de0a656fa5c32d0614f ); } cache_frame_ca23e12c9fa58de0a656fa5c32d0614f = NULL; assertFrameObject( frame_ca23e12c9fa58de0a656fa5c32d0614f ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; { tmp_return_value = Py_None; Py_INCREF( tmp_return_value ); goto try_return_handler_1; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_29_removeChild ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_node ); par_node = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_node ); par_node = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_29_removeChild ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_30_reparentChildren( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *par_new_parent = python_pars[ 1 ]; PyObject *var_element = NULL; PyObject *var_new_parent_element = NULL; PyObject *var_final_next_element = NULL; PyObject *var_new_parents_last_descendant = NULL; PyObject *var_new_parents_last_child = NULL; PyObject *var_new_parents_last_descendant_next_element = NULL; PyObject *var_to_append = NULL; PyObject *var_first_child = NULL; PyObject *var_last_childs_last_descendant = NULL; PyObject *var_child = NULL; PyObject *tmp_for_loop_1__for_iterator = NULL; PyObject *tmp_for_loop_1__iter_value = NULL; struct Nuitka_FrameObject *frame_898fa9993b80ae71daaaca7bb8b3a584; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; int tmp_res; bool tmp_result; NUITKA_MAY_BE_UNUSED PyObject *tmp_unused; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; static struct Nuitka_FrameObject *cache_frame_898fa9993b80ae71daaaca7bb8b3a584 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_keeper_type_2; PyObject *exception_keeper_value_2; PyTracebackObject *exception_keeper_tb_2; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_898fa9993b80ae71daaaca7bb8b3a584, codeobj_898fa9993b80ae71daaaca7bb8b3a584, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) ); frame_898fa9993b80ae71daaaca7bb8b3a584 = cache_frame_898fa9993b80ae71daaaca7bb8b3a584; // Push the new frame as the currently active one. pushFrameStack( frame_898fa9993b80ae71daaaca7bb8b3a584 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_898fa9993b80ae71daaaca7bb8b3a584 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_assign_source_1; PyObject *tmp_source_name_1; CHECK_OBJECT( par_self ); tmp_source_name_1 = par_self; tmp_assign_source_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_element ); if ( tmp_assign_source_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 341; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } assert( var_element == NULL ); var_element = tmp_assign_source_1; } { PyObject *tmp_assign_source_2; PyObject *tmp_source_name_2; if ( par_new_parent == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "new_parent" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 342; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_source_name_2 = par_new_parent; tmp_assign_source_2 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_element ); if ( tmp_assign_source_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 342; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } assert( var_new_parent_element == NULL ); var_new_parent_element = tmp_assign_source_2; } { PyObject *tmp_assign_source_3; PyObject *tmp_source_name_3; if ( var_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 345; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_source_name_3 = var_element; tmp_assign_source_3 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_next_sibling ); if ( tmp_assign_source_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 345; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } assert( var_final_next_element == NULL ); var_final_next_element = tmp_assign_source_3; } { PyObject *tmp_assign_source_4; PyObject *tmp_called_instance_1; if ( var_new_parent_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "new_parent_element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 347; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_called_instance_1 = var_new_parent_element; frame_898fa9993b80ae71daaaca7bb8b3a584->m_frame.f_lineno = 347; tmp_assign_source_4 = CALL_METHOD_WITH_ARGS2( tmp_called_instance_1, const_str_plain__last_descendant, &PyTuple_GET_ITEM( const_tuple_false_false_tuple, 0 ) ); if ( tmp_assign_source_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 347; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } assert( var_new_parents_last_descendant == NULL ); var_new_parents_last_descendant = tmp_assign_source_4; } { nuitka_bool tmp_condition_result_1; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; PyObject *tmp_len_arg_1; PyObject *tmp_source_name_4; if ( var_new_parent_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "new_parent_element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 348; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_source_name_4 = var_new_parent_element; tmp_len_arg_1 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_contents ); if ( tmp_len_arg_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 348; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_compexpr_left_1 = BUILTIN_LEN( tmp_len_arg_1 ); Py_DECREF( tmp_len_arg_1 ); if ( tmp_compexpr_left_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 348; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_compexpr_right_1 = const_int_0; tmp_res = RICH_COMPARE_BOOL_GT( tmp_compexpr_left_1, tmp_compexpr_right_1 ); Py_DECREF( tmp_compexpr_left_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 348; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_condition_result_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { PyObject *tmp_assign_source_5; PyObject *tmp_subscribed_name_1; PyObject *tmp_source_name_5; PyObject *tmp_subscript_name_1; if ( var_new_parent_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "new_parent_element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 351; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_source_name_5 = var_new_parent_element; tmp_subscribed_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain_contents ); if ( tmp_subscribed_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 351; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_subscript_name_1 = const_int_neg_1; tmp_assign_source_5 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_1, tmp_subscript_name_1, -1 ); Py_DECREF( tmp_subscribed_name_1 ); if ( tmp_assign_source_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 351; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } assert( var_new_parents_last_child == NULL ); var_new_parents_last_child = tmp_assign_source_5; } { PyObject *tmp_assign_source_6; PyObject *tmp_source_name_6; if ( var_new_parents_last_descendant == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "new_parents_last_descendant" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 352; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_source_name_6 = var_new_parents_last_descendant; tmp_assign_source_6 = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain_next_element ); if ( tmp_assign_source_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 352; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } assert( var_new_parents_last_descendant_next_element == NULL ); var_new_parents_last_descendant_next_element = tmp_assign_source_6; } goto branch_end_1; branch_no_1:; { PyObject *tmp_assign_source_7; tmp_assign_source_7 = Py_None; assert( var_new_parents_last_child == NULL ); Py_INCREF( tmp_assign_source_7 ); var_new_parents_last_child = tmp_assign_source_7; } { PyObject *tmp_assign_source_8; PyObject *tmp_source_name_7; if ( var_new_parent_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "new_parent_element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 356; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_source_name_7 = var_new_parent_element; tmp_assign_source_8 = LOOKUP_ATTRIBUTE( tmp_source_name_7, const_str_plain_next_element ); if ( tmp_assign_source_8 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 356; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } assert( var_new_parents_last_descendant_next_element == NULL ); var_new_parents_last_descendant_next_element = tmp_assign_source_8; } branch_end_1:; } { PyObject *tmp_assign_source_9; PyObject *tmp_source_name_8; if ( var_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 358; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_source_name_8 = var_element; tmp_assign_source_9 = LOOKUP_ATTRIBUTE( tmp_source_name_8, const_str_plain_contents ); if ( tmp_assign_source_9 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 358; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } assert( var_to_append == NULL ); var_to_append = tmp_assign_source_9; } { nuitka_bool tmp_condition_result_2; PyObject *tmp_compexpr_left_2; PyObject *tmp_compexpr_right_2; PyObject *tmp_len_arg_2; CHECK_OBJECT( var_to_append ); tmp_len_arg_2 = var_to_append; tmp_compexpr_left_2 = BUILTIN_LEN( tmp_len_arg_2 ); if ( tmp_compexpr_left_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 359; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_compexpr_right_2 = const_int_0; tmp_res = RICH_COMPARE_BOOL_GT( tmp_compexpr_left_2, tmp_compexpr_right_2 ); Py_DECREF( tmp_compexpr_left_2 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 359; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_condition_result_2 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE ) { goto branch_yes_2; } else { goto branch_no_2; } branch_yes_2:; { PyObject *tmp_assign_source_10; PyObject *tmp_subscribed_name_2; PyObject *tmp_subscript_name_2; if ( var_to_append == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "to_append" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 362; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_subscribed_name_2 = var_to_append; tmp_subscript_name_2 = const_int_0; tmp_assign_source_10 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_2, tmp_subscript_name_2, 0 ); if ( tmp_assign_source_10 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 362; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } assert( var_first_child == NULL ); var_first_child = tmp_assign_source_10; } { nuitka_bool tmp_condition_result_3; int tmp_truth_name_1; if ( var_new_parents_last_descendant == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "new_parents_last_descendant" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 363; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_truth_name_1 = CHECK_IF_TRUE( var_new_parents_last_descendant ); if ( tmp_truth_name_1 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 363; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_condition_result_3 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_3 == NUITKA_BOOL_TRUE ) { goto branch_yes_3; } else { goto branch_no_3; } branch_yes_3:; { PyObject *tmp_assattr_name_1; PyObject *tmp_assattr_target_1; if ( var_new_parents_last_descendant == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "new_parents_last_descendant" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 364; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_assattr_name_1 = var_new_parents_last_descendant; CHECK_OBJECT( var_first_child ); tmp_assattr_target_1 = var_first_child; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain_previous_element, tmp_assattr_name_1 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 364; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } } goto branch_end_3; branch_no_3:; { PyObject *tmp_assattr_name_2; PyObject *tmp_assattr_target_2; if ( var_new_parent_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "new_parent_element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 366; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_assattr_name_2 = var_new_parent_element; CHECK_OBJECT( var_first_child ); tmp_assattr_target_2 = var_first_child; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_2, const_str_plain_previous_element, tmp_assattr_name_2 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 366; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } } branch_end_3:; } { PyObject *tmp_assattr_name_3; PyObject *tmp_assattr_target_3; if ( var_new_parents_last_child == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "new_parents_last_child" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 367; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_assattr_name_3 = var_new_parents_last_child; if ( var_first_child == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "first_child" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 367; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_assattr_target_3 = var_first_child; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_3, const_str_plain_previous_sibling, tmp_assattr_name_3 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 367; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } } { nuitka_bool tmp_condition_result_4; int tmp_truth_name_2; if ( var_new_parents_last_descendant == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "new_parents_last_descendant" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 368; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_truth_name_2 = CHECK_IF_TRUE( var_new_parents_last_descendant ); if ( tmp_truth_name_2 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 368; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_condition_result_4 = tmp_truth_name_2 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_4 == NUITKA_BOOL_TRUE ) { goto branch_yes_4; } else { goto branch_no_4; } branch_yes_4:; { PyObject *tmp_assattr_name_4; PyObject *tmp_assattr_target_4; if ( var_first_child == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "first_child" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 369; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_assattr_name_4 = var_first_child; if ( var_new_parents_last_descendant == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "new_parents_last_descendant" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 369; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_assattr_target_4 = var_new_parents_last_descendant; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_4, const_str_plain_next_element, tmp_assattr_name_4 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 369; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } } goto branch_end_4; branch_no_4:; { PyObject *tmp_assattr_name_5; PyObject *tmp_assattr_target_5; if ( var_first_child == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "first_child" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 371; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_assattr_name_5 = var_first_child; if ( var_new_parent_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "new_parent_element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 371; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_assattr_target_5 = var_new_parent_element; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_5, const_str_plain_next_element, tmp_assattr_name_5 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 371; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } } branch_end_4:; } { nuitka_bool tmp_condition_result_5; int tmp_truth_name_3; if ( var_new_parents_last_child == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "new_parents_last_child" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 372; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_truth_name_3 = CHECK_IF_TRUE( var_new_parents_last_child ); if ( tmp_truth_name_3 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 372; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_condition_result_5 = tmp_truth_name_3 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_5 == NUITKA_BOOL_TRUE ) { goto branch_yes_5; } else { goto branch_no_5; } branch_yes_5:; { PyObject *tmp_assattr_name_6; PyObject *tmp_assattr_target_6; if ( var_first_child == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "first_child" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 373; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_assattr_name_6 = var_first_child; if ( var_new_parents_last_child == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "new_parents_last_child" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 373; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_assattr_target_6 = var_new_parents_last_child; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_6, const_str_plain_next_sibling, tmp_assattr_name_6 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 373; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } } branch_no_5:; } { PyObject *tmp_assign_source_11; PyObject *tmp_called_instance_2; PyObject *tmp_subscribed_name_3; PyObject *tmp_subscript_name_3; if ( var_to_append == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "to_append" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 379; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_subscribed_name_3 = var_to_append; tmp_subscript_name_3 = const_int_neg_1; tmp_called_instance_2 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_3, tmp_subscript_name_3, -1 ); if ( tmp_called_instance_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 379; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } frame_898fa9993b80ae71daaaca7bb8b3a584->m_frame.f_lineno = 379; tmp_assign_source_11 = CALL_METHOD_WITH_ARGS2( tmp_called_instance_2, const_str_plain__last_descendant, &PyTuple_GET_ITEM( const_tuple_false_true_tuple, 0 ) ); Py_DECREF( tmp_called_instance_2 ); if ( tmp_assign_source_11 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 379; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } assert( var_last_childs_last_descendant == NULL ); var_last_childs_last_descendant = tmp_assign_source_11; } { PyObject *tmp_assattr_name_7; PyObject *tmp_assattr_target_7; if ( var_new_parents_last_descendant_next_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "new_parents_last_descendant_next_element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 381; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_assattr_name_7 = var_new_parents_last_descendant_next_element; CHECK_OBJECT( var_last_childs_last_descendant ); tmp_assattr_target_7 = var_last_childs_last_descendant; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_7, const_str_plain_next_element, tmp_assattr_name_7 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 381; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } } { nuitka_bool tmp_condition_result_6; int tmp_truth_name_4; if ( var_new_parents_last_descendant_next_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "new_parents_last_descendant_next_element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 382; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_truth_name_4 = CHECK_IF_TRUE( var_new_parents_last_descendant_next_element ); if ( tmp_truth_name_4 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 382; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_condition_result_6 = tmp_truth_name_4 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_6 == NUITKA_BOOL_TRUE ) { goto branch_yes_6; } else { goto branch_no_6; } branch_yes_6:; { PyObject *tmp_assattr_name_8; PyObject *tmp_assattr_target_8; if ( var_last_childs_last_descendant == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "last_childs_last_descendant" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 386; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_assattr_name_8 = var_last_childs_last_descendant; if ( var_new_parents_last_descendant_next_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "new_parents_last_descendant_next_element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 386; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_assattr_target_8 = var_new_parents_last_descendant_next_element; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_8, const_str_plain_previous_element, tmp_assattr_name_8 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 386; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } } branch_no_6:; } { PyObject *tmp_assattr_name_9; PyObject *tmp_assattr_target_9; tmp_assattr_name_9 = Py_None; if ( var_last_childs_last_descendant == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "last_childs_last_descendant" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 387; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_assattr_target_9 = var_last_childs_last_descendant; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_9, const_str_plain_next_sibling, tmp_assattr_name_9 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 387; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } } branch_no_2:; } { PyObject *tmp_assign_source_12; PyObject *tmp_iter_arg_1; if ( var_to_append == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "to_append" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 389; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_iter_arg_1 = var_to_append; tmp_assign_source_12 = MAKE_ITERATOR( tmp_iter_arg_1 ); if ( tmp_assign_source_12 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 389; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } assert( tmp_for_loop_1__for_iterator == NULL ); tmp_for_loop_1__for_iterator = tmp_assign_source_12; } { // Tried code: { loop_start_1:; { PyObject *tmp_next_source_1; PyObject *tmp_assign_source_13; CHECK_OBJECT( tmp_for_loop_1__for_iterator ); tmp_next_source_1 = tmp_for_loop_1__for_iterator; tmp_assign_source_13 = ITERATOR_NEXT( tmp_next_source_1 ); if ( tmp_assign_source_13 == NULL ) { if ( CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED() ) { goto loop_end_1; } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); type_description_1 = "oooooooooooo"; exception_lineno = 389; goto try_except_handler_2; } } { PyObject *old = tmp_for_loop_1__iter_value; tmp_for_loop_1__iter_value = tmp_assign_source_13; Py_XDECREF( old ); } } { PyObject *tmp_assign_source_14; CHECK_OBJECT( tmp_for_loop_1__iter_value ); tmp_assign_source_14 = tmp_for_loop_1__iter_value; { PyObject *old = var_child; var_child = tmp_assign_source_14; Py_INCREF( var_child ); Py_XDECREF( old ); } } { PyObject *tmp_assattr_name_10; PyObject *tmp_assattr_target_10; if ( var_new_parent_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "new_parent_element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 390; type_description_1 = "oooooooooooo"; goto try_except_handler_2; } tmp_assattr_name_10 = var_new_parent_element; CHECK_OBJECT( var_child ); tmp_assattr_target_10 = var_child; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_10, const_str_plain_parent, tmp_assattr_name_10 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 390; type_description_1 = "oooooooooooo"; goto try_except_handler_2; } } { PyObject *tmp_called_name_1; PyObject *tmp_source_name_9; PyObject *tmp_source_name_10; PyObject *tmp_args_element_name_1; if ( var_new_parent_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "new_parent_element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 391; type_description_1 = "oooooooooooo"; goto try_except_handler_2; } tmp_source_name_10 = var_new_parent_element; tmp_source_name_9 = LOOKUP_ATTRIBUTE( tmp_source_name_10, const_str_plain_contents ); if ( tmp_source_name_9 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 391; type_description_1 = "oooooooooooo"; goto try_except_handler_2; } tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_9, const_str_plain_append ); Py_DECREF( tmp_source_name_9 ); if ( tmp_called_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 391; type_description_1 = "oooooooooooo"; goto try_except_handler_2; } if ( var_child == NULL ) { Py_DECREF( tmp_called_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "child" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 391; type_description_1 = "oooooooooooo"; goto try_except_handler_2; } tmp_args_element_name_1 = var_child; frame_898fa9993b80ae71daaaca7bb8b3a584->m_frame.f_lineno = 391; { PyObject *call_args[] = { tmp_args_element_name_1 }; tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args ); } Py_DECREF( tmp_called_name_1 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 391; type_description_1 = "oooooooooooo"; goto try_except_handler_2; } Py_DECREF( tmp_unused ); } if ( CONSIDER_THREADING() == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 389; type_description_1 = "oooooooooooo"; goto try_except_handler_2; } goto loop_start_1; loop_end_1:; } goto try_end_1; // Exception handler code: try_except_handler_2:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( tmp_for_loop_1__iter_value ); tmp_for_loop_1__iter_value = NULL; } { CHECK_OBJECT( (PyObject *)tmp_for_loop_1__for_iterator ); Py_DECREF( tmp_for_loop_1__for_iterator ); tmp_for_loop_1__for_iterator = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto frame_exception_exit_1; } // End of try: try_end_1:; } { Py_XDECREF( tmp_for_loop_1__iter_value ); tmp_for_loop_1__iter_value = NULL; } { CHECK_OBJECT( (PyObject *)tmp_for_loop_1__for_iterator ); Py_DECREF( tmp_for_loop_1__for_iterator ); tmp_for_loop_1__for_iterator = NULL; } { PyObject *tmp_assattr_name_11; PyObject *tmp_assattr_target_11; tmp_assattr_name_11 = PyList_New( 0 ); if ( var_element == NULL ) { Py_DECREF( tmp_assattr_name_11 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 394; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_assattr_target_11 = var_element; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_11, const_str_plain_contents, tmp_assattr_name_11 ); Py_DECREF( tmp_assattr_name_11 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 394; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } } { PyObject *tmp_assattr_name_12; PyObject *tmp_assattr_target_12; if ( var_final_next_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "final_next_element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 395; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_assattr_name_12 = var_final_next_element; if ( var_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 395; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } tmp_assattr_target_12 = var_element; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_12, const_str_plain_next_element, tmp_assattr_name_12 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 395; type_description_1 = "oooooooooooo"; goto frame_exception_exit_1; } } #if 0 RESTORE_FRAME_EXCEPTION( frame_898fa9993b80ae71daaaca7bb8b3a584 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_898fa9993b80ae71daaaca7bb8b3a584 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_898fa9993b80ae71daaaca7bb8b3a584, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_898fa9993b80ae71daaaca7bb8b3a584->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_898fa9993b80ae71daaaca7bb8b3a584, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_898fa9993b80ae71daaaca7bb8b3a584, type_description_1, par_self, par_new_parent, var_element, var_new_parent_element, var_final_next_element, var_new_parents_last_descendant, var_new_parents_last_child, var_new_parents_last_descendant_next_element, var_to_append, var_first_child, var_last_childs_last_descendant, var_child ); // Release cached frame. if ( frame_898fa9993b80ae71daaaca7bb8b3a584 == cache_frame_898fa9993b80ae71daaaca7bb8b3a584 ) { Py_DECREF( frame_898fa9993b80ae71daaaca7bb8b3a584 ); } cache_frame_898fa9993b80ae71daaaca7bb8b3a584 = NULL; assertFrameObject( frame_898fa9993b80ae71daaaca7bb8b3a584 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; { tmp_return_value = Py_None; Py_INCREF( tmp_return_value ); goto try_return_handler_1; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_30_reparentChildren ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_new_parent ); par_new_parent = NULL; } { Py_XDECREF( var_element ); var_element = NULL; } { Py_XDECREF( var_new_parent_element ); var_new_parent_element = NULL; } { Py_XDECREF( var_final_next_element ); var_final_next_element = NULL; } { Py_XDECREF( var_new_parents_last_descendant ); var_new_parents_last_descendant = NULL; } { Py_XDECREF( var_new_parents_last_child ); var_new_parents_last_child = NULL; } { Py_XDECREF( var_new_parents_last_descendant_next_element ); var_new_parents_last_descendant_next_element = NULL; } { Py_XDECREF( var_to_append ); var_to_append = NULL; } { Py_XDECREF( var_first_child ); var_first_child = NULL; } { Py_XDECREF( var_last_childs_last_descendant ); var_last_childs_last_descendant = NULL; } { Py_XDECREF( var_child ); var_child = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_2 = exception_type; exception_keeper_value_2 = exception_value; exception_keeper_tb_2 = exception_tb; exception_keeper_lineno_2 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_new_parent ); par_new_parent = NULL; } { Py_XDECREF( var_element ); var_element = NULL; } { Py_XDECREF( var_new_parent_element ); var_new_parent_element = NULL; } { Py_XDECREF( var_final_next_element ); var_final_next_element = NULL; } { Py_XDECREF( var_new_parents_last_descendant ); var_new_parents_last_descendant = NULL; } { Py_XDECREF( var_new_parents_last_child ); var_new_parents_last_child = NULL; } { Py_XDECREF( var_new_parents_last_descendant_next_element ); var_new_parents_last_descendant_next_element = NULL; } { Py_XDECREF( var_to_append ); var_to_append = NULL; } { Py_XDECREF( var_first_child ); var_first_child = NULL; } { Py_XDECREF( var_last_childs_last_descendant ); var_last_childs_last_descendant = NULL; } { Py_XDECREF( var_child ); var_child = NULL; } { // Re-raise. exception_type = exception_keeper_type_2; exception_value = exception_keeper_value_2; exception_tb = exception_keeper_tb_2; exception_lineno = exception_keeper_lineno_2; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_30_reparentChildren ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_31_cloneNode( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *var_tag = NULL; PyObject *var_node = NULL; PyObject *var_key = NULL; PyObject *var_value = NULL; PyObject *tmp_for_loop_1__for_iterator = NULL; PyObject *tmp_for_loop_1__iter_value = NULL; PyObject *tmp_tuple_unpack_1__element_1 = NULL; PyObject *tmp_tuple_unpack_1__element_2 = NULL; PyObject *tmp_tuple_unpack_1__source_iter = NULL; struct Nuitka_FrameObject *frame_699e7f1c248d875e1601732f5b798d95; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; PyObject *tmp_iterator_attempt; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; PyObject *exception_keeper_type_2; PyObject *exception_keeper_value_2; PyTracebackObject *exception_keeper_tb_2; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; bool tmp_result; PyObject *exception_keeper_type_3; PyObject *exception_keeper_value_3; PyTracebackObject *exception_keeper_tb_3; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; PyObject *tmp_return_value = NULL; static struct Nuitka_FrameObject *cache_frame_699e7f1c248d875e1601732f5b798d95 = NULL; PyObject *exception_keeper_type_4; PyObject *exception_keeper_value_4; PyTracebackObject *exception_keeper_tb_4; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_699e7f1c248d875e1601732f5b798d95, codeobj_699e7f1c248d875e1601732f5b798d95, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) ); frame_699e7f1c248d875e1601732f5b798d95 = cache_frame_699e7f1c248d875e1601732f5b798d95; // Push the new frame as the currently active one. pushFrameStack( frame_699e7f1c248d875e1601732f5b798d95 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_699e7f1c248d875e1601732f5b798d95 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_assign_source_1; PyObject *tmp_called_name_1; PyObject *tmp_source_name_1; PyObject *tmp_source_name_2; PyObject *tmp_args_element_name_1; PyObject *tmp_source_name_3; PyObject *tmp_source_name_4; PyObject *tmp_args_element_name_2; PyObject *tmp_source_name_5; CHECK_OBJECT( par_self ); tmp_source_name_2 = par_self; tmp_source_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_soup ); if ( tmp_source_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 402; type_description_1 = "ooooo"; goto frame_exception_exit_1; } tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_new_tag ); Py_DECREF( tmp_source_name_1 ); if ( tmp_called_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 402; type_description_1 = "ooooo"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_called_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 402; type_description_1 = "ooooo"; goto frame_exception_exit_1; } tmp_source_name_4 = par_self; tmp_source_name_3 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_element ); if ( tmp_source_name_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_1 ); exception_lineno = 402; type_description_1 = "ooooo"; goto frame_exception_exit_1; } tmp_args_element_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_name ); Py_DECREF( tmp_source_name_3 ); if ( tmp_args_element_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_1 ); exception_lineno = 402; type_description_1 = "ooooo"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_called_name_1 ); Py_DECREF( tmp_args_element_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 402; type_description_1 = "ooooo"; goto frame_exception_exit_1; } tmp_source_name_5 = par_self; tmp_args_element_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain_namespace ); if ( tmp_args_element_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_1 ); Py_DECREF( tmp_args_element_name_1 ); exception_lineno = 402; type_description_1 = "ooooo"; goto frame_exception_exit_1; } frame_699e7f1c248d875e1601732f5b798d95->m_frame.f_lineno = 402; { PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_2 }; tmp_assign_source_1 = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_1, call_args ); } Py_DECREF( tmp_called_name_1 ); Py_DECREF( tmp_args_element_name_1 ); Py_DECREF( tmp_args_element_name_2 ); if ( tmp_assign_source_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 402; type_description_1 = "ooooo"; goto frame_exception_exit_1; } assert( var_tag == NULL ); var_tag = tmp_assign_source_1; } { PyObject *tmp_assign_source_2; PyObject *tmp_called_name_2; PyObject *tmp_mvar_value_1; PyObject *tmp_args_element_name_3; PyObject *tmp_args_element_name_4; PyObject *tmp_source_name_6; PyObject *tmp_args_element_name_5; PyObject *tmp_source_name_7; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_Element ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_Element ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "Element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 403; type_description_1 = "ooooo"; goto frame_exception_exit_1; } tmp_called_name_2 = tmp_mvar_value_1; CHECK_OBJECT( var_tag ); tmp_args_element_name_3 = var_tag; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 403; type_description_1 = "ooooo"; goto frame_exception_exit_1; } tmp_source_name_6 = par_self; tmp_args_element_name_4 = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain_soup ); if ( tmp_args_element_name_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 403; type_description_1 = "ooooo"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_args_element_name_4 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 403; type_description_1 = "ooooo"; goto frame_exception_exit_1; } tmp_source_name_7 = par_self; tmp_args_element_name_5 = LOOKUP_ATTRIBUTE( tmp_source_name_7, const_str_plain_namespace ); if ( tmp_args_element_name_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_args_element_name_4 ); exception_lineno = 403; type_description_1 = "ooooo"; goto frame_exception_exit_1; } frame_699e7f1c248d875e1601732f5b798d95->m_frame.f_lineno = 403; { PyObject *call_args[] = { tmp_args_element_name_3, tmp_args_element_name_4, tmp_args_element_name_5 }; tmp_assign_source_2 = CALL_FUNCTION_WITH_ARGS3( tmp_called_name_2, call_args ); } Py_DECREF( tmp_args_element_name_4 ); Py_DECREF( tmp_args_element_name_5 ); if ( tmp_assign_source_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 403; type_description_1 = "ooooo"; goto frame_exception_exit_1; } assert( var_node == NULL ); var_node = tmp_assign_source_2; } { PyObject *tmp_assign_source_3; PyObject *tmp_iter_arg_1; PyObject *tmp_source_name_8; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 404; type_description_1 = "ooooo"; goto frame_exception_exit_1; } tmp_source_name_8 = par_self; tmp_iter_arg_1 = LOOKUP_ATTRIBUTE( tmp_source_name_8, const_str_plain_attributes ); if ( tmp_iter_arg_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 404; type_description_1 = "ooooo"; goto frame_exception_exit_1; } tmp_assign_source_3 = MAKE_ITERATOR( tmp_iter_arg_1 ); Py_DECREF( tmp_iter_arg_1 ); if ( tmp_assign_source_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 404; type_description_1 = "ooooo"; goto frame_exception_exit_1; } assert( tmp_for_loop_1__for_iterator == NULL ); tmp_for_loop_1__for_iterator = tmp_assign_source_3; } { // Tried code: { loop_start_1:; { PyObject *tmp_next_source_1; PyObject *tmp_assign_source_4; CHECK_OBJECT( tmp_for_loop_1__for_iterator ); tmp_next_source_1 = tmp_for_loop_1__for_iterator; tmp_assign_source_4 = ITERATOR_NEXT( tmp_next_source_1 ); if ( tmp_assign_source_4 == NULL ) { if ( CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED() ) { goto loop_end_1; } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); type_description_1 = "ooooo"; exception_lineno = 404; goto try_except_handler_2; } } { PyObject *old = tmp_for_loop_1__iter_value; tmp_for_loop_1__iter_value = tmp_assign_source_4; Py_XDECREF( old ); } } { // Tried code: { PyObject *tmp_assign_source_5; PyObject *tmp_iter_arg_2; CHECK_OBJECT( tmp_for_loop_1__iter_value ); tmp_iter_arg_2 = tmp_for_loop_1__iter_value; tmp_assign_source_5 = MAKE_UNPACK_ITERATOR( tmp_iter_arg_2 ); if ( tmp_assign_source_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 404; type_description_1 = "ooooo"; goto try_except_handler_3; } { PyObject *old = tmp_tuple_unpack_1__source_iter; tmp_tuple_unpack_1__source_iter = tmp_assign_source_5; Py_XDECREF( old ); } } { // Tried code: { PyObject *tmp_assign_source_6; PyObject *tmp_unpack_1; CHECK_OBJECT( tmp_tuple_unpack_1__source_iter ); tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; tmp_assign_source_6 = UNPACK_NEXT( tmp_unpack_1, 0, 2 ); if ( tmp_assign_source_6 == NULL ) { if ( !ERROR_OCCURRED() ) { exception_type = PyExc_StopIteration; Py_INCREF( exception_type ); exception_value = NULL; exception_tb = NULL; } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); } type_description_1 = "ooooo"; exception_lineno = 404; goto try_except_handler_4; } { PyObject *old = tmp_tuple_unpack_1__element_1; tmp_tuple_unpack_1__element_1 = tmp_assign_source_6; Py_XDECREF( old ); } } { PyObject *tmp_assign_source_7; PyObject *tmp_unpack_2; CHECK_OBJECT( tmp_tuple_unpack_1__source_iter ); tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; tmp_assign_source_7 = UNPACK_NEXT( tmp_unpack_2, 1, 2 ); if ( tmp_assign_source_7 == NULL ) { if ( !ERROR_OCCURRED() ) { exception_type = PyExc_StopIteration; Py_INCREF( exception_type ); exception_value = NULL; exception_tb = NULL; } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); } type_description_1 = "ooooo"; exception_lineno = 404; goto try_except_handler_4; } { PyObject *old = tmp_tuple_unpack_1__element_2; tmp_tuple_unpack_1__element_2 = tmp_assign_source_7; Py_XDECREF( old ); } } { PyObject *tmp_iterator_name_1; CHECK_OBJECT( tmp_tuple_unpack_1__source_iter ); tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter; // Check if iterator has left-over elements. CHECK_OBJECT( tmp_iterator_name_1 ); assert( HAS_ITERNEXT( tmp_iterator_name_1 ) ); tmp_iterator_attempt = (*Py_TYPE( tmp_iterator_name_1 )->tp_iternext)( tmp_iterator_name_1 ); if (likely( tmp_iterator_attempt == NULL )) { PyObject *error = GET_ERROR_OCCURRED(); if ( error != NULL ) { if ( EXCEPTION_MATCH_BOOL_SINGLE( error, PyExc_StopIteration )) { CLEAR_ERROR_OCCURRED(); } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); type_description_1 = "ooooo"; exception_lineno = 404; goto try_except_handler_4; } } } else { Py_DECREF( tmp_iterator_attempt ); // TODO: Could avoid PyErr_Format. #if PYTHON_VERSION < 300 PyErr_Format( PyExc_ValueError, "too many values to unpack" ); #else PyErr_Format( PyExc_ValueError, "too many values to unpack (expected 2)" ); #endif FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); type_description_1 = "ooooo"; exception_lineno = 404; goto try_except_handler_4; } } goto try_end_1; // Exception handler code: try_except_handler_4:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { CHECK_OBJECT( (PyObject *)tmp_tuple_unpack_1__source_iter ); Py_DECREF( tmp_tuple_unpack_1__source_iter ); tmp_tuple_unpack_1__source_iter = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto try_except_handler_3; } // End of try: try_end_1:; } goto try_end_2; // Exception handler code: try_except_handler_3:; exception_keeper_type_2 = exception_type; exception_keeper_value_2 = exception_value; exception_keeper_tb_2 = exception_tb; exception_keeper_lineno_2 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( tmp_tuple_unpack_1__element_1 ); tmp_tuple_unpack_1__element_1 = NULL; } { Py_XDECREF( tmp_tuple_unpack_1__element_2 ); tmp_tuple_unpack_1__element_2 = NULL; } { // Re-raise. exception_type = exception_keeper_type_2; exception_value = exception_keeper_value_2; exception_tb = exception_keeper_tb_2; exception_lineno = exception_keeper_lineno_2; goto try_except_handler_2; } // End of try: try_end_2:; } { CHECK_OBJECT( (PyObject *)tmp_tuple_unpack_1__source_iter ); Py_DECREF( tmp_tuple_unpack_1__source_iter ); tmp_tuple_unpack_1__source_iter = NULL; } { PyObject *tmp_assign_source_8; CHECK_OBJECT( tmp_tuple_unpack_1__element_1 ); tmp_assign_source_8 = tmp_tuple_unpack_1__element_1; { PyObject *old = var_key; var_key = tmp_assign_source_8; Py_INCREF( var_key ); Py_XDECREF( old ); } } { Py_XDECREF( tmp_tuple_unpack_1__element_1 ); tmp_tuple_unpack_1__element_1 = NULL; } { PyObject *tmp_assign_source_9; CHECK_OBJECT( tmp_tuple_unpack_1__element_2 ); tmp_assign_source_9 = tmp_tuple_unpack_1__element_2; { PyObject *old = var_value; var_value = tmp_assign_source_9; Py_INCREF( var_value ); Py_XDECREF( old ); } } { Py_XDECREF( tmp_tuple_unpack_1__element_2 ); tmp_tuple_unpack_1__element_2 = NULL; } { PyObject *tmp_ass_subvalue_1; PyObject *tmp_ass_subscribed_1; PyObject *tmp_source_name_9; PyObject *tmp_ass_subscript_1; if ( var_value == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "value" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 405; type_description_1 = "ooooo"; goto try_except_handler_2; } tmp_ass_subvalue_1 = var_value; if ( var_node == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "node" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 405; type_description_1 = "ooooo"; goto try_except_handler_2; } tmp_source_name_9 = var_node; tmp_ass_subscribed_1 = LOOKUP_ATTRIBUTE( tmp_source_name_9, const_str_plain_attributes ); if ( tmp_ass_subscribed_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 405; type_description_1 = "ooooo"; goto try_except_handler_2; } if ( var_key == NULL ) { Py_DECREF( tmp_ass_subscribed_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "key" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 405; type_description_1 = "ooooo"; goto try_except_handler_2; } tmp_ass_subscript_1 = var_key; tmp_result = SET_SUBSCRIPT( tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1 ); Py_DECREF( tmp_ass_subscribed_1 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 405; type_description_1 = "ooooo"; goto try_except_handler_2; } } if ( CONSIDER_THREADING() == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 404; type_description_1 = "ooooo"; goto try_except_handler_2; } goto loop_start_1; loop_end_1:; } goto try_end_3; // Exception handler code: try_except_handler_2:; exception_keeper_type_3 = exception_type; exception_keeper_value_3 = exception_value; exception_keeper_tb_3 = exception_tb; exception_keeper_lineno_3 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( tmp_for_loop_1__iter_value ); tmp_for_loop_1__iter_value = NULL; } { CHECK_OBJECT( (PyObject *)tmp_for_loop_1__for_iterator ); Py_DECREF( tmp_for_loop_1__for_iterator ); tmp_for_loop_1__for_iterator = NULL; } { // Re-raise. exception_type = exception_keeper_type_3; exception_value = exception_keeper_value_3; exception_tb = exception_keeper_tb_3; exception_lineno = exception_keeper_lineno_3; goto frame_exception_exit_1; } // End of try: try_end_3:; } { Py_XDECREF( tmp_for_loop_1__iter_value ); tmp_for_loop_1__iter_value = NULL; } { CHECK_OBJECT( (PyObject *)tmp_for_loop_1__for_iterator ); Py_DECREF( tmp_for_loop_1__for_iterator ); tmp_for_loop_1__for_iterator = NULL; } { if ( var_node == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "node" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 406; type_description_1 = "ooooo"; goto frame_exception_exit_1; } tmp_return_value = var_node; Py_INCREF( tmp_return_value ); goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_699e7f1c248d875e1601732f5b798d95 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_699e7f1c248d875e1601732f5b798d95 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_699e7f1c248d875e1601732f5b798d95 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_699e7f1c248d875e1601732f5b798d95, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_699e7f1c248d875e1601732f5b798d95->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_699e7f1c248d875e1601732f5b798d95, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_699e7f1c248d875e1601732f5b798d95, type_description_1, par_self, var_tag, var_node, var_key, var_value ); // Release cached frame. if ( frame_699e7f1c248d875e1601732f5b798d95 == cache_frame_699e7f1c248d875e1601732f5b798d95 ) { Py_DECREF( frame_699e7f1c248d875e1601732f5b798d95 ); } cache_frame_699e7f1c248d875e1601732f5b798d95 = NULL; assertFrameObject( frame_699e7f1c248d875e1601732f5b798d95 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_31_cloneNode ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( var_tag ); var_tag = NULL; } { Py_XDECREF( var_node ); var_node = NULL; } { Py_XDECREF( var_key ); var_key = NULL; } { Py_XDECREF( var_value ); var_value = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_4 = exception_type; exception_keeper_value_4 = exception_value; exception_keeper_tb_4 = exception_tb; exception_keeper_lineno_4 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( var_tag ); var_tag = NULL; } { Py_XDECREF( var_node ); var_node = NULL; } { Py_XDECREF( var_key ); var_key = NULL; } { Py_XDECREF( var_value ); var_value = NULL; } { // Re-raise. exception_type = exception_keeper_type_4; exception_value = exception_keeper_value_4; exception_tb = exception_keeper_tb_4; exception_lineno = exception_keeper_lineno_4; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_31_cloneNode ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_32_hasContent( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; struct Nuitka_FrameObject *frame_703044c4c8cbe8d5406532d1c77c4377; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; static struct Nuitka_FrameObject *cache_frame_703044c4c8cbe8d5406532d1c77c4377 = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_703044c4c8cbe8d5406532d1c77c4377, codeobj_703044c4c8cbe8d5406532d1c77c4377, module_bs4$builder$_html5lib, sizeof(void *) ); frame_703044c4c8cbe8d5406532d1c77c4377 = cache_frame_703044c4c8cbe8d5406532d1c77c4377; // Push the new frame as the currently active one. pushFrameStack( frame_703044c4c8cbe8d5406532d1c77c4377 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_703044c4c8cbe8d5406532d1c77c4377 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_source_name_1; PyObject *tmp_source_name_2; CHECK_OBJECT( par_self ); tmp_source_name_2 = par_self; tmp_source_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_element ); if ( tmp_source_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 409; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_return_value = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_contents ); Py_DECREF( tmp_source_name_1 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 409; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_703044c4c8cbe8d5406532d1c77c4377 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_703044c4c8cbe8d5406532d1c77c4377 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_703044c4c8cbe8d5406532d1c77c4377 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_703044c4c8cbe8d5406532d1c77c4377, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_703044c4c8cbe8d5406532d1c77c4377->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_703044c4c8cbe8d5406532d1c77c4377, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_703044c4c8cbe8d5406532d1c77c4377, type_description_1, par_self ); // Release cached frame. if ( frame_703044c4c8cbe8d5406532d1c77c4377 == cache_frame_703044c4c8cbe8d5406532d1c77c4377 ) { Py_DECREF( frame_703044c4c8cbe8d5406532d1c77c4377 ); } cache_frame_703044c4c8cbe8d5406532d1c77c4377 = NULL; assertFrameObject( frame_703044c4c8cbe8d5406532d1c77c4377 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_32_hasContent ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_32_hasContent ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_33_getNameTuple( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; struct Nuitka_FrameObject *frame_bd8cace448216250d34b27c3d58f901f; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; int tmp_res; PyObject *tmp_return_value = NULL; static struct Nuitka_FrameObject *cache_frame_bd8cace448216250d34b27c3d58f901f = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_bd8cace448216250d34b27c3d58f901f, codeobj_bd8cace448216250d34b27c3d58f901f, module_bs4$builder$_html5lib, sizeof(void *) ); frame_bd8cace448216250d34b27c3d58f901f = cache_frame_bd8cace448216250d34b27c3d58f901f; // Push the new frame as the currently active one. pushFrameStack( frame_bd8cace448216250d34b27c3d58f901f ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_bd8cace448216250d34b27c3d58f901f ) == 2 ); // Frame stack // Framed code: { nuitka_bool tmp_condition_result_1; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; PyObject *tmp_source_name_1; CHECK_OBJECT( par_self ); tmp_source_name_1 = par_self; tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_namespace ); if ( tmp_compexpr_left_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 412; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_compexpr_right_1 = Py_None; tmp_res = RICH_COMPARE_BOOL_EQ( tmp_compexpr_left_1, tmp_compexpr_right_1 ); Py_DECREF( tmp_compexpr_left_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 412; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_condition_result_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { PyObject *tmp_tuple_element_1; PyObject *tmp_subscribed_name_1; PyObject *tmp_mvar_value_1; PyObject *tmp_subscript_name_1; PyObject *tmp_source_name_2; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_namespaces ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_namespaces ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "namespaces" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 413; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_subscribed_name_1 = tmp_mvar_value_1; tmp_subscript_name_1 = const_str_plain_html; tmp_tuple_element_1 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_1, tmp_subscript_name_1 ); if ( tmp_tuple_element_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 413; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_return_value = PyTuple_New( 2 ); PyTuple_SET_ITEM( tmp_return_value, 0, tmp_tuple_element_1 ); if ( par_self == NULL ) { Py_DECREF( tmp_return_value ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 413; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_2 = par_self; tmp_tuple_element_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_name ); if ( tmp_tuple_element_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_return_value ); exception_lineno = 413; type_description_1 = "o"; goto frame_exception_exit_1; } PyTuple_SET_ITEM( tmp_return_value, 1, tmp_tuple_element_1 ); goto frame_return_exit_1; } goto branch_end_1; branch_no_1:; { PyObject *tmp_tuple_element_2; PyObject *tmp_source_name_3; PyObject *tmp_source_name_4; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 415; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_3 = par_self; tmp_tuple_element_2 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_namespace ); if ( tmp_tuple_element_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 415; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_return_value = PyTuple_New( 2 ); PyTuple_SET_ITEM( tmp_return_value, 0, tmp_tuple_element_2 ); if ( par_self == NULL ) { Py_DECREF( tmp_return_value ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 415; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_4 = par_self; tmp_tuple_element_2 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_name ); if ( tmp_tuple_element_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_return_value ); exception_lineno = 415; type_description_1 = "o"; goto frame_exception_exit_1; } PyTuple_SET_ITEM( tmp_return_value, 1, tmp_tuple_element_2 ); goto frame_return_exit_1; } branch_end_1:; } #if 0 RESTORE_FRAME_EXCEPTION( frame_bd8cace448216250d34b27c3d58f901f ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_bd8cace448216250d34b27c3d58f901f ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_bd8cace448216250d34b27c3d58f901f ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_bd8cace448216250d34b27c3d58f901f, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_bd8cace448216250d34b27c3d58f901f->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_bd8cace448216250d34b27c3d58f901f, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_bd8cace448216250d34b27c3d58f901f, type_description_1, par_self ); // Release cached frame. if ( frame_bd8cace448216250d34b27c3d58f901f == cache_frame_bd8cace448216250d34b27c3d58f901f ) { Py_DECREF( frame_bd8cace448216250d34b27c3d58f901f ); } cache_frame_bd8cace448216250d34b27c3d58f901f = NULL; assertFrameObject( frame_bd8cace448216250d34b27c3d58f901f ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_33_getNameTuple ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_33_getNameTuple ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_34___init__( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *par_element = python_pars[ 1 ]; PyObject *par_soup = python_pars[ 2 ]; struct Nuitka_FrameObject *frame_4bc2fb75d2ec8350a5345abc3b4c3f38; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; NUITKA_MAY_BE_UNUSED PyObject *tmp_unused; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; bool tmp_result; static struct Nuitka_FrameObject *cache_frame_4bc2fb75d2ec8350a5345abc3b4c3f38 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_4bc2fb75d2ec8350a5345abc3b4c3f38, codeobj_4bc2fb75d2ec8350a5345abc3b4c3f38, module_bs4$builder$_html5lib, sizeof(void *)+sizeof(void *)+sizeof(void *) ); frame_4bc2fb75d2ec8350a5345abc3b4c3f38 = cache_frame_4bc2fb75d2ec8350a5345abc3b4c3f38; // Push the new frame as the currently active one. pushFrameStack( frame_4bc2fb75d2ec8350a5345abc3b4c3f38 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_4bc2fb75d2ec8350a5345abc3b4c3f38 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_called_name_1; PyObject *tmp_source_name_1; PyObject *tmp_source_name_2; PyObject *tmp_mvar_value_1; PyObject *tmp_args_element_name_1; PyObject *tmp_args_element_name_2; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_treebuilder_base ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_treebuilder_base ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "treebuilder_base" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 421; type_description_1 = "ooo"; goto frame_exception_exit_1; } tmp_source_name_2 = tmp_mvar_value_1; tmp_source_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_Node ); if ( tmp_source_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 421; type_description_1 = "ooo"; goto frame_exception_exit_1; } tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain___init__ ); Py_DECREF( tmp_source_name_1 ); if ( tmp_called_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 421; type_description_1 = "ooo"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_called_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 421; type_description_1 = "ooo"; goto frame_exception_exit_1; } tmp_args_element_name_1 = par_self; tmp_args_element_name_2 = Py_None; frame_4bc2fb75d2ec8350a5345abc3b4c3f38->m_frame.f_lineno = 421; { PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_2 }; tmp_unused = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_1, call_args ); } Py_DECREF( tmp_called_name_1 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 421; type_description_1 = "ooo"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } { PyObject *tmp_assattr_name_1; PyObject *tmp_assattr_target_1; if ( par_element == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 422; type_description_1 = "ooo"; goto frame_exception_exit_1; } tmp_assattr_name_1 = par_element; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 422; type_description_1 = "ooo"; goto frame_exception_exit_1; } tmp_assattr_target_1 = par_self; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain_element, tmp_assattr_name_1 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 422; type_description_1 = "ooo"; goto frame_exception_exit_1; } } { PyObject *tmp_assattr_name_2; PyObject *tmp_assattr_target_2; if ( par_soup == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "soup" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 423; type_description_1 = "ooo"; goto frame_exception_exit_1; } tmp_assattr_name_2 = par_soup; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 423; type_description_1 = "ooo"; goto frame_exception_exit_1; } tmp_assattr_target_2 = par_self; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_2, const_str_plain_soup, tmp_assattr_name_2 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 423; type_description_1 = "ooo"; goto frame_exception_exit_1; } } #if 0 RESTORE_FRAME_EXCEPTION( frame_4bc2fb75d2ec8350a5345abc3b4c3f38 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_4bc2fb75d2ec8350a5345abc3b4c3f38 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_4bc2fb75d2ec8350a5345abc3b4c3f38, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_4bc2fb75d2ec8350a5345abc3b4c3f38->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_4bc2fb75d2ec8350a5345abc3b4c3f38, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_4bc2fb75d2ec8350a5345abc3b4c3f38, type_description_1, par_self, par_element, par_soup ); // Release cached frame. if ( frame_4bc2fb75d2ec8350a5345abc3b4c3f38 == cache_frame_4bc2fb75d2ec8350a5345abc3b4c3f38 ) { Py_DECREF( frame_4bc2fb75d2ec8350a5345abc3b4c3f38 ); } cache_frame_4bc2fb75d2ec8350a5345abc3b4c3f38 = NULL; assertFrameObject( frame_4bc2fb75d2ec8350a5345abc3b4c3f38 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; { tmp_return_value = Py_None; Py_INCREF( tmp_return_value ); goto try_return_handler_1; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_34___init__ ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_element ); par_element = NULL; } { Py_XDECREF( par_soup ); par_soup = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_element ); par_element = NULL; } { Py_XDECREF( par_soup ); par_soup = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_34___init__ ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_bs4$builder$_html5lib$$$function_35_cloneNode( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; struct Nuitka_FrameObject *frame_9e38b70f8abb9541c318269ba7030a73; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; static struct Nuitka_FrameObject *cache_frame_9e38b70f8abb9541c318269ba7030a73 = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_9e38b70f8abb9541c318269ba7030a73, codeobj_9e38b70f8abb9541c318269ba7030a73, module_bs4$builder$_html5lib, sizeof(void *) ); frame_9e38b70f8abb9541c318269ba7030a73 = cache_frame_9e38b70f8abb9541c318269ba7030a73; // Push the new frame as the currently active one. pushFrameStack( frame_9e38b70f8abb9541c318269ba7030a73 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_9e38b70f8abb9541c318269ba7030a73 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_raise_type_1; tmp_raise_type_1 = PyExc_NotImplementedError; exception_type = tmp_raise_type_1; Py_INCREF( tmp_raise_type_1 ); exception_lineno = 426; RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb ); type_description_1 = "o"; goto frame_exception_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_9e38b70f8abb9541c318269ba7030a73 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_9e38b70f8abb9541c318269ba7030a73 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_9e38b70f8abb9541c318269ba7030a73, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_9e38b70f8abb9541c318269ba7030a73->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_9e38b70f8abb9541c318269ba7030a73, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_9e38b70f8abb9541c318269ba7030a73, type_description_1, par_self ); // Release cached frame. if ( frame_9e38b70f8abb9541c318269ba7030a73 == cache_frame_9e38b70f8abb9541c318269ba7030a73 ) { Py_DECREF( frame_9e38b70f8abb9541c318269ba7030a73 ); } cache_frame_9e38b70f8abb9541c318269ba7030a73 = NULL; assertFrameObject( frame_9e38b70f8abb9541c318269ba7030a73 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_35_cloneNode ); return NULL; // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { CHECK_OBJECT( (PyObject *)par_self ); Py_DECREF( par_self ); par_self = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib$$$function_35_cloneNode ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_10_fragmentClass( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_10_fragmentClass, const_str_plain_fragmentClass, #if PYTHON_VERSION >= 300 const_str_digest_0c53e5483c4d4c11f0cacd9a782c8984, #endif codeobj_7f88c6650f945f7641129c4145e27c52, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_11_appendChild( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_11_appendChild, const_str_plain_appendChild, #if PYTHON_VERSION >= 300 const_str_digest_23b16362062aa5bd60242db5965601b1, #endif codeobj_60dc340a1f9cb82135fdc5999b8a1f6f, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_12_getDocument( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_12_getDocument, const_str_plain_getDocument, #if PYTHON_VERSION >= 300 const_str_digest_b003ae88ab5def8fba7c4ce5e0f75bb8, #endif codeobj_e60a236db3a14cb2458d02def75a27cc, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_13_getFragment( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_13_getFragment, const_str_plain_getFragment, #if PYTHON_VERSION >= 300 const_str_digest_7eb4371df9e81d44b58cbfd236d2917f, #endif codeobj_7134c5be048dde74f22047bcbc35fb7d, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_14_testSerializer( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_14_testSerializer, const_str_plain_testSerializer, #if PYTHON_VERSION >= 300 const_str_digest_ea50f9dd30855f31b690411f91516997, #endif codeobj_b4a8744a449badcda89b9c58a2df9a07, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_14_testSerializer$$$function_1_serializeElement( PyObject *defaults ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_14_testSerializer$$$function_1_serializeElement, const_str_plain_serializeElement, #if PYTHON_VERSION >= 300 const_str_digest_215e68bc120bcaa7fcea912f0f8f33cb, #endif codeobj_2cac38a5727d0b1a295d9efb5458dd50, defaults, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 4 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_15___init__( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_15___init__, const_str_plain___init__, #if PYTHON_VERSION >= 300 const_str_digest_ce251a47e2df78bd1d1a9359296a3d52, #endif codeobj_862903e006904a47cfb737335fa8e969, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_16___iter__( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_16___iter__, const_str_plain___iter__, #if PYTHON_VERSION >= 300 const_str_digest_d18613d2541bb5efb2b90c19ae2914a7, #endif codeobj_46658e33b0509c309eac25b858d6cec0, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_17___setitem__( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_17___setitem__, const_str_plain___setitem__, #if PYTHON_VERSION >= 300 const_str_digest_159357012a9e9103f39cd3e045085792, #endif codeobj_6ded8a14e912a14d37067d1d97cb6133, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_18_items( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_18_items, const_str_plain_items, #if PYTHON_VERSION >= 300 const_str_digest_e58ef089254db86af5077c09d80cd276, #endif codeobj_7150f6ef3ab91125d7eddca7e9ff6e15, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_19_keys( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_19_keys, const_str_plain_keys, #if PYTHON_VERSION >= 300 const_str_digest_33a811bbdb354554771a90321b6034ae, #endif codeobj_71c27579a86c11878acd608308adba36, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_1_prepare_markup( PyObject *defaults ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_1_prepare_markup, const_str_plain_prepare_markup, #if PYTHON_VERSION >= 300 const_str_digest_705811222fc5d1ae224a2513522bac8c, #endif codeobj_be57c19b6323868a51c94fa79707b521, defaults, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_20___len__( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_20___len__, const_str_plain___len__, #if PYTHON_VERSION >= 300 const_str_digest_4deb5980ac1d6b98c66cc7ed60f6a14d, #endif codeobj_99c62f79c7a9c864a2d0241621052697, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_21___getitem__( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_21___getitem__, const_str_plain___getitem__, #if PYTHON_VERSION >= 300 const_str_digest_40a4aa7c990c9ec58e370a66189a7cf3, #endif codeobj_ac773837c6efb44ee932e964ff235bb8, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_22___contains__( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_22___contains__, const_str_plain___contains__, #if PYTHON_VERSION >= 300 const_str_digest_2884c8220b027e354fccb69f51574561, #endif codeobj_59036593ad2c983bbf3db312dc50dd63, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_23___init__( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_23___init__, const_str_plain___init__, #if PYTHON_VERSION >= 300 const_str_digest_2ba83d45719ab4ac14b3c6f89d0ffc2f, #endif codeobj_a49afc773f6ed00ebc38fd16aeae958b, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_24_appendChild( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_24_appendChild, const_str_plain_appendChild, #if PYTHON_VERSION >= 300 const_str_digest_b9d92bb032071e093cb2773e0141ee14, #endif codeobj_d6e104211ad483b8ab15f86f297090e8, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_25_getAttributes( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_25_getAttributes, const_str_plain_getAttributes, #if PYTHON_VERSION >= 300 const_str_digest_1df37cc25b68d222ca12b0b1a3870269, #endif codeobj_b59ce5223e4e2dfd2fc98070cdbb9d16, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_26_setAttributes( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_26_setAttributes, const_str_plain_setAttributes, #if PYTHON_VERSION >= 300 const_str_digest_0eeb5c19ca174d491af58d63935cfc9f, #endif codeobj_880ad0c3c14171fe04c296863fb1e208, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_27_insertText( PyObject *defaults ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_27_insertText, const_str_plain_insertText, #if PYTHON_VERSION >= 300 const_str_digest_c074204eb66b66b4a674100bec85b541, #endif codeobj_393cea2d108818ac8cd67d70384f1655, defaults, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_28_insertBefore( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_28_insertBefore, const_str_plain_insertBefore, #if PYTHON_VERSION >= 300 const_str_digest_f781ab06f4620217cc1b6f4d96b88fad, #endif codeobj_c76f7e9a85ecdffddd4d611afc65b023, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_29_removeChild( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_29_removeChild, const_str_plain_removeChild, #if PYTHON_VERSION >= 300 const_str_digest_92a3e7b3a53e3d0b5366429af3829c48, #endif codeobj_ca23e12c9fa58de0a656fa5c32d0614f, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_2_feed( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_2_feed, const_str_plain_feed, #if PYTHON_VERSION >= 300 const_str_digest_84193ae9a166a09e5e91b35f20638600, #endif codeobj_b5df6feb2ab831ba7b08e7f8011c2e3f, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_30_reparentChildren( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_30_reparentChildren, const_str_plain_reparentChildren, #if PYTHON_VERSION >= 300 const_str_digest_6b9d894189c1f74b8bf90492e700db0d, #endif codeobj_898fa9993b80ae71daaaca7bb8b3a584, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, const_str_digest_a1c0be3342eb645828d8d08e46315363, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_31_cloneNode( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_31_cloneNode, const_str_plain_cloneNode, #if PYTHON_VERSION >= 300 const_str_digest_1c92e6858a12d2f8936c12399f6d4891, #endif codeobj_699e7f1c248d875e1601732f5b798d95, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_32_hasContent( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_32_hasContent, const_str_plain_hasContent, #if PYTHON_VERSION >= 300 const_str_digest_6c359b437b0ff6f3c6b608ce533686ca, #endif codeobj_703044c4c8cbe8d5406532d1c77c4377, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_33_getNameTuple( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_33_getNameTuple, const_str_plain_getNameTuple, #if PYTHON_VERSION >= 300 const_str_digest_647bf12304a32489cc5b8b58e0535445, #endif codeobj_bd8cace448216250d34b27c3d58f901f, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_34___init__( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_34___init__, const_str_plain___init__, #if PYTHON_VERSION >= 300 const_str_digest_a9f7fd277b279ff044c892e9263852ec, #endif codeobj_4bc2fb75d2ec8350a5345abc3b4c3f38, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_35_cloneNode( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_35_cloneNode, const_str_plain_cloneNode, #if PYTHON_VERSION >= 300 const_str_digest_d6d67aa9644374fbe99fd299dbd21130, #endif codeobj_9e38b70f8abb9541c318269ba7030a73, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_3_create_treebuilder( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_3_create_treebuilder, const_str_plain_create_treebuilder, #if PYTHON_VERSION >= 300 const_str_digest_d789b4f90cabf78a705c48c32c18c5c2, #endif codeobj_03356bb8d25faf8ed7137afa41c65191, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_4_test_fragment_to_document( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_4_test_fragment_to_document, const_str_plain_test_fragment_to_document, #if PYTHON_VERSION >= 300 const_str_digest_3e9c546a8903992568d7f9f399a59063, #endif codeobj_65e5814b2e94eb798c90a811e24fb7ba, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, const_str_digest_d28f76e6b15ce9150f396f12113eff02, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_5___init__( PyObject *defaults ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_5___init__, const_str_plain___init__, #if PYTHON_VERSION >= 300 const_str_digest_1a8f76cbc7d0520dda9338e2b9c79cae, #endif codeobj_e5238202841a449b0fe675887c8c127c, defaults, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_6_documentClass( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_6_documentClass, const_str_plain_documentClass, #if PYTHON_VERSION >= 300 const_str_digest_b9d7db902b4319c890205e71f628fb1d, #endif codeobj_18b019f67e357fe63dc2021e665ae864, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_7_insertDoctype( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_7_insertDoctype, const_str_plain_insertDoctype, #if PYTHON_VERSION >= 300 const_str_digest_9ae5a8c91b41a0fa8cde6465e581aefb, #endif codeobj_6db4f39ead434c1c58fde91234955a2c, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_8_elementClass( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_8_elementClass, const_str_plain_elementClass, #if PYTHON_VERSION >= 300 const_str_digest_4dcc2c5696414a134841af261deae0e4, #endif codeobj_ca1798d9f22d94d9f8fac5732b3f68a0, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_bs4$builder$_html5lib$$$function_9_commentClass( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_bs4$builder$_html5lib$$$function_9_commentClass, const_str_plain_commentClass, #if PYTHON_VERSION >= 300 const_str_digest_40ba509333e3e5179adc318103200357, #endif codeobj_842eda5127517017b16637d129696484, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_bs4$builder$_html5lib, NULL, 0 ); return (PyObject *)result; } #if PYTHON_VERSION >= 300 static struct PyModuleDef mdef_bs4$builder$_html5lib = { PyModuleDef_HEAD_INIT, "bs4.builder._html5lib", /* m_name */ NULL, /* m_doc */ -1, /* m_size */ NULL, /* m_methods */ NULL, /* m_reload */ NULL, /* m_traverse */ NULL, /* m_clear */ NULL, /* m_free */ }; #endif extern PyObject *const_str_plain___package__; #if PYTHON_VERSION >= 300 extern PyObject *const_str_dot; extern PyObject *const_str_plain___loader__; extern PyObject *metapath_based_loader; #endif #if PYTHON_VERSION >= 340 extern PyObject *const_str_plain___spec__; extern PyObject *const_str_plain__initializing; #endif extern void _initCompiledCellType(); extern void _initCompiledGeneratorType(); extern void _initCompiledFunctionType(); extern void _initCompiledMethodType(); extern void _initCompiledFrameType(); #if PYTHON_VERSION >= 350 extern void _initCompiledCoroutineTypes(); #endif #if PYTHON_VERSION >= 360 extern void _initCompiledAsyncgenTypes(); #endif // The exported interface to CPython. On import of the module, this function // gets called. It has to have an exact function name, in cases it's a shared // library export. This is hidden behind the MOD_INIT_DECL. MOD_INIT_DECL( bs4$builder$_html5lib ) { #if defined(_NUITKA_EXE) || PYTHON_VERSION >= 300 static bool _init_done = false; // Modules might be imported repeatedly, which is to be ignored. if ( _init_done ) { return MOD_RETURN_VALUE( module_bs4$builder$_html5lib ); } else { _init_done = true; } #endif #ifdef _NUITKA_MODULE // In case of a stand alone extension module, need to call initialization // the init here because that's the first and only time we are going to get // called here. // Initialize the constant values used. _initBuiltinModule(); createGlobalConstants(); /* Initialize the compiled types of Nuitka. */ _initCompiledCellType(); _initCompiledGeneratorType(); _initCompiledFunctionType(); _initCompiledMethodType(); _initCompiledFrameType(); #if PYTHON_VERSION >= 350 _initCompiledCoroutineTypes(); #endif #if PYTHON_VERSION >= 360 _initCompiledAsyncgenTypes(); #endif #if PYTHON_VERSION < 300 _initSlotCompare(); #endif #if PYTHON_VERSION >= 270 _initSlotIternext(); #endif patchBuiltinModule(); patchTypeComparison(); // Enable meta path based loader if not already done. #ifdef _NUITKA_TRACE puts("bs4.builder._html5lib: Calling setupMetaPathBasedLoader()."); #endif setupMetaPathBasedLoader(); #if PYTHON_VERSION >= 300 patchInspectModule(); #endif #endif /* The constants only used by this module are created now. */ #ifdef _NUITKA_TRACE puts("bs4.builder._html5lib: Calling createModuleConstants()."); #endif createModuleConstants(); /* The code objects used by this module are created now. */ #ifdef _NUITKA_TRACE puts("bs4.builder._html5lib: Calling createModuleCodeObjects()."); #endif createModuleCodeObjects(); // puts( "in initbs4$builder$_html5lib" ); // Create the module object first. There are no methods initially, all are // added dynamically in actual code only. Also no "__doc__" is initially // set at this time, as it could not contain NUL characters this way, they // are instead set in early module code. No "self" for modules, we have no // use for it. #if PYTHON_VERSION < 300 module_bs4$builder$_html5lib = Py_InitModule4( "bs4.builder._html5lib", // Module Name NULL, // No methods initially, all are added // dynamically in actual module code only. NULL, // No "__doc__" is initially set, as it could // not contain NUL this way, added early in // actual code. NULL, // No self for modules, we don't use it. PYTHON_API_VERSION ); #else module_bs4$builder$_html5lib = PyModule_Create( &mdef_bs4$builder$_html5lib ); #endif moduledict_bs4$builder$_html5lib = MODULE_DICT( module_bs4$builder$_html5lib ); // Update "__package__" value to what it ought to be. { #if 0 PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain___name__ ); UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain___package__, module_name ); #else #if PYTHON_VERSION < 300 PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain___name__ ); char const *module_name_cstr = PyString_AS_STRING( module_name ); char const *last_dot = strrchr( module_name_cstr, '.' ); if ( last_dot != NULL ) { UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain___package__, PyString_FromStringAndSize( module_name_cstr, last_dot - module_name_cstr ) ); } #else PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain___name__ ); Py_ssize_t dot_index = PyUnicode_Find( module_name, const_str_dot, 0, PyUnicode_GetLength( module_name ), -1 ); if ( dot_index != -1 ) { UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain___package__, PyUnicode_Substring( module_name, 0, dot_index ) ); } #endif #endif } CHECK_OBJECT( module_bs4$builder$_html5lib ); // Seems to work for Python2.7 out of the box, but for Python3, the module // doesn't automatically enter "sys.modules", so do it manually. #if PYTHON_VERSION >= 300 { int r = PyObject_SetItem( PySys_GetObject( (char *)"modules" ), const_str_digest_b8f5ff66404d2dfd3fa72280ec60871e, module_bs4$builder$_html5lib ); assert( r != -1 ); } #endif // For deep importing of a module we need to have "__builtins__", so we set // it ourselves in the same way than CPython does. Note: This must be done // before the frame object is allocated, or else it may fail. if ( GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain___builtins__ ) == NULL ) { PyObject *value = (PyObject *)builtin_module; // Check if main module, not a dict then but the module itself. #if !defined(_NUITKA_EXE) || !0 value = PyModule_GetDict( value ); #endif UPDATE_STRING_DICT0( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain___builtins__, value ); } #if PYTHON_VERSION >= 300 UPDATE_STRING_DICT0( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain___loader__, metapath_based_loader ); #endif #if PYTHON_VERSION >= 340 #if 0 UPDATE_STRING_DICT0( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain___spec__, Py_None ); #else { PyObject *bootstrap_module = PyImport_ImportModule("importlib._bootstrap"); CHECK_OBJECT( bootstrap_module ); PyObject *module_spec_class = PyObject_GetAttrString( bootstrap_module, "ModuleSpec" ); Py_DECREF( bootstrap_module ); PyObject *args[] = { GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain___name__ ), metapath_based_loader }; PyObject *spec_value = CALL_FUNCTION_WITH_ARGS2( module_spec_class, args ); SET_ATTRIBUTE( spec_value, const_str_plain__initializing, Py_True ); UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain___spec__, spec_value ); Py_DECREF( module_spec_class ); } #endif #endif // Temp variables if any PyObject *outline_0_var___class__ = NULL; PyObject *outline_1_var___class__ = NULL; PyObject *outline_2_var___class__ = NULL; PyObject *outline_3_var___class__ = NULL; PyObject *outline_4_var___class__ = NULL; PyObject *tmp_class_creation_1__bases = NULL; PyObject *tmp_class_creation_1__bases_orig = NULL; PyObject *tmp_class_creation_1__class_decl_dict = NULL; PyObject *tmp_class_creation_1__metaclass = NULL; PyObject *tmp_class_creation_1__prepared = NULL; PyObject *tmp_class_creation_2__bases = NULL; PyObject *tmp_class_creation_2__bases_orig = NULL; PyObject *tmp_class_creation_2__class_decl_dict = NULL; PyObject *tmp_class_creation_2__metaclass = NULL; PyObject *tmp_class_creation_2__prepared = NULL; PyObject *tmp_class_creation_3__bases = NULL; PyObject *tmp_class_creation_3__class_decl_dict = NULL; PyObject *tmp_class_creation_3__metaclass = NULL; PyObject *tmp_class_creation_3__prepared = NULL; PyObject *tmp_class_creation_4__bases = NULL; PyObject *tmp_class_creation_4__bases_orig = NULL; PyObject *tmp_class_creation_4__class_decl_dict = NULL; PyObject *tmp_class_creation_4__metaclass = NULL; PyObject *tmp_class_creation_4__prepared = NULL; PyObject *tmp_class_creation_5__bases = NULL; PyObject *tmp_class_creation_5__bases_orig = NULL; PyObject *tmp_class_creation_5__class_decl_dict = NULL; PyObject *tmp_class_creation_5__metaclass = NULL; PyObject *tmp_class_creation_5__prepared = NULL; PyObject *tmp_import_from_1__module = NULL; PyObject *tmp_import_from_2__module = NULL; PyObject *tmp_import_from_3__module = NULL; PyObject *tmp_import_from_4__module = NULL; struct Nuitka_FrameObject *frame_190956253b9a419daac23f67668d6fc5; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; PyObject *exception_keeper_type_2; PyObject *exception_keeper_value_2; PyTracebackObject *exception_keeper_tb_2; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; PyObject *exception_keeper_type_3; PyObject *exception_keeper_value_3; PyTracebackObject *exception_keeper_tb_3; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; PyObject *exception_keeper_type_4; PyObject *exception_keeper_value_4; PyTracebackObject *exception_keeper_tb_4; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; PyObject *exception_keeper_type_5; PyObject *exception_keeper_value_5; PyTracebackObject *exception_keeper_tb_5; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; PyObject *exception_preserved_type_1; PyObject *exception_preserved_value_1; PyTracebackObject *exception_preserved_tb_1; int tmp_res; PyObject *exception_keeper_type_6; PyObject *exception_keeper_value_6; PyTracebackObject *exception_keeper_tb_6; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6; bool tmp_result; PyObject *exception_keeper_type_7; PyObject *exception_keeper_value_7; PyTracebackObject *exception_keeper_tb_7; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7; PyObject *tmp_dictdel_dict; PyObject *tmp_dictdel_key; PyObject *locals_bs4$builder$_html5lib_41 = NULL; PyObject *tmp_dictset_value; struct Nuitka_FrameObject *frame_02ae3e7b4e938f48c992ad550877bdbb_2; NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; static struct Nuitka_FrameObject *cache_frame_02ae3e7b4e938f48c992ad550877bdbb_2 = NULL; PyObject *exception_keeper_type_8; PyObject *exception_keeper_value_8; PyTracebackObject *exception_keeper_tb_8; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; PyObject *exception_keeper_type_9; PyObject *exception_keeper_value_9; PyTracebackObject *exception_keeper_tb_9; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; PyObject *exception_keeper_type_10; PyObject *exception_keeper_value_10; PyTracebackObject *exception_keeper_tb_10; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10; PyObject *locals_bs4$builder$_html5lib_98 = NULL; struct Nuitka_FrameObject *frame_2e977f5ce6e31317eb86ff7e5bde8e67_3; NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL; static struct Nuitka_FrameObject *cache_frame_2e977f5ce6e31317eb86ff7e5bde8e67_3 = NULL; PyObject *exception_keeper_type_11; PyObject *exception_keeper_value_11; PyTracebackObject *exception_keeper_tb_11; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11; PyObject *exception_keeper_type_12; PyObject *exception_keeper_value_12; PyTracebackObject *exception_keeper_tb_12; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12; PyObject *exception_keeper_type_13; PyObject *exception_keeper_value_13; PyTracebackObject *exception_keeper_tb_13; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_13; PyObject *locals_bs4$builder$_html5lib_193 = NULL; struct Nuitka_FrameObject *frame_eb6db0b8839c87a270ee3cf36407ef04_4; NUITKA_MAY_BE_UNUSED char const *type_description_4 = NULL; static struct Nuitka_FrameObject *cache_frame_eb6db0b8839c87a270ee3cf36407ef04_4 = NULL; PyObject *exception_keeper_type_14; PyObject *exception_keeper_value_14; PyTracebackObject *exception_keeper_tb_14; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_14; PyObject *exception_keeper_type_15; PyObject *exception_keeper_value_15; PyTracebackObject *exception_keeper_tb_15; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_15; PyObject *exception_keeper_type_16; PyObject *exception_keeper_value_16; PyTracebackObject *exception_keeper_tb_16; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_16; PyObject *locals_bs4$builder$_html5lib_223 = NULL; struct Nuitka_FrameObject *frame_d3dcf6647e60aa06adb5a9257535e559_5; NUITKA_MAY_BE_UNUSED char const *type_description_5 = NULL; static struct Nuitka_FrameObject *cache_frame_d3dcf6647e60aa06adb5a9257535e559_5 = NULL; PyObject *exception_keeper_type_17; PyObject *exception_keeper_value_17; PyTracebackObject *exception_keeper_tb_17; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_17; PyObject *exception_keeper_type_18; PyObject *exception_keeper_value_18; PyTracebackObject *exception_keeper_tb_18; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_18; PyObject *exception_keeper_type_19; PyObject *exception_keeper_value_19; PyTracebackObject *exception_keeper_tb_19; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_19; PyObject *locals_bs4$builder$_html5lib_419 = NULL; struct Nuitka_FrameObject *frame_7a917daf59bc0143119af86b7747ac6d_6; NUITKA_MAY_BE_UNUSED char const *type_description_6 = NULL; static struct Nuitka_FrameObject *cache_frame_7a917daf59bc0143119af86b7747ac6d_6 = NULL; PyObject *exception_keeper_type_20; PyObject *exception_keeper_value_20; PyTracebackObject *exception_keeper_tb_20; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_20; PyObject *exception_keeper_type_21; PyObject *exception_keeper_value_21; PyTracebackObject *exception_keeper_tb_21; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_21; PyObject *exception_keeper_type_22; PyObject *exception_keeper_value_22; PyTracebackObject *exception_keeper_tb_22; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_22; // Module code. { PyObject *tmp_assign_source_1; tmp_assign_source_1 = Py_None; UPDATE_STRING_DICT0( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain___doc__, tmp_assign_source_1 ); } { PyObject *tmp_assign_source_2; tmp_assign_source_2 = const_str_digest_14b0cf50585a9c7df79ebc4003576f45; UPDATE_STRING_DICT0( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain___file__, tmp_assign_source_2 ); } { PyObject *tmp_assign_source_3; tmp_assign_source_3 = Py_None; UPDATE_STRING_DICT0( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain___cached__, tmp_assign_source_3 ); } { PyObject *tmp_assign_source_4; tmp_assign_source_4 = LIST_COPY( const_list_str_plain_HTML5TreeBuilder_list ); UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain___all__, tmp_assign_source_4 ); } // Frame without reuse. frame_190956253b9a419daac23f67668d6fc5 = MAKE_MODULE_FRAME( codeobj_190956253b9a419daac23f67668d6fc5, module_bs4$builder$_html5lib ); // Push the new frame as the currently active one, and we should be exclusively // owning it. pushFrameStack( frame_190956253b9a419daac23f67668d6fc5 ); assert( Py_REFCNT( frame_190956253b9a419daac23f67668d6fc5 ) == 2 ); // Framed code: { PyObject *tmp_assign_source_5; PyObject *tmp_name_name_1; PyObject *tmp_globals_name_1; PyObject *tmp_locals_name_1; PyObject *tmp_fromlist_name_1; PyObject *tmp_level_name_1; tmp_name_name_1 = const_str_plain_warnings; tmp_globals_name_1 = (PyObject *)moduledict_bs4$builder$_html5lib; tmp_locals_name_1 = Py_None; tmp_fromlist_name_1 = Py_None; tmp_level_name_1 = const_int_0; frame_190956253b9a419daac23f67668d6fc5->m_frame.f_lineno = 8; tmp_assign_source_5 = IMPORT_MODULE5( tmp_name_name_1, tmp_globals_name_1, tmp_locals_name_1, tmp_fromlist_name_1, tmp_level_name_1 ); if ( tmp_assign_source_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 8; goto frame_exception_exit_1; } UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_warnings, tmp_assign_source_5 ); } { PyObject *tmp_assign_source_6; PyObject *tmp_name_name_2; PyObject *tmp_globals_name_2; PyObject *tmp_locals_name_2; PyObject *tmp_fromlist_name_2; PyObject *tmp_level_name_2; tmp_name_name_2 = const_str_plain_re; tmp_globals_name_2 = (PyObject *)moduledict_bs4$builder$_html5lib; tmp_locals_name_2 = Py_None; tmp_fromlist_name_2 = Py_None; tmp_level_name_2 = const_int_0; frame_190956253b9a419daac23f67668d6fc5->m_frame.f_lineno = 9; tmp_assign_source_6 = IMPORT_MODULE5( tmp_name_name_2, tmp_globals_name_2, tmp_locals_name_2, tmp_fromlist_name_2, tmp_level_name_2 ); if ( tmp_assign_source_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 9; goto frame_exception_exit_1; } UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_re, tmp_assign_source_6 ); } { PyObject *tmp_assign_source_7; PyObject *tmp_name_name_3; PyObject *tmp_globals_name_3; PyObject *tmp_locals_name_3; PyObject *tmp_fromlist_name_3; PyObject *tmp_level_name_3; tmp_name_name_3 = const_str_digest_d88ce7ae55f41923b25b890fe28acd5a; tmp_globals_name_3 = (PyObject *)moduledict_bs4$builder$_html5lib; tmp_locals_name_3 = Py_None; tmp_fromlist_name_3 = const_tuple_b3db4b73ed090acb4fa33bde2be52234_tuple; tmp_level_name_3 = const_int_0; frame_190956253b9a419daac23f67668d6fc5->m_frame.f_lineno = 10; tmp_assign_source_7 = IMPORT_MODULE5( tmp_name_name_3, tmp_globals_name_3, tmp_locals_name_3, tmp_fromlist_name_3, tmp_level_name_3 ); if ( tmp_assign_source_7 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 10; goto frame_exception_exit_1; } assert( tmp_import_from_1__module == NULL ); tmp_import_from_1__module = tmp_assign_source_7; } { // Tried code: { PyObject *tmp_assign_source_8; PyObject *tmp_import_name_from_1; CHECK_OBJECT( tmp_import_from_1__module ); tmp_import_name_from_1 = tmp_import_from_1__module; tmp_assign_source_8 = IMPORT_NAME( tmp_import_name_from_1, const_str_plain_PERMISSIVE ); if ( tmp_assign_source_8 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 10; goto try_except_handler_1; } UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_PERMISSIVE, tmp_assign_source_8 ); } { PyObject *tmp_assign_source_9; PyObject *tmp_import_name_from_2; CHECK_OBJECT( tmp_import_from_1__module ); tmp_import_name_from_2 = tmp_import_from_1__module; tmp_assign_source_9 = IMPORT_NAME( tmp_import_name_from_2, const_str_plain_HTML ); if ( tmp_assign_source_9 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 10; goto try_except_handler_1; } UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_HTML, tmp_assign_source_9 ); } { PyObject *tmp_assign_source_10; PyObject *tmp_import_name_from_3; CHECK_OBJECT( tmp_import_from_1__module ); tmp_import_name_from_3 = tmp_import_from_1__module; tmp_assign_source_10 = IMPORT_NAME( tmp_import_name_from_3, const_str_plain_HTML_5 ); if ( tmp_assign_source_10 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 10; goto try_except_handler_1; } UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_HTML_5, tmp_assign_source_10 ); } { PyObject *tmp_assign_source_11; PyObject *tmp_import_name_from_4; CHECK_OBJECT( tmp_import_from_1__module ); tmp_import_name_from_4 = tmp_import_from_1__module; tmp_assign_source_11 = IMPORT_NAME( tmp_import_name_from_4, const_str_plain_HTMLTreeBuilder ); if ( tmp_assign_source_11 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 10; goto try_except_handler_1; } UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_HTMLTreeBuilder, tmp_assign_source_11 ); } goto try_end_1; // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { CHECK_OBJECT( (PyObject *)tmp_import_from_1__module ); Py_DECREF( tmp_import_from_1__module ); tmp_import_from_1__module = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto frame_exception_exit_1; } // End of try: try_end_1:; } { CHECK_OBJECT( (PyObject *)tmp_import_from_1__module ); Py_DECREF( tmp_import_from_1__module ); tmp_import_from_1__module = NULL; } { PyObject *tmp_assign_source_12; PyObject *tmp_name_name_4; PyObject *tmp_globals_name_4; PyObject *tmp_locals_name_4; PyObject *tmp_fromlist_name_4; PyObject *tmp_level_name_4; tmp_name_name_4 = const_str_digest_a694a1497725bd5d49805e1c282892b9; tmp_globals_name_4 = (PyObject *)moduledict_bs4$builder$_html5lib; tmp_locals_name_4 = Py_None; tmp_fromlist_name_4 = const_tuple_str_plain_NamespacedAttribute_str_plain_whitespace_re_tuple; tmp_level_name_4 = const_int_0; frame_190956253b9a419daac23f67668d6fc5->m_frame.f_lineno = 16; tmp_assign_source_12 = IMPORT_MODULE5( tmp_name_name_4, tmp_globals_name_4, tmp_locals_name_4, tmp_fromlist_name_4, tmp_level_name_4 ); if ( tmp_assign_source_12 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 16; goto frame_exception_exit_1; } assert( tmp_import_from_2__module == NULL ); tmp_import_from_2__module = tmp_assign_source_12; } { // Tried code: { PyObject *tmp_assign_source_13; PyObject *tmp_import_name_from_5; CHECK_OBJECT( tmp_import_from_2__module ); tmp_import_name_from_5 = tmp_import_from_2__module; tmp_assign_source_13 = IMPORT_NAME( tmp_import_name_from_5, const_str_plain_NamespacedAttribute ); if ( tmp_assign_source_13 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 16; goto try_except_handler_2; } UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_NamespacedAttribute, tmp_assign_source_13 ); } { PyObject *tmp_assign_source_14; PyObject *tmp_import_name_from_6; CHECK_OBJECT( tmp_import_from_2__module ); tmp_import_name_from_6 = tmp_import_from_2__module; tmp_assign_source_14 = IMPORT_NAME( tmp_import_name_from_6, const_str_plain_whitespace_re ); if ( tmp_assign_source_14 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 16; goto try_except_handler_2; } UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_whitespace_re, tmp_assign_source_14 ); } goto try_end_2; // Exception handler code: try_except_handler_2:; exception_keeper_type_2 = exception_type; exception_keeper_value_2 = exception_value; exception_keeper_tb_2 = exception_tb; exception_keeper_lineno_2 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { CHECK_OBJECT( (PyObject *)tmp_import_from_2__module ); Py_DECREF( tmp_import_from_2__module ); tmp_import_from_2__module = NULL; } { // Re-raise. exception_type = exception_keeper_type_2; exception_value = exception_keeper_value_2; exception_tb = exception_keeper_tb_2; exception_lineno = exception_keeper_lineno_2; goto frame_exception_exit_1; } // End of try: try_end_2:; } { CHECK_OBJECT( (PyObject *)tmp_import_from_2__module ); Py_DECREF( tmp_import_from_2__module ); tmp_import_from_2__module = NULL; } { PyObject *tmp_assign_source_15; PyObject *tmp_name_name_5; PyObject *tmp_globals_name_5; PyObject *tmp_locals_name_5; PyObject *tmp_fromlist_name_5; PyObject *tmp_level_name_5; tmp_name_name_5 = const_str_plain_html5lib; tmp_globals_name_5 = (PyObject *)moduledict_bs4$builder$_html5lib; tmp_locals_name_5 = Py_None; tmp_fromlist_name_5 = Py_None; tmp_level_name_5 = const_int_0; frame_190956253b9a419daac23f67668d6fc5->m_frame.f_lineno = 20; tmp_assign_source_15 = IMPORT_MODULE5( tmp_name_name_5, tmp_globals_name_5, tmp_locals_name_5, tmp_fromlist_name_5, tmp_level_name_5 ); if ( tmp_assign_source_15 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 20; goto frame_exception_exit_1; } UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_html5lib, tmp_assign_source_15 ); } { PyObject *tmp_assign_source_16; PyObject *tmp_name_name_6; PyObject *tmp_globals_name_6; PyObject *tmp_locals_name_6; PyObject *tmp_fromlist_name_6; PyObject *tmp_level_name_6; tmp_name_name_6 = const_str_digest_8b66c83f0d5a673f5d9f47acffe24fee; tmp_globals_name_6 = (PyObject *)moduledict_bs4$builder$_html5lib; tmp_locals_name_6 = Py_None; tmp_fromlist_name_6 = const_tuple_str_plain_namespaces_str_plain_prefixes_tuple; tmp_level_name_6 = const_int_0; frame_190956253b9a419daac23f67668d6fc5->m_frame.f_lineno = 21; tmp_assign_source_16 = IMPORT_MODULE5( tmp_name_name_6, tmp_globals_name_6, tmp_locals_name_6, tmp_fromlist_name_6, tmp_level_name_6 ); if ( tmp_assign_source_16 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 21; goto frame_exception_exit_1; } assert( tmp_import_from_3__module == NULL ); tmp_import_from_3__module = tmp_assign_source_16; } { // Tried code: { PyObject *tmp_assign_source_17; PyObject *tmp_import_name_from_7; CHECK_OBJECT( tmp_import_from_3__module ); tmp_import_name_from_7 = tmp_import_from_3__module; tmp_assign_source_17 = IMPORT_NAME( tmp_import_name_from_7, const_str_plain_namespaces ); if ( tmp_assign_source_17 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 21; goto try_except_handler_3; } UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_namespaces, tmp_assign_source_17 ); } { PyObject *tmp_assign_source_18; PyObject *tmp_import_name_from_8; CHECK_OBJECT( tmp_import_from_3__module ); tmp_import_name_from_8 = tmp_import_from_3__module; tmp_assign_source_18 = IMPORT_NAME( tmp_import_name_from_8, const_str_plain_prefixes ); if ( tmp_assign_source_18 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 21; goto try_except_handler_3; } UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_prefixes, tmp_assign_source_18 ); } goto try_end_3; // Exception handler code: try_except_handler_3:; exception_keeper_type_3 = exception_type; exception_keeper_value_3 = exception_value; exception_keeper_tb_3 = exception_tb; exception_keeper_lineno_3 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { CHECK_OBJECT( (PyObject *)tmp_import_from_3__module ); Py_DECREF( tmp_import_from_3__module ); tmp_import_from_3__module = NULL; } { // Re-raise. exception_type = exception_keeper_type_3; exception_value = exception_keeper_value_3; exception_tb = exception_keeper_tb_3; exception_lineno = exception_keeper_lineno_3; goto frame_exception_exit_1; } // End of try: try_end_3:; } { CHECK_OBJECT( (PyObject *)tmp_import_from_3__module ); Py_DECREF( tmp_import_from_3__module ); tmp_import_from_3__module = NULL; } { PyObject *tmp_assign_source_19; PyObject *tmp_name_name_7; PyObject *tmp_globals_name_7; PyObject *tmp_locals_name_7; PyObject *tmp_fromlist_name_7; PyObject *tmp_level_name_7; tmp_name_name_7 = const_str_digest_a694a1497725bd5d49805e1c282892b9; tmp_globals_name_7 = (PyObject *)moduledict_bs4$builder$_html5lib; tmp_locals_name_7 = Py_None; tmp_fromlist_name_7 = const_tuple_a041f5f12c26f30b3795e6ba3f81c7fd_tuple; tmp_level_name_7 = const_int_0; frame_190956253b9a419daac23f67668d6fc5->m_frame.f_lineno = 25; tmp_assign_source_19 = IMPORT_MODULE5( tmp_name_name_7, tmp_globals_name_7, tmp_locals_name_7, tmp_fromlist_name_7, tmp_level_name_7 ); if ( tmp_assign_source_19 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 25; goto frame_exception_exit_1; } assert( tmp_import_from_4__module == NULL ); tmp_import_from_4__module = tmp_assign_source_19; } { // Tried code: { PyObject *tmp_assign_source_20; PyObject *tmp_import_name_from_9; CHECK_OBJECT( tmp_import_from_4__module ); tmp_import_name_from_9 = tmp_import_from_4__module; tmp_assign_source_20 = IMPORT_NAME( tmp_import_name_from_9, const_str_plain_Comment ); if ( tmp_assign_source_20 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 25; goto try_except_handler_4; } UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_Comment, tmp_assign_source_20 ); } { PyObject *tmp_assign_source_21; PyObject *tmp_import_name_from_10; CHECK_OBJECT( tmp_import_from_4__module ); tmp_import_name_from_10 = tmp_import_from_4__module; tmp_assign_source_21 = IMPORT_NAME( tmp_import_name_from_10, const_str_plain_Doctype ); if ( tmp_assign_source_21 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 25; goto try_except_handler_4; } UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_Doctype, tmp_assign_source_21 ); } { PyObject *tmp_assign_source_22; PyObject *tmp_import_name_from_11; CHECK_OBJECT( tmp_import_from_4__module ); tmp_import_name_from_11 = tmp_import_from_4__module; tmp_assign_source_22 = IMPORT_NAME( tmp_import_name_from_11, const_str_plain_NavigableString ); if ( tmp_assign_source_22 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 25; goto try_except_handler_4; } UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_NavigableString, tmp_assign_source_22 ); } { PyObject *tmp_assign_source_23; PyObject *tmp_import_name_from_12; CHECK_OBJECT( tmp_import_from_4__module ); tmp_import_name_from_12 = tmp_import_from_4__module; tmp_assign_source_23 = IMPORT_NAME( tmp_import_name_from_12, const_str_plain_Tag ); if ( tmp_assign_source_23 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 25; goto try_except_handler_4; } UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_Tag, tmp_assign_source_23 ); } goto try_end_4; // Exception handler code: try_except_handler_4:; exception_keeper_type_4 = exception_type; exception_keeper_value_4 = exception_value; exception_keeper_tb_4 = exception_tb; exception_keeper_lineno_4 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { CHECK_OBJECT( (PyObject *)tmp_import_from_4__module ); Py_DECREF( tmp_import_from_4__module ); tmp_import_from_4__module = NULL; } { // Re-raise. exception_type = exception_keeper_type_4; exception_value = exception_keeper_value_4; exception_tb = exception_keeper_tb_4; exception_lineno = exception_keeper_lineno_4; goto frame_exception_exit_1; } // End of try: try_end_4:; } { CHECK_OBJECT( (PyObject *)tmp_import_from_4__module ); Py_DECREF( tmp_import_from_4__module ); tmp_import_from_4__module = NULL; } { // Tried code: { PyObject *tmp_assign_source_24; PyObject *tmp_import_name_from_13; PyObject *tmp_name_name_8; PyObject *tmp_globals_name_8; PyObject *tmp_locals_name_8; PyObject *tmp_fromlist_name_8; PyObject *tmp_level_name_8; tmp_name_name_8 = const_str_digest_0e7af32cca32356d9b45a72fd6bf1257; tmp_globals_name_8 = (PyObject *)moduledict_bs4$builder$_html5lib; tmp_locals_name_8 = Py_None; tmp_fromlist_name_8 = const_tuple_str_plain__base_tuple; tmp_level_name_8 = const_int_0; frame_190956253b9a419daac23f67668d6fc5->m_frame.f_lineno = 34; tmp_import_name_from_13 = IMPORT_MODULE5( tmp_name_name_8, tmp_globals_name_8, tmp_locals_name_8, tmp_fromlist_name_8, tmp_level_name_8 ); if ( tmp_import_name_from_13 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 34; goto try_except_handler_5; } tmp_assign_source_24 = IMPORT_NAME( tmp_import_name_from_13, const_str_plain__base ); Py_DECREF( tmp_import_name_from_13 ); if ( tmp_assign_source_24 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 34; goto try_except_handler_5; } UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_treebuilder_base, tmp_assign_source_24 ); } { PyObject *tmp_assign_source_25; tmp_assign_source_25 = Py_False; UPDATE_STRING_DICT0( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_new_html5lib, tmp_assign_source_25 ); } goto try_end_5; // Exception handler code: try_except_handler_5:; exception_keeper_type_5 = exception_type; exception_keeper_value_5 = exception_value; exception_keeper_tb_5 = exception_tb; exception_keeper_lineno_5 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { // Preserve existing published exception. exception_preserved_type_1 = EXC_TYPE(PyThreadState_GET()); Py_XINCREF( exception_preserved_type_1 ); exception_preserved_value_1 = EXC_VALUE(PyThreadState_GET()); Py_XINCREF( exception_preserved_value_1 ); exception_preserved_tb_1 = (PyTracebackObject *)EXC_TRACEBACK(PyThreadState_GET()); Py_XINCREF( exception_preserved_tb_1 ); } { if ( exception_keeper_tb_5 == NULL ) { exception_keeper_tb_5 = MAKE_TRACEBACK( frame_190956253b9a419daac23f67668d6fc5, exception_keeper_lineno_5 ); } else if ( exception_keeper_lineno_5 != 0 ) { exception_keeper_tb_5 = ADD_TRACEBACK( exception_keeper_tb_5, frame_190956253b9a419daac23f67668d6fc5, exception_keeper_lineno_5 ); } NORMALIZE_EXCEPTION( &exception_keeper_type_5, &exception_keeper_value_5, &exception_keeper_tb_5 ); PyException_SetTraceback( exception_keeper_value_5, (PyObject *)exception_keeper_tb_5 ); PUBLISH_EXCEPTION( &exception_keeper_type_5, &exception_keeper_value_5, &exception_keeper_tb_5 ); } { // Tried code: { nuitka_bool tmp_condition_result_1; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; tmp_compexpr_left_1 = EXC_TYPE(PyThreadState_GET()); tmp_compexpr_right_1 = PyExc_ImportError; tmp_res = EXCEPTION_MATCH_BOOL( tmp_compexpr_left_1, tmp_compexpr_right_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 36; goto try_except_handler_6; } tmp_condition_result_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { PyObject *tmp_assign_source_26; tmp_assign_source_26 = EXC_VALUE(PyThreadState_GET()); UPDATE_STRING_DICT0( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_e, tmp_assign_source_26 ); } { // Tried code: { PyObject *tmp_assign_source_27; PyObject *tmp_import_name_from_14; PyObject *tmp_name_name_9; PyObject *tmp_globals_name_9; PyObject *tmp_locals_name_9; PyObject *tmp_fromlist_name_9; PyObject *tmp_level_name_9; tmp_name_name_9 = const_str_digest_0e7af32cca32356d9b45a72fd6bf1257; tmp_globals_name_9 = (PyObject *)moduledict_bs4$builder$_html5lib; tmp_locals_name_9 = Py_None; tmp_fromlist_name_9 = const_tuple_str_plain_base_tuple; tmp_level_name_9 = const_int_0; frame_190956253b9a419daac23f67668d6fc5->m_frame.f_lineno = 38; tmp_import_name_from_14 = IMPORT_MODULE5( tmp_name_name_9, tmp_globals_name_9, tmp_locals_name_9, tmp_fromlist_name_9, tmp_level_name_9 ); if ( tmp_import_name_from_14 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 38; goto try_except_handler_7; } tmp_assign_source_27 = IMPORT_NAME( tmp_import_name_from_14, const_str_plain_base ); Py_DECREF( tmp_import_name_from_14 ); if ( tmp_assign_source_27 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 38; goto try_except_handler_7; } UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_treebuilder_base, tmp_assign_source_27 ); } goto try_end_6; // Exception handler code: try_except_handler_7:; exception_keeper_type_6 = exception_type; exception_keeper_value_6 = exception_value; exception_keeper_tb_6 = exception_tb; exception_keeper_lineno_6 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { tmp_res = PyDict_DelItem( (PyObject *)moduledict_bs4$builder$_html5lib, const_str_plain_e ); if ( tmp_res == -1 ) CLEAR_ERROR_OCCURRED(); } { // Re-raise. exception_type = exception_keeper_type_6; exception_value = exception_keeper_value_6; exception_tb = exception_keeper_tb_6; exception_lineno = exception_keeper_lineno_6; goto try_except_handler_6; } // End of try: try_end_6:; } { PyObject *tmp_assign_source_28; tmp_assign_source_28 = Py_True; UPDATE_STRING_DICT0( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_new_html5lib, tmp_assign_source_28 ); } { tmp_res = PyDict_DelItem( (PyObject *)moduledict_bs4$builder$_html5lib, const_str_plain_e ); if ( tmp_res == -1 ) CLEAR_ERROR_OCCURRED(); } goto branch_end_1; branch_no_1:; { tmp_result = RERAISE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); if (unlikely( tmp_result == false )) { exception_lineno = 32; } if (exception_tb && exception_tb->tb_frame == &frame_190956253b9a419daac23f67668d6fc5->m_frame) frame_190956253b9a419daac23f67668d6fc5->m_frame.f_lineno = exception_tb->tb_lineno; goto try_except_handler_6; } branch_end_1:; } goto try_end_7; // Exception handler code: try_except_handler_6:; exception_keeper_type_7 = exception_type; exception_keeper_value_7 = exception_value; exception_keeper_tb_7 = exception_tb; exception_keeper_lineno_7 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { // Restore previous exception. SET_CURRENT_EXCEPTION( exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1 ); } { // Re-raise. exception_type = exception_keeper_type_7; exception_value = exception_keeper_value_7; exception_tb = exception_keeper_tb_7; exception_lineno = exception_keeper_lineno_7; goto frame_exception_exit_1; } // End of try: try_end_7:; } { // Restore previous exception. SET_CURRENT_EXCEPTION( exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1 ); } goto try_end_5; // exception handler codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib ); return MOD_RETURN_VALUE( NULL ); // End of try: try_end_5:; } { // Tried code: { PyObject *tmp_assign_source_29; PyObject *tmp_tuple_element_1; PyObject *tmp_mvar_value_1; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_HTMLTreeBuilder ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_HTMLTreeBuilder ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "HTMLTreeBuilder" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 41; goto try_except_handler_8; } tmp_tuple_element_1 = tmp_mvar_value_1; tmp_assign_source_29 = PyTuple_New( 1 ); Py_INCREF( tmp_tuple_element_1 ); PyTuple_SET_ITEM( tmp_assign_source_29, 0, tmp_tuple_element_1 ); assert( tmp_class_creation_1__bases_orig == NULL ); tmp_class_creation_1__bases_orig = tmp_assign_source_29; } { PyObject *tmp_assign_source_30; PyObject *tmp_dircall_arg1_1; CHECK_OBJECT( tmp_class_creation_1__bases_orig ); tmp_dircall_arg1_1 = tmp_class_creation_1__bases_orig; Py_INCREF( tmp_dircall_arg1_1 ); { PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; tmp_assign_source_30 = impl___internal__$$$function_1__mro_entries_conversion( dir_call_args ); } if ( tmp_assign_source_30 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 41; goto try_except_handler_8; } assert( tmp_class_creation_1__bases == NULL ); tmp_class_creation_1__bases = tmp_assign_source_30; } { PyObject *tmp_assign_source_31; tmp_assign_source_31 = PyDict_New(); assert( tmp_class_creation_1__class_decl_dict == NULL ); tmp_class_creation_1__class_decl_dict = tmp_assign_source_31; } { PyObject *tmp_assign_source_32; PyObject *tmp_metaclass_name_1; nuitka_bool tmp_condition_result_2; PyObject *tmp_key_name_1; PyObject *tmp_dict_name_1; PyObject *tmp_dict_name_2; PyObject *tmp_key_name_2; nuitka_bool tmp_condition_result_3; int tmp_truth_name_1; PyObject *tmp_type_arg_1; PyObject *tmp_subscribed_name_1; PyObject *tmp_subscript_name_1; PyObject *tmp_bases_name_1; tmp_key_name_1 = const_str_plain_metaclass; CHECK_OBJECT( tmp_class_creation_1__class_decl_dict ); tmp_dict_name_1 = tmp_class_creation_1__class_decl_dict; tmp_res = PyDict_Contains( tmp_dict_name_1, tmp_key_name_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 41; goto try_except_handler_8; } tmp_condition_result_2 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE ) { goto condexpr_true_1; } else { goto condexpr_false_1; } condexpr_true_1:; CHECK_OBJECT( tmp_class_creation_1__class_decl_dict ); tmp_dict_name_2 = tmp_class_creation_1__class_decl_dict; tmp_key_name_2 = const_str_plain_metaclass; tmp_metaclass_name_1 = DICT_GET_ITEM( tmp_dict_name_2, tmp_key_name_2 ); if ( tmp_metaclass_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 41; goto try_except_handler_8; } goto condexpr_end_1; condexpr_false_1:; CHECK_OBJECT( tmp_class_creation_1__bases ); tmp_truth_name_1 = CHECK_IF_TRUE( tmp_class_creation_1__bases ); if ( tmp_truth_name_1 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 41; goto try_except_handler_8; } tmp_condition_result_3 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_3 == NUITKA_BOOL_TRUE ) { goto condexpr_true_2; } else { goto condexpr_false_2; } condexpr_true_2:; CHECK_OBJECT( tmp_class_creation_1__bases ); tmp_subscribed_name_1 = tmp_class_creation_1__bases; tmp_subscript_name_1 = const_int_0; tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_1, tmp_subscript_name_1, 0 ); if ( tmp_type_arg_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 41; goto try_except_handler_8; } tmp_metaclass_name_1 = BUILTIN_TYPE1( tmp_type_arg_1 ); Py_DECREF( tmp_type_arg_1 ); if ( tmp_metaclass_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 41; goto try_except_handler_8; } goto condexpr_end_2; condexpr_false_2:; tmp_metaclass_name_1 = (PyObject *)&PyType_Type; Py_INCREF( tmp_metaclass_name_1 ); condexpr_end_2:; condexpr_end_1:; CHECK_OBJECT( tmp_class_creation_1__bases ); tmp_bases_name_1 = tmp_class_creation_1__bases; tmp_assign_source_32 = SELECT_METACLASS( tmp_metaclass_name_1, tmp_bases_name_1 ); Py_DECREF( tmp_metaclass_name_1 ); if ( tmp_assign_source_32 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 41; goto try_except_handler_8; } assert( tmp_class_creation_1__metaclass == NULL ); tmp_class_creation_1__metaclass = tmp_assign_source_32; } { nuitka_bool tmp_condition_result_4; PyObject *tmp_key_name_3; PyObject *tmp_dict_name_3; tmp_key_name_3 = const_str_plain_metaclass; CHECK_OBJECT( tmp_class_creation_1__class_decl_dict ); tmp_dict_name_3 = tmp_class_creation_1__class_decl_dict; tmp_res = PyDict_Contains( tmp_dict_name_3, tmp_key_name_3 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 41; goto try_except_handler_8; } tmp_condition_result_4 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_4 == NUITKA_BOOL_TRUE ) { goto branch_yes_2; } else { goto branch_no_2; } branch_yes_2:; { CHECK_OBJECT( tmp_class_creation_1__class_decl_dict ); tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; tmp_dictdel_key = const_str_plain_metaclass; tmp_result = DICT_REMOVE_ITEM( tmp_dictdel_dict, tmp_dictdel_key ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 41; goto try_except_handler_8; } } branch_no_2:; } { nuitka_bool tmp_condition_result_5; PyObject *tmp_source_name_1; CHECK_OBJECT( tmp_class_creation_1__metaclass ); tmp_source_name_1 = tmp_class_creation_1__metaclass; tmp_res = PyObject_HasAttr( tmp_source_name_1, const_str_plain___prepare__ ); tmp_condition_result_5 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_5 == NUITKA_BOOL_TRUE ) { goto branch_yes_3; } else { goto branch_no_3; } branch_yes_3:; { PyObject *tmp_assign_source_33; PyObject *tmp_called_name_1; PyObject *tmp_source_name_2; PyObject *tmp_args_name_1; PyObject *tmp_tuple_element_2; PyObject *tmp_kw_name_1; CHECK_OBJECT( tmp_class_creation_1__metaclass ); tmp_source_name_2 = tmp_class_creation_1__metaclass; tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain___prepare__ ); if ( tmp_called_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 41; goto try_except_handler_8; } tmp_tuple_element_2 = const_str_plain_HTML5TreeBuilder; tmp_args_name_1 = PyTuple_New( 2 ); Py_INCREF( tmp_tuple_element_2 ); PyTuple_SET_ITEM( tmp_args_name_1, 0, tmp_tuple_element_2 ); CHECK_OBJECT( tmp_class_creation_1__bases ); tmp_tuple_element_2 = tmp_class_creation_1__bases; Py_INCREF( tmp_tuple_element_2 ); PyTuple_SET_ITEM( tmp_args_name_1, 1, tmp_tuple_element_2 ); CHECK_OBJECT( tmp_class_creation_1__class_decl_dict ); tmp_kw_name_1 = tmp_class_creation_1__class_decl_dict; frame_190956253b9a419daac23f67668d6fc5->m_frame.f_lineno = 41; tmp_assign_source_33 = CALL_FUNCTION( tmp_called_name_1, tmp_args_name_1, tmp_kw_name_1 ); Py_DECREF( tmp_called_name_1 ); Py_DECREF( tmp_args_name_1 ); if ( tmp_assign_source_33 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 41; goto try_except_handler_8; } assert( tmp_class_creation_1__prepared == NULL ); tmp_class_creation_1__prepared = tmp_assign_source_33; } { nuitka_bool tmp_condition_result_6; PyObject *tmp_operand_name_1; PyObject *tmp_source_name_3; CHECK_OBJECT( tmp_class_creation_1__prepared ); tmp_source_name_3 = tmp_class_creation_1__prepared; tmp_res = PyObject_HasAttr( tmp_source_name_3, const_str_plain___getitem__ ); tmp_operand_name_1 = ( tmp_res != 0 ) ? Py_True : Py_False; tmp_res = CHECK_IF_TRUE( tmp_operand_name_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 41; goto try_except_handler_8; } tmp_condition_result_6 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_6 == NUITKA_BOOL_TRUE ) { goto branch_yes_4; } else { goto branch_no_4; } branch_yes_4:; { PyObject *tmp_raise_type_1; PyObject *tmp_raise_value_1; PyObject *tmp_left_name_1; PyObject *tmp_right_name_1; PyObject *tmp_tuple_element_3; PyObject *tmp_getattr_target_1; PyObject *tmp_getattr_attr_1; PyObject *tmp_getattr_default_1; PyObject *tmp_source_name_4; PyObject *tmp_type_arg_2; tmp_raise_type_1 = PyExc_TypeError; tmp_left_name_1 = const_str_digest_75fd71b1edada749c2ef7ac810062295; CHECK_OBJECT( tmp_class_creation_1__metaclass ); tmp_getattr_target_1 = tmp_class_creation_1__metaclass; tmp_getattr_attr_1 = const_str_plain___name__; tmp_getattr_default_1 = const_str_angle_metaclass; tmp_tuple_element_3 = BUILTIN_GETATTR( tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1 ); if ( tmp_tuple_element_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 41; goto try_except_handler_8; } tmp_right_name_1 = PyTuple_New( 2 ); PyTuple_SET_ITEM( tmp_right_name_1, 0, tmp_tuple_element_3 ); CHECK_OBJECT( tmp_class_creation_1__prepared ); tmp_type_arg_2 = tmp_class_creation_1__prepared; tmp_source_name_4 = BUILTIN_TYPE1( tmp_type_arg_2 ); assert( !(tmp_source_name_4 == NULL) ); tmp_tuple_element_3 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain___name__ ); Py_DECREF( tmp_source_name_4 ); if ( tmp_tuple_element_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_right_name_1 ); exception_lineno = 41; goto try_except_handler_8; } PyTuple_SET_ITEM( tmp_right_name_1, 1, tmp_tuple_element_3 ); tmp_raise_value_1 = BINARY_OPERATION_REMAINDER( tmp_left_name_1, tmp_right_name_1 ); Py_DECREF( tmp_right_name_1 ); if ( tmp_raise_value_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 41; goto try_except_handler_8; } exception_type = tmp_raise_type_1; Py_INCREF( tmp_raise_type_1 ); exception_value = tmp_raise_value_1; exception_lineno = 41; RAISE_EXCEPTION_IMPLICIT( &exception_type, &exception_value, &exception_tb ); goto try_except_handler_8; } branch_no_4:; } goto branch_end_3; branch_no_3:; { PyObject *tmp_assign_source_34; tmp_assign_source_34 = PyDict_New(); assert( tmp_class_creation_1__prepared == NULL ); tmp_class_creation_1__prepared = tmp_assign_source_34; } branch_end_3:; } { PyObject *tmp_assign_source_35; { PyObject *tmp_set_locals_1; CHECK_OBJECT( tmp_class_creation_1__prepared ); tmp_set_locals_1 = tmp_class_creation_1__prepared; locals_bs4$builder$_html5lib_41 = tmp_set_locals_1; Py_INCREF( tmp_set_locals_1 ); } { // Tried code: { // Tried code: { tmp_dictset_value = const_str_digest_b8f5ff66404d2dfd3fa72280ec60871e; tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_41, const_str_plain___module__, tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 41; goto try_except_handler_10; } } { tmp_dictset_value = const_str_digest_90742a7c87e23858f3d9b3b8e1c55b84; tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_41, const_str_plain___doc__, tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 41; goto try_except_handler_10; } } { tmp_dictset_value = const_str_plain_HTML5TreeBuilder; tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_41, const_str_plain___qualname__, tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 41; goto try_except_handler_10; } } MAKE_OR_REUSE_FRAME( cache_frame_02ae3e7b4e938f48c992ad550877bdbb_2, codeobj_02ae3e7b4e938f48c992ad550877bdbb, module_bs4$builder$_html5lib, sizeof(void *) ); frame_02ae3e7b4e938f48c992ad550877bdbb_2 = cache_frame_02ae3e7b4e938f48c992ad550877bdbb_2; // Push the new frame as the currently active one. pushFrameStack( frame_02ae3e7b4e938f48c992ad550877bdbb_2 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_02ae3e7b4e938f48c992ad550877bdbb_2 ) == 2 ); // Frame stack // Framed code: { tmp_dictset_value = const_str_plain_html5lib; tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_41, const_str_plain_NAME, tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 44; type_description_2 = "o"; goto frame_exception_exit_2; } } { PyObject *tmp_list_element_1; PyObject *tmp_mvar_value_2; PyObject *tmp_mvar_value_3; PyObject *tmp_mvar_value_4; tmp_list_element_1 = PyObject_GetItem( locals_bs4$builder$_html5lib_41, const_str_plain_NAME ); if ( tmp_list_element_1 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "NAME" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 46; type_description_2 = "o"; goto frame_exception_exit_2; } if ( tmp_list_element_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 46; type_description_2 = "o"; goto frame_exception_exit_2; } tmp_dictset_value = PyList_New( 4 ); PyList_SET_ITEM( tmp_dictset_value, 0, tmp_list_element_1 ); tmp_list_element_1 = PyObject_GetItem( locals_bs4$builder$_html5lib_41, const_str_plain_PERMISSIVE ); if ( tmp_list_element_1 == NULL ) { if ( CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() ) { tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_PERMISSIVE ); if (unlikely( tmp_mvar_value_2 == NULL )) { tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_PERMISSIVE ); } if ( tmp_mvar_value_2 == NULL ) { Py_DECREF( tmp_dictset_value ); exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "PERMISSIVE" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 46; type_description_2 = "o"; goto frame_exception_exit_2; } tmp_list_element_1 = tmp_mvar_value_2; Py_INCREF( tmp_list_element_1 ); } } PyList_SET_ITEM( tmp_dictset_value, 1, tmp_list_element_1 ); tmp_list_element_1 = PyObject_GetItem( locals_bs4$builder$_html5lib_41, const_str_plain_HTML_5 ); if ( tmp_list_element_1 == NULL ) { if ( CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() ) { tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_HTML_5 ); if (unlikely( tmp_mvar_value_3 == NULL )) { tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_HTML_5 ); } if ( tmp_mvar_value_3 == NULL ) { Py_DECREF( tmp_dictset_value ); exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "HTML_5" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 46; type_description_2 = "o"; goto frame_exception_exit_2; } tmp_list_element_1 = tmp_mvar_value_3; Py_INCREF( tmp_list_element_1 ); } } PyList_SET_ITEM( tmp_dictset_value, 2, tmp_list_element_1 ); tmp_list_element_1 = PyObject_GetItem( locals_bs4$builder$_html5lib_41, const_str_plain_HTML ); if ( tmp_list_element_1 == NULL ) { if ( CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() ) { tmp_mvar_value_4 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_HTML ); if (unlikely( tmp_mvar_value_4 == NULL )) { tmp_mvar_value_4 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_HTML ); } if ( tmp_mvar_value_4 == NULL ) { Py_DECREF( tmp_dictset_value ); exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "HTML" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 46; type_description_2 = "o"; goto frame_exception_exit_2; } tmp_list_element_1 = tmp_mvar_value_4; Py_INCREF( tmp_list_element_1 ); } } PyList_SET_ITEM( tmp_dictset_value, 3, tmp_list_element_1 ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_41, const_str_plain_features, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 46; type_description_2 = "o"; goto frame_exception_exit_2; } } { PyObject *tmp_defaults_1; tmp_defaults_1 = const_tuple_none_none_tuple; Py_INCREF( tmp_defaults_1 ); tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_1_prepare_markup( tmp_defaults_1 ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_41, const_str_plain_prepare_markup, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 48; type_description_2 = "o"; goto frame_exception_exit_2; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_2_feed( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_41, const_str_plain_feed, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 61; type_description_2 = "o"; goto frame_exception_exit_2; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_3_create_treebuilder( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_41, const_str_plain_create_treebuilder, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 88; type_description_2 = "o"; goto frame_exception_exit_2; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_4_test_fragment_to_document( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_41, const_str_plain_test_fragment_to_document, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 93; type_description_2 = "o"; goto frame_exception_exit_2; } } #if 0 RESTORE_FRAME_EXCEPTION( frame_02ae3e7b4e938f48c992ad550877bdbb_2 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_exception_exit_2:; #if 0 RESTORE_FRAME_EXCEPTION( frame_02ae3e7b4e938f48c992ad550877bdbb_2 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_02ae3e7b4e938f48c992ad550877bdbb_2, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_02ae3e7b4e938f48c992ad550877bdbb_2->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_02ae3e7b4e938f48c992ad550877bdbb_2, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_02ae3e7b4e938f48c992ad550877bdbb_2, type_description_2, outline_0_var___class__ ); // Release cached frame. if ( frame_02ae3e7b4e938f48c992ad550877bdbb_2 == cache_frame_02ae3e7b4e938f48c992ad550877bdbb_2 ) { Py_DECREF( frame_02ae3e7b4e938f48c992ad550877bdbb_2 ); } cache_frame_02ae3e7b4e938f48c992ad550877bdbb_2 = NULL; assertFrameObject( frame_02ae3e7b4e938f48c992ad550877bdbb_2 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto nested_frame_exit_1; frame_no_exception_1:; goto skip_nested_handling_1; nested_frame_exit_1:; goto try_except_handler_10; skip_nested_handling_1:; { nuitka_bool tmp_condition_result_7; PyObject *tmp_compexpr_left_2; PyObject *tmp_compexpr_right_2; CHECK_OBJECT( tmp_class_creation_1__bases ); tmp_compexpr_left_2 = tmp_class_creation_1__bases; CHECK_OBJECT( tmp_class_creation_1__bases_orig ); tmp_compexpr_right_2 = tmp_class_creation_1__bases_orig; tmp_res = RICH_COMPARE_BOOL_NE( tmp_compexpr_left_2, tmp_compexpr_right_2 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 41; goto try_except_handler_10; } tmp_condition_result_7 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_7 == NUITKA_BOOL_TRUE ) { goto branch_yes_5; } else { goto branch_no_5; } branch_yes_5:; { CHECK_OBJECT( tmp_class_creation_1__bases_orig ); tmp_dictset_value = tmp_class_creation_1__bases_orig; tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_41, const_str_plain___orig_bases__, tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 41; goto try_except_handler_10; } } branch_no_5:; } { PyObject *tmp_assign_source_36; PyObject *tmp_called_name_2; PyObject *tmp_args_name_2; PyObject *tmp_tuple_element_4; PyObject *tmp_kw_name_2; CHECK_OBJECT( tmp_class_creation_1__metaclass ); tmp_called_name_2 = tmp_class_creation_1__metaclass; tmp_tuple_element_4 = const_str_plain_HTML5TreeBuilder; tmp_args_name_2 = PyTuple_New( 3 ); Py_INCREF( tmp_tuple_element_4 ); PyTuple_SET_ITEM( tmp_args_name_2, 0, tmp_tuple_element_4 ); CHECK_OBJECT( tmp_class_creation_1__bases ); tmp_tuple_element_4 = tmp_class_creation_1__bases; Py_INCREF( tmp_tuple_element_4 ); PyTuple_SET_ITEM( tmp_args_name_2, 1, tmp_tuple_element_4 ); tmp_tuple_element_4 = locals_bs4$builder$_html5lib_41; Py_INCREF( tmp_tuple_element_4 ); PyTuple_SET_ITEM( tmp_args_name_2, 2, tmp_tuple_element_4 ); CHECK_OBJECT( tmp_class_creation_1__class_decl_dict ); tmp_kw_name_2 = tmp_class_creation_1__class_decl_dict; frame_190956253b9a419daac23f67668d6fc5->m_frame.f_lineno = 41; tmp_assign_source_36 = CALL_FUNCTION( tmp_called_name_2, tmp_args_name_2, tmp_kw_name_2 ); Py_DECREF( tmp_args_name_2 ); if ( tmp_assign_source_36 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 41; goto try_except_handler_10; } assert( outline_0_var___class__ == NULL ); outline_0_var___class__ = tmp_assign_source_36; } { CHECK_OBJECT( outline_0_var___class__ ); tmp_assign_source_35 = outline_0_var___class__; Py_INCREF( tmp_assign_source_35 ); goto try_return_handler_10; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib ); return MOD_RETURN_VALUE( NULL ); // Return handler code: try_return_handler_10:; { Py_DECREF( locals_bs4$builder$_html5lib_41 ); locals_bs4$builder$_html5lib_41 = NULL; } { goto try_return_handler_9; } // Exception handler code: try_except_handler_10:; exception_keeper_type_8 = exception_type; exception_keeper_value_8 = exception_value; exception_keeper_tb_8 = exception_tb; exception_keeper_lineno_8 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_DECREF( locals_bs4$builder$_html5lib_41 ); locals_bs4$builder$_html5lib_41 = NULL; } { // Re-raise. exception_type = exception_keeper_type_8; exception_value = exception_keeper_value_8; exception_tb = exception_keeper_tb_8; exception_lineno = exception_keeper_lineno_8; goto try_except_handler_9; } // End of try: } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib ); return MOD_RETURN_VALUE( NULL ); // Return handler code: try_return_handler_9:; { CHECK_OBJECT( (PyObject *)outline_0_var___class__ ); Py_DECREF( outline_0_var___class__ ); outline_0_var___class__ = NULL; } { goto outline_result_1; } // Exception handler code: try_except_handler_9:; exception_keeper_type_9 = exception_type; exception_keeper_value_9 = exception_value; exception_keeper_tb_9 = exception_tb; exception_keeper_lineno_9 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { // Re-raise. exception_type = exception_keeper_type_9; exception_value = exception_keeper_value_9; exception_tb = exception_keeper_tb_9; exception_lineno = exception_keeper_lineno_9; goto outline_exception_1; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib ); return MOD_RETURN_VALUE( NULL ); outline_exception_1:; exception_lineno = 41; goto try_except_handler_8; outline_result_1:; UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_HTML5TreeBuilder, tmp_assign_source_35 ); } goto try_end_8; // Exception handler code: try_except_handler_8:; exception_keeper_type_10 = exception_type; exception_keeper_value_10 = exception_value; exception_keeper_tb_10 = exception_tb; exception_keeper_lineno_10 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( tmp_class_creation_1__bases ); tmp_class_creation_1__bases = NULL; } { Py_XDECREF( tmp_class_creation_1__class_decl_dict ); tmp_class_creation_1__class_decl_dict = NULL; } { Py_XDECREF( tmp_class_creation_1__metaclass ); tmp_class_creation_1__metaclass = NULL; } { Py_XDECREF( tmp_class_creation_1__prepared ); tmp_class_creation_1__prepared = NULL; } { // Re-raise. exception_type = exception_keeper_type_10; exception_value = exception_keeper_value_10; exception_tb = exception_keeper_tb_10; exception_lineno = exception_keeper_lineno_10; goto frame_exception_exit_1; } // End of try: try_end_8:; } { CHECK_OBJECT( (PyObject *)tmp_class_creation_1__bases ); Py_DECREF( tmp_class_creation_1__bases ); tmp_class_creation_1__bases = NULL; } { CHECK_OBJECT( (PyObject *)tmp_class_creation_1__class_decl_dict ); Py_DECREF( tmp_class_creation_1__class_decl_dict ); tmp_class_creation_1__class_decl_dict = NULL; } { CHECK_OBJECT( (PyObject *)tmp_class_creation_1__metaclass ); Py_DECREF( tmp_class_creation_1__metaclass ); tmp_class_creation_1__metaclass = NULL; } { CHECK_OBJECT( (PyObject *)tmp_class_creation_1__prepared ); Py_DECREF( tmp_class_creation_1__prepared ); tmp_class_creation_1__prepared = NULL; } { // Tried code: { PyObject *tmp_assign_source_37; PyObject *tmp_tuple_element_5; PyObject *tmp_source_name_5; PyObject *tmp_mvar_value_5; tmp_mvar_value_5 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_treebuilder_base ); if (unlikely( tmp_mvar_value_5 == NULL )) { tmp_mvar_value_5 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_treebuilder_base ); } if ( tmp_mvar_value_5 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "treebuilder_base" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 98; goto try_except_handler_11; } tmp_source_name_5 = tmp_mvar_value_5; tmp_tuple_element_5 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain_TreeBuilder ); if ( tmp_tuple_element_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 98; goto try_except_handler_11; } tmp_assign_source_37 = PyTuple_New( 1 ); PyTuple_SET_ITEM( tmp_assign_source_37, 0, tmp_tuple_element_5 ); assert( tmp_class_creation_2__bases_orig == NULL ); tmp_class_creation_2__bases_orig = tmp_assign_source_37; } { PyObject *tmp_assign_source_38; PyObject *tmp_dircall_arg1_2; CHECK_OBJECT( tmp_class_creation_2__bases_orig ); tmp_dircall_arg1_2 = tmp_class_creation_2__bases_orig; Py_INCREF( tmp_dircall_arg1_2 ); { PyObject *dir_call_args[] = {tmp_dircall_arg1_2}; tmp_assign_source_38 = impl___internal__$$$function_1__mro_entries_conversion( dir_call_args ); } if ( tmp_assign_source_38 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 98; goto try_except_handler_11; } assert( tmp_class_creation_2__bases == NULL ); tmp_class_creation_2__bases = tmp_assign_source_38; } { PyObject *tmp_assign_source_39; tmp_assign_source_39 = PyDict_New(); assert( tmp_class_creation_2__class_decl_dict == NULL ); tmp_class_creation_2__class_decl_dict = tmp_assign_source_39; } { PyObject *tmp_assign_source_40; PyObject *tmp_metaclass_name_2; nuitka_bool tmp_condition_result_8; PyObject *tmp_key_name_4; PyObject *tmp_dict_name_4; PyObject *tmp_dict_name_5; PyObject *tmp_key_name_5; nuitka_bool tmp_condition_result_9; int tmp_truth_name_2; PyObject *tmp_type_arg_3; PyObject *tmp_subscribed_name_2; PyObject *tmp_subscript_name_2; PyObject *tmp_bases_name_2; tmp_key_name_4 = const_str_plain_metaclass; CHECK_OBJECT( tmp_class_creation_2__class_decl_dict ); tmp_dict_name_4 = tmp_class_creation_2__class_decl_dict; tmp_res = PyDict_Contains( tmp_dict_name_4, tmp_key_name_4 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 98; goto try_except_handler_11; } tmp_condition_result_8 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_8 == NUITKA_BOOL_TRUE ) { goto condexpr_true_3; } else { goto condexpr_false_3; } condexpr_true_3:; CHECK_OBJECT( tmp_class_creation_2__class_decl_dict ); tmp_dict_name_5 = tmp_class_creation_2__class_decl_dict; tmp_key_name_5 = const_str_plain_metaclass; tmp_metaclass_name_2 = DICT_GET_ITEM( tmp_dict_name_5, tmp_key_name_5 ); if ( tmp_metaclass_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 98; goto try_except_handler_11; } goto condexpr_end_3; condexpr_false_3:; CHECK_OBJECT( tmp_class_creation_2__bases ); tmp_truth_name_2 = CHECK_IF_TRUE( tmp_class_creation_2__bases ); if ( tmp_truth_name_2 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 98; goto try_except_handler_11; } tmp_condition_result_9 = tmp_truth_name_2 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_9 == NUITKA_BOOL_TRUE ) { goto condexpr_true_4; } else { goto condexpr_false_4; } condexpr_true_4:; CHECK_OBJECT( tmp_class_creation_2__bases ); tmp_subscribed_name_2 = tmp_class_creation_2__bases; tmp_subscript_name_2 = const_int_0; tmp_type_arg_3 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_2, tmp_subscript_name_2, 0 ); if ( tmp_type_arg_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 98; goto try_except_handler_11; } tmp_metaclass_name_2 = BUILTIN_TYPE1( tmp_type_arg_3 ); Py_DECREF( tmp_type_arg_3 ); if ( tmp_metaclass_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 98; goto try_except_handler_11; } goto condexpr_end_4; condexpr_false_4:; tmp_metaclass_name_2 = (PyObject *)&PyType_Type; Py_INCREF( tmp_metaclass_name_2 ); condexpr_end_4:; condexpr_end_3:; CHECK_OBJECT( tmp_class_creation_2__bases ); tmp_bases_name_2 = tmp_class_creation_2__bases; tmp_assign_source_40 = SELECT_METACLASS( tmp_metaclass_name_2, tmp_bases_name_2 ); Py_DECREF( tmp_metaclass_name_2 ); if ( tmp_assign_source_40 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 98; goto try_except_handler_11; } assert( tmp_class_creation_2__metaclass == NULL ); tmp_class_creation_2__metaclass = tmp_assign_source_40; } { nuitka_bool tmp_condition_result_10; PyObject *tmp_key_name_6; PyObject *tmp_dict_name_6; tmp_key_name_6 = const_str_plain_metaclass; CHECK_OBJECT( tmp_class_creation_2__class_decl_dict ); tmp_dict_name_6 = tmp_class_creation_2__class_decl_dict; tmp_res = PyDict_Contains( tmp_dict_name_6, tmp_key_name_6 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 98; goto try_except_handler_11; } tmp_condition_result_10 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_10 == NUITKA_BOOL_TRUE ) { goto branch_yes_6; } else { goto branch_no_6; } branch_yes_6:; { CHECK_OBJECT( tmp_class_creation_2__class_decl_dict ); tmp_dictdel_dict = tmp_class_creation_2__class_decl_dict; tmp_dictdel_key = const_str_plain_metaclass; tmp_result = DICT_REMOVE_ITEM( tmp_dictdel_dict, tmp_dictdel_key ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 98; goto try_except_handler_11; } } branch_no_6:; } { nuitka_bool tmp_condition_result_11; PyObject *tmp_source_name_6; CHECK_OBJECT( tmp_class_creation_2__metaclass ); tmp_source_name_6 = tmp_class_creation_2__metaclass; tmp_res = PyObject_HasAttr( tmp_source_name_6, const_str_plain___prepare__ ); tmp_condition_result_11 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_11 == NUITKA_BOOL_TRUE ) { goto branch_yes_7; } else { goto branch_no_7; } branch_yes_7:; { PyObject *tmp_assign_source_41; PyObject *tmp_called_name_3; PyObject *tmp_source_name_7; PyObject *tmp_args_name_3; PyObject *tmp_tuple_element_6; PyObject *tmp_kw_name_3; CHECK_OBJECT( tmp_class_creation_2__metaclass ); tmp_source_name_7 = tmp_class_creation_2__metaclass; tmp_called_name_3 = LOOKUP_ATTRIBUTE( tmp_source_name_7, const_str_plain___prepare__ ); if ( tmp_called_name_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 98; goto try_except_handler_11; } tmp_tuple_element_6 = const_str_plain_TreeBuilderForHtml5lib; tmp_args_name_3 = PyTuple_New( 2 ); Py_INCREF( tmp_tuple_element_6 ); PyTuple_SET_ITEM( tmp_args_name_3, 0, tmp_tuple_element_6 ); CHECK_OBJECT( tmp_class_creation_2__bases ); tmp_tuple_element_6 = tmp_class_creation_2__bases; Py_INCREF( tmp_tuple_element_6 ); PyTuple_SET_ITEM( tmp_args_name_3, 1, tmp_tuple_element_6 ); CHECK_OBJECT( tmp_class_creation_2__class_decl_dict ); tmp_kw_name_3 = tmp_class_creation_2__class_decl_dict; frame_190956253b9a419daac23f67668d6fc5->m_frame.f_lineno = 98; tmp_assign_source_41 = CALL_FUNCTION( tmp_called_name_3, tmp_args_name_3, tmp_kw_name_3 ); Py_DECREF( tmp_called_name_3 ); Py_DECREF( tmp_args_name_3 ); if ( tmp_assign_source_41 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 98; goto try_except_handler_11; } assert( tmp_class_creation_2__prepared == NULL ); tmp_class_creation_2__prepared = tmp_assign_source_41; } { nuitka_bool tmp_condition_result_12; PyObject *tmp_operand_name_2; PyObject *tmp_source_name_8; CHECK_OBJECT( tmp_class_creation_2__prepared ); tmp_source_name_8 = tmp_class_creation_2__prepared; tmp_res = PyObject_HasAttr( tmp_source_name_8, const_str_plain___getitem__ ); tmp_operand_name_2 = ( tmp_res != 0 ) ? Py_True : Py_False; tmp_res = CHECK_IF_TRUE( tmp_operand_name_2 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 98; goto try_except_handler_11; } tmp_condition_result_12 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_12 == NUITKA_BOOL_TRUE ) { goto branch_yes_8; } else { goto branch_no_8; } branch_yes_8:; { PyObject *tmp_raise_type_2; PyObject *tmp_raise_value_2; PyObject *tmp_left_name_2; PyObject *tmp_right_name_2; PyObject *tmp_tuple_element_7; PyObject *tmp_getattr_target_2; PyObject *tmp_getattr_attr_2; PyObject *tmp_getattr_default_2; PyObject *tmp_source_name_9; PyObject *tmp_type_arg_4; tmp_raise_type_2 = PyExc_TypeError; tmp_left_name_2 = const_str_digest_75fd71b1edada749c2ef7ac810062295; CHECK_OBJECT( tmp_class_creation_2__metaclass ); tmp_getattr_target_2 = tmp_class_creation_2__metaclass; tmp_getattr_attr_2 = const_str_plain___name__; tmp_getattr_default_2 = const_str_angle_metaclass; tmp_tuple_element_7 = BUILTIN_GETATTR( tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2 ); if ( tmp_tuple_element_7 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 98; goto try_except_handler_11; } tmp_right_name_2 = PyTuple_New( 2 ); PyTuple_SET_ITEM( tmp_right_name_2, 0, tmp_tuple_element_7 ); CHECK_OBJECT( tmp_class_creation_2__prepared ); tmp_type_arg_4 = tmp_class_creation_2__prepared; tmp_source_name_9 = BUILTIN_TYPE1( tmp_type_arg_4 ); assert( !(tmp_source_name_9 == NULL) ); tmp_tuple_element_7 = LOOKUP_ATTRIBUTE( tmp_source_name_9, const_str_plain___name__ ); Py_DECREF( tmp_source_name_9 ); if ( tmp_tuple_element_7 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_right_name_2 ); exception_lineno = 98; goto try_except_handler_11; } PyTuple_SET_ITEM( tmp_right_name_2, 1, tmp_tuple_element_7 ); tmp_raise_value_2 = BINARY_OPERATION_REMAINDER( tmp_left_name_2, tmp_right_name_2 ); Py_DECREF( tmp_right_name_2 ); if ( tmp_raise_value_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 98; goto try_except_handler_11; } exception_type = tmp_raise_type_2; Py_INCREF( tmp_raise_type_2 ); exception_value = tmp_raise_value_2; exception_lineno = 98; RAISE_EXCEPTION_IMPLICIT( &exception_type, &exception_value, &exception_tb ); goto try_except_handler_11; } branch_no_8:; } goto branch_end_7; branch_no_7:; { PyObject *tmp_assign_source_42; tmp_assign_source_42 = PyDict_New(); assert( tmp_class_creation_2__prepared == NULL ); tmp_class_creation_2__prepared = tmp_assign_source_42; } branch_end_7:; } { PyObject *tmp_assign_source_43; { PyObject *tmp_set_locals_2; CHECK_OBJECT( tmp_class_creation_2__prepared ); tmp_set_locals_2 = tmp_class_creation_2__prepared; locals_bs4$builder$_html5lib_98 = tmp_set_locals_2; Py_INCREF( tmp_set_locals_2 ); } { // Tried code: { // Tried code: { tmp_dictset_value = const_str_digest_b8f5ff66404d2dfd3fa72280ec60871e; tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_98, const_str_plain___module__, tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 98; goto try_except_handler_13; } } { tmp_dictset_value = const_str_plain_TreeBuilderForHtml5lib; tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_98, const_str_plain___qualname__, tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 98; goto try_except_handler_13; } } MAKE_OR_REUSE_FRAME( cache_frame_2e977f5ce6e31317eb86ff7e5bde8e67_3, codeobj_2e977f5ce6e31317eb86ff7e5bde8e67, module_bs4$builder$_html5lib, sizeof(void *) ); frame_2e977f5ce6e31317eb86ff7e5bde8e67_3 = cache_frame_2e977f5ce6e31317eb86ff7e5bde8e67_3; // Push the new frame as the currently active one. pushFrameStack( frame_2e977f5ce6e31317eb86ff7e5bde8e67_3 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_2e977f5ce6e31317eb86ff7e5bde8e67_3 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_defaults_2; tmp_defaults_2 = const_tuple_none_tuple; Py_INCREF( tmp_defaults_2 ); tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_5___init__( tmp_defaults_2 ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_98, const_str_plain___init__, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 100; type_description_2 = "o"; goto frame_exception_exit_3; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_6_documentClass( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_98, const_str_plain_documentClass, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 108; type_description_2 = "o"; goto frame_exception_exit_3; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_7_insertDoctype( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_98, const_str_plain_insertDoctype, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 112; type_description_2 = "o"; goto frame_exception_exit_3; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_8_elementClass( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_98, const_str_plain_elementClass, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 120; type_description_2 = "o"; goto frame_exception_exit_3; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_9_commentClass( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_98, const_str_plain_commentClass, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 124; type_description_2 = "o"; goto frame_exception_exit_3; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_10_fragmentClass( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_98, const_str_plain_fragmentClass, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 127; type_description_2 = "o"; goto frame_exception_exit_3; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_11_appendChild( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_98, const_str_plain_appendChild, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 133; type_description_2 = "o"; goto frame_exception_exit_3; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_12_getDocument( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_98, const_str_plain_getDocument, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 137; type_description_2 = "o"; goto frame_exception_exit_3; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_13_getFragment( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_98, const_str_plain_getFragment, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 140; type_description_2 = "o"; goto frame_exception_exit_3; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_14_testSerializer( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_98, const_str_plain_testSerializer, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 143; type_description_2 = "o"; goto frame_exception_exit_3; } } #if 0 RESTORE_FRAME_EXCEPTION( frame_2e977f5ce6e31317eb86ff7e5bde8e67_3 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_2; frame_exception_exit_3:; #if 0 RESTORE_FRAME_EXCEPTION( frame_2e977f5ce6e31317eb86ff7e5bde8e67_3 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_2e977f5ce6e31317eb86ff7e5bde8e67_3, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_2e977f5ce6e31317eb86ff7e5bde8e67_3->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_2e977f5ce6e31317eb86ff7e5bde8e67_3, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_2e977f5ce6e31317eb86ff7e5bde8e67_3, type_description_2, outline_1_var___class__ ); // Release cached frame. if ( frame_2e977f5ce6e31317eb86ff7e5bde8e67_3 == cache_frame_2e977f5ce6e31317eb86ff7e5bde8e67_3 ) { Py_DECREF( frame_2e977f5ce6e31317eb86ff7e5bde8e67_3 ); } cache_frame_2e977f5ce6e31317eb86ff7e5bde8e67_3 = NULL; assertFrameObject( frame_2e977f5ce6e31317eb86ff7e5bde8e67_3 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto nested_frame_exit_2; frame_no_exception_2:; goto skip_nested_handling_2; nested_frame_exit_2:; goto try_except_handler_13; skip_nested_handling_2:; { nuitka_bool tmp_condition_result_13; PyObject *tmp_compexpr_left_3; PyObject *tmp_compexpr_right_3; CHECK_OBJECT( tmp_class_creation_2__bases ); tmp_compexpr_left_3 = tmp_class_creation_2__bases; CHECK_OBJECT( tmp_class_creation_2__bases_orig ); tmp_compexpr_right_3 = tmp_class_creation_2__bases_orig; tmp_res = RICH_COMPARE_BOOL_NE( tmp_compexpr_left_3, tmp_compexpr_right_3 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 98; goto try_except_handler_13; } tmp_condition_result_13 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_13 == NUITKA_BOOL_TRUE ) { goto branch_yes_9; } else { goto branch_no_9; } branch_yes_9:; { CHECK_OBJECT( tmp_class_creation_2__bases_orig ); tmp_dictset_value = tmp_class_creation_2__bases_orig; tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_98, const_str_plain___orig_bases__, tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 98; goto try_except_handler_13; } } branch_no_9:; } { PyObject *tmp_assign_source_44; PyObject *tmp_called_name_4; PyObject *tmp_args_name_4; PyObject *tmp_tuple_element_8; PyObject *tmp_kw_name_4; CHECK_OBJECT( tmp_class_creation_2__metaclass ); tmp_called_name_4 = tmp_class_creation_2__metaclass; tmp_tuple_element_8 = const_str_plain_TreeBuilderForHtml5lib; tmp_args_name_4 = PyTuple_New( 3 ); Py_INCREF( tmp_tuple_element_8 ); PyTuple_SET_ITEM( tmp_args_name_4, 0, tmp_tuple_element_8 ); CHECK_OBJECT( tmp_class_creation_2__bases ); tmp_tuple_element_8 = tmp_class_creation_2__bases; Py_INCREF( tmp_tuple_element_8 ); PyTuple_SET_ITEM( tmp_args_name_4, 1, tmp_tuple_element_8 ); tmp_tuple_element_8 = locals_bs4$builder$_html5lib_98; Py_INCREF( tmp_tuple_element_8 ); PyTuple_SET_ITEM( tmp_args_name_4, 2, tmp_tuple_element_8 ); CHECK_OBJECT( tmp_class_creation_2__class_decl_dict ); tmp_kw_name_4 = tmp_class_creation_2__class_decl_dict; frame_190956253b9a419daac23f67668d6fc5->m_frame.f_lineno = 98; tmp_assign_source_44 = CALL_FUNCTION( tmp_called_name_4, tmp_args_name_4, tmp_kw_name_4 ); Py_DECREF( tmp_args_name_4 ); if ( tmp_assign_source_44 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 98; goto try_except_handler_13; } assert( outline_1_var___class__ == NULL ); outline_1_var___class__ = tmp_assign_source_44; } { CHECK_OBJECT( outline_1_var___class__ ); tmp_assign_source_43 = outline_1_var___class__; Py_INCREF( tmp_assign_source_43 ); goto try_return_handler_13; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib ); return MOD_RETURN_VALUE( NULL ); // Return handler code: try_return_handler_13:; { Py_DECREF( locals_bs4$builder$_html5lib_98 ); locals_bs4$builder$_html5lib_98 = NULL; } { goto try_return_handler_12; } // Exception handler code: try_except_handler_13:; exception_keeper_type_11 = exception_type; exception_keeper_value_11 = exception_value; exception_keeper_tb_11 = exception_tb; exception_keeper_lineno_11 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_DECREF( locals_bs4$builder$_html5lib_98 ); locals_bs4$builder$_html5lib_98 = NULL; } { // Re-raise. exception_type = exception_keeper_type_11; exception_value = exception_keeper_value_11; exception_tb = exception_keeper_tb_11; exception_lineno = exception_keeper_lineno_11; goto try_except_handler_12; } // End of try: } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib ); return MOD_RETURN_VALUE( NULL ); // Return handler code: try_return_handler_12:; { CHECK_OBJECT( (PyObject *)outline_1_var___class__ ); Py_DECREF( outline_1_var___class__ ); outline_1_var___class__ = NULL; } { goto outline_result_2; } // Exception handler code: try_except_handler_12:; exception_keeper_type_12 = exception_type; exception_keeper_value_12 = exception_value; exception_keeper_tb_12 = exception_tb; exception_keeper_lineno_12 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { // Re-raise. exception_type = exception_keeper_type_12; exception_value = exception_keeper_value_12; exception_tb = exception_keeper_tb_12; exception_lineno = exception_keeper_lineno_12; goto outline_exception_2; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib ); return MOD_RETURN_VALUE( NULL ); outline_exception_2:; exception_lineno = 98; goto try_except_handler_11; outline_result_2:; UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_TreeBuilderForHtml5lib, tmp_assign_source_43 ); } goto try_end_9; // Exception handler code: try_except_handler_11:; exception_keeper_type_13 = exception_type; exception_keeper_value_13 = exception_value; exception_keeper_tb_13 = exception_tb; exception_keeper_lineno_13 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( tmp_class_creation_2__bases ); tmp_class_creation_2__bases = NULL; } { Py_XDECREF( tmp_class_creation_2__class_decl_dict ); tmp_class_creation_2__class_decl_dict = NULL; } { Py_XDECREF( tmp_class_creation_2__metaclass ); tmp_class_creation_2__metaclass = NULL; } { Py_XDECREF( tmp_class_creation_2__prepared ); tmp_class_creation_2__prepared = NULL; } { // Re-raise. exception_type = exception_keeper_type_13; exception_value = exception_keeper_value_13; exception_tb = exception_keeper_tb_13; exception_lineno = exception_keeper_lineno_13; goto frame_exception_exit_1; } // End of try: try_end_9:; } { CHECK_OBJECT( (PyObject *)tmp_class_creation_2__bases ); Py_DECREF( tmp_class_creation_2__bases ); tmp_class_creation_2__bases = NULL; } { CHECK_OBJECT( (PyObject *)tmp_class_creation_2__class_decl_dict ); Py_DECREF( tmp_class_creation_2__class_decl_dict ); tmp_class_creation_2__class_decl_dict = NULL; } { CHECK_OBJECT( (PyObject *)tmp_class_creation_2__metaclass ); Py_DECREF( tmp_class_creation_2__metaclass ); tmp_class_creation_2__metaclass = NULL; } { CHECK_OBJECT( (PyObject *)tmp_class_creation_2__prepared ); Py_DECREF( tmp_class_creation_2__prepared ); tmp_class_creation_2__prepared = NULL; } { // Tried code: { PyObject *tmp_assign_source_45; PyObject *tmp_dircall_arg1_3; tmp_dircall_arg1_3 = const_tuple_type_object_tuple; Py_INCREF( tmp_dircall_arg1_3 ); { PyObject *dir_call_args[] = {tmp_dircall_arg1_3}; tmp_assign_source_45 = impl___internal__$$$function_1__mro_entries_conversion( dir_call_args ); } if ( tmp_assign_source_45 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 193; goto try_except_handler_14; } assert( tmp_class_creation_3__bases == NULL ); tmp_class_creation_3__bases = tmp_assign_source_45; } { PyObject *tmp_assign_source_46; tmp_assign_source_46 = PyDict_New(); assert( tmp_class_creation_3__class_decl_dict == NULL ); tmp_class_creation_3__class_decl_dict = tmp_assign_source_46; } { PyObject *tmp_assign_source_47; PyObject *tmp_metaclass_name_3; nuitka_bool tmp_condition_result_14; PyObject *tmp_key_name_7; PyObject *tmp_dict_name_7; PyObject *tmp_dict_name_8; PyObject *tmp_key_name_8; nuitka_bool tmp_condition_result_15; int tmp_truth_name_3; PyObject *tmp_type_arg_5; PyObject *tmp_subscribed_name_3; PyObject *tmp_subscript_name_3; PyObject *tmp_bases_name_3; tmp_key_name_7 = const_str_plain_metaclass; CHECK_OBJECT( tmp_class_creation_3__class_decl_dict ); tmp_dict_name_7 = tmp_class_creation_3__class_decl_dict; tmp_res = PyDict_Contains( tmp_dict_name_7, tmp_key_name_7 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 193; goto try_except_handler_14; } tmp_condition_result_14 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_14 == NUITKA_BOOL_TRUE ) { goto condexpr_true_5; } else { goto condexpr_false_5; } condexpr_true_5:; CHECK_OBJECT( tmp_class_creation_3__class_decl_dict ); tmp_dict_name_8 = tmp_class_creation_3__class_decl_dict; tmp_key_name_8 = const_str_plain_metaclass; tmp_metaclass_name_3 = DICT_GET_ITEM( tmp_dict_name_8, tmp_key_name_8 ); if ( tmp_metaclass_name_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 193; goto try_except_handler_14; } goto condexpr_end_5; condexpr_false_5:; CHECK_OBJECT( tmp_class_creation_3__bases ); tmp_truth_name_3 = CHECK_IF_TRUE( tmp_class_creation_3__bases ); if ( tmp_truth_name_3 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 193; goto try_except_handler_14; } tmp_condition_result_15 = tmp_truth_name_3 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_15 == NUITKA_BOOL_TRUE ) { goto condexpr_true_6; } else { goto condexpr_false_6; } condexpr_true_6:; CHECK_OBJECT( tmp_class_creation_3__bases ); tmp_subscribed_name_3 = tmp_class_creation_3__bases; tmp_subscript_name_3 = const_int_0; tmp_type_arg_5 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_3, tmp_subscript_name_3, 0 ); if ( tmp_type_arg_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 193; goto try_except_handler_14; } tmp_metaclass_name_3 = BUILTIN_TYPE1( tmp_type_arg_5 ); Py_DECREF( tmp_type_arg_5 ); if ( tmp_metaclass_name_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 193; goto try_except_handler_14; } goto condexpr_end_6; condexpr_false_6:; tmp_metaclass_name_3 = (PyObject *)&PyType_Type; Py_INCREF( tmp_metaclass_name_3 ); condexpr_end_6:; condexpr_end_5:; CHECK_OBJECT( tmp_class_creation_3__bases ); tmp_bases_name_3 = tmp_class_creation_3__bases; tmp_assign_source_47 = SELECT_METACLASS( tmp_metaclass_name_3, tmp_bases_name_3 ); Py_DECREF( tmp_metaclass_name_3 ); if ( tmp_assign_source_47 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 193; goto try_except_handler_14; } assert( tmp_class_creation_3__metaclass == NULL ); tmp_class_creation_3__metaclass = tmp_assign_source_47; } { nuitka_bool tmp_condition_result_16; PyObject *tmp_key_name_9; PyObject *tmp_dict_name_9; tmp_key_name_9 = const_str_plain_metaclass; CHECK_OBJECT( tmp_class_creation_3__class_decl_dict ); tmp_dict_name_9 = tmp_class_creation_3__class_decl_dict; tmp_res = PyDict_Contains( tmp_dict_name_9, tmp_key_name_9 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 193; goto try_except_handler_14; } tmp_condition_result_16 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_16 == NUITKA_BOOL_TRUE ) { goto branch_yes_10; } else { goto branch_no_10; } branch_yes_10:; { CHECK_OBJECT( tmp_class_creation_3__class_decl_dict ); tmp_dictdel_dict = tmp_class_creation_3__class_decl_dict; tmp_dictdel_key = const_str_plain_metaclass; tmp_result = DICT_REMOVE_ITEM( tmp_dictdel_dict, tmp_dictdel_key ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 193; goto try_except_handler_14; } } branch_no_10:; } { nuitka_bool tmp_condition_result_17; PyObject *tmp_source_name_10; CHECK_OBJECT( tmp_class_creation_3__metaclass ); tmp_source_name_10 = tmp_class_creation_3__metaclass; tmp_res = PyObject_HasAttr( tmp_source_name_10, const_str_plain___prepare__ ); tmp_condition_result_17 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_17 == NUITKA_BOOL_TRUE ) { goto branch_yes_11; } else { goto branch_no_11; } branch_yes_11:; { PyObject *tmp_assign_source_48; PyObject *tmp_called_name_5; PyObject *tmp_source_name_11; PyObject *tmp_args_name_5; PyObject *tmp_tuple_element_9; PyObject *tmp_kw_name_5; CHECK_OBJECT( tmp_class_creation_3__metaclass ); tmp_source_name_11 = tmp_class_creation_3__metaclass; tmp_called_name_5 = LOOKUP_ATTRIBUTE( tmp_source_name_11, const_str_plain___prepare__ ); if ( tmp_called_name_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 193; goto try_except_handler_14; } tmp_tuple_element_9 = const_str_plain_AttrList; tmp_args_name_5 = PyTuple_New( 2 ); Py_INCREF( tmp_tuple_element_9 ); PyTuple_SET_ITEM( tmp_args_name_5, 0, tmp_tuple_element_9 ); CHECK_OBJECT( tmp_class_creation_3__bases ); tmp_tuple_element_9 = tmp_class_creation_3__bases; Py_INCREF( tmp_tuple_element_9 ); PyTuple_SET_ITEM( tmp_args_name_5, 1, tmp_tuple_element_9 ); CHECK_OBJECT( tmp_class_creation_3__class_decl_dict ); tmp_kw_name_5 = tmp_class_creation_3__class_decl_dict; frame_190956253b9a419daac23f67668d6fc5->m_frame.f_lineno = 193; tmp_assign_source_48 = CALL_FUNCTION( tmp_called_name_5, tmp_args_name_5, tmp_kw_name_5 ); Py_DECREF( tmp_called_name_5 ); Py_DECREF( tmp_args_name_5 ); if ( tmp_assign_source_48 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 193; goto try_except_handler_14; } assert( tmp_class_creation_3__prepared == NULL ); tmp_class_creation_3__prepared = tmp_assign_source_48; } { nuitka_bool tmp_condition_result_18; PyObject *tmp_operand_name_3; PyObject *tmp_source_name_12; CHECK_OBJECT( tmp_class_creation_3__prepared ); tmp_source_name_12 = tmp_class_creation_3__prepared; tmp_res = PyObject_HasAttr( tmp_source_name_12, const_str_plain___getitem__ ); tmp_operand_name_3 = ( tmp_res != 0 ) ? Py_True : Py_False; tmp_res = CHECK_IF_TRUE( tmp_operand_name_3 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 193; goto try_except_handler_14; } tmp_condition_result_18 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_18 == NUITKA_BOOL_TRUE ) { goto branch_yes_12; } else { goto branch_no_12; } branch_yes_12:; { PyObject *tmp_raise_type_3; PyObject *tmp_raise_value_3; PyObject *tmp_left_name_3; PyObject *tmp_right_name_3; PyObject *tmp_tuple_element_10; PyObject *tmp_getattr_target_3; PyObject *tmp_getattr_attr_3; PyObject *tmp_getattr_default_3; PyObject *tmp_source_name_13; PyObject *tmp_type_arg_6; tmp_raise_type_3 = PyExc_TypeError; tmp_left_name_3 = const_str_digest_75fd71b1edada749c2ef7ac810062295; CHECK_OBJECT( tmp_class_creation_3__metaclass ); tmp_getattr_target_3 = tmp_class_creation_3__metaclass; tmp_getattr_attr_3 = const_str_plain___name__; tmp_getattr_default_3 = const_str_angle_metaclass; tmp_tuple_element_10 = BUILTIN_GETATTR( tmp_getattr_target_3, tmp_getattr_attr_3, tmp_getattr_default_3 ); if ( tmp_tuple_element_10 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 193; goto try_except_handler_14; } tmp_right_name_3 = PyTuple_New( 2 ); PyTuple_SET_ITEM( tmp_right_name_3, 0, tmp_tuple_element_10 ); CHECK_OBJECT( tmp_class_creation_3__prepared ); tmp_type_arg_6 = tmp_class_creation_3__prepared; tmp_source_name_13 = BUILTIN_TYPE1( tmp_type_arg_6 ); assert( !(tmp_source_name_13 == NULL) ); tmp_tuple_element_10 = LOOKUP_ATTRIBUTE( tmp_source_name_13, const_str_plain___name__ ); Py_DECREF( tmp_source_name_13 ); if ( tmp_tuple_element_10 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_right_name_3 ); exception_lineno = 193; goto try_except_handler_14; } PyTuple_SET_ITEM( tmp_right_name_3, 1, tmp_tuple_element_10 ); tmp_raise_value_3 = BINARY_OPERATION_REMAINDER( tmp_left_name_3, tmp_right_name_3 ); Py_DECREF( tmp_right_name_3 ); if ( tmp_raise_value_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 193; goto try_except_handler_14; } exception_type = tmp_raise_type_3; Py_INCREF( tmp_raise_type_3 ); exception_value = tmp_raise_value_3; exception_lineno = 193; RAISE_EXCEPTION_IMPLICIT( &exception_type, &exception_value, &exception_tb ); goto try_except_handler_14; } branch_no_12:; } goto branch_end_11; branch_no_11:; { PyObject *tmp_assign_source_49; tmp_assign_source_49 = PyDict_New(); assert( tmp_class_creation_3__prepared == NULL ); tmp_class_creation_3__prepared = tmp_assign_source_49; } branch_end_11:; } { PyObject *tmp_assign_source_50; { PyObject *tmp_set_locals_3; CHECK_OBJECT( tmp_class_creation_3__prepared ); tmp_set_locals_3 = tmp_class_creation_3__prepared; locals_bs4$builder$_html5lib_193 = tmp_set_locals_3; Py_INCREF( tmp_set_locals_3 ); } { // Tried code: { // Tried code: { tmp_dictset_value = const_str_digest_b8f5ff66404d2dfd3fa72280ec60871e; tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_193, const_str_plain___module__, tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 193; goto try_except_handler_16; } } { tmp_dictset_value = const_str_plain_AttrList; tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_193, const_str_plain___qualname__, tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 193; goto try_except_handler_16; } } MAKE_OR_REUSE_FRAME( cache_frame_eb6db0b8839c87a270ee3cf36407ef04_4, codeobj_eb6db0b8839c87a270ee3cf36407ef04, module_bs4$builder$_html5lib, sizeof(void *) ); frame_eb6db0b8839c87a270ee3cf36407ef04_4 = cache_frame_eb6db0b8839c87a270ee3cf36407ef04_4; // Push the new frame as the currently active one. pushFrameStack( frame_eb6db0b8839c87a270ee3cf36407ef04_4 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_eb6db0b8839c87a270ee3cf36407ef04_4 ) == 2 ); // Frame stack // Framed code: { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_15___init__( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_193, const_str_plain___init__, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 194; type_description_2 = "o"; goto frame_exception_exit_4; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_16___iter__( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_193, const_str_plain___iter__, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 197; type_description_2 = "o"; goto frame_exception_exit_4; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_17___setitem__( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_193, const_str_plain___setitem__, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 199; type_description_2 = "o"; goto frame_exception_exit_4; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_18_items( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_193, const_str_plain_items, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 211; type_description_2 = "o"; goto frame_exception_exit_4; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_19_keys( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_193, const_str_plain_keys, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 213; type_description_2 = "o"; goto frame_exception_exit_4; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_20___len__( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_193, const_str_plain___len__, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 215; type_description_2 = "o"; goto frame_exception_exit_4; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_21___getitem__( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_193, const_str_plain___getitem__, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 217; type_description_2 = "o"; goto frame_exception_exit_4; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_22___contains__( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_193, const_str_plain___contains__, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 219; type_description_2 = "o"; goto frame_exception_exit_4; } } #if 0 RESTORE_FRAME_EXCEPTION( frame_eb6db0b8839c87a270ee3cf36407ef04_4 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_3; frame_exception_exit_4:; #if 0 RESTORE_FRAME_EXCEPTION( frame_eb6db0b8839c87a270ee3cf36407ef04_4 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_eb6db0b8839c87a270ee3cf36407ef04_4, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_eb6db0b8839c87a270ee3cf36407ef04_4->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_eb6db0b8839c87a270ee3cf36407ef04_4, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_eb6db0b8839c87a270ee3cf36407ef04_4, type_description_2, outline_2_var___class__ ); // Release cached frame. if ( frame_eb6db0b8839c87a270ee3cf36407ef04_4 == cache_frame_eb6db0b8839c87a270ee3cf36407ef04_4 ) { Py_DECREF( frame_eb6db0b8839c87a270ee3cf36407ef04_4 ); } cache_frame_eb6db0b8839c87a270ee3cf36407ef04_4 = NULL; assertFrameObject( frame_eb6db0b8839c87a270ee3cf36407ef04_4 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto nested_frame_exit_3; frame_no_exception_3:; goto skip_nested_handling_3; nested_frame_exit_3:; goto try_except_handler_16; skip_nested_handling_3:; { nuitka_bool tmp_condition_result_19; PyObject *tmp_compexpr_left_4; PyObject *tmp_compexpr_right_4; CHECK_OBJECT( tmp_class_creation_3__bases ); tmp_compexpr_left_4 = tmp_class_creation_3__bases; tmp_compexpr_right_4 = const_tuple_type_object_tuple; tmp_res = RICH_COMPARE_BOOL_NE( tmp_compexpr_left_4, tmp_compexpr_right_4 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 193; goto try_except_handler_16; } tmp_condition_result_19 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_19 == NUITKA_BOOL_TRUE ) { goto branch_yes_13; } else { goto branch_no_13; } branch_yes_13:; { tmp_dictset_value = const_tuple_type_object_tuple; tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_193, const_str_plain___orig_bases__, tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 193; goto try_except_handler_16; } } branch_no_13:; } { PyObject *tmp_assign_source_51; PyObject *tmp_called_name_6; PyObject *tmp_args_name_6; PyObject *tmp_tuple_element_11; PyObject *tmp_kw_name_6; CHECK_OBJECT( tmp_class_creation_3__metaclass ); tmp_called_name_6 = tmp_class_creation_3__metaclass; tmp_tuple_element_11 = const_str_plain_AttrList; tmp_args_name_6 = PyTuple_New( 3 ); Py_INCREF( tmp_tuple_element_11 ); PyTuple_SET_ITEM( tmp_args_name_6, 0, tmp_tuple_element_11 ); CHECK_OBJECT( tmp_class_creation_3__bases ); tmp_tuple_element_11 = tmp_class_creation_3__bases; Py_INCREF( tmp_tuple_element_11 ); PyTuple_SET_ITEM( tmp_args_name_6, 1, tmp_tuple_element_11 ); tmp_tuple_element_11 = locals_bs4$builder$_html5lib_193; Py_INCREF( tmp_tuple_element_11 ); PyTuple_SET_ITEM( tmp_args_name_6, 2, tmp_tuple_element_11 ); CHECK_OBJECT( tmp_class_creation_3__class_decl_dict ); tmp_kw_name_6 = tmp_class_creation_3__class_decl_dict; frame_190956253b9a419daac23f67668d6fc5->m_frame.f_lineno = 193; tmp_assign_source_51 = CALL_FUNCTION( tmp_called_name_6, tmp_args_name_6, tmp_kw_name_6 ); Py_DECREF( tmp_args_name_6 ); if ( tmp_assign_source_51 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 193; goto try_except_handler_16; } assert( outline_2_var___class__ == NULL ); outline_2_var___class__ = tmp_assign_source_51; } { CHECK_OBJECT( outline_2_var___class__ ); tmp_assign_source_50 = outline_2_var___class__; Py_INCREF( tmp_assign_source_50 ); goto try_return_handler_16; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib ); return MOD_RETURN_VALUE( NULL ); // Return handler code: try_return_handler_16:; { Py_DECREF( locals_bs4$builder$_html5lib_193 ); locals_bs4$builder$_html5lib_193 = NULL; } { goto try_return_handler_15; } // Exception handler code: try_except_handler_16:; exception_keeper_type_14 = exception_type; exception_keeper_value_14 = exception_value; exception_keeper_tb_14 = exception_tb; exception_keeper_lineno_14 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_DECREF( locals_bs4$builder$_html5lib_193 ); locals_bs4$builder$_html5lib_193 = NULL; } { // Re-raise. exception_type = exception_keeper_type_14; exception_value = exception_keeper_value_14; exception_tb = exception_keeper_tb_14; exception_lineno = exception_keeper_lineno_14; goto try_except_handler_15; } // End of try: } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib ); return MOD_RETURN_VALUE( NULL ); // Return handler code: try_return_handler_15:; { CHECK_OBJECT( (PyObject *)outline_2_var___class__ ); Py_DECREF( outline_2_var___class__ ); outline_2_var___class__ = NULL; } { goto outline_result_3; } // Exception handler code: try_except_handler_15:; exception_keeper_type_15 = exception_type; exception_keeper_value_15 = exception_value; exception_keeper_tb_15 = exception_tb; exception_keeper_lineno_15 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { // Re-raise. exception_type = exception_keeper_type_15; exception_value = exception_keeper_value_15; exception_tb = exception_keeper_tb_15; exception_lineno = exception_keeper_lineno_15; goto outline_exception_3; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib ); return MOD_RETURN_VALUE( NULL ); outline_exception_3:; exception_lineno = 193; goto try_except_handler_14; outline_result_3:; UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_AttrList, tmp_assign_source_50 ); } goto try_end_10; // Exception handler code: try_except_handler_14:; exception_keeper_type_16 = exception_type; exception_keeper_value_16 = exception_value; exception_keeper_tb_16 = exception_tb; exception_keeper_lineno_16 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( tmp_class_creation_3__bases ); tmp_class_creation_3__bases = NULL; } { Py_XDECREF( tmp_class_creation_3__class_decl_dict ); tmp_class_creation_3__class_decl_dict = NULL; } { Py_XDECREF( tmp_class_creation_3__metaclass ); tmp_class_creation_3__metaclass = NULL; } { Py_XDECREF( tmp_class_creation_3__prepared ); tmp_class_creation_3__prepared = NULL; } { // Re-raise. exception_type = exception_keeper_type_16; exception_value = exception_keeper_value_16; exception_tb = exception_keeper_tb_16; exception_lineno = exception_keeper_lineno_16; goto frame_exception_exit_1; } // End of try: try_end_10:; } { CHECK_OBJECT( (PyObject *)tmp_class_creation_3__bases ); Py_DECREF( tmp_class_creation_3__bases ); tmp_class_creation_3__bases = NULL; } { CHECK_OBJECT( (PyObject *)tmp_class_creation_3__class_decl_dict ); Py_DECREF( tmp_class_creation_3__class_decl_dict ); tmp_class_creation_3__class_decl_dict = NULL; } { CHECK_OBJECT( (PyObject *)tmp_class_creation_3__metaclass ); Py_DECREF( tmp_class_creation_3__metaclass ); tmp_class_creation_3__metaclass = NULL; } { CHECK_OBJECT( (PyObject *)tmp_class_creation_3__prepared ); Py_DECREF( tmp_class_creation_3__prepared ); tmp_class_creation_3__prepared = NULL; } { // Tried code: { PyObject *tmp_assign_source_52; PyObject *tmp_tuple_element_12; PyObject *tmp_source_name_14; PyObject *tmp_mvar_value_6; tmp_mvar_value_6 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_treebuilder_base ); if (unlikely( tmp_mvar_value_6 == NULL )) { tmp_mvar_value_6 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_treebuilder_base ); } if ( tmp_mvar_value_6 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "treebuilder_base" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 223; goto try_except_handler_17; } tmp_source_name_14 = tmp_mvar_value_6; tmp_tuple_element_12 = LOOKUP_ATTRIBUTE( tmp_source_name_14, const_str_plain_Node ); if ( tmp_tuple_element_12 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 223; goto try_except_handler_17; } tmp_assign_source_52 = PyTuple_New( 1 ); PyTuple_SET_ITEM( tmp_assign_source_52, 0, tmp_tuple_element_12 ); assert( tmp_class_creation_4__bases_orig == NULL ); tmp_class_creation_4__bases_orig = tmp_assign_source_52; } { PyObject *tmp_assign_source_53; PyObject *tmp_dircall_arg1_4; CHECK_OBJECT( tmp_class_creation_4__bases_orig ); tmp_dircall_arg1_4 = tmp_class_creation_4__bases_orig; Py_INCREF( tmp_dircall_arg1_4 ); { PyObject *dir_call_args[] = {tmp_dircall_arg1_4}; tmp_assign_source_53 = impl___internal__$$$function_1__mro_entries_conversion( dir_call_args ); } if ( tmp_assign_source_53 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 223; goto try_except_handler_17; } assert( tmp_class_creation_4__bases == NULL ); tmp_class_creation_4__bases = tmp_assign_source_53; } { PyObject *tmp_assign_source_54; tmp_assign_source_54 = PyDict_New(); assert( tmp_class_creation_4__class_decl_dict == NULL ); tmp_class_creation_4__class_decl_dict = tmp_assign_source_54; } { PyObject *tmp_assign_source_55; PyObject *tmp_metaclass_name_4; nuitka_bool tmp_condition_result_20; PyObject *tmp_key_name_10; PyObject *tmp_dict_name_10; PyObject *tmp_dict_name_11; PyObject *tmp_key_name_11; nuitka_bool tmp_condition_result_21; int tmp_truth_name_4; PyObject *tmp_type_arg_7; PyObject *tmp_subscribed_name_4; PyObject *tmp_subscript_name_4; PyObject *tmp_bases_name_4; tmp_key_name_10 = const_str_plain_metaclass; CHECK_OBJECT( tmp_class_creation_4__class_decl_dict ); tmp_dict_name_10 = tmp_class_creation_4__class_decl_dict; tmp_res = PyDict_Contains( tmp_dict_name_10, tmp_key_name_10 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 223; goto try_except_handler_17; } tmp_condition_result_20 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_20 == NUITKA_BOOL_TRUE ) { goto condexpr_true_7; } else { goto condexpr_false_7; } condexpr_true_7:; CHECK_OBJECT( tmp_class_creation_4__class_decl_dict ); tmp_dict_name_11 = tmp_class_creation_4__class_decl_dict; tmp_key_name_11 = const_str_plain_metaclass; tmp_metaclass_name_4 = DICT_GET_ITEM( tmp_dict_name_11, tmp_key_name_11 ); if ( tmp_metaclass_name_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 223; goto try_except_handler_17; } goto condexpr_end_7; condexpr_false_7:; CHECK_OBJECT( tmp_class_creation_4__bases ); tmp_truth_name_4 = CHECK_IF_TRUE( tmp_class_creation_4__bases ); if ( tmp_truth_name_4 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 223; goto try_except_handler_17; } tmp_condition_result_21 = tmp_truth_name_4 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_21 == NUITKA_BOOL_TRUE ) { goto condexpr_true_8; } else { goto condexpr_false_8; } condexpr_true_8:; CHECK_OBJECT( tmp_class_creation_4__bases ); tmp_subscribed_name_4 = tmp_class_creation_4__bases; tmp_subscript_name_4 = const_int_0; tmp_type_arg_7 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_4, tmp_subscript_name_4, 0 ); if ( tmp_type_arg_7 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 223; goto try_except_handler_17; } tmp_metaclass_name_4 = BUILTIN_TYPE1( tmp_type_arg_7 ); Py_DECREF( tmp_type_arg_7 ); if ( tmp_metaclass_name_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 223; goto try_except_handler_17; } goto condexpr_end_8; condexpr_false_8:; tmp_metaclass_name_4 = (PyObject *)&PyType_Type; Py_INCREF( tmp_metaclass_name_4 ); condexpr_end_8:; condexpr_end_7:; CHECK_OBJECT( tmp_class_creation_4__bases ); tmp_bases_name_4 = tmp_class_creation_4__bases; tmp_assign_source_55 = SELECT_METACLASS( tmp_metaclass_name_4, tmp_bases_name_4 ); Py_DECREF( tmp_metaclass_name_4 ); if ( tmp_assign_source_55 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 223; goto try_except_handler_17; } assert( tmp_class_creation_4__metaclass == NULL ); tmp_class_creation_4__metaclass = tmp_assign_source_55; } { nuitka_bool tmp_condition_result_22; PyObject *tmp_key_name_12; PyObject *tmp_dict_name_12; tmp_key_name_12 = const_str_plain_metaclass; CHECK_OBJECT( tmp_class_creation_4__class_decl_dict ); tmp_dict_name_12 = tmp_class_creation_4__class_decl_dict; tmp_res = PyDict_Contains( tmp_dict_name_12, tmp_key_name_12 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 223; goto try_except_handler_17; } tmp_condition_result_22 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_22 == NUITKA_BOOL_TRUE ) { goto branch_yes_14; } else { goto branch_no_14; } branch_yes_14:; { CHECK_OBJECT( tmp_class_creation_4__class_decl_dict ); tmp_dictdel_dict = tmp_class_creation_4__class_decl_dict; tmp_dictdel_key = const_str_plain_metaclass; tmp_result = DICT_REMOVE_ITEM( tmp_dictdel_dict, tmp_dictdel_key ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 223; goto try_except_handler_17; } } branch_no_14:; } { nuitka_bool tmp_condition_result_23; PyObject *tmp_source_name_15; CHECK_OBJECT( tmp_class_creation_4__metaclass ); tmp_source_name_15 = tmp_class_creation_4__metaclass; tmp_res = PyObject_HasAttr( tmp_source_name_15, const_str_plain___prepare__ ); tmp_condition_result_23 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_23 == NUITKA_BOOL_TRUE ) { goto branch_yes_15; } else { goto branch_no_15; } branch_yes_15:; { PyObject *tmp_assign_source_56; PyObject *tmp_called_name_7; PyObject *tmp_source_name_16; PyObject *tmp_args_name_7; PyObject *tmp_tuple_element_13; PyObject *tmp_kw_name_7; CHECK_OBJECT( tmp_class_creation_4__metaclass ); tmp_source_name_16 = tmp_class_creation_4__metaclass; tmp_called_name_7 = LOOKUP_ATTRIBUTE( tmp_source_name_16, const_str_plain___prepare__ ); if ( tmp_called_name_7 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 223; goto try_except_handler_17; } tmp_tuple_element_13 = const_str_plain_Element; tmp_args_name_7 = PyTuple_New( 2 ); Py_INCREF( tmp_tuple_element_13 ); PyTuple_SET_ITEM( tmp_args_name_7, 0, tmp_tuple_element_13 ); CHECK_OBJECT( tmp_class_creation_4__bases ); tmp_tuple_element_13 = tmp_class_creation_4__bases; Py_INCREF( tmp_tuple_element_13 ); PyTuple_SET_ITEM( tmp_args_name_7, 1, tmp_tuple_element_13 ); CHECK_OBJECT( tmp_class_creation_4__class_decl_dict ); tmp_kw_name_7 = tmp_class_creation_4__class_decl_dict; frame_190956253b9a419daac23f67668d6fc5->m_frame.f_lineno = 223; tmp_assign_source_56 = CALL_FUNCTION( tmp_called_name_7, tmp_args_name_7, tmp_kw_name_7 ); Py_DECREF( tmp_called_name_7 ); Py_DECREF( tmp_args_name_7 ); if ( tmp_assign_source_56 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 223; goto try_except_handler_17; } assert( tmp_class_creation_4__prepared == NULL ); tmp_class_creation_4__prepared = tmp_assign_source_56; } { nuitka_bool tmp_condition_result_24; PyObject *tmp_operand_name_4; PyObject *tmp_source_name_17; CHECK_OBJECT( tmp_class_creation_4__prepared ); tmp_source_name_17 = tmp_class_creation_4__prepared; tmp_res = PyObject_HasAttr( tmp_source_name_17, const_str_plain___getitem__ ); tmp_operand_name_4 = ( tmp_res != 0 ) ? Py_True : Py_False; tmp_res = CHECK_IF_TRUE( tmp_operand_name_4 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 223; goto try_except_handler_17; } tmp_condition_result_24 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_24 == NUITKA_BOOL_TRUE ) { goto branch_yes_16; } else { goto branch_no_16; } branch_yes_16:; { PyObject *tmp_raise_type_4; PyObject *tmp_raise_value_4; PyObject *tmp_left_name_4; PyObject *tmp_right_name_4; PyObject *tmp_tuple_element_14; PyObject *tmp_getattr_target_4; PyObject *tmp_getattr_attr_4; PyObject *tmp_getattr_default_4; PyObject *tmp_source_name_18; PyObject *tmp_type_arg_8; tmp_raise_type_4 = PyExc_TypeError; tmp_left_name_4 = const_str_digest_75fd71b1edada749c2ef7ac810062295; CHECK_OBJECT( tmp_class_creation_4__metaclass ); tmp_getattr_target_4 = tmp_class_creation_4__metaclass; tmp_getattr_attr_4 = const_str_plain___name__; tmp_getattr_default_4 = const_str_angle_metaclass; tmp_tuple_element_14 = BUILTIN_GETATTR( tmp_getattr_target_4, tmp_getattr_attr_4, tmp_getattr_default_4 ); if ( tmp_tuple_element_14 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 223; goto try_except_handler_17; } tmp_right_name_4 = PyTuple_New( 2 ); PyTuple_SET_ITEM( tmp_right_name_4, 0, tmp_tuple_element_14 ); CHECK_OBJECT( tmp_class_creation_4__prepared ); tmp_type_arg_8 = tmp_class_creation_4__prepared; tmp_source_name_18 = BUILTIN_TYPE1( tmp_type_arg_8 ); assert( !(tmp_source_name_18 == NULL) ); tmp_tuple_element_14 = LOOKUP_ATTRIBUTE( tmp_source_name_18, const_str_plain___name__ ); Py_DECREF( tmp_source_name_18 ); if ( tmp_tuple_element_14 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_right_name_4 ); exception_lineno = 223; goto try_except_handler_17; } PyTuple_SET_ITEM( tmp_right_name_4, 1, tmp_tuple_element_14 ); tmp_raise_value_4 = BINARY_OPERATION_REMAINDER( tmp_left_name_4, tmp_right_name_4 ); Py_DECREF( tmp_right_name_4 ); if ( tmp_raise_value_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 223; goto try_except_handler_17; } exception_type = tmp_raise_type_4; Py_INCREF( tmp_raise_type_4 ); exception_value = tmp_raise_value_4; exception_lineno = 223; RAISE_EXCEPTION_IMPLICIT( &exception_type, &exception_value, &exception_tb ); goto try_except_handler_17; } branch_no_16:; } goto branch_end_15; branch_no_15:; { PyObject *tmp_assign_source_57; tmp_assign_source_57 = PyDict_New(); assert( tmp_class_creation_4__prepared == NULL ); tmp_class_creation_4__prepared = tmp_assign_source_57; } branch_end_15:; } { PyObject *tmp_assign_source_58; { PyObject *tmp_set_locals_4; CHECK_OBJECT( tmp_class_creation_4__prepared ); tmp_set_locals_4 = tmp_class_creation_4__prepared; locals_bs4$builder$_html5lib_223 = tmp_set_locals_4; Py_INCREF( tmp_set_locals_4 ); } { // Tried code: { // Tried code: { tmp_dictset_value = const_str_digest_b8f5ff66404d2dfd3fa72280ec60871e; tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_223, const_str_plain___module__, tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 223; goto try_except_handler_19; } } { tmp_dictset_value = const_str_plain_Element; tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_223, const_str_plain___qualname__, tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 223; goto try_except_handler_19; } } MAKE_OR_REUSE_FRAME( cache_frame_d3dcf6647e60aa06adb5a9257535e559_5, codeobj_d3dcf6647e60aa06adb5a9257535e559, module_bs4$builder$_html5lib, sizeof(void *) ); frame_d3dcf6647e60aa06adb5a9257535e559_5 = cache_frame_d3dcf6647e60aa06adb5a9257535e559_5; // Push the new frame as the currently active one. pushFrameStack( frame_d3dcf6647e60aa06adb5a9257535e559_5 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_d3dcf6647e60aa06adb5a9257535e559_5 ) == 2 ); // Frame stack // Framed code: { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_23___init__( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_223, const_str_plain___init__, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 224; type_description_2 = "o"; goto frame_exception_exit_5; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_24_appendChild( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_223, const_str_plain_appendChild, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 230; type_description_2 = "o"; goto frame_exception_exit_5; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_25_getAttributes( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_223, const_str_plain_getAttributes, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 284; type_description_2 = "o"; goto frame_exception_exit_5; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_26_setAttributes( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_223, const_str_plain_setAttributes, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 289; type_description_2 = "o"; goto frame_exception_exit_5; } } { nuitka_bool tmp_condition_result_25; PyObject *tmp_called_name_8; PyObject *tmp_args_element_name_1; PyObject *tmp_args_element_name_2; PyObject *tmp_called_name_9; PyObject *tmp_args_element_name_3; PyObject *tmp_args_element_name_4; tmp_res = MAPPING_HAS_ITEM( locals_bs4$builder$_html5lib_223, const_str_plain_property ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 311; type_description_2 = "o"; goto frame_exception_exit_5; } tmp_condition_result_25 = ( tmp_res == 1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_25 == NUITKA_BOOL_TRUE ) { goto condexpr_true_9; } else { goto condexpr_false_9; } condexpr_true_9:; tmp_called_name_8 = PyObject_GetItem( locals_bs4$builder$_html5lib_223, const_str_plain_property ); if ( tmp_called_name_8 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "property" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 311; type_description_2 = "o"; goto frame_exception_exit_5; } if ( tmp_called_name_8 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 311; type_description_2 = "o"; goto frame_exception_exit_5; } tmp_args_element_name_1 = PyObject_GetItem( locals_bs4$builder$_html5lib_223, const_str_plain_getAttributes ); if ( tmp_args_element_name_1 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() ) { Py_DECREF( tmp_called_name_8 ); exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "getAttributes" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 311; type_description_2 = "o"; goto frame_exception_exit_5; } if ( tmp_args_element_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_8 ); exception_lineno = 311; type_description_2 = "o"; goto frame_exception_exit_5; } tmp_args_element_name_2 = PyObject_GetItem( locals_bs4$builder$_html5lib_223, const_str_plain_setAttributes ); if ( tmp_args_element_name_2 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() ) { Py_DECREF( tmp_called_name_8 ); Py_DECREF( tmp_args_element_name_1 ); exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "setAttributes" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 311; type_description_2 = "o"; goto frame_exception_exit_5; } if ( tmp_args_element_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_8 ); Py_DECREF( tmp_args_element_name_1 ); exception_lineno = 311; type_description_2 = "o"; goto frame_exception_exit_5; } frame_d3dcf6647e60aa06adb5a9257535e559_5->m_frame.f_lineno = 311; { PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_2 }; tmp_dictset_value = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_8, call_args ); } Py_DECREF( tmp_called_name_8 ); Py_DECREF( tmp_args_element_name_1 ); Py_DECREF( tmp_args_element_name_2 ); if ( tmp_dictset_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 311; type_description_2 = "o"; goto frame_exception_exit_5; } goto condexpr_end_9; condexpr_false_9:; tmp_called_name_9 = (PyObject *)&PyProperty_Type; tmp_args_element_name_3 = PyObject_GetItem( locals_bs4$builder$_html5lib_223, const_str_plain_getAttributes ); if ( tmp_args_element_name_3 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "getAttributes" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 311; type_description_2 = "o"; goto frame_exception_exit_5; } if ( tmp_args_element_name_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 311; type_description_2 = "o"; goto frame_exception_exit_5; } tmp_args_element_name_4 = PyObject_GetItem( locals_bs4$builder$_html5lib_223, const_str_plain_setAttributes ); if ( tmp_args_element_name_4 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() ) { Py_DECREF( tmp_args_element_name_3 ); exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "setAttributes" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 311; type_description_2 = "o"; goto frame_exception_exit_5; } if ( tmp_args_element_name_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_args_element_name_3 ); exception_lineno = 311; type_description_2 = "o"; goto frame_exception_exit_5; } frame_d3dcf6647e60aa06adb5a9257535e559_5->m_frame.f_lineno = 311; { PyObject *call_args[] = { tmp_args_element_name_3, tmp_args_element_name_4 }; tmp_dictset_value = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_9, call_args ); } Py_DECREF( tmp_args_element_name_3 ); Py_DECREF( tmp_args_element_name_4 ); if ( tmp_dictset_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 311; type_description_2 = "o"; goto frame_exception_exit_5; } condexpr_end_9:; tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_223, const_str_plain_attributes, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 311; type_description_2 = "o"; goto frame_exception_exit_5; } } { PyObject *tmp_defaults_3; tmp_defaults_3 = const_tuple_none_tuple; Py_INCREF( tmp_defaults_3 ); tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_27_insertText( tmp_defaults_3 ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_223, const_str_plain_insertText, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 313; type_description_2 = "o"; goto frame_exception_exit_5; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_28_insertBefore( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_223, const_str_plain_insertBefore, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 320; type_description_2 = "o"; goto frame_exception_exit_5; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_29_removeChild( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_223, const_str_plain_removeChild, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 332; type_description_2 = "o"; goto frame_exception_exit_5; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_30_reparentChildren( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_223, const_str_plain_reparentChildren, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 335; type_description_2 = "o"; goto frame_exception_exit_5; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_31_cloneNode( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_223, const_str_plain_cloneNode, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 401; type_description_2 = "o"; goto frame_exception_exit_5; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_32_hasContent( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_223, const_str_plain_hasContent, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 408; type_description_2 = "o"; goto frame_exception_exit_5; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_33_getNameTuple( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_223, const_str_plain_getNameTuple, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 411; type_description_2 = "o"; goto frame_exception_exit_5; } } { nuitka_bool tmp_condition_result_26; PyObject *tmp_called_name_10; PyObject *tmp_args_element_name_5; PyObject *tmp_called_name_11; PyObject *tmp_args_element_name_6; tmp_res = MAPPING_HAS_ITEM( locals_bs4$builder$_html5lib_223, const_str_plain_property ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 417; type_description_2 = "o"; goto frame_exception_exit_5; } tmp_condition_result_26 = ( tmp_res == 1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_26 == NUITKA_BOOL_TRUE ) { goto condexpr_true_10; } else { goto condexpr_false_10; } condexpr_true_10:; tmp_called_name_10 = PyObject_GetItem( locals_bs4$builder$_html5lib_223, const_str_plain_property ); if ( tmp_called_name_10 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "property" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 417; type_description_2 = "o"; goto frame_exception_exit_5; } if ( tmp_called_name_10 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 417; type_description_2 = "o"; goto frame_exception_exit_5; } tmp_args_element_name_5 = PyObject_GetItem( locals_bs4$builder$_html5lib_223, const_str_plain_getNameTuple ); if ( tmp_args_element_name_5 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() ) { Py_DECREF( tmp_called_name_10 ); exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "getNameTuple" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 417; type_description_2 = "o"; goto frame_exception_exit_5; } if ( tmp_args_element_name_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_10 ); exception_lineno = 417; type_description_2 = "o"; goto frame_exception_exit_5; } frame_d3dcf6647e60aa06adb5a9257535e559_5->m_frame.f_lineno = 417; { PyObject *call_args[] = { tmp_args_element_name_5 }; tmp_dictset_value = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_10, call_args ); } Py_DECREF( tmp_called_name_10 ); Py_DECREF( tmp_args_element_name_5 ); if ( tmp_dictset_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 417; type_description_2 = "o"; goto frame_exception_exit_5; } goto condexpr_end_10; condexpr_false_10:; tmp_called_name_11 = (PyObject *)&PyProperty_Type; tmp_args_element_name_6 = PyObject_GetItem( locals_bs4$builder$_html5lib_223, const_str_plain_getNameTuple ); if ( tmp_args_element_name_6 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "getNameTuple" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 417; type_description_2 = "o"; goto frame_exception_exit_5; } if ( tmp_args_element_name_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 417; type_description_2 = "o"; goto frame_exception_exit_5; } frame_d3dcf6647e60aa06adb5a9257535e559_5->m_frame.f_lineno = 417; { PyObject *call_args[] = { tmp_args_element_name_6 }; tmp_dictset_value = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_11, call_args ); } Py_DECREF( tmp_args_element_name_6 ); if ( tmp_dictset_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 417; type_description_2 = "o"; goto frame_exception_exit_5; } condexpr_end_10:; tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_223, const_str_plain_nameTuple, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 417; type_description_2 = "o"; goto frame_exception_exit_5; } } #if 0 RESTORE_FRAME_EXCEPTION( frame_d3dcf6647e60aa06adb5a9257535e559_5 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_4; frame_exception_exit_5:; #if 0 RESTORE_FRAME_EXCEPTION( frame_d3dcf6647e60aa06adb5a9257535e559_5 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_d3dcf6647e60aa06adb5a9257535e559_5, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_d3dcf6647e60aa06adb5a9257535e559_5->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_d3dcf6647e60aa06adb5a9257535e559_5, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_d3dcf6647e60aa06adb5a9257535e559_5, type_description_2, outline_3_var___class__ ); // Release cached frame. if ( frame_d3dcf6647e60aa06adb5a9257535e559_5 == cache_frame_d3dcf6647e60aa06adb5a9257535e559_5 ) { Py_DECREF( frame_d3dcf6647e60aa06adb5a9257535e559_5 ); } cache_frame_d3dcf6647e60aa06adb5a9257535e559_5 = NULL; assertFrameObject( frame_d3dcf6647e60aa06adb5a9257535e559_5 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto nested_frame_exit_4; frame_no_exception_4:; goto skip_nested_handling_4; nested_frame_exit_4:; goto try_except_handler_19; skip_nested_handling_4:; { nuitka_bool tmp_condition_result_27; PyObject *tmp_compexpr_left_5; PyObject *tmp_compexpr_right_5; CHECK_OBJECT( tmp_class_creation_4__bases ); tmp_compexpr_left_5 = tmp_class_creation_4__bases; CHECK_OBJECT( tmp_class_creation_4__bases_orig ); tmp_compexpr_right_5 = tmp_class_creation_4__bases_orig; tmp_res = RICH_COMPARE_BOOL_NE( tmp_compexpr_left_5, tmp_compexpr_right_5 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 223; goto try_except_handler_19; } tmp_condition_result_27 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_27 == NUITKA_BOOL_TRUE ) { goto branch_yes_17; } else { goto branch_no_17; } branch_yes_17:; { CHECK_OBJECT( tmp_class_creation_4__bases_orig ); tmp_dictset_value = tmp_class_creation_4__bases_orig; tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_223, const_str_plain___orig_bases__, tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 223; goto try_except_handler_19; } } branch_no_17:; } { PyObject *tmp_assign_source_59; PyObject *tmp_called_name_12; PyObject *tmp_args_name_8; PyObject *tmp_tuple_element_15; PyObject *tmp_kw_name_8; CHECK_OBJECT( tmp_class_creation_4__metaclass ); tmp_called_name_12 = tmp_class_creation_4__metaclass; tmp_tuple_element_15 = const_str_plain_Element; tmp_args_name_8 = PyTuple_New( 3 ); Py_INCREF( tmp_tuple_element_15 ); PyTuple_SET_ITEM( tmp_args_name_8, 0, tmp_tuple_element_15 ); CHECK_OBJECT( tmp_class_creation_4__bases ); tmp_tuple_element_15 = tmp_class_creation_4__bases; Py_INCREF( tmp_tuple_element_15 ); PyTuple_SET_ITEM( tmp_args_name_8, 1, tmp_tuple_element_15 ); tmp_tuple_element_15 = locals_bs4$builder$_html5lib_223; Py_INCREF( tmp_tuple_element_15 ); PyTuple_SET_ITEM( tmp_args_name_8, 2, tmp_tuple_element_15 ); CHECK_OBJECT( tmp_class_creation_4__class_decl_dict ); tmp_kw_name_8 = tmp_class_creation_4__class_decl_dict; frame_190956253b9a419daac23f67668d6fc5->m_frame.f_lineno = 223; tmp_assign_source_59 = CALL_FUNCTION( tmp_called_name_12, tmp_args_name_8, tmp_kw_name_8 ); Py_DECREF( tmp_args_name_8 ); if ( tmp_assign_source_59 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 223; goto try_except_handler_19; } assert( outline_3_var___class__ == NULL ); outline_3_var___class__ = tmp_assign_source_59; } { CHECK_OBJECT( outline_3_var___class__ ); tmp_assign_source_58 = outline_3_var___class__; Py_INCREF( tmp_assign_source_58 ); goto try_return_handler_19; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib ); return MOD_RETURN_VALUE( NULL ); // Return handler code: try_return_handler_19:; { Py_DECREF( locals_bs4$builder$_html5lib_223 ); locals_bs4$builder$_html5lib_223 = NULL; } { goto try_return_handler_18; } // Exception handler code: try_except_handler_19:; exception_keeper_type_17 = exception_type; exception_keeper_value_17 = exception_value; exception_keeper_tb_17 = exception_tb; exception_keeper_lineno_17 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_DECREF( locals_bs4$builder$_html5lib_223 ); locals_bs4$builder$_html5lib_223 = NULL; } { // Re-raise. exception_type = exception_keeper_type_17; exception_value = exception_keeper_value_17; exception_tb = exception_keeper_tb_17; exception_lineno = exception_keeper_lineno_17; goto try_except_handler_18; } // End of try: } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib ); return MOD_RETURN_VALUE( NULL ); // Return handler code: try_return_handler_18:; { CHECK_OBJECT( (PyObject *)outline_3_var___class__ ); Py_DECREF( outline_3_var___class__ ); outline_3_var___class__ = NULL; } { goto outline_result_4; } // Exception handler code: try_except_handler_18:; exception_keeper_type_18 = exception_type; exception_keeper_value_18 = exception_value; exception_keeper_tb_18 = exception_tb; exception_keeper_lineno_18 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { // Re-raise. exception_type = exception_keeper_type_18; exception_value = exception_keeper_value_18; exception_tb = exception_keeper_tb_18; exception_lineno = exception_keeper_lineno_18; goto outline_exception_4; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib ); return MOD_RETURN_VALUE( NULL ); outline_exception_4:; exception_lineno = 223; goto try_except_handler_17; outline_result_4:; UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_Element, tmp_assign_source_58 ); } goto try_end_11; // Exception handler code: try_except_handler_17:; exception_keeper_type_19 = exception_type; exception_keeper_value_19 = exception_value; exception_keeper_tb_19 = exception_tb; exception_keeper_lineno_19 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( tmp_class_creation_4__bases ); tmp_class_creation_4__bases = NULL; } { Py_XDECREF( tmp_class_creation_4__class_decl_dict ); tmp_class_creation_4__class_decl_dict = NULL; } { Py_XDECREF( tmp_class_creation_4__metaclass ); tmp_class_creation_4__metaclass = NULL; } { Py_XDECREF( tmp_class_creation_4__prepared ); tmp_class_creation_4__prepared = NULL; } { // Re-raise. exception_type = exception_keeper_type_19; exception_value = exception_keeper_value_19; exception_tb = exception_keeper_tb_19; exception_lineno = exception_keeper_lineno_19; goto frame_exception_exit_1; } // End of try: try_end_11:; } { CHECK_OBJECT( (PyObject *)tmp_class_creation_4__bases ); Py_DECREF( tmp_class_creation_4__bases ); tmp_class_creation_4__bases = NULL; } { CHECK_OBJECT( (PyObject *)tmp_class_creation_4__class_decl_dict ); Py_DECREF( tmp_class_creation_4__class_decl_dict ); tmp_class_creation_4__class_decl_dict = NULL; } { CHECK_OBJECT( (PyObject *)tmp_class_creation_4__metaclass ); Py_DECREF( tmp_class_creation_4__metaclass ); tmp_class_creation_4__metaclass = NULL; } { CHECK_OBJECT( (PyObject *)tmp_class_creation_4__prepared ); Py_DECREF( tmp_class_creation_4__prepared ); tmp_class_creation_4__prepared = NULL; } { // Tried code: { PyObject *tmp_assign_source_60; PyObject *tmp_tuple_element_16; PyObject *tmp_mvar_value_7; tmp_mvar_value_7 = GET_STRING_DICT_VALUE( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_Element ); if (unlikely( tmp_mvar_value_7 == NULL )) { tmp_mvar_value_7 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_Element ); } if ( tmp_mvar_value_7 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "Element" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 419; goto try_except_handler_20; } tmp_tuple_element_16 = tmp_mvar_value_7; tmp_assign_source_60 = PyTuple_New( 1 ); Py_INCREF( tmp_tuple_element_16 ); PyTuple_SET_ITEM( tmp_assign_source_60, 0, tmp_tuple_element_16 ); assert( tmp_class_creation_5__bases_orig == NULL ); tmp_class_creation_5__bases_orig = tmp_assign_source_60; } { PyObject *tmp_assign_source_61; PyObject *tmp_dircall_arg1_5; CHECK_OBJECT( tmp_class_creation_5__bases_orig ); tmp_dircall_arg1_5 = tmp_class_creation_5__bases_orig; Py_INCREF( tmp_dircall_arg1_5 ); { PyObject *dir_call_args[] = {tmp_dircall_arg1_5}; tmp_assign_source_61 = impl___internal__$$$function_1__mro_entries_conversion( dir_call_args ); } if ( tmp_assign_source_61 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 419; goto try_except_handler_20; } assert( tmp_class_creation_5__bases == NULL ); tmp_class_creation_5__bases = tmp_assign_source_61; } { PyObject *tmp_assign_source_62; tmp_assign_source_62 = PyDict_New(); assert( tmp_class_creation_5__class_decl_dict == NULL ); tmp_class_creation_5__class_decl_dict = tmp_assign_source_62; } { PyObject *tmp_assign_source_63; PyObject *tmp_metaclass_name_5; nuitka_bool tmp_condition_result_28; PyObject *tmp_key_name_13; PyObject *tmp_dict_name_13; PyObject *tmp_dict_name_14; PyObject *tmp_key_name_14; nuitka_bool tmp_condition_result_29; int tmp_truth_name_5; PyObject *tmp_type_arg_9; PyObject *tmp_subscribed_name_5; PyObject *tmp_subscript_name_5; PyObject *tmp_bases_name_5; tmp_key_name_13 = const_str_plain_metaclass; CHECK_OBJECT( tmp_class_creation_5__class_decl_dict ); tmp_dict_name_13 = tmp_class_creation_5__class_decl_dict; tmp_res = PyDict_Contains( tmp_dict_name_13, tmp_key_name_13 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 419; goto try_except_handler_20; } tmp_condition_result_28 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_28 == NUITKA_BOOL_TRUE ) { goto condexpr_true_11; } else { goto condexpr_false_11; } condexpr_true_11:; CHECK_OBJECT( tmp_class_creation_5__class_decl_dict ); tmp_dict_name_14 = tmp_class_creation_5__class_decl_dict; tmp_key_name_14 = const_str_plain_metaclass; tmp_metaclass_name_5 = DICT_GET_ITEM( tmp_dict_name_14, tmp_key_name_14 ); if ( tmp_metaclass_name_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 419; goto try_except_handler_20; } goto condexpr_end_11; condexpr_false_11:; CHECK_OBJECT( tmp_class_creation_5__bases ); tmp_truth_name_5 = CHECK_IF_TRUE( tmp_class_creation_5__bases ); if ( tmp_truth_name_5 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 419; goto try_except_handler_20; } tmp_condition_result_29 = tmp_truth_name_5 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_29 == NUITKA_BOOL_TRUE ) { goto condexpr_true_12; } else { goto condexpr_false_12; } condexpr_true_12:; CHECK_OBJECT( tmp_class_creation_5__bases ); tmp_subscribed_name_5 = tmp_class_creation_5__bases; tmp_subscript_name_5 = const_int_0; tmp_type_arg_9 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_5, tmp_subscript_name_5, 0 ); if ( tmp_type_arg_9 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 419; goto try_except_handler_20; } tmp_metaclass_name_5 = BUILTIN_TYPE1( tmp_type_arg_9 ); Py_DECREF( tmp_type_arg_9 ); if ( tmp_metaclass_name_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 419; goto try_except_handler_20; } goto condexpr_end_12; condexpr_false_12:; tmp_metaclass_name_5 = (PyObject *)&PyType_Type; Py_INCREF( tmp_metaclass_name_5 ); condexpr_end_12:; condexpr_end_11:; CHECK_OBJECT( tmp_class_creation_5__bases ); tmp_bases_name_5 = tmp_class_creation_5__bases; tmp_assign_source_63 = SELECT_METACLASS( tmp_metaclass_name_5, tmp_bases_name_5 ); Py_DECREF( tmp_metaclass_name_5 ); if ( tmp_assign_source_63 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 419; goto try_except_handler_20; } assert( tmp_class_creation_5__metaclass == NULL ); tmp_class_creation_5__metaclass = tmp_assign_source_63; } { nuitka_bool tmp_condition_result_30; PyObject *tmp_key_name_15; PyObject *tmp_dict_name_15; tmp_key_name_15 = const_str_plain_metaclass; CHECK_OBJECT( tmp_class_creation_5__class_decl_dict ); tmp_dict_name_15 = tmp_class_creation_5__class_decl_dict; tmp_res = PyDict_Contains( tmp_dict_name_15, tmp_key_name_15 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 419; goto try_except_handler_20; } tmp_condition_result_30 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_30 == NUITKA_BOOL_TRUE ) { goto branch_yes_18; } else { goto branch_no_18; } branch_yes_18:; { CHECK_OBJECT( tmp_class_creation_5__class_decl_dict ); tmp_dictdel_dict = tmp_class_creation_5__class_decl_dict; tmp_dictdel_key = const_str_plain_metaclass; tmp_result = DICT_REMOVE_ITEM( tmp_dictdel_dict, tmp_dictdel_key ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 419; goto try_except_handler_20; } } branch_no_18:; } { nuitka_bool tmp_condition_result_31; PyObject *tmp_source_name_19; CHECK_OBJECT( tmp_class_creation_5__metaclass ); tmp_source_name_19 = tmp_class_creation_5__metaclass; tmp_res = PyObject_HasAttr( tmp_source_name_19, const_str_plain___prepare__ ); tmp_condition_result_31 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_31 == NUITKA_BOOL_TRUE ) { goto branch_yes_19; } else { goto branch_no_19; } branch_yes_19:; { PyObject *tmp_assign_source_64; PyObject *tmp_called_name_13; PyObject *tmp_source_name_20; PyObject *tmp_args_name_9; PyObject *tmp_tuple_element_17; PyObject *tmp_kw_name_9; CHECK_OBJECT( tmp_class_creation_5__metaclass ); tmp_source_name_20 = tmp_class_creation_5__metaclass; tmp_called_name_13 = LOOKUP_ATTRIBUTE( tmp_source_name_20, const_str_plain___prepare__ ); if ( tmp_called_name_13 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 419; goto try_except_handler_20; } tmp_tuple_element_17 = const_str_plain_TextNode; tmp_args_name_9 = PyTuple_New( 2 ); Py_INCREF( tmp_tuple_element_17 ); PyTuple_SET_ITEM( tmp_args_name_9, 0, tmp_tuple_element_17 ); CHECK_OBJECT( tmp_class_creation_5__bases ); tmp_tuple_element_17 = tmp_class_creation_5__bases; Py_INCREF( tmp_tuple_element_17 ); PyTuple_SET_ITEM( tmp_args_name_9, 1, tmp_tuple_element_17 ); CHECK_OBJECT( tmp_class_creation_5__class_decl_dict ); tmp_kw_name_9 = tmp_class_creation_5__class_decl_dict; frame_190956253b9a419daac23f67668d6fc5->m_frame.f_lineno = 419; tmp_assign_source_64 = CALL_FUNCTION( tmp_called_name_13, tmp_args_name_9, tmp_kw_name_9 ); Py_DECREF( tmp_called_name_13 ); Py_DECREF( tmp_args_name_9 ); if ( tmp_assign_source_64 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 419; goto try_except_handler_20; } assert( tmp_class_creation_5__prepared == NULL ); tmp_class_creation_5__prepared = tmp_assign_source_64; } { nuitka_bool tmp_condition_result_32; PyObject *tmp_operand_name_5; PyObject *tmp_source_name_21; CHECK_OBJECT( tmp_class_creation_5__prepared ); tmp_source_name_21 = tmp_class_creation_5__prepared; tmp_res = PyObject_HasAttr( tmp_source_name_21, const_str_plain___getitem__ ); tmp_operand_name_5 = ( tmp_res != 0 ) ? Py_True : Py_False; tmp_res = CHECK_IF_TRUE( tmp_operand_name_5 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 419; goto try_except_handler_20; } tmp_condition_result_32 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_32 == NUITKA_BOOL_TRUE ) { goto branch_yes_20; } else { goto branch_no_20; } branch_yes_20:; { PyObject *tmp_raise_type_5; PyObject *tmp_raise_value_5; PyObject *tmp_left_name_5; PyObject *tmp_right_name_5; PyObject *tmp_tuple_element_18; PyObject *tmp_getattr_target_5; PyObject *tmp_getattr_attr_5; PyObject *tmp_getattr_default_5; PyObject *tmp_source_name_22; PyObject *tmp_type_arg_10; tmp_raise_type_5 = PyExc_TypeError; tmp_left_name_5 = const_str_digest_75fd71b1edada749c2ef7ac810062295; CHECK_OBJECT( tmp_class_creation_5__metaclass ); tmp_getattr_target_5 = tmp_class_creation_5__metaclass; tmp_getattr_attr_5 = const_str_plain___name__; tmp_getattr_default_5 = const_str_angle_metaclass; tmp_tuple_element_18 = BUILTIN_GETATTR( tmp_getattr_target_5, tmp_getattr_attr_5, tmp_getattr_default_5 ); if ( tmp_tuple_element_18 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 419; goto try_except_handler_20; } tmp_right_name_5 = PyTuple_New( 2 ); PyTuple_SET_ITEM( tmp_right_name_5, 0, tmp_tuple_element_18 ); CHECK_OBJECT( tmp_class_creation_5__prepared ); tmp_type_arg_10 = tmp_class_creation_5__prepared; tmp_source_name_22 = BUILTIN_TYPE1( tmp_type_arg_10 ); assert( !(tmp_source_name_22 == NULL) ); tmp_tuple_element_18 = LOOKUP_ATTRIBUTE( tmp_source_name_22, const_str_plain___name__ ); Py_DECREF( tmp_source_name_22 ); if ( tmp_tuple_element_18 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_right_name_5 ); exception_lineno = 419; goto try_except_handler_20; } PyTuple_SET_ITEM( tmp_right_name_5, 1, tmp_tuple_element_18 ); tmp_raise_value_5 = BINARY_OPERATION_REMAINDER( tmp_left_name_5, tmp_right_name_5 ); Py_DECREF( tmp_right_name_5 ); if ( tmp_raise_value_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 419; goto try_except_handler_20; } exception_type = tmp_raise_type_5; Py_INCREF( tmp_raise_type_5 ); exception_value = tmp_raise_value_5; exception_lineno = 419; RAISE_EXCEPTION_IMPLICIT( &exception_type, &exception_value, &exception_tb ); goto try_except_handler_20; } branch_no_20:; } goto branch_end_19; branch_no_19:; { PyObject *tmp_assign_source_65; tmp_assign_source_65 = PyDict_New(); assert( tmp_class_creation_5__prepared == NULL ); tmp_class_creation_5__prepared = tmp_assign_source_65; } branch_end_19:; } { PyObject *tmp_assign_source_66; { PyObject *tmp_set_locals_5; CHECK_OBJECT( tmp_class_creation_5__prepared ); tmp_set_locals_5 = tmp_class_creation_5__prepared; locals_bs4$builder$_html5lib_419 = tmp_set_locals_5; Py_INCREF( tmp_set_locals_5 ); } { // Tried code: { // Tried code: { tmp_dictset_value = const_str_digest_b8f5ff66404d2dfd3fa72280ec60871e; tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_419, const_str_plain___module__, tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 419; goto try_except_handler_22; } } { tmp_dictset_value = const_str_plain_TextNode; tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_419, const_str_plain___qualname__, tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 419; goto try_except_handler_22; } } MAKE_OR_REUSE_FRAME( cache_frame_7a917daf59bc0143119af86b7747ac6d_6, codeobj_7a917daf59bc0143119af86b7747ac6d, module_bs4$builder$_html5lib, sizeof(void *) ); frame_7a917daf59bc0143119af86b7747ac6d_6 = cache_frame_7a917daf59bc0143119af86b7747ac6d_6; // Push the new frame as the currently active one. pushFrameStack( frame_7a917daf59bc0143119af86b7747ac6d_6 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_7a917daf59bc0143119af86b7747ac6d_6 ) == 2 ); // Frame stack // Framed code: { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_34___init__( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_419, const_str_plain___init__, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 420; type_description_2 = "o"; goto frame_exception_exit_6; } } { tmp_dictset_value = MAKE_FUNCTION_bs4$builder$_html5lib$$$function_35_cloneNode( ); tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_419, const_str_plain_cloneNode, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 425; type_description_2 = "o"; goto frame_exception_exit_6; } } #if 0 RESTORE_FRAME_EXCEPTION( frame_7a917daf59bc0143119af86b7747ac6d_6 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_5; frame_exception_exit_6:; #if 0 RESTORE_FRAME_EXCEPTION( frame_7a917daf59bc0143119af86b7747ac6d_6 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_7a917daf59bc0143119af86b7747ac6d_6, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_7a917daf59bc0143119af86b7747ac6d_6->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_7a917daf59bc0143119af86b7747ac6d_6, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_7a917daf59bc0143119af86b7747ac6d_6, type_description_2, outline_4_var___class__ ); // Release cached frame. if ( frame_7a917daf59bc0143119af86b7747ac6d_6 == cache_frame_7a917daf59bc0143119af86b7747ac6d_6 ) { Py_DECREF( frame_7a917daf59bc0143119af86b7747ac6d_6 ); } cache_frame_7a917daf59bc0143119af86b7747ac6d_6 = NULL; assertFrameObject( frame_7a917daf59bc0143119af86b7747ac6d_6 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto nested_frame_exit_5; frame_no_exception_5:; goto skip_nested_handling_5; nested_frame_exit_5:; goto try_except_handler_22; skip_nested_handling_5:; { nuitka_bool tmp_condition_result_33; PyObject *tmp_compexpr_left_6; PyObject *tmp_compexpr_right_6; CHECK_OBJECT( tmp_class_creation_5__bases ); tmp_compexpr_left_6 = tmp_class_creation_5__bases; CHECK_OBJECT( tmp_class_creation_5__bases_orig ); tmp_compexpr_right_6 = tmp_class_creation_5__bases_orig; tmp_res = RICH_COMPARE_BOOL_NE( tmp_compexpr_left_6, tmp_compexpr_right_6 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 419; goto try_except_handler_22; } tmp_condition_result_33 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_33 == NUITKA_BOOL_TRUE ) { goto branch_yes_21; } else { goto branch_no_21; } branch_yes_21:; { CHECK_OBJECT( tmp_class_creation_5__bases_orig ); tmp_dictset_value = tmp_class_creation_5__bases_orig; tmp_res = PyObject_SetItem( locals_bs4$builder$_html5lib_419, const_str_plain___orig_bases__, tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 419; goto try_except_handler_22; } } branch_no_21:; } { PyObject *tmp_assign_source_67; PyObject *tmp_called_name_14; PyObject *tmp_args_name_10; PyObject *tmp_tuple_element_19; PyObject *tmp_kw_name_10; CHECK_OBJECT( tmp_class_creation_5__metaclass ); tmp_called_name_14 = tmp_class_creation_5__metaclass; tmp_tuple_element_19 = const_str_plain_TextNode; tmp_args_name_10 = PyTuple_New( 3 ); Py_INCREF( tmp_tuple_element_19 ); PyTuple_SET_ITEM( tmp_args_name_10, 0, tmp_tuple_element_19 ); CHECK_OBJECT( tmp_class_creation_5__bases ); tmp_tuple_element_19 = tmp_class_creation_5__bases; Py_INCREF( tmp_tuple_element_19 ); PyTuple_SET_ITEM( tmp_args_name_10, 1, tmp_tuple_element_19 ); tmp_tuple_element_19 = locals_bs4$builder$_html5lib_419; Py_INCREF( tmp_tuple_element_19 ); PyTuple_SET_ITEM( tmp_args_name_10, 2, tmp_tuple_element_19 ); CHECK_OBJECT( tmp_class_creation_5__class_decl_dict ); tmp_kw_name_10 = tmp_class_creation_5__class_decl_dict; frame_190956253b9a419daac23f67668d6fc5->m_frame.f_lineno = 419; tmp_assign_source_67 = CALL_FUNCTION( tmp_called_name_14, tmp_args_name_10, tmp_kw_name_10 ); Py_DECREF( tmp_args_name_10 ); if ( tmp_assign_source_67 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 419; goto try_except_handler_22; } assert( outline_4_var___class__ == NULL ); outline_4_var___class__ = tmp_assign_source_67; } { CHECK_OBJECT( outline_4_var___class__ ); tmp_assign_source_66 = outline_4_var___class__; Py_INCREF( tmp_assign_source_66 ); goto try_return_handler_22; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib ); return MOD_RETURN_VALUE( NULL ); // Return handler code: try_return_handler_22:; { Py_DECREF( locals_bs4$builder$_html5lib_419 ); locals_bs4$builder$_html5lib_419 = NULL; } { goto try_return_handler_21; } // Exception handler code: try_except_handler_22:; exception_keeper_type_20 = exception_type; exception_keeper_value_20 = exception_value; exception_keeper_tb_20 = exception_tb; exception_keeper_lineno_20 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_DECREF( locals_bs4$builder$_html5lib_419 ); locals_bs4$builder$_html5lib_419 = NULL; } { // Re-raise. exception_type = exception_keeper_type_20; exception_value = exception_keeper_value_20; exception_tb = exception_keeper_tb_20; exception_lineno = exception_keeper_lineno_20; goto try_except_handler_21; } // End of try: } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib ); return MOD_RETURN_VALUE( NULL ); // Return handler code: try_return_handler_21:; { CHECK_OBJECT( (PyObject *)outline_4_var___class__ ); Py_DECREF( outline_4_var___class__ ); outline_4_var___class__ = NULL; } { goto outline_result_5; } // Exception handler code: try_except_handler_21:; exception_keeper_type_21 = exception_type; exception_keeper_value_21 = exception_value; exception_keeper_tb_21 = exception_tb; exception_keeper_lineno_21 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { // Re-raise. exception_type = exception_keeper_type_21; exception_value = exception_keeper_value_21; exception_tb = exception_keeper_tb_21; exception_lineno = exception_keeper_lineno_21; goto outline_exception_5; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( bs4$builder$_html5lib ); return MOD_RETURN_VALUE( NULL ); outline_exception_5:; exception_lineno = 419; goto try_except_handler_20; outline_result_5:; UPDATE_STRING_DICT1( moduledict_bs4$builder$_html5lib, (Nuitka_StringObject *)const_str_plain_TextNode, tmp_assign_source_66 ); } goto try_end_12; // Exception handler code: try_except_handler_20:; exception_keeper_type_22 = exception_type; exception_keeper_value_22 = exception_value; exception_keeper_tb_22 = exception_tb; exception_keeper_lineno_22 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( tmp_class_creation_5__bases ); tmp_class_creation_5__bases = NULL; } { Py_XDECREF( tmp_class_creation_5__class_decl_dict ); tmp_class_creation_5__class_decl_dict = NULL; } { Py_XDECREF( tmp_class_creation_5__metaclass ); tmp_class_creation_5__metaclass = NULL; } { Py_XDECREF( tmp_class_creation_5__prepared ); tmp_class_creation_5__prepared = NULL; } { // Re-raise. exception_type = exception_keeper_type_22; exception_value = exception_keeper_value_22; exception_tb = exception_keeper_tb_22; exception_lineno = exception_keeper_lineno_22; goto frame_exception_exit_1; } // End of try: try_end_12:; } // Restore frame exception if necessary. #if 0 RESTORE_FRAME_EXCEPTION( frame_190956253b9a419daac23f67668d6fc5 ); #endif popFrameStack(); assertFrameObject( frame_190956253b9a419daac23f67668d6fc5 ); goto frame_no_exception_6; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_190956253b9a419daac23f67668d6fc5 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_190956253b9a419daac23f67668d6fc5, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_190956253b9a419daac23f67668d6fc5->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_190956253b9a419daac23f67668d6fc5, exception_lineno ); } // Put the previous frame back on top. popFrameStack(); // Return the error. goto module_exception_exit; frame_no_exception_6:; { CHECK_OBJECT( (PyObject *)tmp_class_creation_5__bases ); Py_DECREF( tmp_class_creation_5__bases ); tmp_class_creation_5__bases = NULL; } { CHECK_OBJECT( (PyObject *)tmp_class_creation_5__class_decl_dict ); Py_DECREF( tmp_class_creation_5__class_decl_dict ); tmp_class_creation_5__class_decl_dict = NULL; } { CHECK_OBJECT( (PyObject *)tmp_class_creation_5__metaclass ); Py_DECREF( tmp_class_creation_5__metaclass ); tmp_class_creation_5__metaclass = NULL; } { CHECK_OBJECT( (PyObject *)tmp_class_creation_5__prepared ); Py_DECREF( tmp_class_creation_5__prepared ); tmp_class_creation_5__prepared = NULL; } return MOD_RETURN_VALUE( module_bs4$builder$_html5lib ); module_exception_exit: RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return MOD_RETURN_VALUE( NULL ); }