/* Generated code for Python source for module 'html5lib._utils' * 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$_utils 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$_utils; PyDictObject *moduledict_html5lib$_utils; /* The module constants used, if any. */ extern PyObject *const_str_plain_set; extern PyObject *const_str_plain_eval; extern PyObject *const_str_plain_metaclass; extern PyObject *const_str_plain_MethodDispatcher; extern PyObject *const_str_plain_dict; extern PyObject *const_str_plain___name__; extern PyObject *const_tuple_str_plain_self_str_plain_key_tuple; extern PyObject *const_tuple_str_plain___class___tuple; extern PyObject *const_int_pos_57343; extern PyObject *const_str_angle_metaclass; static PyObject *const_str_digest_78e245572c73969d3d5aa853c59ef89c; extern PyObject *const_str_plain___file__; extern PyObject *const_int_pos_55296; static PyObject *const_str_digest_d1a10abdfe2f776a3991fe5869130af4; extern PyObject *const_str_plain_args; extern PyObject *const_str_plain_etree; extern PyObject *const_str_plain_isSurrogatePair; extern PyObject *const_str_plain_default; extern PyObject *const_str_plain_division; extern PyObject *const_str_plain_items; extern PyObject *const_str_plain_moduleFactoryFactory; extern PyObject *const_str_plain_strip; static PyObject *const_str_plain_baseModule; extern PyObject *const_str_plain_func; extern PyObject *const_int_pos_1024; static PyObject *const_str_digest_a95c02c9adb958309f6977392d8a9804; static PyObject *const_str_digest_83a4d29dbb8315e4bb75b5583003c637; extern PyObject *const_str_plain_cache; static PyObject *const_bytes_digest_efe1e4320ba8dc99147a2aee1ae12fda; extern PyObject *const_str_plain_wrapped; extern PyObject *const_tuple_type_dict_tuple; extern PyObject *const_str_plain_absolute_import; extern PyObject *const_str_plain___doc__; extern PyObject *const_str_plain___orig_bases__; extern PyObject *const_tuple_tuple_empty_tuple; extern PyObject *const_str_plain_data; extern PyObject *const_str_plain_str; extern PyObject *const_str_plain_char_val; static PyObject *const_str_plain__dictEntries; extern PyObject *const_str_plain_ModuleType; extern PyObject *const_str_plain___qualname__; extern PyObject *const_str_plain_memoize; static PyObject *const_tuple_fde15979539106cee7c0386927efb2f0_tuple; extern PyObject *const_str_plain_item; extern PyObject *const_str_plain_surrogatePairToCodepoint; extern PyObject *const_str_plain_six; static PyObject *const_str_plain_moduleCache; extern PyObject *const_str_plain_value; extern PyObject *const_tuple_str_plain_text_type_tuple; extern PyObject *const_tuple_empty; extern PyObject *const_str_plain_append; extern PyObject *const_str_plain__x; extern PyObject *const_str_plain_default_etree; static PyObject *const_str_digest_585868dc50599c5d143780d4d5d6aaf7; extern PyObject *const_str_plain_name; extern PyObject *const_str_plain_ElementTree; extern PyObject *const_int_pos_56320; extern PyObject *const_str_plain_objs; extern PyObject *const_str_plain___getitem__; extern PyObject *const_str_plain___all__; extern PyObject *const_str_plain_list; static PyObject *const_str_digest_425c264f117c67cee80f07f6d394bbaa; extern PyObject *const_str_plain_frozenset; static PyObject *const_tuple_str_plain_data_str_plain_char_val_tuple; extern PyObject *const_int_0; static PyObject *const_tuple_str_plain_ModuleType_tuple; extern PyObject *const_str_digest_75fd71b1edada749c2ef7ac810062295; static PyObject *const_str_digest_1114ae96138450b599b96330eb99af15; static PyObject *const_str_digest_ca20275ccc73f9e88f7d0b9548668b44; static PyObject *const_str_digest_a6956e19579daccae3cc5f691a6ace17; static PyObject *const_str_digest_8c54e2fe2a3b443ef76c0f757d15bd9b; extern PyObject *const_tuple_str_plain_data_tuple; extern PyObject *const_str_plain_type; extern PyObject *const_str_plain___cached__; extern PyObject *const_int_pos_56319; extern PyObject *const_str_plain___class__; static PyObject *const_tuple_d5583c7bc5523f8aa436fba814806492_tuple; static PyObject *const_str_digest_04d67503345d6d64752f0c9fc2a764c3; static PyObject *const_str_digest_bc9bcd4bd7d28d0a0579fc2894951201; extern PyObject *const_str_plain___module__; extern PyObject *const_tuple_str_digest_ac02ab0238280e341b2aff0eed15b128_tuple; extern PyObject *const_str_plain_unicode_literals; extern PyObject *const_str_plain_text_type; static PyObject *const_str_plain_cElementTree; extern PyObject *const_str_plain_update; extern PyObject *const_int_pos_1; static PyObject *const_tuple_8ce3392649d529ee3d03fd802055cb79_tuple; extern PyObject *const_str_plain_tuple; extern PyObject *const_str_plain_key; static PyObject *const_str_plain_factory; extern PyObject *const_str_plain___init__; extern PyObject *const_str_plain___prepare__; extern PyObject *const_str_plain_types; extern PyObject *const_str_plain_self; extern PyObject *const_str_plain_supports_lone_surrogates; static PyObject *const_list_e2aa55aa837bd35c09d5021243b07993_list; static PyObject *const_tuple_type_list_type_tuple_type_frozenset_type_set_tuple; static PyObject *const_str_digest_b8b8773fbd08a10b8c2607df28400381; extern PyObject *const_str_plain_mod; extern PyObject *const_str_plain_kwargs; extern PyObject *const_str_plain_get; static PyObject *const_str_plain_kwargs_tuple; static PyObject *const_tuple_d9db00db174831e371bcde920f70d2f3_tuple; extern PyObject *const_int_pos_2; extern PyObject *const_str_digest_ac02ab0238280e341b2aff0eed15b128; static PyObject *const_str_plain_moduleFactory; static PyObject *const_tuple_str_plain_func_str_plain_cache_str_plain_wrapped_tuple; extern PyObject *const_str_angle_string; extern PyObject *const_int_pos_65536; static PyObject *module_filename_obj; static bool constants_created = false; static void createModuleConstants( void ) { const_str_digest_78e245572c73969d3d5aa853c59ef89c = UNSTREAM_STRING( &constant_bin[ 773023 ], 43, 0 ); const_str_digest_d1a10abdfe2f776a3991fe5869130af4 = UNSTREAM_STRING( &constant_bin[ 773066 ], 15, 0 ); const_str_plain_baseModule = UNSTREAM_STRING( &constant_bin[ 773081 ], 10, 1 ); const_str_digest_a95c02c9adb958309f6977392d8a9804 = UNSTREAM_STRING( &constant_bin[ 773091 ], 51, 0 ); const_str_digest_83a4d29dbb8315e4bb75b5583003c637 = UNSTREAM_STRING( &constant_bin[ 773142 ], 8, 0 ); const_bytes_digest_efe1e4320ba8dc99147a2aee1ae12fda = UNSTREAM_BYTES( &constant_bin[ 773150 ], 11 ); const_str_plain__dictEntries = UNSTREAM_STRING( &constant_bin[ 773161 ], 12, 1 ); const_tuple_fde15979539106cee7c0386927efb2f0_tuple = PyTuple_New( 9 ); PyTuple_SET_ITEM( const_tuple_fde15979539106cee7c0386927efb2f0_tuple, 0, const_str_plain_baseModule ); Py_INCREF( const_str_plain_baseModule ); PyTuple_SET_ITEM( const_tuple_fde15979539106cee7c0386927efb2f0_tuple, 1, const_str_plain_args ); Py_INCREF( const_str_plain_args ); PyTuple_SET_ITEM( const_tuple_fde15979539106cee7c0386927efb2f0_tuple, 2, const_str_plain_kwargs ); Py_INCREF( const_str_plain_kwargs ); PyTuple_SET_ITEM( const_tuple_fde15979539106cee7c0386927efb2f0_tuple, 3, const_str_plain_name ); Py_INCREF( const_str_plain_name ); const_str_plain_kwargs_tuple = UNSTREAM_STRING( &constant_bin[ 773173 ], 12, 1 ); PyTuple_SET_ITEM( const_tuple_fde15979539106cee7c0386927efb2f0_tuple, 4, const_str_plain_kwargs_tuple ); Py_INCREF( const_str_plain_kwargs_tuple ); PyTuple_SET_ITEM( const_tuple_fde15979539106cee7c0386927efb2f0_tuple, 5, const_str_plain_mod ); Py_INCREF( const_str_plain_mod ); PyTuple_SET_ITEM( const_tuple_fde15979539106cee7c0386927efb2f0_tuple, 6, const_str_plain_objs ); Py_INCREF( const_str_plain_objs ); const_str_plain_moduleCache = UNSTREAM_STRING( &constant_bin[ 773185 ], 11, 1 ); PyTuple_SET_ITEM( const_tuple_fde15979539106cee7c0386927efb2f0_tuple, 7, const_str_plain_moduleCache ); Py_INCREF( const_str_plain_moduleCache ); const_str_plain_factory = UNSTREAM_STRING( &constant_bin[ 582948 ], 7, 1 ); PyTuple_SET_ITEM( const_tuple_fde15979539106cee7c0386927efb2f0_tuple, 8, const_str_plain_factory ); Py_INCREF( const_str_plain_factory ); const_str_digest_585868dc50599c5d143780d4d5d6aaf7 = UNSTREAM_STRING( &constant_bin[ 773196 ], 9, 0 ); const_str_digest_425c264f117c67cee80f07f6d394bbaa = UNSTREAM_STRING( &constant_bin[ 773205 ], 24, 0 ); const_tuple_str_plain_data_str_plain_char_val_tuple = PyTuple_New( 2 ); PyTuple_SET_ITEM( const_tuple_str_plain_data_str_plain_char_val_tuple, 0, const_str_plain_data ); Py_INCREF( const_str_plain_data ); PyTuple_SET_ITEM( const_tuple_str_plain_data_str_plain_char_val_tuple, 1, const_str_plain_char_val ); Py_INCREF( const_str_plain_char_val ); const_tuple_str_plain_ModuleType_tuple = PyTuple_New( 1 ); PyTuple_SET_ITEM( const_tuple_str_plain_ModuleType_tuple, 0, const_str_plain_ModuleType ); Py_INCREF( const_str_plain_ModuleType ); const_str_digest_1114ae96138450b599b96330eb99af15 = UNSTREAM_STRING( &constant_bin[ 773229 ], 368, 0 ); const_str_digest_ca20275ccc73f9e88f7d0b9548668b44 = UNSTREAM_STRING( &constant_bin[ 773597 ], 24, 0 ); const_str_digest_a6956e19579daccae3cc5f691a6ace17 = UNSTREAM_STRING( &constant_bin[ 773150 ], 11, 0 ); const_str_digest_8c54e2fe2a3b443ef76c0f757d15bd9b = UNSTREAM_STRING( &constant_bin[ 773621 ], 25, 0 ); const_tuple_d5583c7bc5523f8aa436fba814806492_tuple = PyTuple_New( 5 ); PyTuple_SET_ITEM( const_tuple_d5583c7bc5523f8aa436fba814806492_tuple, 0, const_str_plain_args ); Py_INCREF( const_str_plain_args ); PyTuple_SET_ITEM( const_tuple_d5583c7bc5523f8aa436fba814806492_tuple, 1, const_str_plain_kwargs ); Py_INCREF( const_str_plain_kwargs ); PyTuple_SET_ITEM( const_tuple_d5583c7bc5523f8aa436fba814806492_tuple, 2, const_str_plain_key ); Py_INCREF( const_str_plain_key ); PyTuple_SET_ITEM( const_tuple_d5583c7bc5523f8aa436fba814806492_tuple, 3, const_str_plain_cache ); Py_INCREF( const_str_plain_cache ); PyTuple_SET_ITEM( const_tuple_d5583c7bc5523f8aa436fba814806492_tuple, 4, const_str_plain_func ); Py_INCREF( const_str_plain_func ); const_str_digest_04d67503345d6d64752f0c9fc2a764c3 = UNSTREAM_STRING( &constant_bin[ 773646 ], 21, 0 ); const_str_digest_bc9bcd4bd7d28d0a0579fc2894951201 = UNSTREAM_STRING( &constant_bin[ 773667 ], 28, 0 ); const_str_plain_cElementTree = UNSTREAM_STRING( &constant_bin[ 773695 ], 12, 1 ); const_tuple_8ce3392649d529ee3d03fd802055cb79_tuple = PyTuple_New( 3 ); PyTuple_SET_ITEM( const_tuple_8ce3392649d529ee3d03fd802055cb79_tuple, 0, const_str_plain_factory ); Py_INCREF( const_str_plain_factory ); PyTuple_SET_ITEM( const_tuple_8ce3392649d529ee3d03fd802055cb79_tuple, 1, const_str_plain_moduleCache ); Py_INCREF( const_str_plain_moduleCache ); const_str_plain_moduleFactory = UNSTREAM_STRING( &constant_bin[ 773023 ], 13, 1 ); PyTuple_SET_ITEM( const_tuple_8ce3392649d529ee3d03fd802055cb79_tuple, 2, const_str_plain_moduleFactory ); Py_INCREF( const_str_plain_moduleFactory ); const_list_e2aa55aa837bd35c09d5021243b07993_list = PyList_New( 6 ); PyList_SET_ITEM( const_list_e2aa55aa837bd35c09d5021243b07993_list, 0, const_str_plain_default_etree ); Py_INCREF( const_str_plain_default_etree ); PyList_SET_ITEM( const_list_e2aa55aa837bd35c09d5021243b07993_list, 1, const_str_plain_MethodDispatcher ); Py_INCREF( const_str_plain_MethodDispatcher ); PyList_SET_ITEM( const_list_e2aa55aa837bd35c09d5021243b07993_list, 2, const_str_plain_isSurrogatePair ); Py_INCREF( const_str_plain_isSurrogatePair ); PyList_SET_ITEM( const_list_e2aa55aa837bd35c09d5021243b07993_list, 3, const_str_plain_surrogatePairToCodepoint ); Py_INCREF( const_str_plain_surrogatePairToCodepoint ); PyList_SET_ITEM( const_list_e2aa55aa837bd35c09d5021243b07993_list, 4, const_str_plain_moduleFactoryFactory ); Py_INCREF( const_str_plain_moduleFactoryFactory ); PyList_SET_ITEM( const_list_e2aa55aa837bd35c09d5021243b07993_list, 5, const_str_plain_supports_lone_surrogates ); Py_INCREF( const_str_plain_supports_lone_surrogates ); const_tuple_type_list_type_tuple_type_frozenset_type_set_tuple = PyTuple_New( 4 ); PyTuple_SET_ITEM( const_tuple_type_list_type_tuple_type_frozenset_type_set_tuple, 0, (PyObject *)&PyList_Type ); Py_INCREF( (PyObject *)&PyList_Type ); PyTuple_SET_ITEM( const_tuple_type_list_type_tuple_type_frozenset_type_set_tuple, 1, (PyObject *)&PyTuple_Type ); Py_INCREF( (PyObject *)&PyTuple_Type ); PyTuple_SET_ITEM( const_tuple_type_list_type_tuple_type_frozenset_type_set_tuple, 2, (PyObject *)&PyFrozenSet_Type ); Py_INCREF( (PyObject *)&PyFrozenSet_Type ); PyTuple_SET_ITEM( const_tuple_type_list_type_tuple_type_frozenset_type_set_tuple, 3, (PyObject *)&PySet_Type ); Py_INCREF( (PyObject *)&PySet_Type ); const_str_digest_b8b8773fbd08a10b8c2607df28400381 = UNSTREAM_STRING( &constant_bin[ 773707 ], 22, 0 ); const_tuple_d9db00db174831e371bcde920f70d2f3_tuple = PyTuple_New( 6 ); PyTuple_SET_ITEM( const_tuple_d9db00db174831e371bcde920f70d2f3_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self ); PyTuple_SET_ITEM( const_tuple_d9db00db174831e371bcde920f70d2f3_tuple, 1, const_str_plain_items ); Py_INCREF( const_str_plain_items ); PyTuple_SET_ITEM( const_tuple_d9db00db174831e371bcde920f70d2f3_tuple, 2, const_str_plain__dictEntries ); Py_INCREF( const_str_plain__dictEntries ); PyTuple_SET_ITEM( const_tuple_d9db00db174831e371bcde920f70d2f3_tuple, 3, const_str_plain_name ); Py_INCREF( const_str_plain_name ); PyTuple_SET_ITEM( const_tuple_d9db00db174831e371bcde920f70d2f3_tuple, 4, const_str_plain_value ); Py_INCREF( const_str_plain_value ); PyTuple_SET_ITEM( const_tuple_d9db00db174831e371bcde920f70d2f3_tuple, 5, const_str_plain_item ); Py_INCREF( const_str_plain_item ); const_tuple_str_plain_func_str_plain_cache_str_plain_wrapped_tuple = PyTuple_New( 3 ); PyTuple_SET_ITEM( const_tuple_str_plain_func_str_plain_cache_str_plain_wrapped_tuple, 0, const_str_plain_func ); Py_INCREF( const_str_plain_func ); PyTuple_SET_ITEM( const_tuple_str_plain_func_str_plain_cache_str_plain_wrapped_tuple, 1, const_str_plain_cache ); Py_INCREF( const_str_plain_cache ); PyTuple_SET_ITEM( const_tuple_str_plain_func_str_plain_cache_str_plain_wrapped_tuple, 2, const_str_plain_wrapped ); Py_INCREF( const_str_plain_wrapped ); constants_created = true; } #ifndef __NUITKA_NO_ASSERT__ void checkModuleConstants_html5lib$_utils( void ) { // The module may not have been used at all. if (constants_created == false) return; } #endif // The module code objects. static PyCodeObject *codeobj_ab571a708edcc112d2c139f396a38221; static PyCodeObject *codeobj_ac43189c05cfa8791a277275fef3b625; static PyCodeObject *codeobj_6de13dca1e131a70dabf39c92a4b7d8b; static PyCodeObject *codeobj_06ebd5c6e21631bdd7c5875cb8fbe1f7; static PyCodeObject *codeobj_232467bcff5ed0749f08a28f2efd1b10; static PyCodeObject *codeobj_1282df9d3d11bf6381777284064d808a; static PyCodeObject *codeobj_4beeedc291db11fb4e74fadb37b94b66; static PyCodeObject *codeobj_4d499d1af4813f207f97ed96ae3daa15; static PyCodeObject *codeobj_8f43b0a6cf8c5bc31736dff7442e4d18; static PyCodeObject *codeobj_02ae1abd64222f4f80f652652b896131; static void createModuleCodeObjects(void) { module_filename_obj = const_str_digest_a95c02c9adb958309f6977392d8a9804; codeobj_ab571a708edcc112d2c139f396a38221 = MAKE_CODEOBJ( module_filename_obj, const_str_digest_425c264f117c67cee80f07f6d394bbaa, 1, const_tuple_empty, 0, 0, CO_NOFREE | CO_FUTURE_UNICODE_LITERALS ); codeobj_ac43189c05cfa8791a277275fef3b625 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_MethodDispatcher, 36, const_tuple_str_plain___class___tuple, 0, 0, CO_NOFREE | CO_FUTURE_UNICODE_LITERALS ); codeobj_6de13dca1e131a70dabf39c92a4b7d8b = MAKE_CODEOBJ( module_filename_obj, const_str_plain___getitem__, 64, const_tuple_str_plain_self_str_plain_key_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE | CO_FUTURE_UNICODE_LITERALS ); codeobj_06ebd5c6e21631bdd7c5875cb8fbe1f7 = MAKE_CODEOBJ( module_filename_obj, const_str_plain___init__, 49, const_tuple_d9db00db174831e371bcde920f70d2f3_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE | CO_FUTURE_UNICODE_LITERALS ); codeobj_232467bcff5ed0749f08a28f2efd1b10 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_isSurrogatePair, 71, const_tuple_str_plain_data_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE | CO_FUTURE_UNICODE_LITERALS ); codeobj_1282df9d3d11bf6381777284064d808a = MAKE_CODEOBJ( module_filename_obj, const_str_plain_memoize, 115, const_tuple_str_plain_func_str_plain_cache_str_plain_wrapped_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE | CO_FUTURE_UNICODE_LITERALS ); codeobj_4beeedc291db11fb4e74fadb37b94b66 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_moduleFactory, 89, const_tuple_fde15979539106cee7c0386927efb2f0_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARARGS | CO_VARKEYWORDS | CO_FUTURE_UNICODE_LITERALS ); codeobj_4d499d1af4813f207f97ed96ae3daa15 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_moduleFactoryFactory, 86, const_tuple_8ce3392649d529ee3d03fd802055cb79_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE | CO_FUTURE_UNICODE_LITERALS ); codeobj_8f43b0a6cf8c5bc31736dff7442e4d18 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_surrogatePairToCodepoint, 77, const_tuple_str_plain_data_str_plain_char_val_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE | CO_FUTURE_UNICODE_LITERALS ); codeobj_02ae1abd64222f4f80f652652b896131 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_wrapped, 118, const_tuple_d5583c7bc5523f8aa436fba814806492_tuple, 0, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARARGS | CO_VARKEYWORDS | CO_FUTURE_UNICODE_LITERALS ); } // The module function declarations. NUITKA_CROSS_MODULE PyObject *impl___internal__$$$function_1__mro_entries_conversion( PyObject **python_pars ); NUITKA_CROSS_MODULE PyObject *impl___internal__$$$function_6_complex_call_helper_pos_star_list_star_dict( PyObject **python_pars ); NUITKA_CROSS_MODULE PyObject *impl___internal__$$$function_4_complex_call_helper_star_list_star_dict( PyObject **python_pars ); static PyObject *MAKE_FUNCTION_html5lib$_utils$$$function_1___init__( PyObject *defaults ); static PyObject *MAKE_FUNCTION_html5lib$_utils$$$function_2___getitem__( ); static PyObject *MAKE_FUNCTION_html5lib$_utils$$$function_3_isSurrogatePair( ); static PyObject *MAKE_FUNCTION_html5lib$_utils$$$function_4_surrogatePairToCodepoint( ); static PyObject *MAKE_FUNCTION_html5lib$_utils$$$function_5_moduleFactoryFactory( ); static PyObject *MAKE_FUNCTION_html5lib$_utils$$$function_5_moduleFactoryFactory$$$function_1_moduleFactory( ); static PyObject *MAKE_FUNCTION_html5lib$_utils$$$function_6_memoize( ); static PyObject *MAKE_FUNCTION_html5lib$_utils$$$function_6_memoize$$$function_1_wrapped( ); // The module function definitions. static PyObject *impl_html5lib$_utils$$$function_1___init__( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *par_items = python_pars[ 1 ]; PyObject *var__dictEntries = NULL; PyObject *var_name = NULL; PyObject *var_value = NULL; PyObject *var_item = 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; struct Nuitka_FrameObject *frame_06ebd5c6e21631bdd7c5875cb8fbe1f7; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; PyObject *tmp_iterator_attempt; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; PyObject *exception_keeper_type_2; PyObject *exception_keeper_value_2; PyTracebackObject *exception_keeper_tb_2; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; int tmp_res; NUITKA_MAY_BE_UNUSED PyObject *tmp_unused; 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; bool tmp_result; static struct Nuitka_FrameObject *cache_frame_06ebd5c6e21631bdd7c5875cb8fbe1f7 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_keeper_type_5; PyObject *exception_keeper_value_5; PyTracebackObject *exception_keeper_tb_5; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5; // Actual function code. { PyObject *tmp_assign_source_1; tmp_assign_source_1 = PyList_New( 0 ); assert( var__dictEntries == NULL ); var__dictEntries = tmp_assign_source_1; } { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_06ebd5c6e21631bdd7c5875cb8fbe1f7, codeobj_06ebd5c6e21631bdd7c5875cb8fbe1f7, module_html5lib$_utils, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) ); frame_06ebd5c6e21631bdd7c5875cb8fbe1f7 = cache_frame_06ebd5c6e21631bdd7c5875cb8fbe1f7; // Push the new frame as the currently active one. pushFrameStack( frame_06ebd5c6e21631bdd7c5875cb8fbe1f7 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_06ebd5c6e21631bdd7c5875cb8fbe1f7 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_assign_source_2; PyObject *tmp_iter_arg_1; CHECK_OBJECT( par_items ); tmp_iter_arg_1 = par_items; tmp_assign_source_2 = MAKE_ITERATOR( tmp_iter_arg_1 ); if ( tmp_assign_source_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 54; type_description_1 = "oooooo"; goto frame_exception_exit_1; } assert( tmp_for_loop_1__for_iterator == NULL ); 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( tmp_for_loop_1__for_iterator ); tmp_next_source_1 = 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( &exception_type, &exception_value, &exception_tb ); type_description_1 = "oooooo"; exception_lineno = 54; goto try_except_handler_2; } } { PyObject *old = tmp_for_loop_1__iter_value; tmp_for_loop_1__iter_value = tmp_assign_source_3; Py_XDECREF( old ); } } { // Tried code: { PyObject *tmp_assign_source_4; PyObject *tmp_iter_arg_2; CHECK_OBJECT( tmp_for_loop_1__iter_value ); tmp_iter_arg_2 = tmp_for_loop_1__iter_value; tmp_assign_source_4 = MAKE_UNPACK_ITERATOR( tmp_iter_arg_2 ); if ( tmp_assign_source_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 54; type_description_1 = "oooooo"; goto try_except_handler_3; } { PyObject *old = tmp_tuple_unpack_1__source_iter; tmp_tuple_unpack_1__source_iter = tmp_assign_source_4; Py_XDECREF( old ); } } { // Tried code: { PyObject *tmp_assign_source_5; PyObject *tmp_unpack_1; CHECK_OBJECT( tmp_tuple_unpack_1__source_iter ); tmp_unpack_1 = tmp_tuple_unpack_1__source_iter; tmp_assign_source_5 = UNPACK_NEXT( tmp_unpack_1, 0, 2 ); if ( tmp_assign_source_5 == NULL ) { if ( !ERROR_OCCURRED() ) { exception_type = PyExc_StopIteration; Py_INCREF( exception_type ); exception_value = NULL; exception_tb = NULL; } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); } type_description_1 = "oooooo"; exception_lineno = 54; goto try_except_handler_4; } { PyObject *old = tmp_tuple_unpack_1__element_1; tmp_tuple_unpack_1__element_1 = tmp_assign_source_5; Py_XDECREF( old ); } } { PyObject *tmp_assign_source_6; PyObject *tmp_unpack_2; CHECK_OBJECT( tmp_tuple_unpack_1__source_iter ); tmp_unpack_2 = tmp_tuple_unpack_1__source_iter; tmp_assign_source_6 = UNPACK_NEXT( tmp_unpack_2, 1, 2 ); if ( tmp_assign_source_6 == NULL ) { if ( !ERROR_OCCURRED() ) { exception_type = PyExc_StopIteration; Py_INCREF( exception_type ); exception_value = NULL; exception_tb = NULL; } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); } type_description_1 = "oooooo"; exception_lineno = 54; goto try_except_handler_4; } { PyObject *old = tmp_tuple_unpack_1__element_2; tmp_tuple_unpack_1__element_2 = tmp_assign_source_6; 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 = "oooooo"; exception_lineno = 54; goto try_except_handler_4; } } } else { Py_DECREF( tmp_iterator_attempt ); // TODO: Could avoid PyErr_Format. #if PYTHON_VERSION < 300 PyErr_Format( PyExc_ValueError, "too many values to unpack" ); #else PyErr_Format( PyExc_ValueError, "too many values to unpack (expected 2)" ); #endif FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); type_description_1 = "oooooo"; exception_lineno = 54; goto try_except_handler_4; } } goto try_end_1; // Exception handler code: try_except_handler_4:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { CHECK_OBJECT( (PyObject *)tmp_tuple_unpack_1__source_iter ); Py_DECREF( tmp_tuple_unpack_1__source_iter ); tmp_tuple_unpack_1__source_iter = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto try_except_handler_3; } // End of try: try_end_1:; } goto try_end_2; // Exception handler code: try_except_handler_3:; exception_keeper_type_2 = exception_type; exception_keeper_value_2 = exception_value; exception_keeper_tb_2 = exception_tb; exception_keeper_lineno_2 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( tmp_tuple_unpack_1__element_1 ); tmp_tuple_unpack_1__element_1 = NULL; } { Py_XDECREF( tmp_tuple_unpack_1__element_2 ); tmp_tuple_unpack_1__element_2 = NULL; } { // Re-raise. exception_type = exception_keeper_type_2; exception_value = exception_keeper_value_2; exception_tb = exception_keeper_tb_2; exception_lineno = exception_keeper_lineno_2; goto try_except_handler_2; } // End of try: try_end_2:; } { CHECK_OBJECT( (PyObject *)tmp_tuple_unpack_1__source_iter ); Py_DECREF( tmp_tuple_unpack_1__source_iter ); tmp_tuple_unpack_1__source_iter = NULL; } { PyObject *tmp_assign_source_7; CHECK_OBJECT( tmp_tuple_unpack_1__element_1 ); tmp_assign_source_7 = tmp_tuple_unpack_1__element_1; { PyObject *old = var_name; var_name = tmp_assign_source_7; Py_INCREF( var_name ); Py_XDECREF( old ); } } { Py_XDECREF( tmp_tuple_unpack_1__element_1 ); tmp_tuple_unpack_1__element_1 = NULL; } { PyObject *tmp_assign_source_8; CHECK_OBJECT( tmp_tuple_unpack_1__element_2 ); tmp_assign_source_8 = tmp_tuple_unpack_1__element_2; { PyObject *old = var_value; var_value = tmp_assign_source_8; 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_1; PyObject *tmp_isinstance_inst_1; PyObject *tmp_isinstance_cls_1; if ( var_name == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 55; type_description_1 = "oooooo"; goto try_except_handler_2; } tmp_isinstance_inst_1 = var_name; tmp_isinstance_cls_1 = const_tuple_type_list_type_tuple_type_frozenset_type_set_tuple; tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_1, tmp_isinstance_cls_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 55; type_description_1 = "oooooo"; goto try_except_handler_2; } tmp_condition_result_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { PyObject *tmp_assign_source_9; PyObject *tmp_iter_arg_3; if ( var_name == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 56; type_description_1 = "oooooo"; goto try_except_handler_2; } tmp_iter_arg_3 = var_name; tmp_assign_source_9 = MAKE_ITERATOR( tmp_iter_arg_3 ); if ( tmp_assign_source_9 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 56; type_description_1 = "oooooo"; goto try_except_handler_2; } { PyObject *old = tmp_for_loop_2__for_iterator; tmp_for_loop_2__for_iterator = tmp_assign_source_9; Py_XDECREF( old ); } } { // Tried code: { loop_start_2:; { PyObject *tmp_next_source_2; PyObject *tmp_assign_source_10; CHECK_OBJECT( tmp_for_loop_2__for_iterator ); tmp_next_source_2 = tmp_for_loop_2__for_iterator; tmp_assign_source_10 = ITERATOR_NEXT( tmp_next_source_2 ); if ( tmp_assign_source_10 == NULL ) { if ( CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED() ) { goto loop_end_2; } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); type_description_1 = "oooooo"; exception_lineno = 56; goto try_except_handler_5; } } { PyObject *old = tmp_for_loop_2__iter_value; tmp_for_loop_2__iter_value = tmp_assign_source_10; Py_XDECREF( old ); } } { PyObject *tmp_assign_source_11; CHECK_OBJECT( tmp_for_loop_2__iter_value ); tmp_assign_source_11 = tmp_for_loop_2__iter_value; { PyObject *old = var_item; var_item = tmp_assign_source_11; Py_INCREF( var_item ); Py_XDECREF( old ); } } { PyObject *tmp_called_name_1; PyObject *tmp_source_name_1; PyObject *tmp_args_element_name_1; PyObject *tmp_tuple_element_1; if ( var__dictEntries == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "_dictEntries" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 57; type_description_1 = "oooooo"; goto try_except_handler_5; } tmp_source_name_1 = var__dictEntries; 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( &exception_type, &exception_value, &exception_tb ); exception_lineno = 57; type_description_1 = "oooooo"; goto try_except_handler_5; } if ( var_item == 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", "item" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 57; type_description_1 = "oooooo"; goto try_except_handler_5; } tmp_tuple_element_1 = var_item; tmp_args_element_name_1 = PyTuple_New( 2 ); Py_INCREF( tmp_tuple_element_1 ); PyTuple_SET_ITEM( tmp_args_element_name_1, 0, tmp_tuple_element_1 ); if ( var_value == NULL ) { Py_DECREF( tmp_called_name_1 ); Py_DECREF( tmp_args_element_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "value" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 57; type_description_1 = "oooooo"; goto try_except_handler_5; } tmp_tuple_element_1 = var_value; Py_INCREF( tmp_tuple_element_1 ); PyTuple_SET_ITEM( tmp_args_element_name_1, 1, tmp_tuple_element_1 ); frame_06ebd5c6e21631bdd7c5875cb8fbe1f7->m_frame.f_lineno = 57; { PyObject *call_args[] = { tmp_args_element_name_1 }; tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args ); } Py_DECREF( tmp_called_name_1 ); Py_DECREF( tmp_args_element_name_1 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 57; type_description_1 = "oooooo"; goto try_except_handler_5; } Py_DECREF( tmp_unused ); } if ( CONSIDER_THREADING() == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 56; type_description_1 = "oooooo"; goto try_except_handler_5; } goto loop_start_2; loop_end_2:; } goto try_end_3; // Exception handler code: try_except_handler_5:; exception_keeper_type_3 = exception_type; exception_keeper_value_3 = exception_value; exception_keeper_tb_3 = exception_tb; exception_keeper_lineno_3 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( tmp_for_loop_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_3; exception_value = exception_keeper_value_3; exception_tb = exception_keeper_tb_3; exception_lineno = exception_keeper_lineno_3; goto try_except_handler_2; } // End of try: try_end_3:; } { 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; } goto branch_end_1; branch_no_1:; { PyObject *tmp_called_name_2; PyObject *tmp_source_name_2; PyObject *tmp_args_element_name_2; PyObject *tmp_tuple_element_2; if ( var__dictEntries == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "_dictEntries" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 59; type_description_1 = "oooooo"; goto try_except_handler_2; } tmp_source_name_2 = var__dictEntries; tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_append ); if ( tmp_called_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 59; type_description_1 = "oooooo"; goto try_except_handler_2; } if ( var_name == 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", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 59; type_description_1 = "oooooo"; goto try_except_handler_2; } tmp_tuple_element_2 = var_name; tmp_args_element_name_2 = PyTuple_New( 2 ); Py_INCREF( tmp_tuple_element_2 ); PyTuple_SET_ITEM( tmp_args_element_name_2, 0, tmp_tuple_element_2 ); if ( var_value == NULL ) { Py_DECREF( tmp_called_name_2 ); Py_DECREF( tmp_args_element_name_2 ); 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 = 59; type_description_1 = "oooooo"; goto try_except_handler_2; } tmp_tuple_element_2 = var_value; Py_INCREF( tmp_tuple_element_2 ); PyTuple_SET_ITEM( tmp_args_element_name_2, 1, tmp_tuple_element_2 ); frame_06ebd5c6e21631bdd7c5875cb8fbe1f7->m_frame.f_lineno = 59; { 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 = 59; type_description_1 = "oooooo"; goto try_except_handler_2; } Py_DECREF( tmp_unused ); } branch_end_1:; } if ( CONSIDER_THREADING() == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 54; type_description_1 = "oooooo"; goto try_except_handler_2; } goto loop_start_1; loop_end_1:; } goto try_end_4; // Exception handler code: try_except_handler_2:; 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_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_4; exception_value = exception_keeper_value_4; exception_tb = exception_keeper_tb_4; exception_lineno = exception_keeper_lineno_4; goto frame_exception_exit_1; } // End of try: try_end_4:; } { 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_3; PyObject *tmp_source_name_3; PyObject *tmp_args_element_name_3; PyObject *tmp_args_element_name_4; tmp_source_name_3 = (PyObject *)&PyDict_Type; tmp_called_name_3 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain___init__ ); assert( !(tmp_called_name_3 == NULL) ); if ( par_self == NULL ) { Py_DECREF( tmp_called_name_3 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 60; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_args_element_name_3 = par_self; if ( var__dictEntries == NULL ) { Py_DECREF( tmp_called_name_3 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "_dictEntries" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 60; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_args_element_name_4 = var__dictEntries; frame_06ebd5c6e21631bdd7c5875cb8fbe1f7->m_frame.f_lineno = 60; { PyObject *call_args[] = { tmp_args_element_name_3, tmp_args_element_name_4 }; tmp_unused = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_3, call_args ); } Py_DECREF( tmp_called_name_3 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 60; type_description_1 = "oooooo"; goto frame_exception_exit_1; } Py_DECREF( tmp_unused ); } { nuitka_bool tmp_condition_result_2; PyObject *tmp_operand_name_1; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; PyObject *tmp_len_arg_1; PyObject *tmp_len_arg_2; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 61; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_len_arg_1 = par_self; tmp_compexpr_left_1 = BUILTIN_LEN( tmp_len_arg_1 ); if ( tmp_compexpr_left_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 61; type_description_1 = "oooooo"; goto frame_exception_exit_1; } if ( var__dictEntries == NULL ) { Py_DECREF( tmp_compexpr_left_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "_dictEntries" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 61; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_len_arg_2 = var__dictEntries; tmp_compexpr_right_1 = BUILTIN_LEN( tmp_len_arg_2 ); if ( tmp_compexpr_right_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_compexpr_left_1 ); exception_lineno = 61; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_operand_name_1 = RICH_COMPARE_EQ( tmp_compexpr_left_1, tmp_compexpr_right_1 ); Py_DECREF( tmp_compexpr_left_1 ); Py_DECREF( tmp_compexpr_right_1 ); if ( tmp_operand_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 61; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_res = CHECK_IF_TRUE( tmp_operand_name_1 ); Py_DECREF( tmp_operand_name_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 61; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_condition_result_2 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE ) { goto branch_yes_2; } else { goto branch_no_2; } branch_yes_2:; { PyObject *tmp_raise_type_1; tmp_raise_type_1 = PyExc_AssertionError; exception_type = tmp_raise_type_1; Py_INCREF( tmp_raise_type_1 ); exception_lineno = 61; RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb ); type_description_1 = "oooooo"; goto frame_exception_exit_1; } branch_no_2:; } { PyObject *tmp_assattr_name_1; PyObject *tmp_assattr_target_1; tmp_assattr_name_1 = Py_None; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 62; type_description_1 = "oooooo"; goto frame_exception_exit_1; } tmp_assattr_target_1 = par_self; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain_default, tmp_assattr_name_1 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 62; type_description_1 = "oooooo"; goto frame_exception_exit_1; } } #if 0 RESTORE_FRAME_EXCEPTION( frame_06ebd5c6e21631bdd7c5875cb8fbe1f7 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_06ebd5c6e21631bdd7c5875cb8fbe1f7 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_06ebd5c6e21631bdd7c5875cb8fbe1f7, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_06ebd5c6e21631bdd7c5875cb8fbe1f7->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_06ebd5c6e21631bdd7c5875cb8fbe1f7, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_06ebd5c6e21631bdd7c5875cb8fbe1f7, type_description_1, par_self, par_items, var__dictEntries, var_name, var_value, var_item ); // Release cached frame. if ( frame_06ebd5c6e21631bdd7c5875cb8fbe1f7 == cache_frame_06ebd5c6e21631bdd7c5875cb8fbe1f7 ) { Py_DECREF( frame_06ebd5c6e21631bdd7c5875cb8fbe1f7 ); } cache_frame_06ebd5c6e21631bdd7c5875cb8fbe1f7 = NULL; assertFrameObject( frame_06ebd5c6e21631bdd7c5875cb8fbe1f7 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; { tmp_return_value = Py_None; Py_INCREF( tmp_return_value ); goto try_return_handler_1; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( html5lib$_utils$$$function_1___init__ ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_items ); par_items = NULL; } { Py_XDECREF( var__dictEntries ); var__dictEntries = NULL; } { Py_XDECREF( var_name ); var_name = NULL; } { Py_XDECREF( var_value ); var_value = NULL; } { Py_XDECREF( var_item ); var_item = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; 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( par_self ); par_self = NULL; } { Py_XDECREF( par_items ); par_items = NULL; } { Py_XDECREF( var__dictEntries ); var__dictEntries = NULL; } { Py_XDECREF( var_name ); var_name = NULL; } { Py_XDECREF( var_value ); var_value = NULL; } { Py_XDECREF( var_item ); var_item = 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 function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( html5lib$_utils$$$function_1___init__ ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_html5lib$_utils$$$function_2___getitem__( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; PyObject *par_key = python_pars[ 1 ]; struct Nuitka_FrameObject *frame_6de13dca1e131a70dabf39c92a4b7d8b; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; static struct Nuitka_FrameObject *cache_frame_6de13dca1e131a70dabf39c92a4b7d8b = 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_6de13dca1e131a70dabf39c92a4b7d8b, codeobj_6de13dca1e131a70dabf39c92a4b7d8b, module_html5lib$_utils, sizeof(void *)+sizeof(void *) ); frame_6de13dca1e131a70dabf39c92a4b7d8b = cache_frame_6de13dca1e131a70dabf39c92a4b7d8b; // Push the new frame as the currently active one. pushFrameStack( frame_6de13dca1e131a70dabf39c92a4b7d8b ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_6de13dca1e131a70dabf39c92a4b7d8b ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_called_name_1; PyObject *tmp_source_name_1; PyObject *tmp_args_element_name_1; PyObject *tmp_args_element_name_2; PyObject *tmp_args_element_name_3; PyObject *tmp_source_name_2; tmp_source_name_1 = (PyObject *)&PyDict_Type; tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_get ); assert( !(tmp_called_name_1 == NULL) ); CHECK_OBJECT( par_self ); tmp_args_element_name_1 = par_self; CHECK_OBJECT( par_key ); tmp_args_element_name_2 = par_key; CHECK_OBJECT( par_self ); tmp_source_name_2 = par_self; tmp_args_element_name_3 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_default ); if ( tmp_args_element_name_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_1 ); exception_lineno = 65; type_description_1 = "oo"; goto frame_exception_exit_1; } frame_6de13dca1e131a70dabf39c92a4b7d8b->m_frame.f_lineno = 65; { PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3 }; tmp_return_value = CALL_FUNCTION_WITH_ARGS3( tmp_called_name_1, call_args ); } Py_DECREF( tmp_called_name_1 ); Py_DECREF( tmp_args_element_name_3 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 65; type_description_1 = "oo"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_6de13dca1e131a70dabf39c92a4b7d8b ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_6de13dca1e131a70dabf39c92a4b7d8b ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_6de13dca1e131a70dabf39c92a4b7d8b ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_6de13dca1e131a70dabf39c92a4b7d8b, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_6de13dca1e131a70dabf39c92a4b7d8b->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_6de13dca1e131a70dabf39c92a4b7d8b, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_6de13dca1e131a70dabf39c92a4b7d8b, type_description_1, par_self, par_key ); // Release cached frame. if ( frame_6de13dca1e131a70dabf39c92a4b7d8b == cache_frame_6de13dca1e131a70dabf39c92a4b7d8b ) { Py_DECREF( frame_6de13dca1e131a70dabf39c92a4b7d8b ); } cache_frame_6de13dca1e131a70dabf39c92a4b7d8b = NULL; assertFrameObject( frame_6de13dca1e131a70dabf39c92a4b7d8b ); // 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$_utils$$$function_2___getitem__ ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_key ); par_key = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_key ); par_key = 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$_utils$$$function_2___getitem__ ); return NULL; function_exception_exit: assert( exception_type ); RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_html5lib$_utils$$$function_3_isSurrogatePair( 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_data = python_pars[ 0 ]; struct Nuitka_FrameObject *frame_232467bcff5ed0749f08a28f2efd1b10; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; static struct Nuitka_FrameObject *cache_frame_232467bcff5ed0749f08a28f2efd1b10 = 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_232467bcff5ed0749f08a28f2efd1b10, codeobj_232467bcff5ed0749f08a28f2efd1b10, module_html5lib$_utils, sizeof(void *) ); frame_232467bcff5ed0749f08a28f2efd1b10 = cache_frame_232467bcff5ed0749f08a28f2efd1b10; // Push the new frame as the currently active one. pushFrameStack( frame_232467bcff5ed0749f08a28f2efd1b10 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_232467bcff5ed0749f08a28f2efd1b10 ) == 2 ); // Frame stack // Framed code: { int tmp_and_left_truth_1; PyObject *tmp_and_left_value_1; PyObject *tmp_and_right_value_1; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; PyObject *tmp_len_arg_1; int tmp_and_left_truth_2; PyObject *tmp_and_left_value_2; PyObject *tmp_and_right_value_2; PyObject *tmp_compexpr_left_2; PyObject *tmp_compexpr_right_2; PyObject *tmp_ord_arg_1; PyObject *tmp_subscribed_name_1; PyObject *tmp_subscript_name_1; int tmp_and_left_truth_3; PyObject *tmp_and_left_value_3; PyObject *tmp_and_right_value_3; PyObject *tmp_compexpr_left_3; PyObject *tmp_compexpr_right_3; PyObject *tmp_ord_arg_2; PyObject *tmp_subscribed_name_2; PyObject *tmp_subscript_name_2; int tmp_and_left_truth_4; PyObject *tmp_and_left_value_4; PyObject *tmp_and_right_value_4; PyObject *tmp_compexpr_left_4; PyObject *tmp_compexpr_right_4; PyObject *tmp_ord_arg_3; PyObject *tmp_subscribed_name_3; PyObject *tmp_subscript_name_3; PyObject *tmp_compexpr_left_5; PyObject *tmp_compexpr_right_5; PyObject *tmp_ord_arg_4; PyObject *tmp_subscribed_name_4; PyObject *tmp_subscript_name_4; CHECK_OBJECT( par_data ); tmp_len_arg_1 = par_data; tmp_compexpr_left_1 = BUILTIN_LEN( tmp_len_arg_1 ); if ( tmp_compexpr_left_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 72; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_compexpr_right_1 = const_int_pos_2; tmp_and_left_value_1 = RICH_COMPARE_EQ( tmp_compexpr_left_1, tmp_compexpr_right_1 ); Py_DECREF( tmp_compexpr_left_1 ); if ( tmp_and_left_value_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 72; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_and_left_truth_1 = CHECK_IF_TRUE( tmp_and_left_value_1 ); if ( tmp_and_left_truth_1 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_and_left_value_1 ); exception_lineno = 74; type_description_1 = "o"; goto frame_exception_exit_1; } if ( tmp_and_left_truth_1 == 1 ) { goto and_right_1; } else { goto and_left_1; } and_right_1:; Py_DECREF( tmp_and_left_value_1 ); if ( par_data == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "data" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 73; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_subscribed_name_1 = par_data; tmp_subscript_name_1 = const_int_0; tmp_ord_arg_1 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_1, tmp_subscript_name_1, 0 ); if ( tmp_ord_arg_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 73; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_compexpr_left_2 = BUILTIN_ORD( tmp_ord_arg_1 ); Py_DECREF( tmp_ord_arg_1 ); if ( tmp_compexpr_left_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 73; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_compexpr_right_2 = const_int_pos_55296; tmp_and_left_value_2 = RICH_COMPARE_GE( tmp_compexpr_left_2, tmp_compexpr_right_2 ); Py_DECREF( tmp_compexpr_left_2 ); if ( tmp_and_left_value_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 73; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_and_left_truth_2 = CHECK_IF_TRUE( tmp_and_left_value_2 ); if ( tmp_and_left_truth_2 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_and_left_value_2 ); exception_lineno = 74; type_description_1 = "o"; goto frame_exception_exit_1; } if ( tmp_and_left_truth_2 == 1 ) { goto and_right_2; } else { goto and_left_2; } and_right_2:; Py_DECREF( tmp_and_left_value_2 ); if ( par_data == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "data" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 73; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_subscribed_name_2 = par_data; tmp_subscript_name_2 = const_int_0; tmp_ord_arg_2 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_2, tmp_subscript_name_2, 0 ); if ( tmp_ord_arg_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 73; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_compexpr_left_3 = BUILTIN_ORD( tmp_ord_arg_2 ); Py_DECREF( tmp_ord_arg_2 ); if ( tmp_compexpr_left_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 73; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_compexpr_right_3 = const_int_pos_56319; tmp_and_left_value_3 = RICH_COMPARE_LE( tmp_compexpr_left_3, tmp_compexpr_right_3 ); Py_DECREF( tmp_compexpr_left_3 ); if ( tmp_and_left_value_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 73; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_and_left_truth_3 = CHECK_IF_TRUE( tmp_and_left_value_3 ); if ( tmp_and_left_truth_3 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_and_left_value_3 ); exception_lineno = 74; type_description_1 = "o"; goto frame_exception_exit_1; } if ( tmp_and_left_truth_3 == 1 ) { goto and_right_3; } else { goto and_left_3; } and_right_3:; Py_DECREF( tmp_and_left_value_3 ); if ( par_data == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "data" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 74; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_subscribed_name_3 = par_data; tmp_subscript_name_3 = const_int_pos_1; tmp_ord_arg_3 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_3, tmp_subscript_name_3, 1 ); if ( tmp_ord_arg_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 74; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_compexpr_left_4 = BUILTIN_ORD( tmp_ord_arg_3 ); Py_DECREF( tmp_ord_arg_3 ); if ( tmp_compexpr_left_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 74; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_compexpr_right_4 = const_int_pos_56320; tmp_and_left_value_4 = RICH_COMPARE_GE( tmp_compexpr_left_4, tmp_compexpr_right_4 ); Py_DECREF( tmp_compexpr_left_4 ); if ( tmp_and_left_value_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 74; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_and_left_truth_4 = CHECK_IF_TRUE( tmp_and_left_value_4 ); if ( tmp_and_left_truth_4 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_and_left_value_4 ); exception_lineno = 74; type_description_1 = "o"; goto frame_exception_exit_1; } if ( tmp_and_left_truth_4 == 1 ) { goto and_right_4; } else { goto and_left_4; } and_right_4:; Py_DECREF( tmp_and_left_value_4 ); if ( par_data == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "data" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 74; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_subscribed_name_4 = par_data; tmp_subscript_name_4 = const_int_pos_1; tmp_ord_arg_4 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_4, tmp_subscript_name_4, 1 ); if ( tmp_ord_arg_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 74; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_compexpr_left_5 = BUILTIN_ORD( tmp_ord_arg_4 ); Py_DECREF( tmp_ord_arg_4 ); if ( tmp_compexpr_left_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 74; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_compexpr_right_5 = const_int_pos_57343; tmp_and_right_value_4 = RICH_COMPARE_LE( tmp_compexpr_left_5, tmp_compexpr_right_5 ); Py_DECREF( tmp_compexpr_left_5 ); if ( tmp_and_right_value_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 74; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_and_right_value_3 = tmp_and_right_value_4; goto and_end_4; and_left_4:; tmp_and_right_value_3 = tmp_and_left_value_4; and_end_4:; tmp_and_right_value_2 = tmp_and_right_value_3; goto and_end_3; and_left_3:; tmp_and_right_value_2 = tmp_and_left_value_3; and_end_3:; tmp_and_right_value_1 = tmp_and_right_value_2; goto and_end_2; and_left_2:; tmp_and_right_value_1 = tmp_and_left_value_2; and_end_2:; tmp_return_value = tmp_and_right_value_1; goto and_end_1; and_left_1:; tmp_return_value = tmp_and_left_value_1; and_end_1:; goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_232467bcff5ed0749f08a28f2efd1b10 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_232467bcff5ed0749f08a28f2efd1b10 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_232467bcff5ed0749f08a28f2efd1b10 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_232467bcff5ed0749f08a28f2efd1b10, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_232467bcff5ed0749f08a28f2efd1b10->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_232467bcff5ed0749f08a28f2efd1b10, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_232467bcff5ed0749f08a28f2efd1b10, type_description_1, par_data ); // Release cached frame. if ( frame_232467bcff5ed0749f08a28f2efd1b10 == cache_frame_232467bcff5ed0749f08a28f2efd1b10 ) { Py_DECREF( frame_232467bcff5ed0749f08a28f2efd1b10 ); } cache_frame_232467bcff5ed0749f08a28f2efd1b10 = NULL; assertFrameObject( frame_232467bcff5ed0749f08a28f2efd1b10 ); // 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$_utils$$$function_3_isSurrogatePair ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_data ); par_data = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_data ); par_data = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( html5lib$_utils$$$function_3_isSurrogatePair ); 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$_utils$$$function_4_surrogatePairToCodepoint( 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_data = python_pars[ 0 ]; PyObject *var_char_val = NULL; struct Nuitka_FrameObject *frame_8f43b0a6cf8c5bc31736dff7442e4d18; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; static struct Nuitka_FrameObject *cache_frame_8f43b0a6cf8c5bc31736dff7442e4d18 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_8f43b0a6cf8c5bc31736dff7442e4d18, codeobj_8f43b0a6cf8c5bc31736dff7442e4d18, module_html5lib$_utils, sizeof(void *)+sizeof(void *) ); frame_8f43b0a6cf8c5bc31736dff7442e4d18 = cache_frame_8f43b0a6cf8c5bc31736dff7442e4d18; // Push the new frame as the currently active one. pushFrameStack( frame_8f43b0a6cf8c5bc31736dff7442e4d18 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_8f43b0a6cf8c5bc31736dff7442e4d18 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_assign_source_1; PyObject *tmp_left_name_1; PyObject *tmp_left_name_2; PyObject *tmp_right_name_1; PyObject *tmp_left_name_3; PyObject *tmp_left_name_4; PyObject *tmp_ord_arg_1; PyObject *tmp_subscribed_name_1; PyObject *tmp_subscript_name_1; PyObject *tmp_right_name_2; PyObject *tmp_right_name_3; PyObject *tmp_right_name_4; PyObject *tmp_left_name_5; PyObject *tmp_ord_arg_2; PyObject *tmp_subscribed_name_2; PyObject *tmp_subscript_name_2; PyObject *tmp_right_name_5; tmp_left_name_2 = const_int_pos_65536; CHECK_OBJECT( par_data ); tmp_subscribed_name_1 = par_data; tmp_subscript_name_1 = const_int_0; tmp_ord_arg_1 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_1, tmp_subscript_name_1, 0 ); if ( tmp_ord_arg_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 78; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_left_name_4 = BUILTIN_ORD( tmp_ord_arg_1 ); Py_DECREF( tmp_ord_arg_1 ); if ( tmp_left_name_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 78; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_right_name_2 = const_int_pos_55296; tmp_left_name_3 = BINARY_OPERATION_SUB( tmp_left_name_4, tmp_right_name_2 ); Py_DECREF( tmp_left_name_4 ); if ( tmp_left_name_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 78; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_right_name_3 = const_int_pos_1024; tmp_right_name_1 = BINARY_OPERATION_MUL( tmp_left_name_3, tmp_right_name_3 ); Py_DECREF( tmp_left_name_3 ); if ( tmp_right_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 78; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_left_name_1 = BINARY_OPERATION_ADD( tmp_left_name_2, tmp_right_name_1 ); Py_DECREF( tmp_right_name_1 ); if ( tmp_left_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 78; type_description_1 = "oo"; goto frame_exception_exit_1; } if ( par_data == NULL ) { Py_DECREF( tmp_left_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "data" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 79; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_subscribed_name_2 = par_data; tmp_subscript_name_2 = const_int_pos_1; tmp_ord_arg_2 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_2, tmp_subscript_name_2, 1 ); if ( tmp_ord_arg_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_left_name_1 ); exception_lineno = 79; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_left_name_5 = BUILTIN_ORD( tmp_ord_arg_2 ); Py_DECREF( tmp_ord_arg_2 ); if ( tmp_left_name_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_left_name_1 ); exception_lineno = 79; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_right_name_5 = const_int_pos_56320; tmp_right_name_4 = BINARY_OPERATION_SUB( tmp_left_name_5, tmp_right_name_5 ); Py_DECREF( tmp_left_name_5 ); if ( tmp_right_name_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_left_name_1 ); exception_lineno = 79; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_assign_source_1 = BINARY_OPERATION_ADD( tmp_left_name_1, tmp_right_name_4 ); Py_DECREF( tmp_left_name_1 ); Py_DECREF( tmp_right_name_4 ); if ( tmp_assign_source_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 78; type_description_1 = "oo"; goto frame_exception_exit_1; } assert( var_char_val == NULL ); var_char_val = tmp_assign_source_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_8f43b0a6cf8c5bc31736dff7442e4d18 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_8f43b0a6cf8c5bc31736dff7442e4d18 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_8f43b0a6cf8c5bc31736dff7442e4d18, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_8f43b0a6cf8c5bc31736dff7442e4d18->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_8f43b0a6cf8c5bc31736dff7442e4d18, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_8f43b0a6cf8c5bc31736dff7442e4d18, type_description_1, par_data, var_char_val ); // Release cached frame. if ( frame_8f43b0a6cf8c5bc31736dff7442e4d18 == cache_frame_8f43b0a6cf8c5bc31736dff7442e4d18 ) { Py_DECREF( frame_8f43b0a6cf8c5bc31736dff7442e4d18 ); } cache_frame_8f43b0a6cf8c5bc31736dff7442e4d18 = NULL; assertFrameObject( frame_8f43b0a6cf8c5bc31736dff7442e4d18 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; { CHECK_OBJECT( var_char_val ); tmp_return_value = var_char_val; Py_INCREF( tmp_return_value ); goto try_return_handler_1; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( html5lib$_utils$$$function_4_surrogatePairToCodepoint ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_data ); par_data = NULL; } { Py_XDECREF( var_char_val ); var_char_val = 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_data ); par_data = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( html5lib$_utils$$$function_4_surrogatePairToCodepoint ); 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$_utils$$$function_5_moduleFactoryFactory( 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_factory = PyCell_NEW1( python_pars[ 0 ] ); struct Nuitka_CellObject *var_moduleCache = PyCell_EMPTY(); PyObject *var_moduleFactory = NULL; PyObject *tmp_return_value = NULL; // Actual function code. { PyObject *tmp_assign_source_1; tmp_assign_source_1 = PyDict_New(); assert( PyCell_GET( var_moduleCache ) == NULL ); PyCell_SET( var_moduleCache, tmp_assign_source_1 ); } { PyObject *tmp_assign_source_2; tmp_assign_source_2 = MAKE_FUNCTION_html5lib$_utils$$$function_5_moduleFactoryFactory$$$function_1_moduleFactory( ); ((struct Nuitka_FunctionObject *)tmp_assign_source_2)->m_closure[0] = par_factory; Py_INCREF( ((struct Nuitka_FunctionObject *)tmp_assign_source_2)->m_closure[0] ); ((struct Nuitka_FunctionObject *)tmp_assign_source_2)->m_closure[1] = var_moduleCache; Py_INCREF( ((struct Nuitka_FunctionObject *)tmp_assign_source_2)->m_closure[1] ); assert( var_moduleFactory == NULL ); var_moduleFactory = tmp_assign_source_2; } { // Tried code: { CHECK_OBJECT( var_moduleFactory ); tmp_return_value = var_moduleFactory; Py_INCREF( tmp_return_value ); goto try_return_handler_1; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( html5lib$_utils$$$function_5_moduleFactoryFactory ); return NULL; // Return handler code: try_return_handler_1:; { CHECK_OBJECT( (PyObject *)par_factory ); Py_DECREF( par_factory ); par_factory = NULL; } { CHECK_OBJECT( (PyObject *)var_moduleCache ); Py_DECREF( var_moduleCache ); var_moduleCache = NULL; } { Py_XDECREF( var_moduleFactory ); var_moduleFactory = NULL; } { goto function_return_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( html5lib$_utils$$$function_5_moduleFactoryFactory ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_html5lib$_utils$$$function_5_moduleFactoryFactory$$$function_1_moduleFactory( 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_baseModule = python_pars[ 0 ]; PyObject *par_args = python_pars[ 1 ]; PyObject *par_kwargs = python_pars[ 2 ]; PyObject *var_name = NULL; PyObject *var_kwargs_tuple = NULL; PyObject *var_mod = NULL; PyObject *var_objs = NULL; struct Nuitka_FrameObject *frame_4beeedc291db11fb4e74fadb37b94b66; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; int tmp_res; PyObject *tmp_return_value = NULL; 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_preserved_type_1; PyObject *exception_preserved_value_1; PyTracebackObject *exception_preserved_tb_1; NUITKA_MAY_BE_UNUSED PyObject *tmp_unused; bool tmp_result; PyObject *exception_keeper_type_2; PyObject *exception_keeper_value_2; PyTracebackObject *exception_keeper_tb_2; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; static struct Nuitka_FrameObject *cache_frame_4beeedc291db11fb4e74fadb37b94b66 = NULL; PyObject *exception_keeper_type_3; PyObject *exception_keeper_value_3; PyTracebackObject *exception_keeper_tb_3; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_4beeedc291db11fb4e74fadb37b94b66, codeobj_4beeedc291db11fb4e74fadb37b94b66, module_html5lib$_utils, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) ); frame_4beeedc291db11fb4e74fadb37b94b66 = cache_frame_4beeedc291db11fb4e74fadb37b94b66; // Push the new frame as the currently active one. pushFrameStack( frame_4beeedc291db11fb4e74fadb37b94b66 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_4beeedc291db11fb4e74fadb37b94b66 ) == 2 ); // Frame stack // Framed code: { nuitka_bool tmp_condition_result_1; PyObject *tmp_isinstance_inst_1; PyObject *tmp_isinstance_cls_1; PyObject *tmp_source_name_1; PyObject *tmp_mvar_value_1; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain_ModuleType ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_ModuleType ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "ModuleType" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 90; type_description_1 = "ooooooocc"; goto frame_exception_exit_1; } tmp_source_name_1 = tmp_mvar_value_1; tmp_isinstance_inst_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain___name__ ); if ( tmp_isinstance_inst_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 90; type_description_1 = "ooooooocc"; goto frame_exception_exit_1; } tmp_isinstance_cls_1 = LOOKUP_BUILTIN( const_str_plain_str ); assert( tmp_isinstance_cls_1 != NULL ); tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_1, tmp_isinstance_cls_1 ); Py_DECREF( tmp_isinstance_inst_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 90; type_description_1 = "ooooooocc"; goto frame_exception_exit_1; } tmp_condition_result_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { PyObject *tmp_assign_source_1; PyObject *tmp_left_name_1; PyObject *tmp_right_name_1; PyObject *tmp_source_name_2; tmp_left_name_1 = const_str_digest_a6956e19579daccae3cc5f691a6ace17; if ( par_baseModule == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "baseModule" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 91; type_description_1 = "ooooooocc"; goto frame_exception_exit_1; } tmp_source_name_2 = par_baseModule; tmp_right_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain___name__ ); if ( tmp_right_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 91; type_description_1 = "ooooooocc"; goto frame_exception_exit_1; } tmp_assign_source_1 = BINARY_OPERATION_REMAINDER( tmp_left_name_1, tmp_right_name_1 ); Py_DECREF( tmp_right_name_1 ); if ( tmp_assign_source_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 91; type_description_1 = "ooooooocc"; goto frame_exception_exit_1; } assert( var_name == NULL ); var_name = tmp_assign_source_1; } goto branch_end_1; branch_no_1:; { PyObject *tmp_assign_source_2; PyObject *tmp_left_name_2; PyObject *tmp_right_name_2; PyObject *tmp_source_name_3; tmp_left_name_2 = const_bytes_digest_efe1e4320ba8dc99147a2aee1ae12fda; if ( par_baseModule == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "baseModule" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 93; type_description_1 = "ooooooocc"; goto frame_exception_exit_1; } tmp_source_name_3 = par_baseModule; tmp_right_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain___name__ ); if ( tmp_right_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 93; type_description_1 = "ooooooocc"; goto frame_exception_exit_1; } tmp_assign_source_2 = BINARY_OPERATION_REMAINDER( tmp_left_name_2, tmp_right_name_2 ); Py_DECREF( tmp_right_name_2 ); if ( tmp_assign_source_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 93; type_description_1 = "ooooooocc"; goto frame_exception_exit_1; } assert( var_name == NULL ); var_name = tmp_assign_source_2; } branch_end_1:; } { PyObject *tmp_assign_source_3; PyObject *tmp_tuple_arg_1; PyObject *tmp_called_instance_1; if ( par_kwargs == NULL ) { 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 = 95; type_description_1 = "ooooooocc"; goto frame_exception_exit_1; } tmp_called_instance_1 = par_kwargs; frame_4beeedc291db11fb4e74fadb37b94b66->m_frame.f_lineno = 95; tmp_tuple_arg_1 = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain_items ); if ( tmp_tuple_arg_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 95; type_description_1 = "ooooooocc"; goto frame_exception_exit_1; } tmp_assign_source_3 = PySequence_Tuple( tmp_tuple_arg_1 ); Py_DECREF( tmp_tuple_arg_1 ); if ( tmp_assign_source_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 95; type_description_1 = "ooooooocc"; goto frame_exception_exit_1; } assert( var_kwargs_tuple == NULL ); var_kwargs_tuple = tmp_assign_source_3; } { // Tried code: { PyObject *tmp_subscribed_name_1; PyObject *tmp_subscribed_name_2; PyObject *tmp_subscribed_name_3; PyObject *tmp_subscript_name_1; PyObject *tmp_subscript_name_2; PyObject *tmp_subscript_name_3; if ( PyCell_GET( self->m_closure[1] ) == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "moduleCache" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 98; type_description_1 = "ooooooocc"; goto try_except_handler_2; } tmp_subscribed_name_3 = PyCell_GET( self->m_closure[1] ); if ( var_name == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 98; type_description_1 = "ooooooocc"; goto try_except_handler_2; } tmp_subscript_name_1 = var_name; tmp_subscribed_name_2 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_3, tmp_subscript_name_1 ); if ( tmp_subscribed_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 98; type_description_1 = "ooooooocc"; goto try_except_handler_2; } if ( par_args == NULL ) { Py_DECREF( tmp_subscribed_name_2 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "args" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 98; type_description_1 = "ooooooocc"; goto try_except_handler_2; } tmp_subscript_name_2 = par_args; tmp_subscribed_name_1 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_2, tmp_subscript_name_2 ); Py_DECREF( tmp_subscribed_name_2 ); if ( tmp_subscribed_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 98; type_description_1 = "ooooooocc"; goto try_except_handler_2; } if ( var_kwargs_tuple == NULL ) { Py_DECREF( tmp_subscribed_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "kwargs_tuple" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 98; type_description_1 = "ooooooocc"; goto try_except_handler_2; } tmp_subscript_name_3 = var_kwargs_tuple; tmp_return_value = LOOKUP_SUBSCRIPT( tmp_subscribed_name_1, tmp_subscript_name_3 ); Py_DECREF( tmp_subscribed_name_1 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 98; type_description_1 = "ooooooocc"; goto try_except_handler_2; } goto frame_return_exit_1; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( html5lib$_utils$$$function_5_moduleFactoryFactory$$$function_1_moduleFactory ); return NULL; // Exception handler code: try_except_handler_2:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { // Preserve existing published exception. exception_preserved_type_1 = EXC_TYPE(PyThreadState_GET()); Py_XINCREF( exception_preserved_type_1 ); exception_preserved_value_1 = EXC_VALUE(PyThreadState_GET()); Py_XINCREF( exception_preserved_value_1 ); exception_preserved_tb_1 = (PyTracebackObject *)EXC_TRACEBACK(PyThreadState_GET()); Py_XINCREF( exception_preserved_tb_1 ); } { if ( exception_keeper_tb_1 == NULL ) { exception_keeper_tb_1 = MAKE_TRACEBACK( frame_4beeedc291db11fb4e74fadb37b94b66, exception_keeper_lineno_1 ); } else if ( exception_keeper_lineno_1 != 0 ) { exception_keeper_tb_1 = ADD_TRACEBACK( exception_keeper_tb_1, frame_4beeedc291db11fb4e74fadb37b94b66, exception_keeper_lineno_1 ); } NORMALIZE_EXCEPTION( &exception_keeper_type_1, &exception_keeper_value_1, &exception_keeper_tb_1 ); PyException_SetTraceback( exception_keeper_value_1, (PyObject *)exception_keeper_tb_1 ); PUBLISH_EXCEPTION( &exception_keeper_type_1, &exception_keeper_value_1, &exception_keeper_tb_1 ); } { // Tried code: { nuitka_bool tmp_condition_result_2; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; tmp_compexpr_left_1 = EXC_TYPE(PyThreadState_GET()); tmp_compexpr_right_1 = PyExc_KeyError; tmp_res = EXCEPTION_MATCH_BOOL( tmp_compexpr_left_1, tmp_compexpr_right_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 99; type_description_1 = "ooooooocc"; goto try_except_handler_3; } 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_4; PyObject *tmp_called_name_1; PyObject *tmp_mvar_value_2; PyObject *tmp_args_element_name_1; tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain_ModuleType ); if (unlikely( tmp_mvar_value_2 == NULL )) { tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_ModuleType ); } if ( tmp_mvar_value_2 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "ModuleType" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 100; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_called_name_1 = tmp_mvar_value_2; if ( var_name == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 100; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_args_element_name_1 = var_name; frame_4beeedc291db11fb4e74fadb37b94b66->m_frame.f_lineno = 100; { PyObject *call_args[] = { tmp_args_element_name_1 }; tmp_assign_source_4 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args ); } if ( tmp_assign_source_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 100; type_description_1 = "ooooooocc"; goto try_except_handler_3; } assert( var_mod == NULL ); var_mod = tmp_assign_source_4; } { PyObject *tmp_assign_source_5; PyObject *tmp_dircall_arg1_1; PyObject *tmp_dircall_arg2_1; PyObject *tmp_tuple_element_1; PyObject *tmp_dircall_arg3_1; PyObject *tmp_dircall_arg4_1; if ( PyCell_GET( self->m_closure[0] ) == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "factory" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 101; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_dircall_arg1_1 = PyCell_GET( self->m_closure[0] ); if ( par_baseModule == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "baseModule" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 101; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_tuple_element_1 = par_baseModule; 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_args == NULL ) { Py_DECREF( tmp_dircall_arg2_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "args" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 101; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_dircall_arg3_1 = par_args; if ( par_kwargs == NULL ) { 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 = 101; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_dircall_arg4_1 = par_kwargs; Py_INCREF( tmp_dircall_arg1_1 ); Py_INCREF( tmp_dircall_arg3_1 ); Py_INCREF( tmp_dircall_arg4_1 ); { PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1, tmp_dircall_arg4_1}; tmp_assign_source_5 = impl___internal__$$$function_6_complex_call_helper_pos_star_list_star_dict( dir_call_args ); } if ( tmp_assign_source_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 101; type_description_1 = "ooooooocc"; goto try_except_handler_3; } assert( var_objs == NULL ); var_objs = tmp_assign_source_5; } { PyObject *tmp_called_name_2; PyObject *tmp_source_name_4; PyObject *tmp_source_name_5; PyObject *tmp_args_element_name_2; CHECK_OBJECT( var_mod ); tmp_source_name_5 = var_mod; tmp_source_name_4 = LOOKUP_ATTRIBUTE_DICT_SLOT( tmp_source_name_5 ); if ( tmp_source_name_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 102; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_update ); Py_DECREF( tmp_source_name_4 ); if ( tmp_called_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 102; type_description_1 = "ooooooocc"; goto try_except_handler_3; } if ( var_objs == 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", "objs" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 102; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_args_element_name_2 = var_objs; frame_4beeedc291db11fb4e74fadb37b94b66->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 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 102; type_description_1 = "ooooooocc"; goto try_except_handler_3; } Py_DECREF( tmp_unused ); } { nuitka_bool tmp_condition_result_3; PyObject *tmp_compexpr_left_2; PyObject *tmp_compexpr_right_2; tmp_compexpr_left_2 = const_str_plain_name; if ( PyCell_GET( self->m_closure[1] ) == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "moduleCache" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 103; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_compexpr_right_2 = PyCell_GET( self->m_closure[1] ); tmp_res = PySequence_Contains( tmp_compexpr_right_2, tmp_compexpr_left_2 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 103; type_description_1 = "ooooooocc"; goto try_except_handler_3; } 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_ass_subvalue_1; PyObject *tmp_ass_subscribed_1; PyObject *tmp_ass_subscript_1; tmp_ass_subvalue_1 = PyDict_New(); if ( PyCell_GET( self->m_closure[1] ) == NULL ) { Py_DECREF( tmp_ass_subvalue_1 ); exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "moduleCache" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 104; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_ass_subscribed_1 = PyCell_GET( self->m_closure[1] ); if ( var_name == 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", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 104; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_ass_subscript_1 = var_name; 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 = 104; type_description_1 = "ooooooocc"; goto try_except_handler_3; } } branch_no_3:; } { nuitka_bool tmp_condition_result_4; PyObject *tmp_compexpr_left_3; PyObject *tmp_compexpr_right_3; PyObject *tmp_subscribed_name_4; PyObject *tmp_subscript_name_4; tmp_compexpr_left_3 = const_str_plain_args; if ( PyCell_GET( self->m_closure[1] ) == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "moduleCache" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 105; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_subscribed_name_4 = PyCell_GET( self->m_closure[1] ); if ( var_name == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 105; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_subscript_name_4 = var_name; tmp_compexpr_right_3 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_4, tmp_subscript_name_4 ); if ( tmp_compexpr_right_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 105; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_res = PySequence_Contains( tmp_compexpr_right_3, tmp_compexpr_left_3 ); Py_DECREF( tmp_compexpr_right_3 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 105; type_description_1 = "ooooooocc"; goto try_except_handler_3; } 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_ass_subvalue_2; PyObject *tmp_ass_subscribed_2; PyObject *tmp_subscribed_name_5; PyObject *tmp_subscript_name_5; PyObject *tmp_ass_subscript_2; tmp_ass_subvalue_2 = PyDict_New(); if ( PyCell_GET( self->m_closure[1] ) == NULL ) { Py_DECREF( tmp_ass_subvalue_2 ); exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "moduleCache" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 106; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_subscribed_name_5 = PyCell_GET( self->m_closure[1] ); if ( var_name == 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", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 106; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_subscript_name_5 = var_name; tmp_ass_subscribed_2 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_5, tmp_subscript_name_5 ); if ( tmp_ass_subscribed_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_ass_subvalue_2 ); exception_lineno = 106; type_description_1 = "ooooooocc"; goto try_except_handler_3; } if ( par_args == NULL ) { Py_DECREF( tmp_ass_subvalue_2 ); Py_DECREF( tmp_ass_subscribed_2 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "args" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 106; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_ass_subscript_2 = par_args; tmp_result = SET_SUBSCRIPT( tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2 ); Py_DECREF( tmp_ass_subscribed_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 = 106; type_description_1 = "ooooooocc"; goto try_except_handler_3; } } branch_no_4:; } { nuitka_bool tmp_condition_result_5; PyObject *tmp_compexpr_left_4; PyObject *tmp_compexpr_right_4; PyObject *tmp_subscribed_name_6; PyObject *tmp_subscribed_name_7; PyObject *tmp_subscript_name_6; PyObject *tmp_subscript_name_7; tmp_compexpr_left_4 = const_str_plain_kwargs; if ( PyCell_GET( self->m_closure[1] ) == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "moduleCache" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 107; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_subscribed_name_7 = PyCell_GET( self->m_closure[1] ); if ( var_name == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 107; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_subscript_name_6 = var_name; tmp_subscribed_name_6 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_7, tmp_subscript_name_6 ); if ( tmp_subscribed_name_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 107; type_description_1 = "ooooooocc"; goto try_except_handler_3; } if ( par_args == 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", "args" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 107; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_subscript_name_7 = par_args; tmp_compexpr_right_4 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_6, tmp_subscript_name_7 ); Py_DECREF( tmp_subscribed_name_6 ); if ( tmp_compexpr_right_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 107; type_description_1 = "ooooooocc"; 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 = 107; type_description_1 = "ooooooocc"; goto try_except_handler_3; } 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_ass_subvalue_3; PyObject *tmp_ass_subscribed_3; PyObject *tmp_subscribed_name_8; PyObject *tmp_subscribed_name_9; PyObject *tmp_subscript_name_8; PyObject *tmp_subscript_name_9; PyObject *tmp_ass_subscript_3; tmp_ass_subvalue_3 = PyDict_New(); if ( PyCell_GET( self->m_closure[1] ) == NULL ) { Py_DECREF( tmp_ass_subvalue_3 ); exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "moduleCache" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 108; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_subscribed_name_9 = PyCell_GET( self->m_closure[1] ); if ( var_name == 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", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 108; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_subscript_name_8 = var_name; tmp_subscribed_name_8 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_9, tmp_subscript_name_8 ); if ( tmp_subscribed_name_8 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_ass_subvalue_3 ); exception_lineno = 108; type_description_1 = "ooooooocc"; goto try_except_handler_3; } if ( par_args == NULL ) { Py_DECREF( tmp_ass_subvalue_3 ); Py_DECREF( tmp_subscribed_name_8 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "args" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 108; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_subscript_name_9 = par_args; tmp_ass_subscribed_3 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_8, tmp_subscript_name_9 ); Py_DECREF( tmp_subscribed_name_8 ); if ( tmp_ass_subscribed_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_ass_subvalue_3 ); exception_lineno = 108; type_description_1 = "ooooooocc"; goto try_except_handler_3; } if ( var_kwargs_tuple == NULL ) { Py_DECREF( tmp_ass_subvalue_3 ); Py_DECREF( tmp_ass_subscribed_3 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "kwargs_tuple" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 108; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_ass_subscript_3 = var_kwargs_tuple; tmp_result = SET_SUBSCRIPT( tmp_ass_subscribed_3, tmp_ass_subscript_3, tmp_ass_subvalue_3 ); Py_DECREF( tmp_ass_subscribed_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 = 108; type_description_1 = "ooooooocc"; goto try_except_handler_3; } } branch_no_5:; } { PyObject *tmp_ass_subvalue_4; PyObject *tmp_ass_subscribed_4; PyObject *tmp_subscribed_name_10; PyObject *tmp_subscribed_name_11; PyObject *tmp_subscript_name_10; PyObject *tmp_subscript_name_11; PyObject *tmp_ass_subscript_4; if ( var_mod == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "mod" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 109; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_ass_subvalue_4 = var_mod; if ( PyCell_GET( self->m_closure[1] ) == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "moduleCache" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 109; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_subscribed_name_11 = PyCell_GET( self->m_closure[1] ); if ( var_name == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 109; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_subscript_name_10 = var_name; tmp_subscribed_name_10 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_11, tmp_subscript_name_10 ); if ( tmp_subscribed_name_10 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 109; type_description_1 = "ooooooocc"; goto try_except_handler_3; } if ( par_args == NULL ) { Py_DECREF( tmp_subscribed_name_10 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "args" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 109; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_subscript_name_11 = par_args; tmp_ass_subscribed_4 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_10, tmp_subscript_name_11 ); Py_DECREF( tmp_subscribed_name_10 ); if ( tmp_ass_subscribed_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 109; type_description_1 = "ooooooocc"; goto try_except_handler_3; } if ( var_kwargs_tuple == NULL ) { Py_DECREF( tmp_ass_subscribed_4 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "kwargs_tuple" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 109; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_ass_subscript_4 = var_kwargs_tuple; tmp_result = SET_SUBSCRIPT( tmp_ass_subscribed_4, tmp_ass_subscript_4, tmp_ass_subvalue_4 ); Py_DECREF( tmp_ass_subscribed_4 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 109; type_description_1 = "ooooooocc"; goto try_except_handler_3; } } { if ( var_mod == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "mod" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 110; type_description_1 = "ooooooocc"; goto try_except_handler_3; } tmp_return_value = var_mod; Py_INCREF( tmp_return_value ); goto try_return_handler_3; } goto branch_end_2; branch_no_2:; { tmp_result = RERAISE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); if (unlikely( tmp_result == false )) { exception_lineno = 97; } if (exception_tb && exception_tb->tb_frame == &frame_4beeedc291db11fb4e74fadb37b94b66->m_frame) frame_4beeedc291db11fb4e74fadb37b94b66->m_frame.f_lineno = exception_tb->tb_lineno; type_description_1 = "ooooooocc"; goto try_except_handler_3; } branch_end_2:; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( html5lib$_utils$$$function_5_moduleFactoryFactory$$$function_1_moduleFactory ); return NULL; // Return handler code: try_return_handler_3:; { // Restore previous exception. SET_CURRENT_EXCEPTION( exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1 ); } { goto frame_return_exit_1; } // Exception handler code: try_except_handler_3:; exception_keeper_type_2 = exception_type; exception_keeper_value_2 = exception_value; exception_keeper_tb_2 = exception_tb; exception_keeper_lineno_2 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { // Restore previous exception. SET_CURRENT_EXCEPTION( exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1 ); } { // Re-raise. exception_type = exception_keeper_type_2; exception_value = exception_keeper_value_2; exception_tb = exception_keeper_tb_2; exception_lineno = exception_keeper_lineno_2; goto frame_exception_exit_1; } // End of try: } // End of try: } #if 0 RESTORE_FRAME_EXCEPTION( frame_4beeedc291db11fb4e74fadb37b94b66 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_4beeedc291db11fb4e74fadb37b94b66 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_4beeedc291db11fb4e74fadb37b94b66 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_4beeedc291db11fb4e74fadb37b94b66, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_4beeedc291db11fb4e74fadb37b94b66->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_4beeedc291db11fb4e74fadb37b94b66, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_4beeedc291db11fb4e74fadb37b94b66, type_description_1, par_baseModule, par_args, par_kwargs, var_name, var_kwargs_tuple, var_mod, var_objs, self->m_closure[1], self->m_closure[0] ); // Release cached frame. if ( frame_4beeedc291db11fb4e74fadb37b94b66 == cache_frame_4beeedc291db11fb4e74fadb37b94b66 ) { Py_DECREF( frame_4beeedc291db11fb4e74fadb37b94b66 ); } cache_frame_4beeedc291db11fb4e74fadb37b94b66 = NULL; assertFrameObject( frame_4beeedc291db11fb4e74fadb37b94b66 ); // 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$_utils$$$function_5_moduleFactoryFactory$$$function_1_moduleFactory ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_baseModule ); par_baseModule = NULL; } { Py_XDECREF( par_args ); par_args = NULL; } { Py_XDECREF( par_kwargs ); par_kwargs = NULL; } { Py_XDECREF( var_name ); var_name = NULL; } { Py_XDECREF( var_kwargs_tuple ); var_kwargs_tuple = NULL; } { Py_XDECREF( var_mod ); var_mod = NULL; } { Py_XDECREF( var_objs ); var_objs = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; 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( par_baseModule ); par_baseModule = NULL; } { Py_XDECREF( par_args ); par_args = NULL; } { Py_XDECREF( par_kwargs ); par_kwargs = NULL; } { Py_XDECREF( var_name ); var_name = NULL; } { Py_XDECREF( var_kwargs_tuple ); var_kwargs_tuple = NULL; } { Py_XDECREF( var_mod ); var_mod = NULL; } { Py_XDECREF( var_objs ); var_objs = 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 function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( html5lib$_utils$$$function_5_moduleFactoryFactory$$$function_1_moduleFactory ); 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$_utils$$$function_6_memoize( 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_func = PyCell_NEW1( python_pars[ 0 ] ); struct Nuitka_CellObject *var_cache = PyCell_EMPTY(); PyObject *var_wrapped = NULL; PyObject *tmp_return_value = NULL; // Actual function code. { PyObject *tmp_assign_source_1; tmp_assign_source_1 = PyDict_New(); assert( PyCell_GET( var_cache ) == NULL ); PyCell_SET( var_cache, tmp_assign_source_1 ); } { PyObject *tmp_assign_source_2; tmp_assign_source_2 = MAKE_FUNCTION_html5lib$_utils$$$function_6_memoize$$$function_1_wrapped( ); ((struct Nuitka_FunctionObject *)tmp_assign_source_2)->m_closure[0] = var_cache; Py_INCREF( ((struct Nuitka_FunctionObject *)tmp_assign_source_2)->m_closure[0] ); ((struct Nuitka_FunctionObject *)tmp_assign_source_2)->m_closure[1] = par_func; Py_INCREF( ((struct Nuitka_FunctionObject *)tmp_assign_source_2)->m_closure[1] ); assert( var_wrapped == NULL ); var_wrapped = tmp_assign_source_2; } { // Tried code: { CHECK_OBJECT( var_wrapped ); tmp_return_value = var_wrapped; Py_INCREF( tmp_return_value ); goto try_return_handler_1; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( html5lib$_utils$$$function_6_memoize ); return NULL; // Return handler code: try_return_handler_1:; { CHECK_OBJECT( (PyObject *)par_func ); Py_DECREF( par_func ); par_func = NULL; } { CHECK_OBJECT( (PyObject *)var_cache ); Py_DECREF( var_cache ); var_cache = NULL; } { Py_XDECREF( var_wrapped ); var_wrapped = NULL; } { goto function_return_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( html5lib$_utils$$$function_6_memoize ); return NULL; function_return_exit: CHECK_OBJECT( tmp_return_value ); assert( had_error || !ERROR_OCCURRED() ); return tmp_return_value; } static PyObject *impl_html5lib$_utils$$$function_6_memoize$$$function_1_wrapped( 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_args = python_pars[ 0 ]; PyObject *par_kwargs = python_pars[ 1 ]; PyObject *var_key = NULL; struct Nuitka_FrameObject *frame_02ae1abd64222f4f80f652652b896131; 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_02ae1abd64222f4f80f652652b896131 = 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_02ae1abd64222f4f80f652652b896131, codeobj_02ae1abd64222f4f80f652652b896131, module_html5lib$_utils, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) ); frame_02ae1abd64222f4f80f652652b896131 = cache_frame_02ae1abd64222f4f80f652652b896131; // Push the new frame as the currently active one. pushFrameStack( frame_02ae1abd64222f4f80f652652b896131 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_02ae1abd64222f4f80f652652b896131 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_assign_source_1; PyObject *tmp_tuple_element_1; PyObject *tmp_tuple_arg_1; PyObject *tmp_tuple_arg_2; PyObject *tmp_called_instance_1; CHECK_OBJECT( par_args ); tmp_tuple_arg_1 = par_args; tmp_tuple_element_1 = PySequence_Tuple( tmp_tuple_arg_1 ); if ( tmp_tuple_element_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 119; type_description_1 = "ooocc"; goto frame_exception_exit_1; } tmp_assign_source_1 = PyTuple_New( 2 ); PyTuple_SET_ITEM( tmp_assign_source_1, 0, tmp_tuple_element_1 ); CHECK_OBJECT( par_kwargs ); tmp_called_instance_1 = par_kwargs; frame_02ae1abd64222f4f80f652652b896131->m_frame.f_lineno = 119; tmp_tuple_arg_2 = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain_items ); if ( tmp_tuple_arg_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_assign_source_1 ); exception_lineno = 119; type_description_1 = "ooocc"; goto frame_exception_exit_1; } tmp_tuple_element_1 = PySequence_Tuple( tmp_tuple_arg_2 ); Py_DECREF( tmp_tuple_arg_2 ); if ( tmp_tuple_element_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_assign_source_1 ); exception_lineno = 119; type_description_1 = "ooocc"; goto frame_exception_exit_1; } PyTuple_SET_ITEM( tmp_assign_source_1, 1, tmp_tuple_element_1 ); assert( var_key == NULL ); var_key = tmp_assign_source_1; } { nuitka_bool tmp_condition_result_1; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; CHECK_OBJECT( var_key ); tmp_compexpr_left_1 = var_key; if ( PyCell_GET( self->m_closure[0] ) == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "cache" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 120; type_description_1 = "ooocc"; goto frame_exception_exit_1; } tmp_compexpr_right_1 = PyCell_GET( self->m_closure[0] ); 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 = 120; type_description_1 = "ooocc"; goto frame_exception_exit_1; } tmp_condition_result_1 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { PyObject *tmp_ass_subvalue_1; PyObject *tmp_dircall_arg1_1; PyObject *tmp_dircall_arg2_1; PyObject *tmp_dircall_arg3_1; PyObject *tmp_ass_subscribed_1; PyObject *tmp_ass_subscript_1; if ( PyCell_GET( self->m_closure[1] ) == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "func" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 121; type_description_1 = "ooocc"; goto frame_exception_exit_1; } tmp_dircall_arg1_1 = PyCell_GET( self->m_closure[1] ); if ( par_args == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "args" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 121; type_description_1 = "ooocc"; goto frame_exception_exit_1; } tmp_dircall_arg2_1 = par_args; if ( par_kwargs == NULL ) { 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 = 121; type_description_1 = "ooocc"; goto frame_exception_exit_1; } tmp_dircall_arg3_1 = par_kwargs; Py_INCREF( tmp_dircall_arg1_1 ); Py_INCREF( tmp_dircall_arg2_1 ); Py_INCREF( tmp_dircall_arg3_1 ); { PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1}; tmp_ass_subvalue_1 = impl___internal__$$$function_4_complex_call_helper_star_list_star_dict( dir_call_args ); } if ( tmp_ass_subvalue_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 121; type_description_1 = "ooocc"; goto frame_exception_exit_1; } if ( PyCell_GET( self->m_closure[0] ) == NULL ) { Py_DECREF( tmp_ass_subvalue_1 ); exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "cache" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 121; type_description_1 = "ooocc"; goto frame_exception_exit_1; } tmp_ass_subscribed_1 = PyCell_GET( self->m_closure[0] ); if ( var_key == 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", "key" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 121; type_description_1 = "ooocc"; goto frame_exception_exit_1; } tmp_ass_subscript_1 = var_key; tmp_result = SET_SUBSCRIPT( tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1 ); Py_DECREF( tmp_ass_subvalue_1 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 121; type_description_1 = "ooocc"; goto frame_exception_exit_1; } } branch_no_1:; } { PyObject *tmp_subscribed_name_1; PyObject *tmp_subscript_name_1; if ( PyCell_GET( self->m_closure[0] ) == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "cache" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 122; type_description_1 = "ooocc"; goto frame_exception_exit_1; } tmp_subscribed_name_1 = PyCell_GET( self->m_closure[0] ); if ( var_key == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "key" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 122; type_description_1 = "ooocc"; goto frame_exception_exit_1; } tmp_subscript_name_1 = var_key; tmp_return_value = LOOKUP_SUBSCRIPT( tmp_subscribed_name_1, tmp_subscript_name_1 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 122; type_description_1 = "ooocc"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_02ae1abd64222f4f80f652652b896131 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_02ae1abd64222f4f80f652652b896131 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_02ae1abd64222f4f80f652652b896131 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_02ae1abd64222f4f80f652652b896131, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_02ae1abd64222f4f80f652652b896131->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_02ae1abd64222f4f80f652652b896131, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_02ae1abd64222f4f80f652652b896131, type_description_1, par_args, par_kwargs, var_key, self->m_closure[0], self->m_closure[1] ); // Release cached frame. if ( frame_02ae1abd64222f4f80f652652b896131 == cache_frame_02ae1abd64222f4f80f652652b896131 ) { Py_DECREF( frame_02ae1abd64222f4f80f652652b896131 ); } cache_frame_02ae1abd64222f4f80f652652b896131 = NULL; assertFrameObject( frame_02ae1abd64222f4f80f652652b896131 ); // 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$_utils$$$function_6_memoize$$$function_1_wrapped ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_args ); par_args = NULL; } { Py_XDECREF( par_kwargs ); par_kwargs = NULL; } { Py_XDECREF( var_key ); var_key = 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_args ); par_args = NULL; } { Py_XDECREF( par_kwargs ); par_kwargs = NULL; } { Py_XDECREF( var_key ); var_key = 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$_utils$$$function_6_memoize$$$function_1_wrapped ); 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$_utils$$$function_1___init__( PyObject *defaults ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_html5lib$_utils$$$function_1___init__, const_str_plain___init__, #if PYTHON_VERSION >= 300 const_str_digest_8c54e2fe2a3b443ef76c0f757d15bd9b, #endif codeobj_06ebd5c6e21631bdd7c5875cb8fbe1f7, defaults, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_html5lib$_utils, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_html5lib$_utils$$$function_2___getitem__( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_html5lib$_utils$$$function_2___getitem__, const_str_plain___getitem__, #if PYTHON_VERSION >= 300 const_str_digest_bc9bcd4bd7d28d0a0579fc2894951201, #endif codeobj_6de13dca1e131a70dabf39c92a4b7d8b, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_html5lib$_utils, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_html5lib$_utils$$$function_3_isSurrogatePair( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_html5lib$_utils$$$function_3_isSurrogatePair, const_str_plain_isSurrogatePair, #if PYTHON_VERSION >= 300 NULL, #endif codeobj_232467bcff5ed0749f08a28f2efd1b10, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_html5lib$_utils, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_html5lib$_utils$$$function_4_surrogatePairToCodepoint( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_html5lib$_utils$$$function_4_surrogatePairToCodepoint, const_str_plain_surrogatePairToCodepoint, #if PYTHON_VERSION >= 300 NULL, #endif codeobj_8f43b0a6cf8c5bc31736dff7442e4d18, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_html5lib$_utils, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_html5lib$_utils$$$function_5_moduleFactoryFactory( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_html5lib$_utils$$$function_5_moduleFactoryFactory, const_str_plain_moduleFactoryFactory, #if PYTHON_VERSION >= 300 NULL, #endif codeobj_4d499d1af4813f207f97ed96ae3daa15, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_html5lib$_utils, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_html5lib$_utils$$$function_5_moduleFactoryFactory$$$function_1_moduleFactory( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_html5lib$_utils$$$function_5_moduleFactoryFactory$$$function_1_moduleFactory, const_str_plain_moduleFactory, #if PYTHON_VERSION >= 300 const_str_digest_78e245572c73969d3d5aa853c59ef89c, #endif codeobj_4beeedc291db11fb4e74fadb37b94b66, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_html5lib$_utils, NULL, 2 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_html5lib$_utils$$$function_6_memoize( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_html5lib$_utils$$$function_6_memoize, const_str_plain_memoize, #if PYTHON_VERSION >= 300 NULL, #endif codeobj_1282df9d3d11bf6381777284064d808a, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_html5lib$_utils, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_html5lib$_utils$$$function_6_memoize$$$function_1_wrapped( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_html5lib$_utils$$$function_6_memoize$$$function_1_wrapped, const_str_plain_wrapped, #if PYTHON_VERSION >= 300 const_str_digest_ca20275ccc73f9e88f7d0b9548668b44, #endif codeobj_02ae1abd64222f4f80f652652b896131, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_html5lib$_utils, NULL, 2 ); return (PyObject *)result; } #if PYTHON_VERSION >= 300 static struct PyModuleDef mdef_html5lib$_utils = { PyModuleDef_HEAD_INIT, "html5lib._utils", /* 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$_utils ) { #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$_utils ); } 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._utils: 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._utils: Calling createModuleConstants()."); #endif createModuleConstants(); /* The code objects used by this module are created now. */ #ifdef _NUITKA_TRACE puts("html5lib._utils: Calling createModuleCodeObjects()."); #endif createModuleCodeObjects(); // puts( "in inithtml5lib$_utils" ); // 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$_utils = Py_InitModule4( "html5lib._utils", // 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$_utils = PyModule_Create( &mdef_html5lib$_utils ); #endif moduledict_html5lib$_utils = MODULE_DICT( module_html5lib$_utils ); // Update "__package__" value to what it ought to be. { #if 0 PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain___name__ ); UPDATE_STRING_DICT1( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain___package__, module_name ); #else #if PYTHON_VERSION < 300 PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_html5lib$_utils, (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$_utils, (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$_utils, (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$_utils, (Nuitka_StringObject *)const_str_plain___package__, PyUnicode_Substring( module_name, 0, dot_index ) ); } #endif #endif } CHECK_OBJECT( module_html5lib$_utils ); // 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_d1a10abdfe2f776a3991fe5869130af4, module_html5lib$_utils ); 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$_utils, (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$_utils, (Nuitka_StringObject *)const_str_plain___builtins__, value ); } #if PYTHON_VERSION >= 300 UPDATE_STRING_DICT0( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain___loader__, metapath_based_loader ); #endif #if PYTHON_VERSION >= 340 #if 0 UPDATE_STRING_DICT0( moduledict_html5lib$_utils, (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$_utils, (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$_utils, (Nuitka_StringObject *)const_str_plain___spec__, spec_value ); Py_DECREF( module_spec_class ); } #endif #endif // Temp variables if any PyObject *outline_0_var___class__ = NULL; PyObject *tmp_class_creation_1__bases = NULL; PyObject *tmp_class_creation_1__class_decl_dict = NULL; PyObject *tmp_class_creation_1__metaclass = NULL; PyObject *tmp_class_creation_1__prepared = NULL; PyObject *tmp_eval_call_1__globals = NULL; PyObject *tmp_eval_call_1__locals = NULL; PyObject *tmp_eval_call_1__source = NULL; PyObject *tmp_eval_call_2__globals = NULL; PyObject *tmp_eval_call_2__locals = NULL; PyObject *tmp_eval_call_2__source = NULL; PyObject *tmp_import_from_1__module = NULL; nuitka_bool tmp_try_except_1__unhandled_indicator = NUITKA_BOOL_UNASSIGNED; struct Nuitka_FrameObject *frame_ab571a708edcc112d2c139f396a38221; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; PyObject *exception_keeper_type_2; PyObject *exception_keeper_value_2; PyTracebackObject *exception_keeper_tb_2; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; PyObject *exception_preserved_type_1; PyObject *exception_preserved_value_1; PyTracebackObject *exception_preserved_tb_1; int tmp_res; bool tmp_result; PyObject *exception_keeper_type_3; PyObject *exception_keeper_value_3; PyTracebackObject *exception_keeper_tb_3; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; PyObject *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 *exception_preserved_type_2; PyObject *exception_preserved_value_2; PyTracebackObject *exception_preserved_tb_2; PyObject *tmp_dictdel_dict; PyObject *tmp_dictdel_key; PyObject *locals_html5lib$_utils_36 = NULL; PyObject *tmp_dictset_value; struct Nuitka_FrameObject *frame_ac43189c05cfa8791a277275fef3b625_2; NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; static struct Nuitka_FrameObject *cache_frame_ac43189c05cfa8791a277275fef3b625_2 = 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; PyObject *exception_keeper_type_8; PyObject *exception_keeper_value_8; PyTracebackObject *exception_keeper_tb_8; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8; PyObject *exception_keeper_type_9; PyObject *exception_keeper_value_9; PyTracebackObject *exception_keeper_tb_9; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9; // Module code. { PyObject *tmp_assign_source_1; tmp_assign_source_1 = Py_None; UPDATE_STRING_DICT0( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain___doc__, tmp_assign_source_1 ); } { PyObject *tmp_assign_source_2; tmp_assign_source_2 = const_str_digest_a95c02c9adb958309f6977392d8a9804; UPDATE_STRING_DICT0( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain___file__, tmp_assign_source_2 ); } { PyObject *tmp_assign_source_3; tmp_assign_source_3 = Py_None; UPDATE_STRING_DICT0( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain___cached__, tmp_assign_source_3 ); } { PyObject *tmp_assign_source_4; tmp_assign_source_4 = PyImport_ImportModule("__future__"); assert( !(tmp_assign_source_4 == NULL) ); assert( tmp_import_from_1__module == NULL ); Py_INCREF( tmp_assign_source_4 ); tmp_import_from_1__module = tmp_assign_source_4; } // Frame without reuse. frame_ab571a708edcc112d2c139f396a38221 = MAKE_MODULE_FRAME( codeobj_ab571a708edcc112d2c139f396a38221, module_html5lib$_utils ); // Push the new frame as the currently active one, and we should be exclusively // owning it. pushFrameStack( frame_ab571a708edcc112d2c139f396a38221 ); assert( Py_REFCNT( frame_ab571a708edcc112d2c139f396a38221 ) == 2 ); // Framed code: { // Tried code: { PyObject *tmp_assign_source_5; 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_5 = IMPORT_NAME( tmp_import_name_from_1, const_str_plain_absolute_import ); if ( tmp_assign_source_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 1; goto try_except_handler_1; } UPDATE_STRING_DICT1( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain_absolute_import, tmp_assign_source_5 ); } { PyObject *tmp_assign_source_6; 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_6 = IMPORT_NAME( tmp_import_name_from_2, const_str_plain_division ); if ( tmp_assign_source_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 1; goto try_except_handler_1; } UPDATE_STRING_DICT1( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain_division, tmp_assign_source_6 ); } { PyObject *tmp_assign_source_7; 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_7 = IMPORT_NAME( tmp_import_name_from_3, const_str_plain_unicode_literals ); if ( tmp_assign_source_7 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 1; goto try_except_handler_1; } UPDATE_STRING_DICT1( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain_unicode_literals, tmp_assign_source_7 ); } 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_8; 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_plain_types; tmp_globals_name_1 = (PyObject *)moduledict_html5lib$_utils; tmp_locals_name_1 = Py_None; tmp_fromlist_name_1 = const_tuple_str_plain_ModuleType_tuple; tmp_level_name_1 = const_int_0; frame_ab571a708edcc112d2c139f396a38221->m_frame.f_lineno = 3; 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 = 3; goto frame_exception_exit_1; } tmp_assign_source_8 = IMPORT_NAME( tmp_import_name_from_4, const_str_plain_ModuleType ); Py_DECREF( tmp_import_name_from_4 ); if ( tmp_assign_source_8 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 3; goto frame_exception_exit_1; } UPDATE_STRING_DICT1( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain_ModuleType, tmp_assign_source_8 ); } { PyObject *tmp_assign_source_9; 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_six; tmp_globals_name_2 = (PyObject *)moduledict_html5lib$_utils; tmp_locals_name_2 = Py_None; tmp_fromlist_name_2 = const_tuple_str_plain_text_type_tuple; tmp_level_name_2 = const_int_0; frame_ab571a708edcc112d2c139f396a38221->m_frame.f_lineno = 5; 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 = 5; goto frame_exception_exit_1; } tmp_assign_source_9 = IMPORT_NAME( tmp_import_name_from_5, const_str_plain_text_type ); Py_DECREF( tmp_import_name_from_5 ); if ( tmp_assign_source_9 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 5; goto frame_exception_exit_1; } UPDATE_STRING_DICT1( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain_text_type, tmp_assign_source_9 ); } { // Tried code: { PyObject *tmp_assign_source_10; PyObject *tmp_import_name_from_6; PyObject *tmp_import_name_from_7; PyObject *tmp_name_name_3; PyObject *tmp_globals_name_3; PyObject *tmp_locals_name_3; PyObject *tmp_fromlist_name_3; PyObject *tmp_level_name_3; tmp_name_name_3 = const_str_digest_b8b8773fbd08a10b8c2607df28400381; tmp_globals_name_3 = (PyObject *)moduledict_html5lib$_utils; tmp_locals_name_3 = Py_None; tmp_fromlist_name_3 = Py_None; tmp_level_name_3 = const_int_0; frame_ab571a708edcc112d2c139f396a38221->m_frame.f_lineno = 8; tmp_import_name_from_7 = IMPORT_MODULE5( tmp_name_name_3, tmp_globals_name_3, tmp_locals_name_3, tmp_fromlist_name_3, tmp_level_name_3 ); if ( tmp_import_name_from_7 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 8; goto try_except_handler_2; } tmp_import_name_from_6 = IMPORT_NAME( tmp_import_name_from_7, const_str_plain_etree ); Py_DECREF( tmp_import_name_from_7 ); if ( tmp_import_name_from_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 8; goto try_except_handler_2; } tmp_assign_source_10 = IMPORT_NAME( tmp_import_name_from_6, const_str_plain_cElementTree ); Py_DECREF( tmp_import_name_from_6 ); if ( tmp_assign_source_10 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 8; goto try_except_handler_2; } UPDATE_STRING_DICT1( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain_default_etree, tmp_assign_source_10 ); } goto try_end_2; // Exception handler code: try_except_handler_2:; exception_keeper_type_2 = exception_type; exception_keeper_value_2 = exception_value; exception_keeper_tb_2 = exception_tb; exception_keeper_lineno_2 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { // Preserve existing published exception. exception_preserved_type_1 = EXC_TYPE(PyThreadState_GET()); Py_XINCREF( exception_preserved_type_1 ); exception_preserved_value_1 = EXC_VALUE(PyThreadState_GET()); Py_XINCREF( exception_preserved_value_1 ); exception_preserved_tb_1 = (PyTracebackObject *)EXC_TRACEBACK(PyThreadState_GET()); Py_XINCREF( exception_preserved_tb_1 ); } { if ( exception_keeper_tb_2 == NULL ) { exception_keeper_tb_2 = MAKE_TRACEBACK( frame_ab571a708edcc112d2c139f396a38221, exception_keeper_lineno_2 ); } else if ( exception_keeper_lineno_2 != 0 ) { exception_keeper_tb_2 = ADD_TRACEBACK( exception_keeper_tb_2, frame_ab571a708edcc112d2c139f396a38221, exception_keeper_lineno_2 ); } NORMALIZE_EXCEPTION( &exception_keeper_type_2, &exception_keeper_value_2, &exception_keeper_tb_2 ); PyException_SetTraceback( exception_keeper_value_2, (PyObject *)exception_keeper_tb_2 ); PUBLISH_EXCEPTION( &exception_keeper_type_2, &exception_keeper_value_2, &exception_keeper_tb_2 ); } { // Tried code: { nuitka_bool tmp_condition_result_1; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; tmp_compexpr_left_1 = EXC_TYPE(PyThreadState_GET()); tmp_compexpr_right_1 = PyExc_ImportError; tmp_res = EXCEPTION_MATCH_BOOL( tmp_compexpr_left_1, tmp_compexpr_right_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 9; goto try_except_handler_3; } tmp_condition_result_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { PyObject *tmp_assign_source_11; PyObject *tmp_import_name_from_8; PyObject *tmp_import_name_from_9; PyObject *tmp_name_name_4; PyObject *tmp_globals_name_4; PyObject *tmp_locals_name_4; PyObject *tmp_fromlist_name_4; PyObject *tmp_level_name_4; tmp_name_name_4 = const_str_digest_04d67503345d6d64752f0c9fc2a764c3; tmp_globals_name_4 = (PyObject *)moduledict_html5lib$_utils; tmp_locals_name_4 = Py_None; tmp_fromlist_name_4 = Py_None; tmp_level_name_4 = const_int_0; frame_ab571a708edcc112d2c139f396a38221->m_frame.f_lineno = 10; tmp_import_name_from_9 = 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_9 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 10; goto try_except_handler_3; } tmp_import_name_from_8 = IMPORT_NAME( tmp_import_name_from_9, const_str_plain_etree ); Py_DECREF( tmp_import_name_from_9 ); if ( tmp_import_name_from_8 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 10; goto try_except_handler_3; } tmp_assign_source_11 = IMPORT_NAME( tmp_import_name_from_8, const_str_plain_ElementTree ); Py_DECREF( tmp_import_name_from_8 ); if ( tmp_assign_source_11 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 10; goto try_except_handler_3; } UPDATE_STRING_DICT1( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain_default_etree, tmp_assign_source_11 ); } goto branch_end_1; branch_no_1:; { tmp_result = RERAISE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); if (unlikely( tmp_result == false )) { exception_lineno = 7; } if (exception_tb && exception_tb->tb_frame == &frame_ab571a708edcc112d2c139f396a38221->m_frame) frame_ab571a708edcc112d2c139f396a38221->m_frame.f_lineno = exception_tb->tb_lineno; goto try_except_handler_3; } branch_end_1:; } goto try_end_3; // Exception handler code: try_except_handler_3:; exception_keeper_type_3 = exception_type; exception_keeper_value_3 = exception_value; exception_keeper_tb_3 = exception_tb; exception_keeper_lineno_3 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { // Restore previous exception. SET_CURRENT_EXCEPTION( exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1 ); } { // Re-raise. exception_type = exception_keeper_type_3; exception_value = exception_keeper_value_3; exception_tb = exception_keeper_tb_3; exception_lineno = exception_keeper_lineno_3; goto frame_exception_exit_1; } // End of try: try_end_3:; } { // Restore previous exception. SET_CURRENT_EXCEPTION( exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1 ); } goto try_end_2; // exception handler codes exits in all cases NUITKA_CANNOT_GET_HERE( html5lib$_utils ); return MOD_RETURN_VALUE( NULL ); // End of try: try_end_2:; } { PyObject *tmp_assign_source_12; tmp_assign_source_12 = LIST_COPY( const_list_e2aa55aa837bd35c09d5021243b07993_list ); UPDATE_STRING_DICT1( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain___all__, tmp_assign_source_12 ); } { nuitka_bool tmp_assign_source_13; tmp_assign_source_13 = NUITKA_BOOL_TRUE; tmp_try_except_1__unhandled_indicator = tmp_assign_source_13; } { // Tried code: { PyObject *tmp_assign_source_14; { PyObject *tmp_assign_source_15; tmp_assign_source_15 = (PyObject *)moduledict_html5lib$_utils; assert( tmp_eval_call_1__locals == NULL ); Py_INCREF( tmp_assign_source_15 ); tmp_eval_call_1__locals = tmp_assign_source_15; } { PyObject *tmp_assign_source_16; tmp_assign_source_16 = (PyObject *)moduledict_html5lib$_utils; assert( tmp_eval_call_1__globals == NULL ); Py_INCREF( tmp_assign_source_16 ); tmp_eval_call_1__globals = tmp_assign_source_16; } { PyObject *tmp_assign_source_17; tmp_assign_source_17 = const_str_digest_83a4d29dbb8315e4bb75b5583003c637; assert( tmp_eval_call_1__source == NULL ); Py_INCREF( tmp_assign_source_17 ); tmp_eval_call_1__source = tmp_assign_source_17; } { // Tried code: { PyObject *tmp_assign_source_18; PyObject *tmp_called_instance_1; tmp_called_instance_1 = const_str_digest_83a4d29dbb8315e4bb75b5583003c637; frame_ab571a708edcc112d2c139f396a38221->m_frame.f_lineno = 25; tmp_assign_source_18 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_1, const_str_plain_strip, &PyTuple_GET_ITEM( const_tuple_str_digest_ac02ab0238280e341b2aff0eed15b128_tuple, 0 ) ); if ( tmp_assign_source_18 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 25; goto try_except_handler_5; } { PyObject *old = tmp_eval_call_1__source; assert( old != NULL ); tmp_eval_call_1__source = tmp_assign_source_18; Py_DECREF( old ); } } { PyObject *tmp_eval_source_1; PyObject *tmp_eval_globals_1; PyObject *tmp_eval_locals_1; PyObject *tmp_eval_compiled_1; CHECK_OBJECT( tmp_eval_call_1__source ); tmp_eval_source_1 = tmp_eval_call_1__source; CHECK_OBJECT( tmp_eval_call_1__globals ); tmp_eval_globals_1 = tmp_eval_call_1__globals; CHECK_OBJECT( tmp_eval_call_1__locals ); tmp_eval_locals_1 = tmp_eval_call_1__locals; tmp_eval_compiled_1 = COMPILE_CODE( tmp_eval_source_1, const_str_angle_string, const_str_plain_eval, NULL, NULL, NULL ); if ( tmp_eval_compiled_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 25; goto try_except_handler_5; } tmp_assign_source_14 = EVAL_CODE( tmp_eval_compiled_1, tmp_eval_globals_1, tmp_eval_locals_1 ); Py_DECREF( tmp_eval_compiled_1 ); if ( tmp_assign_source_14 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 25; goto try_except_handler_5; } goto try_return_handler_5; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( html5lib$_utils ); return MOD_RETURN_VALUE( NULL ); // Return handler code: try_return_handler_5:; { CHECK_OBJECT( (PyObject *)tmp_eval_call_1__globals ); Py_DECREF( tmp_eval_call_1__globals ); tmp_eval_call_1__globals = NULL; } { CHECK_OBJECT( (PyObject *)tmp_eval_call_1__locals ); Py_DECREF( tmp_eval_call_1__locals ); tmp_eval_call_1__locals = NULL; } { Py_XDECREF( tmp_eval_call_1__source ); tmp_eval_call_1__source = NULL; } { goto outline_result_1; } // Exception handler code: try_except_handler_5:; exception_keeper_type_4 = exception_type; exception_keeper_value_4 = exception_value; exception_keeper_tb_4 = exception_tb; exception_keeper_lineno_4 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { CHECK_OBJECT( (PyObject *)tmp_eval_call_1__globals ); Py_DECREF( tmp_eval_call_1__globals ); tmp_eval_call_1__globals = NULL; } { CHECK_OBJECT( (PyObject *)tmp_eval_call_1__locals ); Py_DECREF( tmp_eval_call_1__locals ); tmp_eval_call_1__locals = NULL; } { Py_XDECREF( tmp_eval_call_1__source ); tmp_eval_call_1__source = 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_4; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( html5lib$_utils ); return MOD_RETURN_VALUE( NULL ); outline_result_1:; UPDATE_STRING_DICT1( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain__x, tmp_assign_source_14 ); } { nuitka_bool tmp_condition_result_2; PyObject *tmp_operand_name_1; PyObject *tmp_isinstance_inst_1; PyObject *tmp_isinstance_cls_1; PyObject *tmp_mvar_value_1; PyObject *tmp_mvar_value_2; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain__x ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain__x ); } CHECK_OBJECT( tmp_mvar_value_1 ); tmp_isinstance_inst_1 = tmp_mvar_value_1; tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain_text_type ); if (unlikely( tmp_mvar_value_2 == NULL )) { tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_text_type ); } if ( tmp_mvar_value_2 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "text_type" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 26; goto try_except_handler_4; } tmp_isinstance_cls_1 = tmp_mvar_value_2; tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_1, tmp_isinstance_cls_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 26; goto try_except_handler_4; } tmp_operand_name_1 = ( tmp_res != 0 ) ? Py_True : Py_False; tmp_res = CHECK_IF_TRUE( tmp_operand_name_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 26; goto try_except_handler_4; } 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_19; { PyObject *tmp_assign_source_20; tmp_assign_source_20 = (PyObject *)moduledict_html5lib$_utils; assert( tmp_eval_call_2__locals == NULL ); Py_INCREF( tmp_assign_source_20 ); tmp_eval_call_2__locals = tmp_assign_source_20; } { PyObject *tmp_assign_source_21; tmp_assign_source_21 = (PyObject *)moduledict_html5lib$_utils; assert( tmp_eval_call_2__globals == NULL ); Py_INCREF( tmp_assign_source_21 ); tmp_eval_call_2__globals = tmp_assign_source_21; } { PyObject *tmp_assign_source_22; tmp_assign_source_22 = const_str_digest_585868dc50599c5d143780d4d5d6aaf7; assert( tmp_eval_call_2__source == NULL ); Py_INCREF( tmp_assign_source_22 ); tmp_eval_call_2__source = tmp_assign_source_22; } { // Tried code: { PyObject *tmp_assign_source_23; PyObject *tmp_called_instance_2; tmp_called_instance_2 = const_str_digest_585868dc50599c5d143780d4d5d6aaf7; frame_ab571a708edcc112d2c139f396a38221->m_frame.f_lineno = 28; tmp_assign_source_23 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_2, const_str_plain_strip, &PyTuple_GET_ITEM( const_tuple_str_digest_ac02ab0238280e341b2aff0eed15b128_tuple, 0 ) ); if ( tmp_assign_source_23 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 28; goto try_except_handler_6; } { PyObject *old = tmp_eval_call_2__source; assert( old != NULL ); tmp_eval_call_2__source = tmp_assign_source_23; Py_DECREF( old ); } } { PyObject *tmp_eval_source_2; PyObject *tmp_eval_globals_2; PyObject *tmp_eval_locals_2; PyObject *tmp_eval_compiled_2; CHECK_OBJECT( tmp_eval_call_2__source ); tmp_eval_source_2 = tmp_eval_call_2__source; CHECK_OBJECT( tmp_eval_call_2__globals ); tmp_eval_globals_2 = tmp_eval_call_2__globals; CHECK_OBJECT( tmp_eval_call_2__locals ); tmp_eval_locals_2 = tmp_eval_call_2__locals; tmp_eval_compiled_2 = COMPILE_CODE( tmp_eval_source_2, const_str_angle_string, const_str_plain_eval, NULL, NULL, NULL ); if ( tmp_eval_compiled_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 28; goto try_except_handler_6; } tmp_assign_source_19 = EVAL_CODE( tmp_eval_compiled_2, tmp_eval_globals_2, tmp_eval_locals_2 ); Py_DECREF( tmp_eval_compiled_2 ); if ( tmp_assign_source_19 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 28; goto try_except_handler_6; } goto try_return_handler_6; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( html5lib$_utils ); return MOD_RETURN_VALUE( NULL ); // Return handler code: try_return_handler_6:; { CHECK_OBJECT( (PyObject *)tmp_eval_call_2__globals ); Py_DECREF( tmp_eval_call_2__globals ); tmp_eval_call_2__globals = NULL; } { CHECK_OBJECT( (PyObject *)tmp_eval_call_2__locals ); Py_DECREF( tmp_eval_call_2__locals ); tmp_eval_call_2__locals = NULL; } { Py_XDECREF( tmp_eval_call_2__source ); tmp_eval_call_2__source = NULL; } { goto outline_result_2; } // Exception handler code: try_except_handler_6:; exception_keeper_type_5 = exception_type; exception_keeper_value_5 = exception_value; exception_keeper_tb_5 = exception_tb; exception_keeper_lineno_5 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { CHECK_OBJECT( (PyObject *)tmp_eval_call_2__globals ); Py_DECREF( tmp_eval_call_2__globals ); tmp_eval_call_2__globals = NULL; } { CHECK_OBJECT( (PyObject *)tmp_eval_call_2__locals ); Py_DECREF( tmp_eval_call_2__locals ); tmp_eval_call_2__locals = NULL; } { Py_XDECREF( tmp_eval_call_2__source ); tmp_eval_call_2__source = 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_4; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( html5lib$_utils ); return MOD_RETURN_VALUE( NULL ); outline_result_2:; UPDATE_STRING_DICT1( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain__x, tmp_assign_source_19 ); } { nuitka_bool tmp_condition_result_3; PyObject *tmp_operand_name_2; PyObject *tmp_isinstance_inst_2; PyObject *tmp_isinstance_cls_2; PyObject *tmp_mvar_value_3; PyObject *tmp_mvar_value_4; tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain__x ); if (unlikely( tmp_mvar_value_3 == NULL )) { tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain__x ); } CHECK_OBJECT( tmp_mvar_value_3 ); tmp_isinstance_inst_2 = tmp_mvar_value_3; tmp_mvar_value_4 = GET_STRING_DICT_VALUE( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain_text_type ); if (unlikely( tmp_mvar_value_4 == NULL )) { tmp_mvar_value_4 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_text_type ); } if ( tmp_mvar_value_4 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "text_type" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 29; goto try_except_handler_4; } tmp_isinstance_cls_2 = tmp_mvar_value_4; tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_2, tmp_isinstance_cls_2 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 29; goto try_except_handler_4; } tmp_operand_name_2 = ( tmp_res != 0 ) ? Py_True : Py_False; tmp_res = CHECK_IF_TRUE( tmp_operand_name_2 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 29; goto try_except_handler_4; } 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_raise_type_1; tmp_raise_type_1 = PyExc_AssertionError; exception_type = tmp_raise_type_1; Py_INCREF( tmp_raise_type_1 ); exception_lineno = 29; RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb ); goto try_except_handler_4; } branch_no_3:; } branch_no_2:; } goto try_end_4; // Exception handler code: try_except_handler_4:; 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; { nuitka_bool tmp_assign_source_24; tmp_assign_source_24 = NUITKA_BOOL_FALSE; tmp_try_except_1__unhandled_indicator = tmp_assign_source_24; } { // Preserve existing published exception. exception_preserved_type_2 = EXC_TYPE(PyThreadState_GET()); Py_XINCREF( exception_preserved_type_2 ); exception_preserved_value_2 = EXC_VALUE(PyThreadState_GET()); Py_XINCREF( exception_preserved_value_2 ); exception_preserved_tb_2 = (PyTracebackObject *)EXC_TRACEBACK(PyThreadState_GET()); Py_XINCREF( exception_preserved_tb_2 ); } { if ( exception_keeper_tb_6 == NULL ) { exception_keeper_tb_6 = MAKE_TRACEBACK( frame_ab571a708edcc112d2c139f396a38221, exception_keeper_lineno_6 ); } else if ( exception_keeper_lineno_6 != 0 ) { exception_keeper_tb_6 = ADD_TRACEBACK( exception_keeper_tb_6, frame_ab571a708edcc112d2c139f396a38221, exception_keeper_lineno_6 ); } NORMALIZE_EXCEPTION( &exception_keeper_type_6, &exception_keeper_value_6, &exception_keeper_tb_6 ); PyException_SetTraceback( exception_keeper_value_6, (PyObject *)exception_keeper_tb_6 ); PUBLISH_EXCEPTION( &exception_keeper_type_6, &exception_keeper_value_6, &exception_keeper_tb_6 ); } { PyObject *tmp_assign_source_25; tmp_assign_source_25 = Py_False; UPDATE_STRING_DICT0( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain_supports_lone_surrogates, tmp_assign_source_25 ); } { // Restore previous exception. SET_CURRENT_EXCEPTION( exception_preserved_type_2, exception_preserved_value_2, exception_preserved_tb_2 ); } goto try_end_4; // exception handler codes exits in all cases NUITKA_CANNOT_GET_HERE( html5lib$_utils ); return MOD_RETURN_VALUE( NULL ); // End of try: try_end_4:; } { nuitka_bool tmp_condition_result_4; PyObject *tmp_compexpr_left_2; PyObject *tmp_compexpr_right_2; assert( tmp_try_except_1__unhandled_indicator != NUITKA_BOOL_UNASSIGNED); tmp_compexpr_left_2 = ( tmp_try_except_1__unhandled_indicator == NUITKA_BOOL_TRUE ) ? Py_True : Py_False; tmp_compexpr_right_2 = Py_True; tmp_condition_result_4 = ( tmp_compexpr_left_2 == tmp_compexpr_right_2 ) ? 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_26; tmp_assign_source_26 = Py_True; UPDATE_STRING_DICT0( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain_supports_lone_surrogates, tmp_assign_source_26 ); } branch_no_4:; } { } { // Tried code: { PyObject *tmp_assign_source_27; PyObject *tmp_dircall_arg1_1; tmp_dircall_arg1_1 = const_tuple_type_dict_tuple; Py_INCREF( tmp_dircall_arg1_1 ); { PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; tmp_assign_source_27 = impl___internal__$$$function_1__mro_entries_conversion( dir_call_args ); } if ( tmp_assign_source_27 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 36; goto try_except_handler_7; } assert( tmp_class_creation_1__bases == NULL ); tmp_class_creation_1__bases = tmp_assign_source_27; } { PyObject *tmp_assign_source_28; tmp_assign_source_28 = PyDict_New(); assert( tmp_class_creation_1__class_decl_dict == NULL ); tmp_class_creation_1__class_decl_dict = tmp_assign_source_28; } { PyObject *tmp_assign_source_29; PyObject *tmp_metaclass_name_1; nuitka_bool tmp_condition_result_5; PyObject *tmp_key_name_1; PyObject *tmp_dict_name_1; PyObject *tmp_dict_name_2; PyObject *tmp_key_name_2; nuitka_bool tmp_condition_result_6; int tmp_truth_name_1; PyObject *tmp_type_arg_1; PyObject *tmp_subscribed_name_1; PyObject *tmp_subscript_name_1; PyObject *tmp_bases_name_1; tmp_key_name_1 = const_str_plain_metaclass; CHECK_OBJECT( tmp_class_creation_1__class_decl_dict ); tmp_dict_name_1 = tmp_class_creation_1__class_decl_dict; tmp_res = PyDict_Contains( tmp_dict_name_1, tmp_key_name_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 36; goto try_except_handler_7; } tmp_condition_result_5 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_5 == NUITKA_BOOL_TRUE ) { goto condexpr_true_1; } else { goto condexpr_false_1; } condexpr_true_1:; CHECK_OBJECT( tmp_class_creation_1__class_decl_dict ); tmp_dict_name_2 = tmp_class_creation_1__class_decl_dict; tmp_key_name_2 = const_str_plain_metaclass; tmp_metaclass_name_1 = DICT_GET_ITEM( tmp_dict_name_2, tmp_key_name_2 ); if ( tmp_metaclass_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 36; goto try_except_handler_7; } goto condexpr_end_1; condexpr_false_1:; CHECK_OBJECT( tmp_class_creation_1__bases ); tmp_truth_name_1 = CHECK_IF_TRUE( tmp_class_creation_1__bases ); if ( tmp_truth_name_1 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 36; goto try_except_handler_7; } tmp_condition_result_6 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_6 == NUITKA_BOOL_TRUE ) { goto condexpr_true_2; } else { goto condexpr_false_2; } condexpr_true_2:; CHECK_OBJECT( tmp_class_creation_1__bases ); tmp_subscribed_name_1 = tmp_class_creation_1__bases; tmp_subscript_name_1 = const_int_0; tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_1, tmp_subscript_name_1, 0 ); if ( tmp_type_arg_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 36; goto try_except_handler_7; } tmp_metaclass_name_1 = BUILTIN_TYPE1( tmp_type_arg_1 ); Py_DECREF( tmp_type_arg_1 ); if ( tmp_metaclass_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 36; goto try_except_handler_7; } goto condexpr_end_2; condexpr_false_2:; tmp_metaclass_name_1 = (PyObject *)&PyType_Type; Py_INCREF( tmp_metaclass_name_1 ); condexpr_end_2:; condexpr_end_1:; CHECK_OBJECT( tmp_class_creation_1__bases ); tmp_bases_name_1 = tmp_class_creation_1__bases; tmp_assign_source_29 = SELECT_METACLASS( tmp_metaclass_name_1, tmp_bases_name_1 ); Py_DECREF( tmp_metaclass_name_1 ); if ( tmp_assign_source_29 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 36; goto try_except_handler_7; } assert( tmp_class_creation_1__metaclass == NULL ); tmp_class_creation_1__metaclass = tmp_assign_source_29; } { nuitka_bool tmp_condition_result_7; PyObject *tmp_key_name_3; PyObject *tmp_dict_name_3; tmp_key_name_3 = const_str_plain_metaclass; CHECK_OBJECT( tmp_class_creation_1__class_decl_dict ); tmp_dict_name_3 = tmp_class_creation_1__class_decl_dict; tmp_res = PyDict_Contains( tmp_dict_name_3, tmp_key_name_3 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 36; goto try_except_handler_7; } tmp_condition_result_7 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_7 == NUITKA_BOOL_TRUE ) { goto branch_yes_5; } else { goto branch_no_5; } branch_yes_5:; { CHECK_OBJECT( tmp_class_creation_1__class_decl_dict ); tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict; tmp_dictdel_key = const_str_plain_metaclass; tmp_result = DICT_REMOVE_ITEM( tmp_dictdel_dict, tmp_dictdel_key ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 36; goto try_except_handler_7; } } branch_no_5:; } { nuitka_bool tmp_condition_result_8; PyObject *tmp_source_name_1; CHECK_OBJECT( tmp_class_creation_1__metaclass ); tmp_source_name_1 = tmp_class_creation_1__metaclass; tmp_res = PyObject_HasAttr( tmp_source_name_1, const_str_plain___prepare__ ); tmp_condition_result_8 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_8 == NUITKA_BOOL_TRUE ) { goto branch_yes_6; } else { goto branch_no_6; } branch_yes_6:; { PyObject *tmp_assign_source_30; PyObject *tmp_called_name_1; PyObject *tmp_source_name_2; PyObject *tmp_args_name_1; PyObject *tmp_tuple_element_1; PyObject *tmp_kw_name_1; CHECK_OBJECT( tmp_class_creation_1__metaclass ); tmp_source_name_2 = tmp_class_creation_1__metaclass; tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain___prepare__ ); if ( tmp_called_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 36; goto try_except_handler_7; } tmp_tuple_element_1 = const_str_plain_MethodDispatcher; tmp_args_name_1 = PyTuple_New( 2 ); Py_INCREF( tmp_tuple_element_1 ); PyTuple_SET_ITEM( tmp_args_name_1, 0, tmp_tuple_element_1 ); CHECK_OBJECT( tmp_class_creation_1__bases ); tmp_tuple_element_1 = tmp_class_creation_1__bases; Py_INCREF( tmp_tuple_element_1 ); PyTuple_SET_ITEM( tmp_args_name_1, 1, tmp_tuple_element_1 ); CHECK_OBJECT( tmp_class_creation_1__class_decl_dict ); tmp_kw_name_1 = tmp_class_creation_1__class_decl_dict; frame_ab571a708edcc112d2c139f396a38221->m_frame.f_lineno = 36; tmp_assign_source_30 = CALL_FUNCTION( tmp_called_name_1, tmp_args_name_1, tmp_kw_name_1 ); Py_DECREF( tmp_called_name_1 ); Py_DECREF( tmp_args_name_1 ); if ( tmp_assign_source_30 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 36; goto try_except_handler_7; } assert( tmp_class_creation_1__prepared == NULL ); tmp_class_creation_1__prepared = tmp_assign_source_30; } { nuitka_bool tmp_condition_result_9; PyObject *tmp_operand_name_3; PyObject *tmp_source_name_3; CHECK_OBJECT( tmp_class_creation_1__prepared ); tmp_source_name_3 = tmp_class_creation_1__prepared; tmp_res = PyObject_HasAttr( tmp_source_name_3, const_str_plain___getitem__ ); tmp_operand_name_3 = ( tmp_res != 0 ) ? Py_True : Py_False; tmp_res = CHECK_IF_TRUE( tmp_operand_name_3 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 36; goto try_except_handler_7; } tmp_condition_result_9 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_9 == NUITKA_BOOL_TRUE ) { goto branch_yes_7; } else { goto branch_no_7; } branch_yes_7:; { PyObject *tmp_raise_type_2; PyObject *tmp_raise_value_1; PyObject *tmp_left_name_1; PyObject *tmp_right_name_1; PyObject *tmp_tuple_element_2; PyObject *tmp_getattr_target_1; PyObject *tmp_getattr_attr_1; PyObject *tmp_getattr_default_1; PyObject *tmp_source_name_4; PyObject *tmp_type_arg_2; tmp_raise_type_2 = PyExc_TypeError; tmp_left_name_1 = const_str_digest_75fd71b1edada749c2ef7ac810062295; CHECK_OBJECT( tmp_class_creation_1__metaclass ); tmp_getattr_target_1 = tmp_class_creation_1__metaclass; tmp_getattr_attr_1 = const_str_plain___name__; tmp_getattr_default_1 = const_str_angle_metaclass; tmp_tuple_element_2 = BUILTIN_GETATTR( tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1 ); if ( tmp_tuple_element_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 36; goto try_except_handler_7; } tmp_right_name_1 = PyTuple_New( 2 ); PyTuple_SET_ITEM( tmp_right_name_1, 0, tmp_tuple_element_2 ); CHECK_OBJECT( tmp_class_creation_1__prepared ); tmp_type_arg_2 = tmp_class_creation_1__prepared; tmp_source_name_4 = BUILTIN_TYPE1( tmp_type_arg_2 ); assert( !(tmp_source_name_4 == NULL) ); tmp_tuple_element_2 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain___name__ ); Py_DECREF( tmp_source_name_4 ); if ( tmp_tuple_element_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_right_name_1 ); exception_lineno = 36; goto try_except_handler_7; } PyTuple_SET_ITEM( tmp_right_name_1, 1, tmp_tuple_element_2 ); tmp_raise_value_1 = BINARY_OPERATION_REMAINDER( tmp_left_name_1, tmp_right_name_1 ); Py_DECREF( tmp_right_name_1 ); if ( tmp_raise_value_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 36; goto try_except_handler_7; } exception_type = tmp_raise_type_2; Py_INCREF( tmp_raise_type_2 ); exception_value = tmp_raise_value_1; exception_lineno = 36; RAISE_EXCEPTION_IMPLICIT( &exception_type, &exception_value, &exception_tb ); goto try_except_handler_7; } branch_no_7:; } goto branch_end_6; branch_no_6:; { PyObject *tmp_assign_source_31; tmp_assign_source_31 = PyDict_New(); assert( tmp_class_creation_1__prepared == NULL ); tmp_class_creation_1__prepared = tmp_assign_source_31; } branch_end_6:; } { PyObject *tmp_assign_source_32; { PyObject *tmp_set_locals_1; CHECK_OBJECT( tmp_class_creation_1__prepared ); tmp_set_locals_1 = tmp_class_creation_1__prepared; locals_html5lib$_utils_36 = tmp_set_locals_1; Py_INCREF( tmp_set_locals_1 ); } { // Tried code: { // Tried code: { tmp_dictset_value = const_str_digest_d1a10abdfe2f776a3991fe5869130af4; tmp_res = PyObject_SetItem( locals_html5lib$_utils_36, const_str_plain___module__, tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 36; goto try_except_handler_9; } } { tmp_dictset_value = const_str_digest_1114ae96138450b599b96330eb99af15; tmp_res = PyObject_SetItem( locals_html5lib$_utils_36, const_str_plain___doc__, tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 36; goto try_except_handler_9; } } { tmp_dictset_value = const_str_plain_MethodDispatcher; tmp_res = PyObject_SetItem( locals_html5lib$_utils_36, const_str_plain___qualname__, tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 36; goto try_except_handler_9; } } MAKE_OR_REUSE_FRAME( cache_frame_ac43189c05cfa8791a277275fef3b625_2, codeobj_ac43189c05cfa8791a277275fef3b625, module_html5lib$_utils, sizeof(void *) ); frame_ac43189c05cfa8791a277275fef3b625_2 = cache_frame_ac43189c05cfa8791a277275fef3b625_2; // Push the new frame as the currently active one. pushFrameStack( frame_ac43189c05cfa8791a277275fef3b625_2 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_ac43189c05cfa8791a277275fef3b625_2 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_defaults_1; tmp_defaults_1 = const_tuple_tuple_empty_tuple; Py_INCREF( tmp_defaults_1 ); tmp_dictset_value = MAKE_FUNCTION_html5lib$_utils$$$function_1___init__( tmp_defaults_1 ); tmp_res = PyObject_SetItem( locals_html5lib$_utils_36, const_str_plain___init__, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 49; type_description_2 = "o"; goto frame_exception_exit_2; } } { tmp_dictset_value = MAKE_FUNCTION_html5lib$_utils$$$function_2___getitem__( ); tmp_res = PyObject_SetItem( locals_html5lib$_utils_36, const_str_plain___getitem__, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 64; type_description_2 = "o"; goto frame_exception_exit_2; } } #if 0 RESTORE_FRAME_EXCEPTION( frame_ac43189c05cfa8791a277275fef3b625_2 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_exception_exit_2:; #if 0 RESTORE_FRAME_EXCEPTION( frame_ac43189c05cfa8791a277275fef3b625_2 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_ac43189c05cfa8791a277275fef3b625_2, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_ac43189c05cfa8791a277275fef3b625_2->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_ac43189c05cfa8791a277275fef3b625_2, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_ac43189c05cfa8791a277275fef3b625_2, type_description_2, outline_0_var___class__ ); // Release cached frame. if ( frame_ac43189c05cfa8791a277275fef3b625_2 == cache_frame_ac43189c05cfa8791a277275fef3b625_2 ) { Py_DECREF( frame_ac43189c05cfa8791a277275fef3b625_2 ); } cache_frame_ac43189c05cfa8791a277275fef3b625_2 = NULL; assertFrameObject( frame_ac43189c05cfa8791a277275fef3b625_2 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto nested_frame_exit_1; frame_no_exception_1:; goto skip_nested_handling_1; nested_frame_exit_1:; goto try_except_handler_9; skip_nested_handling_1:; { nuitka_bool tmp_condition_result_10; PyObject *tmp_compexpr_left_3; PyObject *tmp_compexpr_right_3; CHECK_OBJECT( tmp_class_creation_1__bases ); tmp_compexpr_left_3 = tmp_class_creation_1__bases; tmp_compexpr_right_3 = const_tuple_type_dict_tuple; tmp_res = RICH_COMPARE_BOOL_NE( tmp_compexpr_left_3, tmp_compexpr_right_3 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 36; goto try_except_handler_9; } tmp_condition_result_10 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_10 == NUITKA_BOOL_TRUE ) { goto branch_yes_8; } else { goto branch_no_8; } branch_yes_8:; { tmp_dictset_value = const_tuple_type_dict_tuple; tmp_res = PyObject_SetItem( locals_html5lib$_utils_36, const_str_plain___orig_bases__, tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 36; goto try_except_handler_9; } } branch_no_8:; } { PyObject *tmp_assign_source_33; PyObject *tmp_called_name_2; PyObject *tmp_args_name_2; PyObject *tmp_tuple_element_3; PyObject *tmp_kw_name_2; CHECK_OBJECT( tmp_class_creation_1__metaclass ); tmp_called_name_2 = tmp_class_creation_1__metaclass; tmp_tuple_element_3 = const_str_plain_MethodDispatcher; tmp_args_name_2 = PyTuple_New( 3 ); Py_INCREF( tmp_tuple_element_3 ); PyTuple_SET_ITEM( tmp_args_name_2, 0, tmp_tuple_element_3 ); CHECK_OBJECT( tmp_class_creation_1__bases ); tmp_tuple_element_3 = tmp_class_creation_1__bases; Py_INCREF( tmp_tuple_element_3 ); PyTuple_SET_ITEM( tmp_args_name_2, 1, tmp_tuple_element_3 ); tmp_tuple_element_3 = locals_html5lib$_utils_36; Py_INCREF( tmp_tuple_element_3 ); PyTuple_SET_ITEM( tmp_args_name_2, 2, tmp_tuple_element_3 ); CHECK_OBJECT( tmp_class_creation_1__class_decl_dict ); tmp_kw_name_2 = tmp_class_creation_1__class_decl_dict; frame_ab571a708edcc112d2c139f396a38221->m_frame.f_lineno = 36; tmp_assign_source_33 = CALL_FUNCTION( tmp_called_name_2, tmp_args_name_2, tmp_kw_name_2 ); Py_DECREF( tmp_args_name_2 ); if ( tmp_assign_source_33 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 36; goto try_except_handler_9; } assert( outline_0_var___class__ == NULL ); outline_0_var___class__ = tmp_assign_source_33; } { CHECK_OBJECT( outline_0_var___class__ ); tmp_assign_source_32 = outline_0_var___class__; Py_INCREF( tmp_assign_source_32 ); goto try_return_handler_9; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( html5lib$_utils ); return MOD_RETURN_VALUE( NULL ); // Return handler code: try_return_handler_9:; { Py_DECREF( locals_html5lib$_utils_36 ); locals_html5lib$_utils_36 = NULL; } { goto try_return_handler_8; } // Exception handler code: try_except_handler_9:; 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_DECREF( locals_html5lib$_utils_36 ); locals_html5lib$_utils_36 = 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 try_except_handler_8; } // End of try: } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( html5lib$_utils ); return MOD_RETURN_VALUE( NULL ); // Return handler code: try_return_handler_8:; { CHECK_OBJECT( (PyObject *)outline_0_var___class__ ); Py_DECREF( outline_0_var___class__ ); outline_0_var___class__ = NULL; } { goto outline_result_3; } // Exception handler code: try_except_handler_8:; exception_keeper_type_8 = exception_type; exception_keeper_value_8 = exception_value; exception_keeper_tb_8 = exception_tb; exception_keeper_lineno_8 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { // Re-raise. exception_type = exception_keeper_type_8; exception_value = exception_keeper_value_8; exception_tb = exception_keeper_tb_8; exception_lineno = exception_keeper_lineno_8; goto outline_exception_1; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( html5lib$_utils ); return MOD_RETURN_VALUE( NULL ); outline_exception_1:; exception_lineno = 36; goto try_except_handler_7; outline_result_3:; UPDATE_STRING_DICT1( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain_MethodDispatcher, tmp_assign_source_32 ); } goto try_end_5; // Exception handler code: try_except_handler_7:; exception_keeper_type_9 = exception_type; exception_keeper_value_9 = exception_value; exception_keeper_tb_9 = exception_tb; exception_keeper_lineno_9 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( tmp_class_creation_1__bases ); tmp_class_creation_1__bases = NULL; } { Py_XDECREF( tmp_class_creation_1__class_decl_dict ); tmp_class_creation_1__class_decl_dict = NULL; } { Py_XDECREF( tmp_class_creation_1__metaclass ); tmp_class_creation_1__metaclass = NULL; } { Py_XDECREF( tmp_class_creation_1__prepared ); tmp_class_creation_1__prepared = NULL; } { // Re-raise. exception_type = exception_keeper_type_9; exception_value = exception_keeper_value_9; exception_tb = exception_keeper_tb_9; exception_lineno = exception_keeper_lineno_9; goto frame_exception_exit_1; } // End of try: try_end_5:; } // Restore frame exception if necessary. #if 0 RESTORE_FRAME_EXCEPTION( frame_ab571a708edcc112d2c139f396a38221 ); #endif popFrameStack(); assertFrameObject( frame_ab571a708edcc112d2c139f396a38221 ); goto frame_no_exception_2; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_ab571a708edcc112d2c139f396a38221 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_ab571a708edcc112d2c139f396a38221, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_ab571a708edcc112d2c139f396a38221->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_ab571a708edcc112d2c139f396a38221, exception_lineno ); } // Put the previous frame back on top. popFrameStack(); // Return the error. goto module_exception_exit; frame_no_exception_2:; { CHECK_OBJECT( (PyObject *)tmp_class_creation_1__bases ); Py_DECREF( tmp_class_creation_1__bases ); tmp_class_creation_1__bases = NULL; } { CHECK_OBJECT( (PyObject *)tmp_class_creation_1__class_decl_dict ); Py_DECREF( tmp_class_creation_1__class_decl_dict ); tmp_class_creation_1__class_decl_dict = NULL; } { CHECK_OBJECT( (PyObject *)tmp_class_creation_1__metaclass ); Py_DECREF( tmp_class_creation_1__metaclass ); tmp_class_creation_1__metaclass = NULL; } { CHECK_OBJECT( (PyObject *)tmp_class_creation_1__prepared ); Py_DECREF( tmp_class_creation_1__prepared ); tmp_class_creation_1__prepared = NULL; } { PyObject *tmp_assign_source_34; tmp_assign_source_34 = MAKE_FUNCTION_html5lib$_utils$$$function_3_isSurrogatePair( ); UPDATE_STRING_DICT1( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain_isSurrogatePair, tmp_assign_source_34 ); } { PyObject *tmp_assign_source_35; tmp_assign_source_35 = MAKE_FUNCTION_html5lib$_utils$$$function_4_surrogatePairToCodepoint( ); UPDATE_STRING_DICT1( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain_surrogatePairToCodepoint, tmp_assign_source_35 ); } { PyObject *tmp_assign_source_36; tmp_assign_source_36 = MAKE_FUNCTION_html5lib$_utils$$$function_5_moduleFactoryFactory( ); UPDATE_STRING_DICT1( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain_moduleFactoryFactory, tmp_assign_source_36 ); } { PyObject *tmp_assign_source_37; tmp_assign_source_37 = MAKE_FUNCTION_html5lib$_utils$$$function_6_memoize( ); UPDATE_STRING_DICT1( moduledict_html5lib$_utils, (Nuitka_StringObject *)const_str_plain_memoize, tmp_assign_source_37 ); } return MOD_RETURN_VALUE( module_html5lib$_utils ); module_exception_exit: RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return MOD_RETURN_VALUE( NULL ); }