/* Generated code for Python source for module 'html5lib.treewalkers' * 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_html5lib$treewalkers 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_html5lib$treewalkers; PyDictObject *moduledict_html5lib$treewalkers; /* The module constants used, if any. */ extern PyObject *const_str_digest_9b2a32a10f34854554acce4f0a1e5df6; extern PyObject *const_str_plain_constants; extern PyObject *const_str_plain_sorted; extern PyObject *const_str_plain_StartTag; extern PyObject *const_str_plain___file__; extern PyObject *const_str_plain_etree; extern PyObject *const_str_plain_division; extern PyObject *const_str_plain_items; static PyObject *const_tuple_str_digest_f4cccc7f88053d3fd5bf10d61ee8397c_tuple; extern PyObject *const_str_plain_None; extern PyObject *const_str_plain_ns; extern PyObject *const_tuple_str_plain_dom_tuple; extern PyObject *const_str_plain_join; extern PyObject *const_str_plain_absolute_import; extern PyObject *const_str_plain___doc__; extern PyObject *const_str_plain_getTreeWalker; extern PyObject *const_str_plain_lower; extern PyObject *const_str_plain_publicId; static PyObject *const_str_digest_8301ba6f108737bbcc02a3205ff6c89b; extern PyObject *const_str_plain_attrs; extern PyObject *const_str_plain_data; static PyObject *const_str_plain_pendingCharacters; extern PyObject *const_tuple_str_plain_constants_tuple; static PyObject *const_str_digest_009b8c4ee6f44ce0f70e03d79274d298; extern PyObject *const_str_plain_Characters; extern PyObject *const_str_plain_value; static PyObject *const_str_digest_5a4551a454f1fcd784cb4a432e2dffa5; extern PyObject *const_str_plain__utils; static PyObject *const_str_plain_pprint; extern PyObject *const_str_plain_Doctype; extern PyObject *const_tuple_str_plain_etree_lxml_tuple; extern PyObject *const_str_plain_TreeWalker; extern PyObject *const_str_plain_dom; static PyObject *const_str_digest_df55edb9322797849652f7a1e1ac2422; extern PyObject *const_str_plain_indent; extern PyObject *const_str_plain___path__; extern PyObject *const_str_plain_tokens; extern PyObject *const_tuple_empty; extern PyObject *const_str_space; static PyObject *const_tuple_b81edfaddde6b79e74c19c6890028098_tuple; extern PyObject *const_str_plain_append; extern PyObject *const_str_plain_EndTag; extern PyObject *const_str_plain_default_etree; static PyObject *const_tuple_d705c1536ee18eb11b4095cd1576cf24_tuple; static PyObject *const_str_digest_1dee8cf28267e8a9548c760779bdc423; extern PyObject *const_str_plain_name; extern PyObject *const_str_plain_systemId; extern PyObject *const_str_plain_token; extern PyObject *const_str_plain_output; extern PyObject *const_str_plain___all__; extern PyObject *const_str_plain_treeType; extern PyObject *const_str_plain_lxml; extern PyObject *const_tuple_str_plain_etree_tuple; extern PyObject *const_int_0; static PyObject *const_str_digest_28e03cfc37c27511313189e48c20b7e6; extern PyObject *const_tuple_str_plain_StartTag_str_plain_EmptyTag_tuple; extern PyObject *const_tuple_str_plain_Characters_str_plain_SpaceCharacters_tuple; static PyObject *const_str_digest_dadcd91994e65170e66c0745ec0ad8e1; extern PyObject *const_str_plain_EmptyTag; static PyObject *const_list_str_digest_df55edb9322797849652f7a1e1ac2422_list; extern PyObject *const_str_plain_localname; static PyObject *const_str_digest_3c3a391610fbcf14be1d0002ce523990; static PyObject *const_tuple_str_plain_genshi_tuple; extern PyObject *const_str_plain_html; static PyObject *const_str_digest_4e97639a72b0e31388322e87052ff6d9; static PyObject *const_str_digest_27c816a741eaf31778ed9f63df9bc05a; extern PyObject *const_str_plain_etree_lxml; extern PyObject *const_str_plain_Comment; extern PyObject *const_str_plain_SpaceCharacters; extern PyObject *const_str_plain_type; extern PyObject *const_str_plain_namespace; extern PyObject *const_str_plain___cached__; extern PyObject *const_tuple_none_tuple; extern PyObject *const_str_plain_namespaces; extern PyObject *const_str_plain_prefixes; extern PyObject *const_str_plain_unicode_literals; extern PyObject *const_int_pos_1; static PyObject *const_str_digest_c9f4db3199593c3cf1242165bc52de4c; static PyObject *const_str_digest_1ea5ecabedcae314f25ee11563c438b3; extern PyObject *const_str_newline; static PyObject *const_str_digest_fdb3b22c948bd5f39e20cf573f99c320; extern PyObject *const_str_plain_getETreeModule; static PyObject *const_str_plain_genshi; static PyObject *const_str_digest_381b3e2a7be0aa723626ed09de351469; static PyObject *const_str_digest_2d0b84f3d7636d263d277af520911848; static PyObject *const_str_digest_7c25a17645a58aad34f39f628a239c8a; static PyObject *const_list_str_plain_getTreeWalker_str_plain_pprint_list; extern PyObject *const_str_plain_kwargs; extern PyObject *const_str_plain_get; extern PyObject *const_tuple_str_plain_default_etree_tuple; extern PyObject *const_int_pos_2; static PyObject *const_str_digest_f4cccc7f88053d3fd5bf10d61ee8397c; static PyObject *const_str_plain_concatenateCharacterTokens; extern PyObject *const_str_empty; extern PyObject *const_str_plain_implementation; static PyObject *const_tuple_a07c3b2cabc1be9ecb39ff2af90b0136_tuple; static PyObject *const_str_plain_treeWalkerCache; extern PyObject *const_str_plain_walker; static PyObject *module_filename_obj; static bool constants_created = false; static void createModuleConstants( void ) { const_tuple_str_digest_f4cccc7f88053d3fd5bf10d61ee8397c_tuple = PyTuple_New( 1 ); const_str_digest_f4cccc7f88053d3fd5bf10d61ee8397c = UNSTREAM_STRING( &constant_bin[ 874746 ], 66, 0 ); PyTuple_SET_ITEM( const_tuple_str_digest_f4cccc7f88053d3fd5bf10d61ee8397c_tuple, 0, const_str_digest_f4cccc7f88053d3fd5bf10d61ee8397c ); Py_INCREF( const_str_digest_f4cccc7f88053d3fd5bf10d61ee8397c ); const_str_digest_8301ba6f108737bbcc02a3205ff6c89b = UNSTREAM_STRING( &constant_bin[ 874812 ], 29, 0 ); const_str_plain_pendingCharacters = UNSTREAM_STRING( &constant_bin[ 874841 ], 17, 1 ); const_str_digest_009b8c4ee6f44ce0f70e03d79274d298 = UNSTREAM_STRING( &constant_bin[ 874858 ], 9, 0 ); const_str_digest_5a4551a454f1fcd784cb4a432e2dffa5 = UNSTREAM_STRING( &constant_bin[ 874867 ], 15, 0 ); const_str_plain_pprint = UNSTREAM_STRING( &constant_bin[ 874882 ], 6, 1 ); const_str_digest_df55edb9322797849652f7a1e1ac2422 = UNSTREAM_STRING( &constant_bin[ 874888 ], 53, 0 ); const_tuple_b81edfaddde6b79e74c19c6890028098_tuple = PyTuple_New( 11 ); PyTuple_SET_ITEM( const_tuple_b81edfaddde6b79e74c19c6890028098_tuple, 0, const_str_plain_walker ); Py_INCREF( const_str_plain_walker ); PyTuple_SET_ITEM( const_tuple_b81edfaddde6b79e74c19c6890028098_tuple, 1, const_str_plain_output ); Py_INCREF( const_str_plain_output ); PyTuple_SET_ITEM( const_tuple_b81edfaddde6b79e74c19c6890028098_tuple, 2, const_str_plain_indent ); Py_INCREF( const_str_plain_indent ); PyTuple_SET_ITEM( const_tuple_b81edfaddde6b79e74c19c6890028098_tuple, 3, const_str_plain_token ); Py_INCREF( const_str_plain_token ); PyTuple_SET_ITEM( const_tuple_b81edfaddde6b79e74c19c6890028098_tuple, 4, const_str_plain_type ); Py_INCREF( const_str_plain_type ); PyTuple_SET_ITEM( const_tuple_b81edfaddde6b79e74c19c6890028098_tuple, 5, const_str_plain_ns ); Py_INCREF( const_str_plain_ns ); PyTuple_SET_ITEM( const_tuple_b81edfaddde6b79e74c19c6890028098_tuple, 6, const_str_plain_name ); Py_INCREF( const_str_plain_name ); PyTuple_SET_ITEM( const_tuple_b81edfaddde6b79e74c19c6890028098_tuple, 7, const_str_plain_attrs ); Py_INCREF( const_str_plain_attrs ); PyTuple_SET_ITEM( const_tuple_b81edfaddde6b79e74c19c6890028098_tuple, 8, const_str_plain_namespace ); Py_INCREF( const_str_plain_namespace ); PyTuple_SET_ITEM( const_tuple_b81edfaddde6b79e74c19c6890028098_tuple, 9, const_str_plain_localname ); Py_INCREF( const_str_plain_localname ); PyTuple_SET_ITEM( const_tuple_b81edfaddde6b79e74c19c6890028098_tuple, 10, const_str_plain_value ); Py_INCREF( const_str_plain_value ); const_tuple_d705c1536ee18eb11b4095cd1576cf24_tuple = PyTuple_New( 7 ); PyTuple_SET_ITEM( const_tuple_d705c1536ee18eb11b4095cd1576cf24_tuple, 0, const_str_plain_treeType ); Py_INCREF( const_str_plain_treeType ); PyTuple_SET_ITEM( const_tuple_d705c1536ee18eb11b4095cd1576cf24_tuple, 1, const_str_plain_implementation ); Py_INCREF( const_str_plain_implementation ); PyTuple_SET_ITEM( const_tuple_d705c1536ee18eb11b4095cd1576cf24_tuple, 2, const_str_plain_kwargs ); Py_INCREF( const_str_plain_kwargs ); PyTuple_SET_ITEM( const_tuple_d705c1536ee18eb11b4095cd1576cf24_tuple, 3, const_str_plain_dom ); Py_INCREF( const_str_plain_dom ); const_str_plain_genshi = UNSTREAM_STRING( &constant_bin[ 874941 ], 6, 1 ); PyTuple_SET_ITEM( const_tuple_d705c1536ee18eb11b4095cd1576cf24_tuple, 4, const_str_plain_genshi ); Py_INCREF( const_str_plain_genshi ); PyTuple_SET_ITEM( const_tuple_d705c1536ee18eb11b4095cd1576cf24_tuple, 5, const_str_plain_etree_lxml ); Py_INCREF( const_str_plain_etree_lxml ); PyTuple_SET_ITEM( const_tuple_d705c1536ee18eb11b4095cd1576cf24_tuple, 6, const_str_plain_etree ); Py_INCREF( const_str_plain_etree ); const_str_digest_1dee8cf28267e8a9548c760779bdc423 = UNSTREAM_STRING( &constant_bin[ 874947 ], 827, 0 ); const_str_digest_28e03cfc37c27511313189e48c20b7e6 = UNSTREAM_STRING( &constant_bin[ 875774 ], 13, 0 ); const_str_digest_dadcd91994e65170e66c0745ec0ad8e1 = UNSTREAM_STRING( &constant_bin[ 875787 ], 384, 0 ); const_list_str_digest_df55edb9322797849652f7a1e1ac2422_list = PyList_New( 1 ); PyList_SET_ITEM( const_list_str_digest_df55edb9322797849652f7a1e1ac2422_list, 0, const_str_digest_df55edb9322797849652f7a1e1ac2422 ); Py_INCREF( const_str_digest_df55edb9322797849652f7a1e1ac2422 ); const_str_digest_3c3a391610fbcf14be1d0002ce523990 = UNSTREAM_STRING( &constant_bin[ 876171 ], 23, 0 ); const_tuple_str_plain_genshi_tuple = PyTuple_New( 1 ); PyTuple_SET_ITEM( const_tuple_str_plain_genshi_tuple, 0, const_str_plain_genshi ); Py_INCREF( const_str_plain_genshi ); const_str_digest_4e97639a72b0e31388322e87052ff6d9 = UNSTREAM_STRING( &constant_bin[ 876194 ], 13, 0 ); const_str_digest_27c816a741eaf31778ed9f63df9bc05a = UNSTREAM_STRING( &constant_bin[ 874820 ], 20, 0 ); const_str_digest_c9f4db3199593c3cf1242165bc52de4c = UNSTREAM_STRING( &constant_bin[ 876207 ], 22, 0 ); const_str_digest_1ea5ecabedcae314f25ee11563c438b3 = UNSTREAM_STRING( &constant_bin[ 876229 ], 25, 0 ); const_str_digest_fdb3b22c948bd5f39e20cf573f99c320 = UNSTREAM_STRING( &constant_bin[ 876254 ], 160, 0 ); const_str_digest_381b3e2a7be0aa723626ed09de351469 = UNSTREAM_STRING( &constant_bin[ 876414 ], 6, 0 ); const_str_digest_2d0b84f3d7636d263d277af520911848 = UNSTREAM_STRING( &constant_bin[ 876420 ], 6, 0 ); const_str_digest_7c25a17645a58aad34f39f628a239c8a = UNSTREAM_STRING( &constant_bin[ 876426 ], 65, 0 ); const_list_str_plain_getTreeWalker_str_plain_pprint_list = PyList_New( 2 ); PyList_SET_ITEM( const_list_str_plain_getTreeWalker_str_plain_pprint_list, 0, const_str_plain_getTreeWalker ); Py_INCREF( const_str_plain_getTreeWalker ); PyList_SET_ITEM( const_list_str_plain_getTreeWalker_str_plain_pprint_list, 1, const_str_plain_pprint ); Py_INCREF( const_str_plain_pprint ); const_str_plain_concatenateCharacterTokens = UNSTREAM_STRING( &constant_bin[ 874746 ], 26, 1 ); const_tuple_a07c3b2cabc1be9ecb39ff2af90b0136_tuple = PyTuple_New( 4 ); PyTuple_SET_ITEM( const_tuple_a07c3b2cabc1be9ecb39ff2af90b0136_tuple, 0, const_str_plain_tokens ); Py_INCREF( const_str_plain_tokens ); PyTuple_SET_ITEM( const_tuple_a07c3b2cabc1be9ecb39ff2af90b0136_tuple, 1, const_str_plain_pendingCharacters ); Py_INCREF( const_str_plain_pendingCharacters ); PyTuple_SET_ITEM( const_tuple_a07c3b2cabc1be9ecb39ff2af90b0136_tuple, 2, const_str_plain_token ); Py_INCREF( const_str_plain_token ); PyTuple_SET_ITEM( const_tuple_a07c3b2cabc1be9ecb39ff2af90b0136_tuple, 3, const_str_plain_type ); Py_INCREF( const_str_plain_type ); const_str_plain_treeWalkerCache = UNSTREAM_STRING( &constant_bin[ 876491 ], 15, 1 ); constants_created = true; } #ifndef __NUITKA_NO_ASSERT__ void checkModuleConstants_html5lib$treewalkers( void ) { // The module may not have been used at all. if (constants_created == false) return; } #endif // The module code objects. static PyCodeObject *codeobj_be32d5dd49940117475e106e5a26e660; static PyCodeObject *codeobj_b4f657eda2cd4485e91c48110cec35a4; static PyCodeObject *codeobj_2ae5c76300bc20f31328a6c9aa411f75; static PyCodeObject *codeobj_5a5ef2b1bf8a177c9cedb0b028b6c4e1; static void createModuleCodeObjects(void) { module_filename_obj = const_str_digest_7c25a17645a58aad34f39f628a239c8a; codeobj_be32d5dd49940117475e106e5a26e660 = MAKE_CODEOBJ( module_filename_obj, const_str_digest_8301ba6f108737bbcc02a3205ff6c89b, 1, const_tuple_empty, 0, 0, CO_NOFREE | CO_FUTURE_UNICODE_LITERALS ); codeobj_b4f657eda2cd4485e91c48110cec35a4 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_concatenateCharacterTokens, 65, const_tuple_a07c3b2cabc1be9ecb39ff2af90b0136_tuple, 1, 0, CO_GENERATOR | CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE | CO_FUTURE_UNICODE_LITERALS ); codeobj_2ae5c76300bc20f31328a6c9aa411f75 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_getTreeWalker, 21, const_tuple_d705c1536ee18eb11b4095cd1576cf24_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE | CO_FUTURE_UNICODE_LITERALS ); codeobj_5a5ef2b1bf8a177c9cedb0b028b6c4e1 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_pprint, 80, const_tuple_b81edfaddde6b79e74c19c6890028098_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE | CO_FUTURE_UNICODE_LITERALS ); } // The module function declarations. static PyObject *html5lib$treewalkers$$$function_2_concatenateCharacterTokens$$$genobj_1_concatenateCharacterTokens_maker( void ); NUITKA_CROSS_MODULE PyObject *impl___internal__$$$function_5_complex_call_helper_pos_star_dict( PyObject **python_pars ); static PyObject *MAKE_FUNCTION_html5lib$treewalkers$$$function_1_getTreeWalker( PyObject *defaults ); static PyObject *MAKE_FUNCTION_html5lib$treewalkers$$$function_2_concatenateCharacterTokens( ); static PyObject *MAKE_FUNCTION_html5lib$treewalkers$$$function_3_pprint( ); // The module function definitions. static PyObject *impl_html5lib$treewalkers$$$function_1_getTreeWalker( 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_treeType = python_pars[ 0 ]; PyObject *par_implementation = python_pars[ 1 ]; PyObject *par_kwargs = python_pars[ 2 ]; PyObject *var_dom = NULL; PyObject *var_genshi = NULL; PyObject *var_etree_lxml = NULL; PyObject *var_etree = NULL; struct Nuitka_FrameObject *frame_2ae5c76300bc20f31328a6c9aa411f75; 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; PyObject *tmp_return_value = NULL; static struct Nuitka_FrameObject *cache_frame_2ae5c76300bc20f31328a6c9aa411f75 = 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_2ae5c76300bc20f31328a6c9aa411f75, codeobj_2ae5c76300bc20f31328a6c9aa411f75, module_html5lib$treewalkers, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) ); frame_2ae5c76300bc20f31328a6c9aa411f75 = cache_frame_2ae5c76300bc20f31328a6c9aa411f75; // Push the new frame as the currently active one. pushFrameStack( frame_2ae5c76300bc20f31328a6c9aa411f75 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_2ae5c76300bc20f31328a6c9aa411f75 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_assign_source_1; PyObject *tmp_called_instance_1; CHECK_OBJECT( par_treeType ); tmp_called_instance_1 = par_treeType; frame_2ae5c76300bc20f31328a6c9aa411f75->m_frame.f_lineno = 45; tmp_assign_source_1 = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain_lower ); if ( tmp_assign_source_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 45; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } { PyObject *old = par_treeType; par_treeType = tmp_assign_source_1; Py_XDECREF( old ); } } { nuitka_bool tmp_condition_result_1; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; PyObject *tmp_mvar_value_1; CHECK_OBJECT( par_treeType ); tmp_compexpr_left_1 = par_treeType; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain_treeWalkerCache ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_treeWalkerCache ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "treeWalkerCache" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 46; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_compexpr_right_1 = tmp_mvar_value_1; tmp_res = PySequence_Contains( tmp_compexpr_right_1, tmp_compexpr_left_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 46; 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:; { nuitka_bool tmp_condition_result_2; PyObject *tmp_compexpr_left_2; PyObject *tmp_compexpr_right_2; if ( par_treeType == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "treeType" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 47; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_compexpr_left_2 = par_treeType; tmp_compexpr_right_2 = const_str_plain_dom; tmp_res = RICH_COMPARE_BOOL_EQ( 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 = 47; 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_2; 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_empty; tmp_globals_name_1 = (PyObject *)moduledict_html5lib$treewalkers; tmp_locals_name_1 = Py_None; tmp_fromlist_name_1 = const_tuple_str_plain_dom_tuple; tmp_level_name_1 = const_int_pos_1; frame_2ae5c76300bc20f31328a6c9aa411f75->m_frame.f_lineno = 48; 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 = 48; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } if ( PyModule_Check( tmp_import_name_from_1 ) ) { tmp_assign_source_2 = IMPORT_NAME_OR_MODULE( tmp_import_name_from_1, (PyObject *)MODULE_DICT(tmp_import_name_from_1), const_str_plain_dom, const_int_pos_1 ); } else { tmp_assign_source_2 = IMPORT_NAME( tmp_import_name_from_1, const_str_plain_dom ); } Py_DECREF( tmp_import_name_from_1 ); if ( tmp_assign_source_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 48; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } assert( var_dom == NULL ); var_dom = tmp_assign_source_2; } { PyObject *tmp_ass_subvalue_1; PyObject *tmp_source_name_1; PyObject *tmp_ass_subscribed_1; PyObject *tmp_mvar_value_2; PyObject *tmp_ass_subscript_1; CHECK_OBJECT( var_dom ); tmp_source_name_1 = var_dom; tmp_ass_subvalue_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_TreeWalker ); if ( tmp_ass_subvalue_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 49; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain_treeWalkerCache ); if (unlikely( tmp_mvar_value_2 == NULL )) { tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_treeWalkerCache ); } if ( tmp_mvar_value_2 == NULL ) { Py_DECREF( tmp_ass_subvalue_1 ); exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "treeWalkerCache" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 49; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_ass_subscribed_1 = tmp_mvar_value_2; if ( par_treeType == 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", "treeType" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 49; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_ass_subscript_1 = par_treeType; 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 = 49; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } } goto branch_end_2; branch_no_2:; { nuitka_bool tmp_condition_result_3; PyObject *tmp_compexpr_left_3; PyObject *tmp_compexpr_right_3; if ( par_treeType == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "treeType" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 50; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_compexpr_left_3 = par_treeType; tmp_compexpr_right_3 = const_str_plain_genshi; tmp_res = RICH_COMPARE_BOOL_EQ( 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 = 50; 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_3; PyObject *tmp_import_name_from_2; 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_empty; tmp_globals_name_2 = (PyObject *)moduledict_html5lib$treewalkers; tmp_locals_name_2 = Py_None; tmp_fromlist_name_2 = const_tuple_str_plain_genshi_tuple; tmp_level_name_2 = const_int_pos_1; frame_2ae5c76300bc20f31328a6c9aa411f75->m_frame.f_lineno = 51; tmp_import_name_from_2 = IMPORT_MODULE5( tmp_name_name_2, tmp_globals_name_2, tmp_locals_name_2, tmp_fromlist_name_2, tmp_level_name_2 ); if ( tmp_import_name_from_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 51; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } if ( PyModule_Check( tmp_import_name_from_2 ) ) { tmp_assign_source_3 = IMPORT_NAME_OR_MODULE( tmp_import_name_from_2, (PyObject *)MODULE_DICT(tmp_import_name_from_2), const_str_plain_genshi, const_int_pos_1 ); } else { tmp_assign_source_3 = IMPORT_NAME( tmp_import_name_from_2, const_str_plain_genshi ); } Py_DECREF( tmp_import_name_from_2 ); if ( tmp_assign_source_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 51; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } assert( var_genshi == NULL ); var_genshi = tmp_assign_source_3; } { PyObject *tmp_ass_subvalue_2; PyObject *tmp_source_name_2; PyObject *tmp_ass_subscribed_2; PyObject *tmp_mvar_value_3; PyObject *tmp_ass_subscript_2; CHECK_OBJECT( var_genshi ); tmp_source_name_2 = var_genshi; tmp_ass_subvalue_2 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_TreeWalker ); if ( tmp_ass_subvalue_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 52; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain_treeWalkerCache ); if (unlikely( tmp_mvar_value_3 == NULL )) { tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_treeWalkerCache ); } if ( tmp_mvar_value_3 == NULL ) { Py_DECREF( tmp_ass_subvalue_2 ); exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "treeWalkerCache" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 52; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_ass_subscribed_2 = tmp_mvar_value_3; if ( par_treeType == 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", "treeType" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 52; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_ass_subscript_2 = par_treeType; 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 = 52; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } } goto branch_end_3; branch_no_3:; { nuitka_bool tmp_condition_result_4; PyObject *tmp_compexpr_left_4; PyObject *tmp_compexpr_right_4; if ( par_treeType == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "treeType" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 53; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_compexpr_left_4 = par_treeType; tmp_compexpr_right_4 = const_str_plain_lxml; tmp_res = RICH_COMPARE_BOOL_EQ( 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 = 53; type_description_1 = "ooooooo"; 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_assign_source_4; PyObject *tmp_import_name_from_3; 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_empty; tmp_globals_name_3 = (PyObject *)moduledict_html5lib$treewalkers; tmp_locals_name_3 = Py_None; tmp_fromlist_name_3 = const_tuple_str_plain_etree_lxml_tuple; tmp_level_name_3 = const_int_pos_1; frame_2ae5c76300bc20f31328a6c9aa411f75->m_frame.f_lineno = 54; tmp_import_name_from_3 = IMPORT_MODULE5( tmp_name_name_3, tmp_globals_name_3, tmp_locals_name_3, tmp_fromlist_name_3, tmp_level_name_3 ); if ( tmp_import_name_from_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 54; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } if ( PyModule_Check( tmp_import_name_from_3 ) ) { tmp_assign_source_4 = IMPORT_NAME_OR_MODULE( tmp_import_name_from_3, (PyObject *)MODULE_DICT(tmp_import_name_from_3), const_str_plain_etree_lxml, const_int_pos_1 ); } else { tmp_assign_source_4 = IMPORT_NAME( tmp_import_name_from_3, const_str_plain_etree_lxml ); } Py_DECREF( tmp_import_name_from_3 ); if ( tmp_assign_source_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 54; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } assert( var_etree_lxml == NULL ); var_etree_lxml = tmp_assign_source_4; } { PyObject *tmp_ass_subvalue_3; PyObject *tmp_source_name_3; PyObject *tmp_ass_subscribed_3; PyObject *tmp_mvar_value_4; PyObject *tmp_ass_subscript_3; CHECK_OBJECT( var_etree_lxml ); tmp_source_name_3 = var_etree_lxml; tmp_ass_subvalue_3 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_TreeWalker ); if ( tmp_ass_subvalue_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 55; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_mvar_value_4 = GET_STRING_DICT_VALUE( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain_treeWalkerCache ); if (unlikely( tmp_mvar_value_4 == NULL )) { tmp_mvar_value_4 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_treeWalkerCache ); } if ( tmp_mvar_value_4 == NULL ) { Py_DECREF( tmp_ass_subvalue_3 ); exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "treeWalkerCache" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 55; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_ass_subscribed_3 = tmp_mvar_value_4; if ( par_treeType == NULL ) { Py_DECREF( tmp_ass_subvalue_3 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "treeType" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 55; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_ass_subscript_3 = par_treeType; tmp_result = SET_SUBSCRIPT( tmp_ass_subscribed_3, tmp_ass_subscript_3, tmp_ass_subvalue_3 ); Py_DECREF( tmp_ass_subvalue_3 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 55; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } } goto branch_end_4; branch_no_4:; { nuitka_bool tmp_condition_result_5; PyObject *tmp_compexpr_left_5; PyObject *tmp_compexpr_right_5; if ( par_treeType == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "treeType" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 56; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_compexpr_left_5 = par_treeType; tmp_compexpr_right_5 = const_str_plain_etree; tmp_res = RICH_COMPARE_BOOL_EQ( 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 = 56; type_description_1 = "ooooooo"; 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_import_name_from_4; 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_empty; tmp_globals_name_4 = (PyObject *)moduledict_html5lib$treewalkers; tmp_locals_name_4 = Py_None; tmp_fromlist_name_4 = const_tuple_str_plain_etree_tuple; tmp_level_name_4 = const_int_pos_1; frame_2ae5c76300bc20f31328a6c9aa411f75->m_frame.f_lineno = 57; tmp_import_name_from_4 = IMPORT_MODULE5( tmp_name_name_4, tmp_globals_name_4, tmp_locals_name_4, tmp_fromlist_name_4, tmp_level_name_4 ); if ( tmp_import_name_from_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 57; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } if ( PyModule_Check( tmp_import_name_from_4 ) ) { tmp_assign_source_5 = IMPORT_NAME_OR_MODULE( tmp_import_name_from_4, (PyObject *)MODULE_DICT(tmp_import_name_from_4), const_str_plain_etree, const_int_pos_1 ); } else { tmp_assign_source_5 = IMPORT_NAME( tmp_import_name_from_4, const_str_plain_etree ); } Py_DECREF( tmp_import_name_from_4 ); if ( tmp_assign_source_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 57; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } assert( var_etree == NULL ); var_etree = tmp_assign_source_5; } { nuitka_bool tmp_condition_result_6; PyObject *tmp_compexpr_left_6; PyObject *tmp_compexpr_right_6; if ( par_implementation == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "implementation" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 58; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_compexpr_left_6 = par_implementation; tmp_compexpr_right_6 = Py_None; tmp_condition_result_6 = ( tmp_compexpr_left_6 == tmp_compexpr_right_6 ) ? 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_6; PyObject *tmp_mvar_value_5; tmp_mvar_value_5 = GET_STRING_DICT_VALUE( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain_default_etree ); if (unlikely( tmp_mvar_value_5 == NULL )) { tmp_mvar_value_5 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_default_etree ); } if ( tmp_mvar_value_5 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "default_etree" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 59; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_assign_source_6 = tmp_mvar_value_5; { PyObject *old = par_implementation; par_implementation = tmp_assign_source_6; Py_INCREF( par_implementation ); Py_XDECREF( old ); } } branch_no_6:; } { PyObject *tmp_source_name_4; PyObject *tmp_dircall_arg1_1; PyObject *tmp_source_name_5; PyObject *tmp_dircall_arg2_1; PyObject *tmp_tuple_element_1; PyObject *tmp_dircall_arg3_1; if ( var_etree == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "etree" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 61; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_source_name_5 = var_etree; tmp_dircall_arg1_1 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain_getETreeModule ); if ( tmp_dircall_arg1_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 61; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } if ( par_implementation == 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", "implementation" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 61; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_tuple_element_1 = par_implementation; 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 ( par_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", "kwargs" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 61; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_dircall_arg3_1 = par_kwargs; Py_INCREF( tmp_dircall_arg3_1 ); { PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1}; tmp_source_name_4 = impl___internal__$$$function_5_complex_call_helper_pos_star_dict( dir_call_args ); } if ( tmp_source_name_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 61; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_return_value = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_TreeWalker ); Py_DECREF( tmp_source_name_4 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 61; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } goto frame_return_exit_1; } branch_no_5:; } branch_end_4:; } branch_end_3:; } branch_end_2:; } branch_no_1:; } { PyObject *tmp_called_name_1; PyObject *tmp_source_name_6; PyObject *tmp_mvar_value_6; PyObject *tmp_args_element_name_1; tmp_mvar_value_6 = GET_STRING_DICT_VALUE( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain_treeWalkerCache ); if (unlikely( tmp_mvar_value_6 == NULL )) { tmp_mvar_value_6 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_treeWalkerCache ); } if ( tmp_mvar_value_6 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "treeWalkerCache" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 62; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_source_name_6 = tmp_mvar_value_6; tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain_get ); if ( tmp_called_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 62; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } if ( par_treeType == 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", "treeType" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 62; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } tmp_args_element_name_1 = par_treeType; frame_2ae5c76300bc20f31328a6c9aa411f75->m_frame.f_lineno = 62; { PyObject *call_args[] = { tmp_args_element_name_1 }; tmp_return_value = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args ); } Py_DECREF( tmp_called_name_1 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 62; type_description_1 = "ooooooo"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_2ae5c76300bc20f31328a6c9aa411f75 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_2ae5c76300bc20f31328a6c9aa411f75 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_2ae5c76300bc20f31328a6c9aa411f75 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_2ae5c76300bc20f31328a6c9aa411f75, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_2ae5c76300bc20f31328a6c9aa411f75->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_2ae5c76300bc20f31328a6c9aa411f75, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_2ae5c76300bc20f31328a6c9aa411f75, type_description_1, par_treeType, par_implementation, par_kwargs, var_dom, var_genshi, var_etree_lxml, var_etree ); // Release cached frame. if ( frame_2ae5c76300bc20f31328a6c9aa411f75 == cache_frame_2ae5c76300bc20f31328a6c9aa411f75 ) { Py_DECREF( frame_2ae5c76300bc20f31328a6c9aa411f75 ); } cache_frame_2ae5c76300bc20f31328a6c9aa411f75 = NULL; assertFrameObject( frame_2ae5c76300bc20f31328a6c9aa411f75 ); // 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( html5lib$treewalkers$$$function_1_getTreeWalker ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_treeType ); par_treeType = NULL; } { Py_XDECREF( par_implementation ); par_implementation = NULL; } { Py_XDECREF( par_kwargs ); par_kwargs = NULL; } { Py_XDECREF( var_dom ); var_dom = NULL; } { Py_XDECREF( var_genshi ); var_genshi = NULL; } { Py_XDECREF( var_etree_lxml ); var_etree_lxml = NULL; } { Py_XDECREF( var_etree ); var_etree = 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_treeType ); par_treeType = NULL; } { Py_XDECREF( par_implementation ); par_implementation = NULL; } { Py_XDECREF( par_kwargs ); par_kwargs = NULL; } { Py_XDECREF( var_dom ); var_dom = NULL; } { Py_XDECREF( var_genshi ); var_genshi = NULL; } { Py_XDECREF( var_etree_lxml ); var_etree_lxml = NULL; } { Py_XDECREF( var_etree ); var_etree = 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( html5lib$treewalkers$$$function_1_getTreeWalker ); 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_html5lib$treewalkers$$$function_2_concatenateCharacterTokens( 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_tokens = PyCell_NEW1( python_pars[ 0 ] ); PyObject *tmp_return_value = NULL; // Actual function code. { // Tried code: { tmp_return_value = html5lib$treewalkers$$$function_2_concatenateCharacterTokens$$$genobj_1_concatenateCharacterTokens_maker(); ((struct Nuitka_GeneratorObject *)tmp_return_value)->m_closure[0] = par_tokens; Py_INCREF( ((struct Nuitka_GeneratorObject *)tmp_return_value)->m_closure[0] ); goto try_return_handler_1; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( html5lib$treewalkers$$$function_2_concatenateCharacterTokens ); return NULL; // Return handler code: try_return_handler_1:; { CHECK_OBJECT( (PyObject *)par_tokens ); Py_DECREF( par_tokens ); par_tokens = NULL; } { goto function_return_exit; } // End of try: } { CHECK_OBJECT( (PyObject *)par_tokens ); Py_DECREF( par_tokens ); par_tokens = NULL; } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( html5lib$treewalkers$$$function_2_concatenateCharacterTokens ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } struct html5lib$treewalkers$$$function_2_concatenateCharacterTokens$$$genobj_1_concatenateCharacterTokens_locals { PyObject *var_pendingCharacters; PyObject *var_token; PyObject *var_type; PyObject *tmp_for_loop_1__for_iterator; PyObject *tmp_for_loop_1__iter_value; char const *type_description_1; PyObject *exception_type; PyObject *exception_value; PyTracebackObject *exception_tb; int exception_lineno; int tmp_res; char yield_tmps[1024]; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; int exception_keeper_lineno_1; PyObject *exception_keeper_type_2; PyObject *exception_keeper_value_2; PyTracebackObject *exception_keeper_tb_2; int exception_keeper_lineno_2; }; static PyObject *html5lib$treewalkers$$$function_2_concatenateCharacterTokens$$$genobj_1_concatenateCharacterTokens_context( struct Nuitka_GeneratorObject *generator, PyObject *yield_return_value ) { CHECK_OBJECT( (PyObject *)generator ); assert( Nuitka_Generator_Check( (PyObject *)generator ) ); // Heap access if used. struct html5lib$treewalkers$$$function_2_concatenateCharacterTokens$$$genobj_1_concatenateCharacterTokens_locals *generator_heap = (struct html5lib$treewalkers$$$function_2_concatenateCharacterTokens$$$genobj_1_concatenateCharacterTokens_locals *)generator->m_heap_storage; // Dispatch to yield based on return label index: switch(generator->m_yield_return_index) { case 3: goto yield_return_3; case 2: goto yield_return_2; 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->var_pendingCharacters = NULL; generator_heap->var_token = NULL; generator_heap->var_type = NULL; generator_heap->tmp_for_loop_1__for_iterator = NULL; generator_heap->tmp_for_loop_1__iter_value = 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. { PyObject *tmp_assign_source_1; tmp_assign_source_1 = PyList_New( 0 ); assert( generator_heap->var_pendingCharacters == NULL ); generator_heap->var_pendingCharacters = tmp_assign_source_1; } { // Tried code: MAKE_OR_REUSE_FRAME( cache_m_frame, codeobj_b4f657eda2cd4485e91c48110cec35a4, module_html5lib$treewalkers, 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_assign_source_2; PyObject *tmp_iter_arg_1; if ( PyCell_GET( generator->m_closure[0] ) == 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", "tokens" ); 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 = 67; generator_heap->type_description_1 = "cooo"; goto frame_exception_exit_1; } tmp_iter_arg_1 = PyCell_GET( generator->m_closure[0] ); tmp_assign_source_2 = MAKE_ITERATOR( tmp_iter_arg_1 ); if ( tmp_assign_source_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb ); generator_heap->exception_lineno = 67; generator_heap->type_description_1 = "cooo"; goto frame_exception_exit_1; } assert( generator_heap->tmp_for_loop_1__for_iterator == NULL ); generator_heap->tmp_for_loop_1__for_iterator = tmp_assign_source_2; } { // Tried code: { loop_start_1:; { PyObject *tmp_next_source_1; PyObject *tmp_assign_source_3; CHECK_OBJECT( generator_heap->tmp_for_loop_1__for_iterator ); tmp_next_source_1 = generator_heap->tmp_for_loop_1__for_iterator; tmp_assign_source_3 = ITERATOR_NEXT( tmp_next_source_1 ); if ( tmp_assign_source_3 == NULL ) { if ( CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED() ) { goto loop_end_1; } else { FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb ); generator_heap->type_description_1 = "cooo"; generator_heap->exception_lineno = 67; goto try_except_handler_2; } } { PyObject *old = generator_heap->tmp_for_loop_1__iter_value; generator_heap->tmp_for_loop_1__iter_value = tmp_assign_source_3; Py_XDECREF( old ); } } { PyObject *tmp_assign_source_4; CHECK_OBJECT( generator_heap->tmp_for_loop_1__iter_value ); tmp_assign_source_4 = generator_heap->tmp_for_loop_1__iter_value; { PyObject *old = generator_heap->var_token; generator_heap->var_token = tmp_assign_source_4; Py_INCREF( generator_heap->var_token ); Py_XDECREF( old ); } } { PyObject *tmp_assign_source_5; PyObject *tmp_subscribed_name_1; PyObject *tmp_subscript_name_1; CHECK_OBJECT( generator_heap->var_token ); tmp_subscribed_name_1 = generator_heap->var_token; tmp_subscript_name_1 = const_str_plain_type; tmp_assign_source_5 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_1, tmp_subscript_name_1 ); if ( tmp_assign_source_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb ); generator_heap->exception_lineno = 68; generator_heap->type_description_1 = "cooo"; goto try_except_handler_2; } { PyObject *old = generator_heap->var_type; generator_heap->var_type = tmp_assign_source_5; Py_XDECREF( old ); } } { nuitka_bool tmp_condition_result_1; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; CHECK_OBJECT( generator_heap->var_type ); tmp_compexpr_left_1 = generator_heap->var_type; tmp_compexpr_right_1 = const_tuple_str_plain_Characters_str_plain_SpaceCharacters_tuple; generator_heap->tmp_res = PySequence_Contains( tmp_compexpr_right_1, tmp_compexpr_left_1 ); if ( generator_heap->tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb ); generator_heap->exception_lineno = 69; generator_heap->type_description_1 = "cooo"; goto try_except_handler_2; } tmp_condition_result_1 = ( generator_heap->tmp_res == 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_1; PyObject *tmp_source_name_1; PyObject *tmp_args_element_name_1; PyObject *tmp_subscribed_name_2; PyObject *tmp_subscript_name_2; if ( generator_heap->var_pendingCharacters == NULL ) { generator_heap->exception_type = PyExc_UnboundLocalError; Py_INCREF( generator_heap->exception_type ); generator_heap->exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "pendingCharacters" ); 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 = 70; generator_heap->type_description_1 = "cooo"; goto try_except_handler_2; } tmp_source_name_1 = generator_heap->var_pendingCharacters; tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_append ); if ( tmp_called_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb ); generator_heap->exception_lineno = 70; generator_heap->type_description_1 = "cooo"; goto try_except_handler_2; } if ( generator_heap->var_token == NULL ) { Py_DECREF( tmp_called_name_1 ); generator_heap->exception_type = PyExc_UnboundLocalError; Py_INCREF( generator_heap->exception_type ); generator_heap->exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "token" ); 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 = 70; generator_heap->type_description_1 = "cooo"; goto try_except_handler_2; } tmp_subscribed_name_2 = generator_heap->var_token; tmp_subscript_name_2 = const_str_plain_data; tmp_args_element_name_1 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_2, tmp_subscript_name_2 ); if ( tmp_args_element_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb ); Py_DECREF( tmp_called_name_1 ); generator_heap->exception_lineno = 70; generator_heap->type_description_1 = "cooo"; goto try_except_handler_2; } generator->m_frame->m_frame.f_lineno = 70; { 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( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb ); generator_heap->exception_lineno = 70; generator_heap->type_description_1 = "cooo"; goto try_except_handler_2; } Py_DECREF( tmp_unused ); } goto branch_end_1; branch_no_1:; { nuitka_bool tmp_condition_result_2; int tmp_truth_name_1; if ( generator_heap->var_pendingCharacters == NULL ) { generator_heap->exception_type = PyExc_UnboundLocalError; Py_INCREF( generator_heap->exception_type ); generator_heap->exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "pendingCharacters" ); 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 = 72; generator_heap->type_description_1 = "cooo"; goto try_except_handler_2; } tmp_truth_name_1 = CHECK_IF_TRUE( generator_heap->var_pendingCharacters ); 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 = 72; generator_heap->type_description_1 = "cooo"; goto try_except_handler_2; } 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_expression_name_1; PyObject *tmp_dict_key_1; PyObject *tmp_dict_value_1; PyObject *tmp_dict_key_2; PyObject *tmp_dict_value_2; PyObject *tmp_called_name_2; PyObject *tmp_source_name_2; PyObject *tmp_args_element_name_2; tmp_dict_key_1 = const_str_plain_type; tmp_dict_value_1 = const_str_plain_Characters; tmp_expression_name_1 = _PyDict_NewPresized( 2 ); generator_heap->tmp_res = PyDict_SetItem( tmp_expression_name_1, tmp_dict_key_1, tmp_dict_value_1 ); assert( !(generator_heap->tmp_res != 0) ); tmp_dict_key_2 = const_str_plain_data; tmp_source_name_2 = const_str_empty; tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_join ); assert( !(tmp_called_name_2 == NULL) ); if ( generator_heap->var_pendingCharacters == NULL ) { Py_DECREF( tmp_expression_name_1 ); Py_DECREF( tmp_called_name_2 ); generator_heap->exception_type = PyExc_UnboundLocalError; Py_INCREF( generator_heap->exception_type ); generator_heap->exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "pendingCharacters" ); 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 = 73; generator_heap->type_description_1 = "cooo"; goto try_except_handler_2; } tmp_args_element_name_2 = generator_heap->var_pendingCharacters; generator->m_frame->m_frame.f_lineno = 73; { PyObject *call_args[] = { tmp_args_element_name_2 }; tmp_dict_value_2 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_2, call_args ); } Py_DECREF( tmp_called_name_2 ); if ( tmp_dict_value_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb ); Py_DECREF( tmp_expression_name_1 ); generator_heap->exception_lineno = 73; generator_heap->type_description_1 = "cooo"; goto try_except_handler_2; } generator_heap->tmp_res = PyDict_SetItem( tmp_expression_name_1, tmp_dict_key_2, tmp_dict_value_2 ); Py_DECREF( tmp_dict_value_2 ); assert( !(generator_heap->tmp_res != 0) ); Nuitka_PreserveHeap( generator_heap->yield_tmps, &tmp_condition_result_1, sizeof(nuitka_bool), &tmp_compexpr_left_1, sizeof(PyObject *), &tmp_compexpr_right_1, sizeof(PyObject *), &tmp_condition_result_2, sizeof(nuitka_bool), &tmp_truth_name_1, sizeof(int), &tmp_dict_key_1, sizeof(PyObject *), &tmp_dict_value_1, sizeof(PyObject *), &tmp_dict_key_2, sizeof(PyObject *), &tmp_dict_value_2, sizeof(PyObject *), &tmp_called_name_2, sizeof(PyObject *), &tmp_source_name_2, sizeof(PyObject *), &tmp_args_element_name_2, sizeof(PyObject *), NULL ); generator->m_yield_return_index = 1; return tmp_expression_name_1; yield_return_1: Nuitka_RestoreHeap( generator_heap->yield_tmps, &tmp_condition_result_1, sizeof(nuitka_bool), &tmp_compexpr_left_1, sizeof(PyObject *), &tmp_compexpr_right_1, sizeof(PyObject *), &tmp_condition_result_2, sizeof(nuitka_bool), &tmp_truth_name_1, sizeof(int), &tmp_dict_key_1, sizeof(PyObject *), &tmp_dict_value_1, sizeof(PyObject *), &tmp_dict_key_2, sizeof(PyObject *), &tmp_dict_value_2, sizeof(PyObject *), &tmp_called_name_2, sizeof(PyObject *), &tmp_source_name_2, sizeof(PyObject *), &tmp_args_element_name_2, 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 = 73; generator_heap->type_description_1 = "cooo"; goto try_except_handler_2; } tmp_unused = yield_return_value; } { PyObject *tmp_assign_source_6; tmp_assign_source_6 = PyList_New( 0 ); { PyObject *old = generator_heap->var_pendingCharacters; generator_heap->var_pendingCharacters = tmp_assign_source_6; Py_XDECREF( old ); } } branch_no_2:; } { PyObject *tmp_expression_name_2; if ( generator_heap->var_token == NULL ) { generator_heap->exception_type = PyExc_UnboundLocalError; Py_INCREF( generator_heap->exception_type ); generator_heap->exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "token" ); 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 = 75; generator_heap->type_description_1 = "cooo"; goto try_except_handler_2; } tmp_expression_name_2 = generator_heap->var_token; Py_INCREF( tmp_expression_name_2 ); Nuitka_PreserveHeap( generator_heap->yield_tmps, &tmp_condition_result_1, sizeof(nuitka_bool), &tmp_compexpr_left_1, sizeof(PyObject *), &tmp_compexpr_right_1, sizeof(PyObject *), NULL ); generator->m_yield_return_index = 2; return tmp_expression_name_2; yield_return_2: Nuitka_RestoreHeap( generator_heap->yield_tmps, &tmp_condition_result_1, sizeof(nuitka_bool), &tmp_compexpr_left_1, sizeof(PyObject *), &tmp_compexpr_right_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 = 75; generator_heap->type_description_1 = "cooo"; goto try_except_handler_2; } tmp_unused = yield_return_value; } branch_end_1:; } if ( CONSIDER_THREADING() == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb ); generator_heap->exception_lineno = 67; generator_heap->type_description_1 = "cooo"; goto try_except_handler_2; } goto loop_start_1; loop_end_1:; } goto try_end_1; // Exception handler code: try_except_handler_2:; generator_heap->exception_keeper_type_1 = generator_heap->exception_type; generator_heap->exception_keeper_value_1 = generator_heap->exception_value; generator_heap->exception_keeper_tb_1 = generator_heap->exception_tb; generator_heap->exception_keeper_lineno_1 = generator_heap->exception_lineno; generator_heap->exception_type = NULL; generator_heap->exception_value = NULL; generator_heap->exception_tb = NULL; generator_heap->exception_lineno = 0; { Py_XDECREF( generator_heap->tmp_for_loop_1__iter_value ); generator_heap->tmp_for_loop_1__iter_value = NULL; } { CHECK_OBJECT( (PyObject *)generator_heap->tmp_for_loop_1__for_iterator ); Py_DECREF( generator_heap->tmp_for_loop_1__for_iterator ); generator_heap->tmp_for_loop_1__for_iterator = NULL; } { // Re-raise. generator_heap->exception_type = generator_heap->exception_keeper_type_1; generator_heap->exception_value = generator_heap->exception_keeper_value_1; generator_heap->exception_tb = generator_heap->exception_keeper_tb_1; generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_1; goto frame_exception_exit_1; } // End of try: try_end_1:; } { Py_XDECREF( generator_heap->tmp_for_loop_1__iter_value ); generator_heap->tmp_for_loop_1__iter_value = NULL; } { CHECK_OBJECT( (PyObject *)generator_heap->tmp_for_loop_1__for_iterator ); Py_DECREF( generator_heap->tmp_for_loop_1__for_iterator ); generator_heap->tmp_for_loop_1__for_iterator = NULL; } { nuitka_bool tmp_condition_result_3; int tmp_truth_name_2; if ( generator_heap->var_pendingCharacters == NULL ) { generator_heap->exception_type = PyExc_UnboundLocalError; Py_INCREF( generator_heap->exception_type ); generator_heap->exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "pendingCharacters" ); 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 = 76; generator_heap->type_description_1 = "cooo"; goto frame_exception_exit_1; } tmp_truth_name_2 = CHECK_IF_TRUE( generator_heap->var_pendingCharacters ); if ( tmp_truth_name_2 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb ); generator_heap->exception_lineno = 76; generator_heap->type_description_1 = "cooo"; goto frame_exception_exit_1; } tmp_condition_result_3 = tmp_truth_name_2 == 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_expression_name_3; PyObject *tmp_dict_key_3; PyObject *tmp_dict_value_3; PyObject *tmp_dict_key_4; PyObject *tmp_dict_value_4; PyObject *tmp_called_name_3; PyObject *tmp_source_name_3; PyObject *tmp_args_element_name_3; tmp_dict_key_3 = const_str_plain_type; tmp_dict_value_3 = const_str_plain_Characters; tmp_expression_name_3 = _PyDict_NewPresized( 2 ); generator_heap->tmp_res = PyDict_SetItem( tmp_expression_name_3, tmp_dict_key_3, tmp_dict_value_3 ); assert( !(generator_heap->tmp_res != 0) ); tmp_dict_key_4 = const_str_plain_data; tmp_source_name_3 = const_str_empty; tmp_called_name_3 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_join ); assert( !(tmp_called_name_3 == NULL) ); if ( generator_heap->var_pendingCharacters == NULL ) { Py_DECREF( tmp_expression_name_3 ); Py_DECREF( tmp_called_name_3 ); generator_heap->exception_type = PyExc_UnboundLocalError; Py_INCREF( generator_heap->exception_type ); generator_heap->exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "pendingCharacters" ); 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 = 77; generator_heap->type_description_1 = "cooo"; goto frame_exception_exit_1; } tmp_args_element_name_3 = generator_heap->var_pendingCharacters; generator->m_frame->m_frame.f_lineno = 77; { PyObject *call_args[] = { tmp_args_element_name_3 }; tmp_dict_value_4 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_3, call_args ); } Py_DECREF( tmp_called_name_3 ); if ( tmp_dict_value_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb ); Py_DECREF( tmp_expression_name_3 ); generator_heap->exception_lineno = 77; generator_heap->type_description_1 = "cooo"; goto frame_exception_exit_1; } generator_heap->tmp_res = PyDict_SetItem( tmp_expression_name_3, tmp_dict_key_4, tmp_dict_value_4 ); Py_DECREF( tmp_dict_value_4 ); assert( !(generator_heap->tmp_res != 0) ); Nuitka_PreserveHeap( generator_heap->yield_tmps, &tmp_condition_result_3, sizeof(nuitka_bool), &tmp_truth_name_2, sizeof(int), &tmp_dict_key_3, sizeof(PyObject *), &tmp_dict_value_3, sizeof(PyObject *), &tmp_dict_key_4, sizeof(PyObject *), &tmp_dict_value_4, sizeof(PyObject *), &tmp_called_name_3, sizeof(PyObject *), &tmp_source_name_3, sizeof(PyObject *), &tmp_args_element_name_3, sizeof(PyObject *), NULL ); generator->m_yield_return_index = 3; return tmp_expression_name_3; yield_return_3: Nuitka_RestoreHeap( generator_heap->yield_tmps, &tmp_condition_result_3, sizeof(nuitka_bool), &tmp_truth_name_2, sizeof(int), &tmp_dict_key_3, sizeof(PyObject *), &tmp_dict_value_3, sizeof(PyObject *), &tmp_dict_key_4, sizeof(PyObject *), &tmp_dict_value_4, sizeof(PyObject *), &tmp_called_name_3, sizeof(PyObject *), &tmp_source_name_3, sizeof(PyObject *), &tmp_args_element_name_3, 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 = 77; generator_heap->type_description_1 = "cooo"; goto frame_exception_exit_1; } tmp_unused = yield_return_value; } branch_no_3:; } 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[0], generator_heap->var_pendingCharacters, generator_heap->var_token, generator_heap->var_type ); // 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 try_except_handler_1; frame_no_exception_1:; goto try_end_2; // Exception handler code: try_except_handler_1:; generator_heap->exception_keeper_type_2 = generator_heap->exception_type; generator_heap->exception_keeper_value_2 = generator_heap->exception_value; generator_heap->exception_keeper_tb_2 = generator_heap->exception_tb; generator_heap->exception_keeper_lineno_2 = generator_heap->exception_lineno; generator_heap->exception_type = NULL; generator_heap->exception_value = NULL; generator_heap->exception_tb = NULL; generator_heap->exception_lineno = 0; { Py_XDECREF( generator_heap->var_pendingCharacters ); generator_heap->var_pendingCharacters = NULL; } { Py_XDECREF( generator_heap->var_token ); generator_heap->var_token = NULL; } { Py_XDECREF( generator_heap->var_type ); generator_heap->var_type = NULL; } { // Re-raise. generator_heap->exception_type = generator_heap->exception_keeper_type_2; generator_heap->exception_value = generator_heap->exception_keeper_value_2; generator_heap->exception_tb = generator_heap->exception_keeper_tb_2; generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_2; goto function_exception_exit; } // End of try: try_end_2:; } { Py_XDECREF( generator_heap->var_pendingCharacters ); generator_heap->var_pendingCharacters = NULL; } { Py_XDECREF( generator_heap->var_token ); generator_heap->var_token = NULL; } { Py_XDECREF( generator_heap->var_type ); generator_heap->var_type = NULL; } 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 *html5lib$treewalkers$$$function_2_concatenateCharacterTokens$$$genobj_1_concatenateCharacterTokens_maker( void ) { return Nuitka_Generator_New( html5lib$treewalkers$$$function_2_concatenateCharacterTokens$$$genobj_1_concatenateCharacterTokens_context, module_html5lib$treewalkers, const_str_plain_concatenateCharacterTokens, #if PYTHON_VERSION >= 350 NULL, #endif codeobj_b4f657eda2cd4485e91c48110cec35a4, 1, sizeof(struct html5lib$treewalkers$$$function_2_concatenateCharacterTokens$$$genobj_1_concatenateCharacterTokens_locals) ); } static PyObject *impl_html5lib$treewalkers$$$function_3_pprint( 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_walker = python_pars[ 0 ]; PyObject *var_output = NULL; PyObject *var_indent = NULL; PyObject *var_token = NULL; PyObject *var_type = NULL; PyObject *var_ns = NULL; PyObject *var_name = NULL; PyObject *var_attrs = NULL; PyObject *var_namespace = NULL; PyObject *var_localname = NULL; PyObject *var_value = 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_5a5ef2b1bf8a177c9cedb0b028b6c4e1; 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; 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; PyObject *tmp_return_value = NULL; static struct Nuitka_FrameObject *cache_frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1 = 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. { PyObject *tmp_assign_source_1; tmp_assign_source_1 = PyList_New( 0 ); assert( var_output == NULL ); var_output = tmp_assign_source_1; } { PyObject *tmp_assign_source_2; tmp_assign_source_2 = const_int_0; assert( var_indent == NULL ); Py_INCREF( tmp_assign_source_2 ); var_indent = tmp_assign_source_2; } { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1, codeobj_5a5ef2b1bf8a177c9cedb0b028b6c4e1, module_html5lib$treewalkers, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) ); frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1 = cache_frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1; // Push the new frame as the currently active one. pushFrameStack( frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_assign_source_3; PyObject *tmp_iter_arg_1; PyObject *tmp_called_name_1; PyObject *tmp_mvar_value_1; PyObject *tmp_args_element_name_1; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain_concatenateCharacterTokens ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_concatenateCharacterTokens ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "concatenateCharacterTokens" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 90; type_description_1 = "ooooooooooo"; goto frame_exception_exit_1; } tmp_called_name_1 = tmp_mvar_value_1; CHECK_OBJECT( par_walker ); tmp_args_element_name_1 = par_walker; frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1->m_frame.f_lineno = 90; { PyObject *call_args[] = { tmp_args_element_name_1 }; tmp_iter_arg_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args ); } if ( tmp_iter_arg_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 90; type_description_1 = "ooooooooooo"; 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 = 90; type_description_1 = "ooooooooooo"; 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 = "ooooooooooo"; exception_lineno = 90; 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 ); } } { PyObject *tmp_assign_source_5; CHECK_OBJECT( tmp_for_loop_1__iter_value ); tmp_assign_source_5 = tmp_for_loop_1__iter_value; { PyObject *old = var_token; var_token = tmp_assign_source_5; Py_INCREF( var_token ); Py_XDECREF( old ); } } { PyObject *tmp_assign_source_6; PyObject *tmp_subscribed_name_1; PyObject *tmp_subscript_name_1; CHECK_OBJECT( var_token ); tmp_subscribed_name_1 = var_token; tmp_subscript_name_1 = const_str_plain_type; tmp_assign_source_6 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_1, tmp_subscript_name_1 ); if ( tmp_assign_source_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 91; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } { PyObject *old = var_type; var_type = tmp_assign_source_6; Py_XDECREF( old ); } } { nuitka_bool tmp_condition_result_1; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; CHECK_OBJECT( var_type ); tmp_compexpr_left_1 = var_type; tmp_compexpr_right_1 = const_tuple_str_plain_StartTag_str_plain_EmptyTag_tuple; tmp_res = PySequence_Contains( tmp_compexpr_right_1, tmp_compexpr_left_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 92; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_condition_result_1 = ( tmp_res == 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:; { nuitka_bool tmp_condition_result_2; int tmp_and_left_truth_1; nuitka_bool tmp_and_left_value_1; nuitka_bool tmp_and_right_value_1; PyObject *tmp_subscribed_name_2; PyObject *tmp_subscript_name_2; PyObject *tmp_subscript_result_1; int tmp_truth_name_1; PyObject *tmp_compexpr_left_2; PyObject *tmp_compexpr_right_2; PyObject *tmp_subscribed_name_3; PyObject *tmp_subscript_name_3; PyObject *tmp_subscribed_name_4; PyObject *tmp_source_name_1; PyObject *tmp_mvar_value_2; PyObject *tmp_subscript_name_4; if ( var_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 = 94; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_subscribed_name_2 = var_token; tmp_subscript_name_2 = const_str_plain_namespace; tmp_subscript_result_1 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_2, tmp_subscript_name_2 ); if ( tmp_subscript_result_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 94; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_truth_name_1 = CHECK_IF_TRUE( tmp_subscript_result_1 ); if ( tmp_truth_name_1 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_subscript_result_1 ); exception_lineno = 94; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_and_left_value_1 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_subscript_result_1 ); 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_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 = 94; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_subscribed_name_3 = var_token; tmp_subscript_name_3 = const_str_plain_namespace; tmp_compexpr_left_2 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_3, tmp_subscript_name_3 ); if ( tmp_compexpr_left_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 94; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain_constants ); if (unlikely( tmp_mvar_value_2 == NULL )) { tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_constants ); } 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", "constants" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 94; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_source_name_1 = tmp_mvar_value_2; tmp_subscribed_name_4 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_namespaces ); if ( tmp_subscribed_name_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_compexpr_left_2 ); exception_lineno = 94; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_subscript_name_4 = const_str_plain_html; tmp_compexpr_right_2 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_4, tmp_subscript_name_4 ); Py_DECREF( tmp_subscribed_name_4 ); if ( tmp_compexpr_right_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_compexpr_left_2 ); exception_lineno = 94; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_res = RICH_COMPARE_BOOL_NE( tmp_compexpr_left_2, tmp_compexpr_right_2 ); Py_DECREF( tmp_compexpr_left_2 ); Py_DECREF( tmp_compexpr_right_2 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 94; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_and_right_value_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; tmp_condition_result_2 = tmp_and_right_value_1; goto and_end_1; and_left_1:; tmp_condition_result_2 = tmp_and_left_value_1; and_end_1:; 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_compexpr_left_3; PyObject *tmp_compexpr_right_3; PyObject *tmp_subscribed_name_5; PyObject *tmp_subscript_name_5; PyObject *tmp_source_name_2; PyObject *tmp_mvar_value_3; if ( var_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 = 95; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_subscribed_name_5 = var_token; tmp_subscript_name_5 = const_str_plain_namespace; tmp_compexpr_left_3 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_5, tmp_subscript_name_5 ); if ( tmp_compexpr_left_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 95; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain_constants ); if (unlikely( tmp_mvar_value_3 == NULL )) { tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_constants ); } 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", "constants" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 95; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_source_name_2 = tmp_mvar_value_3; tmp_compexpr_right_3 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_prefixes ); if ( tmp_compexpr_right_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_compexpr_left_3 ); exception_lineno = 95; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_res = PySequence_Contains( tmp_compexpr_right_3, tmp_compexpr_left_3 ); Py_DECREF( 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 = 95; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_condition_result_3 = ( tmp_res == 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_assign_source_7; PyObject *tmp_subscribed_name_6; PyObject *tmp_source_name_3; PyObject *tmp_mvar_value_4; PyObject *tmp_subscript_name_6; PyObject *tmp_subscribed_name_7; PyObject *tmp_subscript_name_7; tmp_mvar_value_4 = GET_STRING_DICT_VALUE( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain_constants ); if (unlikely( tmp_mvar_value_4 == NULL )) { tmp_mvar_value_4 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_constants ); } if ( tmp_mvar_value_4 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "constants" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 96; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_source_name_3 = tmp_mvar_value_4; tmp_subscribed_name_6 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_prefixes ); if ( tmp_subscribed_name_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 96; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } if ( var_token == NULL ) { Py_DECREF( tmp_subscribed_name_6 ); 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 = 96; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_subscribed_name_7 = var_token; tmp_subscript_name_7 = const_str_plain_namespace; tmp_subscript_name_6 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_7, tmp_subscript_name_7 ); if ( tmp_subscript_name_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_subscribed_name_6 ); exception_lineno = 96; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_assign_source_7 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_6, tmp_subscript_name_6 ); Py_DECREF( tmp_subscribed_name_6 ); Py_DECREF( tmp_subscript_name_6 ); if ( tmp_assign_source_7 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 96; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } { PyObject *old = var_ns; var_ns = tmp_assign_source_7; Py_XDECREF( old ); } } goto branch_end_3; branch_no_3:; { PyObject *tmp_assign_source_8; PyObject *tmp_subscribed_name_8; PyObject *tmp_subscript_name_8; if ( var_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 = 98; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_subscribed_name_8 = var_token; tmp_subscript_name_8 = const_str_plain_namespace; tmp_assign_source_8 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_8, tmp_subscript_name_8 ); if ( tmp_assign_source_8 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 98; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } { PyObject *old = var_ns; var_ns = tmp_assign_source_8; Py_XDECREF( old ); } } branch_end_3:; } { PyObject *tmp_assign_source_9; PyObject *tmp_left_name_1; PyObject *tmp_right_name_1; PyObject *tmp_tuple_element_1; PyObject *tmp_subscribed_name_9; PyObject *tmp_subscript_name_9; tmp_left_name_1 = const_str_digest_9b2a32a10f34854554acce4f0a1e5df6; CHECK_OBJECT( var_ns ); tmp_tuple_element_1 = var_ns; tmp_right_name_1 = PyTuple_New( 2 ); Py_INCREF( tmp_tuple_element_1 ); PyTuple_SET_ITEM( tmp_right_name_1, 0, tmp_tuple_element_1 ); if ( var_token == NULL ) { Py_DECREF( tmp_right_name_1 ); 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 = 99; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_subscribed_name_9 = var_token; tmp_subscript_name_9 = const_str_plain_name; tmp_tuple_element_1 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_9, tmp_subscript_name_9 ); if ( tmp_tuple_element_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_right_name_1 ); exception_lineno = 99; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } PyTuple_SET_ITEM( tmp_right_name_1, 1, tmp_tuple_element_1 ); tmp_assign_source_9 = BINARY_OPERATION_REMAINDER( tmp_left_name_1, tmp_right_name_1 ); Py_DECREF( tmp_right_name_1 ); if ( tmp_assign_source_9 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 99; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } { PyObject *old = var_name; var_name = tmp_assign_source_9; Py_XDECREF( old ); } } goto branch_end_2; branch_no_2:; { PyObject *tmp_assign_source_10; PyObject *tmp_subscribed_name_10; PyObject *tmp_subscript_name_10; if ( var_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 = 101; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_subscribed_name_10 = var_token; tmp_subscript_name_10 = const_str_plain_name; tmp_assign_source_10 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_10, tmp_subscript_name_10 ); if ( tmp_assign_source_10 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 101; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } { PyObject *old = var_name; var_name = tmp_assign_source_10; Py_XDECREF( old ); } } branch_end_2:; } { PyObject *tmp_called_name_2; PyObject *tmp_source_name_4; PyObject *tmp_args_element_name_2; PyObject *tmp_left_name_2; PyObject *tmp_right_name_2; PyObject *tmp_tuple_element_2; PyObject *tmp_left_name_3; PyObject *tmp_right_name_3; if ( var_output == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "output" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 102; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_source_name_4 = var_output; tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_append ); if ( tmp_called_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 102; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_left_name_2 = const_str_digest_2d0b84f3d7636d263d277af520911848; tmp_left_name_3 = const_str_space; if ( var_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 = 102; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_right_name_3 = var_indent; tmp_tuple_element_2 = BINARY_OPERATION_MUL( tmp_left_name_3, tmp_right_name_3 ); if ( tmp_tuple_element_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_2 ); exception_lineno = 102; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_right_name_2 = PyTuple_New( 2 ); PyTuple_SET_ITEM( tmp_right_name_2, 0, tmp_tuple_element_2 ); if ( var_name == NULL ) { Py_DECREF( tmp_called_name_2 ); Py_DECREF( tmp_right_name_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 = 102; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_tuple_element_2 = var_name; Py_INCREF( tmp_tuple_element_2 ); PyTuple_SET_ITEM( tmp_right_name_2, 1, tmp_tuple_element_2 ); tmp_args_element_name_2 = BINARY_OPERATION_REMAINDER( tmp_left_name_2, tmp_right_name_2 ); Py_DECREF( tmp_right_name_2 ); 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 = 102; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1->m_frame.f_lineno = 102; { 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 = 102; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } Py_DECREF( tmp_unused ); } { PyObject *tmp_assign_source_11; PyObject *tmp_left_name_4; PyObject *tmp_right_name_4; if ( var_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 = 103; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_left_name_4 = var_indent; tmp_right_name_4 = const_int_pos_2; tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE( &tmp_left_name_4, tmp_right_name_4 ); tmp_assign_source_11 = tmp_left_name_4; if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 103; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } var_indent = tmp_assign_source_11; } { PyObject *tmp_assign_source_12; PyObject *tmp_subscribed_name_11; PyObject *tmp_subscript_name_11; if ( var_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 = 105; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_subscribed_name_11 = var_token; tmp_subscript_name_11 = const_str_plain_data; tmp_assign_source_12 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_11, tmp_subscript_name_11 ); if ( tmp_assign_source_12 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 105; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } { PyObject *old = var_attrs; var_attrs = tmp_assign_source_12; Py_XDECREF( old ); } } { PyObject *tmp_assign_source_13; PyObject *tmp_iter_arg_2; PyObject *tmp_called_name_3; PyObject *tmp_args_element_name_3; PyObject *tmp_called_instance_1; tmp_called_name_3 = LOOKUP_BUILTIN( const_str_plain_sorted ); assert( tmp_called_name_3 != NULL ); CHECK_OBJECT( var_attrs ); tmp_called_instance_1 = var_attrs; frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1->m_frame.f_lineno = 106; tmp_args_element_name_3 = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain_items ); if ( tmp_args_element_name_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 106; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1->m_frame.f_lineno = 106; { PyObject *call_args[] = { tmp_args_element_name_3 }; tmp_iter_arg_2 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_3, call_args ); } Py_DECREF( tmp_args_element_name_3 ); if ( tmp_iter_arg_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 106; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_assign_source_13 = MAKE_ITERATOR( tmp_iter_arg_2 ); Py_DECREF( tmp_iter_arg_2 ); if ( tmp_assign_source_13 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 106; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } { PyObject *old = tmp_for_loop_2__for_iterator; tmp_for_loop_2__for_iterator = tmp_assign_source_13; Py_XDECREF( old ); } } { // Tried code: { loop_start_2:; { PyObject *tmp_next_source_2; PyObject *tmp_assign_source_14; CHECK_OBJECT( tmp_for_loop_2__for_iterator ); tmp_next_source_2 = tmp_for_loop_2__for_iterator; tmp_assign_source_14 = ITERATOR_NEXT( tmp_next_source_2 ); if ( tmp_assign_source_14 == 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 = "ooooooooooo"; exception_lineno = 106; goto try_except_handler_3; } } { PyObject *old = tmp_for_loop_2__iter_value; tmp_for_loop_2__iter_value = tmp_assign_source_14; Py_XDECREF( old ); } } { // Tried code: { PyObject *tmp_assign_source_15; PyObject *tmp_iter_arg_3; CHECK_OBJECT( tmp_for_loop_2__iter_value ); tmp_iter_arg_3 = tmp_for_loop_2__iter_value; tmp_assign_source_15 = MAKE_UNPACK_ITERATOR( tmp_iter_arg_3 ); if ( tmp_assign_source_15 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 106; type_description_1 = "ooooooooooo"; goto try_except_handler_4; } { PyObject *old = tmp_tuple_unpack_1__source_iter; tmp_tuple_unpack_1__source_iter = tmp_assign_source_15; Py_XDECREF( old ); } } { // Tried code: { PyObject *tmp_assign_source_16; PyObject *tmp_unpack_1; CHECK_OBJECT( tmp_tuple_unpack_1__source_iter ); tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; tmp_assign_source_16 = UNPACK_NEXT( tmp_unpack_1, 0, 2 ); if ( tmp_assign_source_16 == 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 = "ooooooooooo"; exception_lineno = 106; goto try_except_handler_5; } { PyObject *old = tmp_tuple_unpack_1__element_1; tmp_tuple_unpack_1__element_1 = tmp_assign_source_16; Py_XDECREF( old ); } } { PyObject *tmp_assign_source_17; PyObject *tmp_unpack_2; CHECK_OBJECT( tmp_tuple_unpack_1__source_iter ); tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; tmp_assign_source_17 = UNPACK_NEXT( tmp_unpack_2, 1, 2 ); if ( tmp_assign_source_17 == 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 = "ooooooooooo"; exception_lineno = 106; goto try_except_handler_5; } { PyObject *old = tmp_tuple_unpack_1__element_2; tmp_tuple_unpack_1__element_2 = tmp_assign_source_17; 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 = "ooooooooooo"; exception_lineno = 106; goto try_except_handler_5; } } } 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 = "ooooooooooo"; exception_lineno = 106; goto try_except_handler_5; } } goto try_end_1; // Exception handler code: try_except_handler_5:; 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_4; } // End of try: try_end_1:; } { CHECK_OBJECT( (PyObject *)tmp_tuple_unpack_1__source_iter ); Py_DECREF( tmp_tuple_unpack_1__source_iter ); tmp_tuple_unpack_1__source_iter = NULL; } { // Tried code: { PyObject *tmp_assign_source_18; PyObject *tmp_iter_arg_4; CHECK_OBJECT( tmp_tuple_unpack_1__element_1 ); tmp_iter_arg_4 = tmp_tuple_unpack_1__element_1; tmp_assign_source_18 = MAKE_UNPACK_ITERATOR( tmp_iter_arg_4 ); if ( tmp_assign_source_18 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 106; type_description_1 = "ooooooooooo"; goto try_except_handler_6; } { PyObject *old = tmp_tuple_unpack_2__source_iter; tmp_tuple_unpack_2__source_iter = tmp_assign_source_18; Py_XDECREF( old ); } } { // Tried code: { PyObject *tmp_assign_source_19; PyObject *tmp_unpack_3; CHECK_OBJECT( tmp_tuple_unpack_2__source_iter ); tmp_unpack_3 = tmp_tuple_unpack_2__source_iter; tmp_assign_source_19 = UNPACK_NEXT( tmp_unpack_3, 0, 2 ); if ( tmp_assign_source_19 == 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 = "ooooooooooo"; exception_lineno = 106; goto try_except_handler_7; } { PyObject *old = tmp_tuple_unpack_2__element_1; tmp_tuple_unpack_2__element_1 = tmp_assign_source_19; Py_XDECREF( old ); } } { PyObject *tmp_assign_source_20; PyObject *tmp_unpack_4; CHECK_OBJECT( tmp_tuple_unpack_2__source_iter ); tmp_unpack_4 = tmp_tuple_unpack_2__source_iter; tmp_assign_source_20 = UNPACK_NEXT( tmp_unpack_4, 1, 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 = "ooooooooooo"; exception_lineno = 106; goto try_except_handler_7; } { PyObject *old = tmp_tuple_unpack_2__element_2; tmp_tuple_unpack_2__element_2 = tmp_assign_source_20; 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 = "ooooooooooo"; exception_lineno = 106; 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 = "ooooooooooo"; exception_lineno = 106; goto try_except_handler_7; } } goto try_end_2; // Exception handler code: try_except_handler_7:; 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_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_2; exception_value = exception_keeper_value_2; exception_tb = exception_keeper_tb_2; exception_lineno = exception_keeper_lineno_2; goto try_except_handler_6; } // End of try: try_end_2:; } goto try_end_3; // Exception handler code: try_except_handler_6:; 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_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_3; exception_value = exception_keeper_value_3; exception_tb = exception_keeper_tb_3; exception_lineno = exception_keeper_lineno_3; goto try_except_handler_4; } // End of try: try_end_3:; } 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; { 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_4; exception_value = exception_keeper_value_4; exception_tb = exception_keeper_tb_4; exception_lineno = exception_keeper_lineno_4; goto try_except_handler_3; } // End of try: try_end_4:; } { 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_21; CHECK_OBJECT( tmp_tuple_unpack_2__element_1 ); tmp_assign_source_21 = tmp_tuple_unpack_2__element_1; { PyObject *old = var_namespace; var_namespace = tmp_assign_source_21; Py_INCREF( var_namespace ); Py_XDECREF( old ); } } { Py_XDECREF( tmp_tuple_unpack_2__element_1 ); tmp_tuple_unpack_2__element_1 = NULL; } { PyObject *tmp_assign_source_22; CHECK_OBJECT( tmp_tuple_unpack_2__element_2 ); tmp_assign_source_22 = tmp_tuple_unpack_2__element_2; { PyObject *old = var_localname; var_localname = tmp_assign_source_22; Py_INCREF( var_localname ); Py_XDECREF( old ); } } { Py_XDECREF( tmp_tuple_unpack_2__element_2 ); tmp_tuple_unpack_2__element_2 = NULL; } { Py_XDECREF( tmp_tuple_unpack_1__element_1 ); tmp_tuple_unpack_1__element_1 = NULL; } { PyObject *tmp_assign_source_23; CHECK_OBJECT( tmp_tuple_unpack_1__element_2 ); tmp_assign_source_23 = tmp_tuple_unpack_1__element_2; { PyObject *old = var_value; var_value = tmp_assign_source_23; 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_4; int tmp_truth_name_2; if ( var_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 = 107; type_description_1 = "ooooooooooo"; goto try_except_handler_3; } tmp_truth_name_2 = CHECK_IF_TRUE( var_namespace ); if ( tmp_truth_name_2 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 107; type_description_1 = "ooooooooooo"; goto try_except_handler_3; } 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:; { nuitka_bool tmp_condition_result_5; PyObject *tmp_compexpr_left_4; PyObject *tmp_compexpr_right_4; PyObject *tmp_source_name_5; PyObject *tmp_mvar_value_5; if ( var_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 = 108; type_description_1 = "ooooooooooo"; goto try_except_handler_3; } tmp_compexpr_left_4 = var_namespace; tmp_mvar_value_5 = GET_STRING_DICT_VALUE( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain_constants ); if (unlikely( tmp_mvar_value_5 == NULL )) { tmp_mvar_value_5 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_constants ); } if ( tmp_mvar_value_5 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "constants" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 108; type_description_1 = "ooooooooooo"; goto try_except_handler_3; } tmp_source_name_5 = tmp_mvar_value_5; tmp_compexpr_right_4 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain_prefixes ); if ( tmp_compexpr_right_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 108; type_description_1 = "ooooooooooo"; goto try_except_handler_3; } tmp_res = PySequence_Contains( tmp_compexpr_right_4, tmp_compexpr_left_4 ); Py_DECREF( tmp_compexpr_right_4 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 108; type_description_1 = "ooooooooooo"; goto try_except_handler_3; } tmp_condition_result_5 = ( tmp_res == 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_assign_source_24; PyObject *tmp_subscribed_name_12; PyObject *tmp_source_name_6; PyObject *tmp_mvar_value_6; PyObject *tmp_subscript_name_12; tmp_mvar_value_6 = GET_STRING_DICT_VALUE( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain_constants ); if (unlikely( tmp_mvar_value_6 == NULL )) { tmp_mvar_value_6 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_constants ); } if ( tmp_mvar_value_6 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "constants" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 109; type_description_1 = "ooooooooooo"; goto try_except_handler_3; } tmp_source_name_6 = tmp_mvar_value_6; tmp_subscribed_name_12 = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain_prefixes ); if ( tmp_subscribed_name_12 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 109; type_description_1 = "ooooooooooo"; goto try_except_handler_3; } if ( var_namespace == NULL ) { Py_DECREF( tmp_subscribed_name_12 ); 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 = 109; type_description_1 = "ooooooooooo"; goto try_except_handler_3; } tmp_subscript_name_12 = var_namespace; tmp_assign_source_24 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_12, tmp_subscript_name_12 ); Py_DECREF( tmp_subscribed_name_12 ); if ( tmp_assign_source_24 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 109; type_description_1 = "ooooooooooo"; goto try_except_handler_3; } { PyObject *old = var_ns; var_ns = tmp_assign_source_24; Py_XDECREF( old ); } } goto branch_end_5; branch_no_5:; { PyObject *tmp_assign_source_25; if ( var_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 = 111; type_description_1 = "ooooooooooo"; goto try_except_handler_3; } tmp_assign_source_25 = var_namespace; { PyObject *old = var_ns; var_ns = tmp_assign_source_25; Py_INCREF( var_ns ); Py_XDECREF( old ); } } branch_end_5:; } { PyObject *tmp_assign_source_26; PyObject *tmp_left_name_5; PyObject *tmp_right_name_5; PyObject *tmp_tuple_element_3; tmp_left_name_5 = const_str_digest_9b2a32a10f34854554acce4f0a1e5df6; CHECK_OBJECT( var_ns ); tmp_tuple_element_3 = var_ns; tmp_right_name_5 = PyTuple_New( 2 ); Py_INCREF( tmp_tuple_element_3 ); PyTuple_SET_ITEM( tmp_right_name_5, 0, tmp_tuple_element_3 ); if ( var_localname == NULL ) { Py_DECREF( tmp_right_name_5 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "localname" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 112; type_description_1 = "ooooooooooo"; goto try_except_handler_3; } tmp_tuple_element_3 = var_localname; Py_INCREF( tmp_tuple_element_3 ); PyTuple_SET_ITEM( tmp_right_name_5, 1, tmp_tuple_element_3 ); tmp_assign_source_26 = BINARY_OPERATION_REMAINDER( tmp_left_name_5, tmp_right_name_5 ); Py_DECREF( tmp_right_name_5 ); if ( tmp_assign_source_26 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 112; type_description_1 = "ooooooooooo"; goto try_except_handler_3; } { PyObject *old = var_name; var_name = tmp_assign_source_26; Py_XDECREF( old ); } } goto branch_end_4; branch_no_4:; { PyObject *tmp_assign_source_27; if ( var_localname == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "localname" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 114; type_description_1 = "ooooooooooo"; goto try_except_handler_3; } tmp_assign_source_27 = var_localname; { PyObject *old = var_name; var_name = tmp_assign_source_27; Py_INCREF( var_name ); Py_XDECREF( old ); } } branch_end_4:; } { PyObject *tmp_called_name_4; PyObject *tmp_source_name_7; PyObject *tmp_args_element_name_4; PyObject *tmp_left_name_6; PyObject *tmp_right_name_6; PyObject *tmp_tuple_element_4; PyObject *tmp_left_name_7; PyObject *tmp_right_name_7; if ( var_output == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "output" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 115; type_description_1 = "ooooooooooo"; goto try_except_handler_3; } tmp_source_name_7 = var_output; tmp_called_name_4 = LOOKUP_ATTRIBUTE( tmp_source_name_7, const_str_plain_append ); if ( tmp_called_name_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 115; type_description_1 = "ooooooooooo"; goto try_except_handler_3; } tmp_left_name_6 = const_str_digest_009b8c4ee6f44ce0f70e03d79274d298; tmp_left_name_7 = const_str_space; if ( var_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 = 115; type_description_1 = "ooooooooooo"; goto try_except_handler_3; } tmp_right_name_7 = var_indent; tmp_tuple_element_4 = BINARY_OPERATION_MUL( tmp_left_name_7, tmp_right_name_7 ); if ( tmp_tuple_element_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_4 ); exception_lineno = 115; type_description_1 = "ooooooooooo"; goto try_except_handler_3; } tmp_right_name_6 = PyTuple_New( 3 ); PyTuple_SET_ITEM( tmp_right_name_6, 0, tmp_tuple_element_4 ); if ( var_name == NULL ) { Py_DECREF( tmp_called_name_4 ); Py_DECREF( tmp_right_name_6 ); 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 = 115; type_description_1 = "ooooooooooo"; goto try_except_handler_3; } tmp_tuple_element_4 = var_name; Py_INCREF( tmp_tuple_element_4 ); PyTuple_SET_ITEM( tmp_right_name_6, 1, tmp_tuple_element_4 ); if ( var_value == NULL ) { Py_DECREF( tmp_called_name_4 ); Py_DECREF( tmp_right_name_6 ); 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 = 115; type_description_1 = "ooooooooooo"; goto try_except_handler_3; } tmp_tuple_element_4 = var_value; Py_INCREF( tmp_tuple_element_4 ); PyTuple_SET_ITEM( tmp_right_name_6, 2, tmp_tuple_element_4 ); tmp_args_element_name_4 = BINARY_OPERATION_REMAINDER( tmp_left_name_6, tmp_right_name_6 ); Py_DECREF( tmp_right_name_6 ); 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 = 115; type_description_1 = "ooooooooooo"; goto try_except_handler_3; } frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1->m_frame.f_lineno = 115; { 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 = 115; type_description_1 = "ooooooooooo"; goto try_except_handler_3; } Py_DECREF( tmp_unused ); } if ( CONSIDER_THREADING() == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 106; type_description_1 = "ooooooooooo"; goto try_except_handler_3; } goto loop_start_2; loop_end_2:; } goto try_end_5; // Exception handler code: try_except_handler_3:; 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_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_5; exception_value = exception_keeper_value_5; exception_tb = exception_keeper_tb_5; exception_lineno = exception_keeper_lineno_5; goto try_except_handler_2; } // End of try: try_end_5:; } { 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; } { nuitka_bool tmp_condition_result_6; PyObject *tmp_compexpr_left_5; PyObject *tmp_compexpr_right_5; if ( var_type == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "type" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 117; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_compexpr_left_5 = var_type; tmp_compexpr_right_5 = const_str_plain_EmptyTag; tmp_res = RICH_COMPARE_BOOL_EQ( 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 = 117; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } 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_28; PyObject *tmp_left_name_8; PyObject *tmp_right_name_8; if ( var_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 = 118; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_left_name_8 = var_indent; tmp_right_name_8 = const_int_pos_2; tmp_result = BINARY_OPERATION_INPLACE( PyNumber_InPlaceSubtract, &tmp_left_name_8, tmp_right_name_8 ); tmp_assign_source_28 = tmp_left_name_8; if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 118; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } var_indent = tmp_assign_source_28; } branch_no_6:; } goto branch_end_1; branch_no_1:; { nuitka_bool tmp_condition_result_7; PyObject *tmp_compexpr_left_6; PyObject *tmp_compexpr_right_6; CHECK_OBJECT( var_type ); tmp_compexpr_left_6 = var_type; tmp_compexpr_right_6 = const_str_plain_EndTag; tmp_res = RICH_COMPARE_BOOL_EQ( 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 = 120; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_condition_result_7 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_7 == NUITKA_BOOL_TRUE ) { goto branch_yes_7; } else { goto branch_no_7; } branch_yes_7:; { PyObject *tmp_assign_source_29; PyObject *tmp_left_name_9; PyObject *tmp_right_name_9; if ( var_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 = 121; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_left_name_9 = var_indent; tmp_right_name_9 = const_int_pos_2; tmp_result = BINARY_OPERATION_INPLACE( PyNumber_InPlaceSubtract, &tmp_left_name_9, tmp_right_name_9 ); tmp_assign_source_29 = tmp_left_name_9; if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 121; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } var_indent = tmp_assign_source_29; } goto branch_end_7; branch_no_7:; { nuitka_bool tmp_condition_result_8; PyObject *tmp_compexpr_left_7; PyObject *tmp_compexpr_right_7; if ( var_type == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "type" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 123; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_compexpr_left_7 = var_type; tmp_compexpr_right_7 = const_str_plain_Comment; tmp_res = RICH_COMPARE_BOOL_EQ( tmp_compexpr_left_7, tmp_compexpr_right_7 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 123; type_description_1 = "ooooooooooo"; 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_called_name_5; PyObject *tmp_source_name_8; PyObject *tmp_args_element_name_5; PyObject *tmp_left_name_10; PyObject *tmp_right_name_10; PyObject *tmp_tuple_element_5; PyObject *tmp_left_name_11; PyObject *tmp_right_name_11; PyObject *tmp_subscribed_name_13; PyObject *tmp_subscript_name_13; if ( var_output == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "output" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 124; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_source_name_8 = var_output; tmp_called_name_5 = LOOKUP_ATTRIBUTE( tmp_source_name_8, const_str_plain_append ); if ( tmp_called_name_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 124; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_left_name_10 = const_str_digest_28e03cfc37c27511313189e48c20b7e6; tmp_left_name_11 = const_str_space; if ( var_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 = 124; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_right_name_11 = var_indent; tmp_tuple_element_5 = BINARY_OPERATION_MUL( tmp_left_name_11, tmp_right_name_11 ); if ( tmp_tuple_element_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_5 ); exception_lineno = 124; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_right_name_10 = PyTuple_New( 2 ); PyTuple_SET_ITEM( tmp_right_name_10, 0, tmp_tuple_element_5 ); if ( var_token == NULL ) { Py_DECREF( tmp_called_name_5 ); Py_DECREF( tmp_right_name_10 ); 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 = 124; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_subscribed_name_13 = var_token; tmp_subscript_name_13 = const_str_plain_data; tmp_tuple_element_5 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_13, tmp_subscript_name_13 ); if ( tmp_tuple_element_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_5 ); Py_DECREF( tmp_right_name_10 ); exception_lineno = 124; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } PyTuple_SET_ITEM( tmp_right_name_10, 1, tmp_tuple_element_5 ); tmp_args_element_name_5 = BINARY_OPERATION_REMAINDER( tmp_left_name_10, tmp_right_name_10 ); Py_DECREF( tmp_right_name_10 ); 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 = 124; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1->m_frame.f_lineno = 124; { 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 = 124; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } Py_DECREF( tmp_unused ); } goto branch_end_8; branch_no_8:; { nuitka_bool tmp_condition_result_9; PyObject *tmp_compexpr_left_8; PyObject *tmp_compexpr_right_8; if ( var_type == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "type" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 126; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_compexpr_left_8 = var_type; tmp_compexpr_right_8 = const_str_plain_Doctype; tmp_res = RICH_COMPARE_BOOL_EQ( tmp_compexpr_left_8, tmp_compexpr_right_8 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 126; type_description_1 = "ooooooooooo"; 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:; { nuitka_bool tmp_condition_result_10; PyObject *tmp_subscribed_name_14; PyObject *tmp_subscript_name_14; PyObject *tmp_subscript_result_2; int tmp_truth_name_3; if ( var_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 = 127; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_subscribed_name_14 = var_token; tmp_subscript_name_14 = const_str_plain_name; tmp_subscript_result_2 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_14, tmp_subscript_name_14 ); if ( tmp_subscript_result_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 127; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_truth_name_3 = CHECK_IF_TRUE( tmp_subscript_result_2 ); if ( tmp_truth_name_3 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_subscript_result_2 ); exception_lineno = 127; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_condition_result_10 = tmp_truth_name_3 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_subscript_result_2 ); if ( tmp_condition_result_10 == NUITKA_BOOL_TRUE ) { goto branch_yes_10; } else { goto branch_no_10; } branch_yes_10:; { nuitka_bool tmp_condition_result_11; PyObject *tmp_subscribed_name_15; PyObject *tmp_subscript_name_15; PyObject *tmp_subscript_result_3; int tmp_truth_name_4; if ( var_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 = 128; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_subscribed_name_15 = var_token; tmp_subscript_name_15 = const_str_plain_publicId; tmp_subscript_result_3 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_15, tmp_subscript_name_15 ); if ( tmp_subscript_result_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 128; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_truth_name_4 = CHECK_IF_TRUE( tmp_subscript_result_3 ); if ( tmp_truth_name_4 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_subscript_result_3 ); exception_lineno = 128; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_condition_result_11 = tmp_truth_name_4 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_subscript_result_3 ); if ( tmp_condition_result_11 == NUITKA_BOOL_TRUE ) { goto branch_yes_11; } else { goto branch_no_11; } branch_yes_11:; { PyObject *tmp_called_name_6; PyObject *tmp_source_name_9; PyObject *tmp_args_element_name_6; PyObject *tmp_left_name_12; PyObject *tmp_right_name_12; PyObject *tmp_tuple_element_6; PyObject *tmp_left_name_13; PyObject *tmp_right_name_13; PyObject *tmp_subscribed_name_16; PyObject *tmp_subscript_name_16; PyObject *tmp_subscribed_name_17; PyObject *tmp_subscript_name_17; nuitka_bool tmp_condition_result_12; PyObject *tmp_subscribed_name_18; PyObject *tmp_subscript_name_18; PyObject *tmp_subscript_result_4; int tmp_truth_name_5; PyObject *tmp_subscribed_name_19; PyObject *tmp_subscript_name_19; if ( var_output == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "output" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 129; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_source_name_9 = var_output; tmp_called_name_6 = LOOKUP_ATTRIBUTE( tmp_source_name_9, const_str_plain_append ); if ( tmp_called_name_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 129; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_left_name_12 = const_str_digest_1ea5ecabedcae314f25ee11563c438b3; tmp_left_name_13 = const_str_space; if ( var_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 = 130; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_right_name_13 = var_indent; tmp_tuple_element_6 = BINARY_OPERATION_MUL( tmp_left_name_13, tmp_right_name_13 ); if ( tmp_tuple_element_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_6 ); exception_lineno = 130; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_right_name_12 = PyTuple_New( 4 ); PyTuple_SET_ITEM( tmp_right_name_12, 0, tmp_tuple_element_6 ); if ( var_token == NULL ) { Py_DECREF( tmp_called_name_6 ); Py_DECREF( tmp_right_name_12 ); 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 = 131; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_subscribed_name_16 = var_token; tmp_subscript_name_16 = const_str_plain_name; tmp_tuple_element_6 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_16, tmp_subscript_name_16 ); if ( tmp_tuple_element_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_6 ); Py_DECREF( tmp_right_name_12 ); exception_lineno = 131; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } PyTuple_SET_ITEM( tmp_right_name_12, 1, tmp_tuple_element_6 ); if ( var_token == NULL ) { Py_DECREF( tmp_called_name_6 ); Py_DECREF( tmp_right_name_12 ); 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 = 132; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_subscribed_name_17 = var_token; tmp_subscript_name_17 = const_str_plain_publicId; tmp_tuple_element_6 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_17, tmp_subscript_name_17 ); if ( tmp_tuple_element_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_6 ); Py_DECREF( tmp_right_name_12 ); exception_lineno = 132; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } PyTuple_SET_ITEM( tmp_right_name_12, 2, tmp_tuple_element_6 ); if ( var_token == NULL ) { Py_DECREF( tmp_called_name_6 ); Py_DECREF( tmp_right_name_12 ); 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 = 133; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_subscribed_name_18 = var_token; tmp_subscript_name_18 = const_str_plain_systemId; tmp_subscript_result_4 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_18, tmp_subscript_name_18 ); if ( tmp_subscript_result_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_6 ); Py_DECREF( tmp_right_name_12 ); exception_lineno = 133; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_truth_name_5 = CHECK_IF_TRUE( tmp_subscript_result_4 ); if ( tmp_truth_name_5 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_6 ); Py_DECREF( tmp_right_name_12 ); Py_DECREF( tmp_subscript_result_4 ); exception_lineno = 133; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_condition_result_12 = tmp_truth_name_5 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_subscript_result_4 ); if ( tmp_condition_result_12 == NUITKA_BOOL_TRUE ) { goto condexpr_true_1; } else { goto condexpr_false_1; } condexpr_true_1:; if ( var_token == NULL ) { Py_DECREF( tmp_called_name_6 ); Py_DECREF( tmp_right_name_12 ); 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 = 133; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_subscribed_name_19 = var_token; tmp_subscript_name_19 = const_str_plain_systemId; tmp_tuple_element_6 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_19, tmp_subscript_name_19 ); if ( tmp_tuple_element_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_6 ); Py_DECREF( tmp_right_name_12 ); exception_lineno = 133; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } goto condexpr_end_1; condexpr_false_1:; tmp_tuple_element_6 = const_str_empty; Py_INCREF( tmp_tuple_element_6 ); condexpr_end_1:; PyTuple_SET_ITEM( tmp_right_name_12, 3, tmp_tuple_element_6 ); tmp_args_element_name_6 = BINARY_OPERATION_REMAINDER( tmp_left_name_12, tmp_right_name_12 ); Py_DECREF( tmp_right_name_12 ); 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 = 129; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1->m_frame.f_lineno = 129; { 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 = 129; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } Py_DECREF( tmp_unused ); } goto branch_end_11; branch_no_11:; { nuitka_bool tmp_condition_result_13; PyObject *tmp_subscribed_name_20; PyObject *tmp_subscript_name_20; PyObject *tmp_subscript_result_5; int tmp_truth_name_6; if ( var_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 = 134; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_subscribed_name_20 = var_token; tmp_subscript_name_20 = const_str_plain_systemId; tmp_subscript_result_5 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_20, tmp_subscript_name_20 ); if ( tmp_subscript_result_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 134; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_truth_name_6 = CHECK_IF_TRUE( tmp_subscript_result_5 ); if ( tmp_truth_name_6 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_subscript_result_5 ); exception_lineno = 134; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_condition_result_13 = tmp_truth_name_6 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_subscript_result_5 ); if ( tmp_condition_result_13 == NUITKA_BOOL_TRUE ) { goto branch_yes_12; } else { goto branch_no_12; } branch_yes_12:; { PyObject *tmp_called_name_7; PyObject *tmp_source_name_10; PyObject *tmp_args_element_name_7; PyObject *tmp_left_name_14; PyObject *tmp_right_name_14; PyObject *tmp_tuple_element_7; PyObject *tmp_left_name_15; PyObject *tmp_right_name_15; PyObject *tmp_subscribed_name_21; PyObject *tmp_subscript_name_21; PyObject *tmp_subscribed_name_22; PyObject *tmp_subscript_name_22; if ( var_output == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "output" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 135; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_source_name_10 = var_output; tmp_called_name_7 = LOOKUP_ATTRIBUTE( tmp_source_name_10, const_str_plain_append ); if ( tmp_called_name_7 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 135; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_left_name_14 = const_str_digest_3c3a391610fbcf14be1d0002ce523990; tmp_left_name_15 = const_str_space; if ( var_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 = 136; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_right_name_15 = var_indent; tmp_tuple_element_7 = BINARY_OPERATION_MUL( tmp_left_name_15, tmp_right_name_15 ); 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 = 136; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_right_name_14 = PyTuple_New( 3 ); PyTuple_SET_ITEM( tmp_right_name_14, 0, tmp_tuple_element_7 ); if ( var_token == NULL ) { Py_DECREF( tmp_called_name_7 ); Py_DECREF( tmp_right_name_14 ); 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 = 137; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_subscribed_name_21 = var_token; tmp_subscript_name_21 = const_str_plain_name; tmp_tuple_element_7 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_21, tmp_subscript_name_21 ); if ( tmp_tuple_element_7 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_7 ); Py_DECREF( tmp_right_name_14 ); exception_lineno = 137; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } PyTuple_SET_ITEM( tmp_right_name_14, 1, tmp_tuple_element_7 ); if ( var_token == NULL ) { Py_DECREF( tmp_called_name_7 ); Py_DECREF( tmp_right_name_14 ); 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 = 138; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_subscribed_name_22 = var_token; tmp_subscript_name_22 = const_str_plain_systemId; tmp_tuple_element_7 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_22, tmp_subscript_name_22 ); if ( tmp_tuple_element_7 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_7 ); Py_DECREF( tmp_right_name_14 ); exception_lineno = 138; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } PyTuple_SET_ITEM( tmp_right_name_14, 2, tmp_tuple_element_7 ); tmp_args_element_name_7 = BINARY_OPERATION_REMAINDER( tmp_left_name_14, tmp_right_name_14 ); Py_DECREF( tmp_right_name_14 ); 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 = 135; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1->m_frame.f_lineno = 135; { 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 = 135; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } Py_DECREF( tmp_unused ); } goto branch_end_12; branch_no_12:; { PyObject *tmp_called_name_8; PyObject *tmp_source_name_11; PyObject *tmp_args_element_name_8; PyObject *tmp_left_name_16; PyObject *tmp_right_name_16; PyObject *tmp_tuple_element_8; PyObject *tmp_left_name_17; PyObject *tmp_right_name_17; PyObject *tmp_subscribed_name_23; PyObject *tmp_subscript_name_23; if ( var_output == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "output" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 140; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_source_name_11 = var_output; tmp_called_name_8 = LOOKUP_ATTRIBUTE( tmp_source_name_11, const_str_plain_append ); if ( tmp_called_name_8 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 140; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_left_name_16 = const_str_digest_5a4551a454f1fcd784cb4a432e2dffa5; tmp_left_name_17 = const_str_space; if ( var_indent == 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", "indent" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 140; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_right_name_17 = var_indent; tmp_tuple_element_8 = BINARY_OPERATION_MUL( tmp_left_name_17, tmp_right_name_17 ); if ( tmp_tuple_element_8 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_8 ); exception_lineno = 140; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_right_name_16 = PyTuple_New( 2 ); PyTuple_SET_ITEM( tmp_right_name_16, 0, tmp_tuple_element_8 ); if ( var_token == NULL ) { Py_DECREF( tmp_called_name_8 ); Py_DECREF( tmp_right_name_16 ); 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 = 141; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_subscribed_name_23 = var_token; tmp_subscript_name_23 = const_str_plain_name; tmp_tuple_element_8 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_23, tmp_subscript_name_23 ); if ( tmp_tuple_element_8 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_8 ); Py_DECREF( tmp_right_name_16 ); exception_lineno = 141; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } PyTuple_SET_ITEM( tmp_right_name_16, 1, tmp_tuple_element_8 ); tmp_args_element_name_8 = BINARY_OPERATION_REMAINDER( tmp_left_name_16, tmp_right_name_16 ); Py_DECREF( tmp_right_name_16 ); if ( tmp_args_element_name_8 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_8 ); exception_lineno = 140; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1->m_frame.f_lineno = 140; { PyObject *call_args[] = { tmp_args_element_name_8 }; tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_8, call_args ); } Py_DECREF( tmp_called_name_8 ); Py_DECREF( tmp_args_element_name_8 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 140; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } Py_DECREF( tmp_unused ); } branch_end_12:; } branch_end_11:; } goto branch_end_10; branch_no_10:; { PyObject *tmp_called_name_9; PyObject *tmp_source_name_12; PyObject *tmp_args_element_name_9; PyObject *tmp_left_name_18; PyObject *tmp_right_name_18; PyObject *tmp_tuple_element_9; PyObject *tmp_left_name_19; PyObject *tmp_right_name_19; if ( var_output == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "output" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 143; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_source_name_12 = var_output; tmp_called_name_9 = LOOKUP_ATTRIBUTE( tmp_source_name_12, const_str_plain_append ); if ( tmp_called_name_9 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 143; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_left_name_18 = const_str_digest_4e97639a72b0e31388322e87052ff6d9; tmp_left_name_19 = const_str_space; if ( var_indent == 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", "indent" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 143; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_right_name_19 = var_indent; tmp_tuple_element_9 = BINARY_OPERATION_MUL( tmp_left_name_19, tmp_right_name_19 ); if ( tmp_tuple_element_9 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_9 ); exception_lineno = 143; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_right_name_18 = PyTuple_New( 1 ); PyTuple_SET_ITEM( tmp_right_name_18, 0, tmp_tuple_element_9 ); tmp_args_element_name_9 = BINARY_OPERATION_REMAINDER( tmp_left_name_18, tmp_right_name_18 ); Py_DECREF( tmp_right_name_18 ); if ( tmp_args_element_name_9 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_9 ); exception_lineno = 143; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1->m_frame.f_lineno = 143; { 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 = 143; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } Py_DECREF( tmp_unused ); } branch_end_10:; } goto branch_end_9; branch_no_9:; { nuitka_bool tmp_condition_result_14; PyObject *tmp_compexpr_left_9; PyObject *tmp_compexpr_right_9; if ( var_type == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "type" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 145; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_compexpr_left_9 = var_type; tmp_compexpr_right_9 = const_str_plain_Characters; tmp_res = RICH_COMPARE_BOOL_EQ( tmp_compexpr_left_9, tmp_compexpr_right_9 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 145; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_condition_result_14 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_14 == NUITKA_BOOL_TRUE ) { goto branch_yes_13; } else { goto branch_no_13; } branch_yes_13:; { PyObject *tmp_called_name_10; PyObject *tmp_source_name_13; PyObject *tmp_args_element_name_10; PyObject *tmp_left_name_20; PyObject *tmp_right_name_20; PyObject *tmp_tuple_element_10; PyObject *tmp_left_name_21; PyObject *tmp_right_name_21; PyObject *tmp_subscribed_name_24; PyObject *tmp_subscript_name_24; if ( var_output == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "output" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 146; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_source_name_13 = var_output; tmp_called_name_10 = LOOKUP_ATTRIBUTE( tmp_source_name_13, const_str_plain_append ); if ( tmp_called_name_10 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 146; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_left_name_20 = const_str_digest_381b3e2a7be0aa723626ed09de351469; tmp_left_name_21 = const_str_space; if ( var_indent == NULL ) { Py_DECREF( tmp_called_name_10 ); 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 = 146; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_right_name_21 = var_indent; tmp_tuple_element_10 = BINARY_OPERATION_MUL( tmp_left_name_21, tmp_right_name_21 ); if ( tmp_tuple_element_10 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_10 ); exception_lineno = 146; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_right_name_20 = PyTuple_New( 2 ); PyTuple_SET_ITEM( tmp_right_name_20, 0, tmp_tuple_element_10 ); if ( var_token == NULL ) { Py_DECREF( tmp_called_name_10 ); Py_DECREF( tmp_right_name_20 ); 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 = 146; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_subscribed_name_24 = var_token; tmp_subscript_name_24 = const_str_plain_data; tmp_tuple_element_10 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_24, tmp_subscript_name_24 ); if ( tmp_tuple_element_10 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_10 ); Py_DECREF( tmp_right_name_20 ); exception_lineno = 146; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } PyTuple_SET_ITEM( tmp_right_name_20, 1, tmp_tuple_element_10 ); tmp_args_element_name_10 = BINARY_OPERATION_REMAINDER( tmp_left_name_20, tmp_right_name_20 ); Py_DECREF( tmp_right_name_20 ); if ( tmp_args_element_name_10 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_10 ); exception_lineno = 146; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1->m_frame.f_lineno = 146; { PyObject *call_args[] = { tmp_args_element_name_10 }; tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_10, call_args ); } Py_DECREF( tmp_called_name_10 ); Py_DECREF( tmp_args_element_name_10 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 146; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } Py_DECREF( tmp_unused ); } goto branch_end_13; branch_no_13:; { nuitka_bool tmp_condition_result_15; PyObject *tmp_compexpr_left_10; PyObject *tmp_compexpr_right_10; if ( var_type == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "type" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 148; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_compexpr_left_10 = var_type; tmp_compexpr_right_10 = const_str_plain_SpaceCharacters; tmp_res = RICH_COMPARE_BOOL_EQ( tmp_compexpr_left_10, tmp_compexpr_right_10 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 148; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_condition_result_15 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_15 == NUITKA_BOOL_TRUE ) { goto branch_yes_14; } else { goto branch_no_14; } branch_yes_14:; { PyObject *tmp_raise_type_1; PyObject *tmp_raise_value_1; tmp_raise_type_1 = PyExc_AssertionError; tmp_raise_value_1 = const_tuple_str_digest_f4cccc7f88053d3fd5bf10d61ee8397c_tuple; exception_type = tmp_raise_type_1; Py_INCREF( tmp_raise_type_1 ); exception_value = tmp_raise_value_1; Py_INCREF( tmp_raise_value_1 ); exception_lineno = 149; RAISE_EXCEPTION_WITH_VALUE( &exception_type, &exception_value, &exception_tb ); type_description_1 = "ooooooooooo"; goto try_except_handler_2; } goto branch_end_14; branch_no_14:; { PyObject *tmp_raise_type_2; PyObject *tmp_make_exception_arg_1; PyObject *tmp_left_name_22; PyObject *tmp_right_name_22; tmp_left_name_22 = const_str_digest_c9f4db3199593c3cf1242165bc52de4c; if ( var_type == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "type" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 152; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } tmp_right_name_22 = var_type; tmp_make_exception_arg_1 = BINARY_OPERATION_REMAINDER( tmp_left_name_22, tmp_right_name_22 ); if ( tmp_make_exception_arg_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 152; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1->m_frame.f_lineno = 152; { PyObject *call_args[] = { tmp_make_exception_arg_1 }; tmp_raise_type_2 = CALL_FUNCTION_WITH_ARGS1( PyExc_ValueError, call_args ); } Py_DECREF( tmp_make_exception_arg_1 ); assert( !(tmp_raise_type_2 == NULL) ); exception_type = tmp_raise_type_2; exception_lineno = 152; RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb ); type_description_1 = "ooooooooooo"; goto try_except_handler_2; } branch_end_14:; } branch_end_13:; } branch_end_9:; } branch_end_8:; } branch_end_7:; } branch_end_1:; } if ( CONSIDER_THREADING() == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 90; type_description_1 = "ooooooooooo"; goto try_except_handler_2; } goto loop_start_1; loop_end_1:; } goto try_end_6; // Exception handler code: try_except_handler_2:; 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_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_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_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_11; PyObject *tmp_source_name_14; PyObject *tmp_args_element_name_11; tmp_source_name_14 = const_str_newline; tmp_called_name_11 = LOOKUP_ATTRIBUTE( tmp_source_name_14, const_str_plain_join ); assert( !(tmp_called_name_11 == NULL) ); if ( var_output == 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", "output" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 154; type_description_1 = "ooooooooooo"; goto frame_exception_exit_1; } tmp_args_element_name_11 = var_output; frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1->m_frame.f_lineno = 154; { PyObject *call_args[] = { tmp_args_element_name_11 }; tmp_return_value = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_11, call_args ); } Py_DECREF( tmp_called_name_11 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 154; type_description_1 = "ooooooooooo"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1, type_description_1, par_walker, var_output, var_indent, var_token, var_type, var_ns, var_name, var_attrs, var_namespace, var_localname, var_value ); // Release cached frame. if ( frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1 == cache_frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1 ) { Py_DECREF( frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1 ); } cache_frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1 = NULL; assertFrameObject( frame_5a5ef2b1bf8a177c9cedb0b028b6c4e1 ); // 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( html5lib$treewalkers$$$function_3_pprint ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_walker ); par_walker = NULL; } { Py_XDECREF( var_output ); var_output = NULL; } { Py_XDECREF( var_indent ); var_indent = NULL; } { Py_XDECREF( var_token ); var_token = NULL; } { Py_XDECREF( var_type ); var_type = NULL; } { Py_XDECREF( var_ns ); var_ns = NULL; } { Py_XDECREF( var_name ); var_name = NULL; } { Py_XDECREF( var_attrs ); var_attrs = NULL; } { Py_XDECREF( var_namespace ); var_namespace = NULL; } { Py_XDECREF( var_localname ); var_localname = NULL; } { Py_XDECREF( var_value ); var_value = 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_walker ); par_walker = NULL; } { Py_XDECREF( var_output ); var_output = NULL; } { Py_XDECREF( var_indent ); var_indent = NULL; } { Py_XDECREF( var_token ); var_token = NULL; } { Py_XDECREF( var_type ); var_type = NULL; } { Py_XDECREF( var_ns ); var_ns = NULL; } { Py_XDECREF( var_name ); var_name = NULL; } { Py_XDECREF( var_attrs ); var_attrs = NULL; } { Py_XDECREF( var_namespace ); var_namespace = NULL; } { Py_XDECREF( var_localname ); var_localname = NULL; } { Py_XDECREF( var_value ); var_value = 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( html5lib$treewalkers$$$function_3_pprint ); 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 *MAKE_FUNCTION_html5lib$treewalkers$$$function_1_getTreeWalker( PyObject *defaults ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_html5lib$treewalkers$$$function_1_getTreeWalker, const_str_plain_getTreeWalker, #if PYTHON_VERSION >= 300 NULL, #endif codeobj_2ae5c76300bc20f31328a6c9aa411f75, defaults, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_html5lib$treewalkers, const_str_digest_1dee8cf28267e8a9548c760779bdc423, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_html5lib$treewalkers$$$function_2_concatenateCharacterTokens( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_html5lib$treewalkers$$$function_2_concatenateCharacterTokens, const_str_plain_concatenateCharacterTokens, #if PYTHON_VERSION >= 300 NULL, #endif codeobj_b4f657eda2cd4485e91c48110cec35a4, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_html5lib$treewalkers, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_html5lib$treewalkers$$$function_3_pprint( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_html5lib$treewalkers$$$function_3_pprint, const_str_plain_pprint, #if PYTHON_VERSION >= 300 NULL, #endif codeobj_5a5ef2b1bf8a177c9cedb0b028b6c4e1, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_html5lib$treewalkers, const_str_digest_fdb3b22c948bd5f39e20cf573f99c320, 0 ); return (PyObject *)result; } #if PYTHON_VERSION >= 300 static struct PyModuleDef mdef_html5lib$treewalkers = { PyModuleDef_HEAD_INIT, "html5lib.treewalkers", /* 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( html5lib$treewalkers ) { #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_html5lib$treewalkers ); } 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("html5lib.treewalkers: 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("html5lib.treewalkers: Calling createModuleConstants()."); #endif createModuleConstants(); /* The code objects used by this module are created now. */ #ifdef _NUITKA_TRACE puts("html5lib.treewalkers: Calling createModuleCodeObjects()."); #endif createModuleCodeObjects(); // puts( "in inithtml5lib$treewalkers" ); // 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_html5lib$treewalkers = Py_InitModule4( "html5lib.treewalkers", // 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_html5lib$treewalkers = PyModule_Create( &mdef_html5lib$treewalkers ); #endif moduledict_html5lib$treewalkers = MODULE_DICT( module_html5lib$treewalkers ); // Update "__package__" value to what it ought to be. { #if 1 PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain___name__ ); UPDATE_STRING_DICT1( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain___package__, module_name ); #else #if PYTHON_VERSION < 300 PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_html5lib$treewalkers, (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_html5lib$treewalkers, (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_html5lib$treewalkers, (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_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain___package__, PyUnicode_Substring( module_name, 0, dot_index ) ); } #endif #endif } CHECK_OBJECT( module_html5lib$treewalkers ); // 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_27c816a741eaf31778ed9f63df9bc05a, module_html5lib$treewalkers ); 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_html5lib$treewalkers, (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_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain___builtins__, value ); } #if PYTHON_VERSION >= 300 UPDATE_STRING_DICT0( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain___loader__, metapath_based_loader ); #endif #if PYTHON_VERSION >= 340 #if 0 UPDATE_STRING_DICT0( moduledict_html5lib$treewalkers, (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_html5lib$treewalkers, (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_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain___spec__, spec_value ); Py_DECREF( module_spec_class ); } #endif #endif // Temp variables if any PyObject *tmp_import_from_1__module = NULL; struct Nuitka_FrameObject *frame_be32d5dd49940117475e106e5a26e660; 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; // Module code. { PyObject *tmp_assign_source_1; tmp_assign_source_1 = const_str_digest_dadcd91994e65170e66c0745ec0ad8e1; UPDATE_STRING_DICT0( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain___doc__, tmp_assign_source_1 ); } { PyObject *tmp_assign_source_2; tmp_assign_source_2 = const_str_digest_7c25a17645a58aad34f39f628a239c8a; UPDATE_STRING_DICT0( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain___file__, tmp_assign_source_2 ); } { PyObject *tmp_assign_source_3; tmp_assign_source_3 = LIST_COPY( const_list_str_digest_df55edb9322797849652f7a1e1ac2422_list ); UPDATE_STRING_DICT1( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain___path__, tmp_assign_source_3 ); } { PyObject *tmp_assign_source_4; tmp_assign_source_4 = Py_None; UPDATE_STRING_DICT0( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain___cached__, tmp_assign_source_4 ); } { PyObject *tmp_assign_source_5; tmp_assign_source_5 = PyImport_ImportModule("__future__"); assert( !(tmp_assign_source_5 == NULL) ); assert( tmp_import_from_1__module == NULL ); Py_INCREF( tmp_assign_source_5 ); tmp_import_from_1__module = tmp_assign_source_5; } // Frame without reuse. frame_be32d5dd49940117475e106e5a26e660 = MAKE_MODULE_FRAME( codeobj_be32d5dd49940117475e106e5a26e660, module_html5lib$treewalkers ); // Push the new frame as the currently active one, and we should be exclusively // owning it. pushFrameStack( frame_be32d5dd49940117475e106e5a26e660 ); assert( Py_REFCNT( frame_be32d5dd49940117475e106e5a26e660 ) == 2 ); // Framed code: { // Tried code: { PyObject *tmp_assign_source_6; 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_6 = IMPORT_NAME( tmp_import_name_from_1, const_str_plain_absolute_import ); if ( tmp_assign_source_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 11; goto try_except_handler_1; } UPDATE_STRING_DICT1( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain_absolute_import, tmp_assign_source_6 ); } { PyObject *tmp_assign_source_7; 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_7 = IMPORT_NAME( tmp_import_name_from_2, const_str_plain_division ); if ( tmp_assign_source_7 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 11; goto try_except_handler_1; } UPDATE_STRING_DICT1( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain_division, tmp_assign_source_7 ); } { PyObject *tmp_assign_source_8; 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_8 = IMPORT_NAME( tmp_import_name_from_3, const_str_plain_unicode_literals ); if ( tmp_assign_source_8 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 11; goto try_except_handler_1; } UPDATE_STRING_DICT1( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain_unicode_literals, tmp_assign_source_8 ); } 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_9; PyObject *tmp_import_name_from_4; 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_empty; tmp_globals_name_1 = (PyObject *)moduledict_html5lib$treewalkers; tmp_locals_name_1 = Py_None; tmp_fromlist_name_1 = const_tuple_str_plain_constants_tuple; tmp_level_name_1 = const_int_pos_2; frame_be32d5dd49940117475e106e5a26e660->m_frame.f_lineno = 13; tmp_import_name_from_4 = 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_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 13; goto frame_exception_exit_1; } if ( PyModule_Check( tmp_import_name_from_4 ) ) { tmp_assign_source_9 = IMPORT_NAME_OR_MODULE( tmp_import_name_from_4, (PyObject *)MODULE_DICT(tmp_import_name_from_4), const_str_plain_constants, const_int_pos_2 ); } else { tmp_assign_source_9 = IMPORT_NAME( tmp_import_name_from_4, const_str_plain_constants ); } Py_DECREF( tmp_import_name_from_4 ); if ( tmp_assign_source_9 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 13; goto frame_exception_exit_1; } UPDATE_STRING_DICT1( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain_constants, tmp_assign_source_9 ); } { PyObject *tmp_assign_source_10; PyObject *tmp_import_name_from_5; 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__utils; tmp_globals_name_2 = (PyObject *)moduledict_html5lib$treewalkers; tmp_locals_name_2 = Py_None; tmp_fromlist_name_2 = const_tuple_str_plain_default_etree_tuple; tmp_level_name_2 = const_int_pos_2; frame_be32d5dd49940117475e106e5a26e660->m_frame.f_lineno = 14; tmp_import_name_from_5 = IMPORT_MODULE5( tmp_name_name_2, tmp_globals_name_2, tmp_locals_name_2, tmp_fromlist_name_2, tmp_level_name_2 ); if ( tmp_import_name_from_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 14; goto frame_exception_exit_1; } if ( PyModule_Check( tmp_import_name_from_5 ) ) { tmp_assign_source_10 = IMPORT_NAME_OR_MODULE( tmp_import_name_from_5, (PyObject *)MODULE_DICT(tmp_import_name_from_5), const_str_plain_default_etree, const_int_pos_2 ); } else { tmp_assign_source_10 = IMPORT_NAME( tmp_import_name_from_5, const_str_plain_default_etree ); } Py_DECREF( tmp_import_name_from_5 ); if ( tmp_assign_source_10 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 14; goto frame_exception_exit_1; } UPDATE_STRING_DICT1( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain_default_etree, tmp_assign_source_10 ); } // Restore frame exception if necessary. #if 0 RESTORE_FRAME_EXCEPTION( frame_be32d5dd49940117475e106e5a26e660 ); #endif popFrameStack(); assertFrameObject( frame_be32d5dd49940117475e106e5a26e660 ); goto frame_no_exception_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_be32d5dd49940117475e106e5a26e660 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_be32d5dd49940117475e106e5a26e660, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_be32d5dd49940117475e106e5a26e660->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_be32d5dd49940117475e106e5a26e660, exception_lineno ); } // Put the previous frame back on top. popFrameStack(); // Return the error. goto module_exception_exit; frame_no_exception_1:; { PyObject *tmp_assign_source_11; tmp_assign_source_11 = LIST_COPY( const_list_str_plain_getTreeWalker_str_plain_pprint_list ); UPDATE_STRING_DICT1( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain___all__, tmp_assign_source_11 ); } { PyObject *tmp_assign_source_12; tmp_assign_source_12 = PyDict_New(); UPDATE_STRING_DICT1( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain_treeWalkerCache, tmp_assign_source_12 ); } { PyObject *tmp_assign_source_13; PyObject *tmp_defaults_1; tmp_defaults_1 = const_tuple_none_tuple; Py_INCREF( tmp_defaults_1 ); tmp_assign_source_13 = MAKE_FUNCTION_html5lib$treewalkers$$$function_1_getTreeWalker( tmp_defaults_1 ); UPDATE_STRING_DICT1( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain_getTreeWalker, tmp_assign_source_13 ); } { PyObject *tmp_assign_source_14; tmp_assign_source_14 = MAKE_FUNCTION_html5lib$treewalkers$$$function_2_concatenateCharacterTokens( ); UPDATE_STRING_DICT1( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain_concatenateCharacterTokens, tmp_assign_source_14 ); } { PyObject *tmp_assign_source_15; tmp_assign_source_15 = MAKE_FUNCTION_html5lib$treewalkers$$$function_3_pprint( ); UPDATE_STRING_DICT1( moduledict_html5lib$treewalkers, (Nuitka_StringObject *)const_str_plain_pprint, tmp_assign_source_15 ); } return MOD_RETURN_VALUE( module_html5lib$treewalkers ); module_exception_exit: RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return MOD_RETURN_VALUE( NULL ); }