/* Generated code for Python source for module 'urllib3.util.timeout' * 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_urllib3$util$timeout 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_urllib3$util$timeout; PyDictObject *moduledict_urllib3$util$timeout; /* The module constants used, if any. */ static PyObject *const_str_digest_a990303886ccddcc19dabf1dd0dd5498; extern PyObject *const_str_plain_metaclass; extern PyObject *const_str_plain___name__; extern PyObject *const_tuple_str_plain___class___tuple; extern PyObject *const_str_angle_metaclass; extern PyObject *const_str_plain_object; extern PyObject *const_str_plain___file__; extern PyObject *const_str_plain__GLOBAL_DEFAULT_TIMEOUT; static PyObject *const_str_digest_64e15dbee6c4146dbe7421c492ac7ba5; static PyObject *const_str_digest_88850a00e49ce690c25047e50dcfce54; extern PyObject *const_str_plain_max; extern PyObject *const_str_plain_total; extern PyObject *const_str_plain_bool; static PyObject *const_str_digest_d87c0d5d063fdf7b4b4db434df1ec2e3; static PyObject *const_tuple_str_plain_cls_str_plain_value_str_plain_name_tuple; static PyObject *const_str_digest_95153bcb73e0c026788c0de3a9407b4f; extern PyObject *const_str_plain_DEFAULT_TIMEOUT; static PyObject *const_str_plain_get_connect_duration; extern PyObject *const_str_plain_classmethod; static PyObject *const_tuple_str_digest_95153bcb73e0c026788c0de3a9407b4f_tuple; extern PyObject *const_str_plain_cls; extern PyObject *const_str_plain_read; extern PyObject *const_str_plain_connect_timeout; static PyObject *const_str_digest_de3740d62fd80820559565b4f4c53af9; static PyObject *const_str_digest_cfcbb8b2e672157769bd403fa94854d0; extern PyObject *const_str_plain_connect; extern PyObject *const_str_plain_absolute_import; extern PyObject *const_str_plain___doc__; extern PyObject *const_str_plain_timeout; static PyObject *const_str_digest_f7b67c6705a16b8d911cf345acb733d8; extern PyObject *const_str_plain___orig_bases__; extern PyObject *const_str_plain_time; extern PyObject *const_str_plain___qualname__; extern PyObject *const_str_plain_clone; static PyObject *const_str_digest_acf717e616cfb45a8c383d29821dca48; extern PyObject *const_str_plain_min; extern PyObject *const_str_plain_value; extern PyObject *const_tuple_str_plain_self_tuple; static PyObject *const_str_digest_26f721d77f7e03a7561fccb69d4eb1a4; static PyObject *const_str_digest_214463a6452030df2b0845af6bafa357; extern PyObject *const_str_plain__read; static PyObject *const_str_digest_2f1dd0fe2e3f6f70224ea80af8bf458a; extern PyObject *const_tuple_empty; extern PyObject *const_str_plain__Default; extern PyObject *const_str_plain_start_connect; extern PyObject *const_str_plain_name; extern PyObject *const_str_plain_TimeoutStateError; static PyObject *const_tuple_str_plain_cls_str_plain_timeout_tuple; extern PyObject *const_str_plain_exceptions; extern PyObject *const_str_plain_read_timeout; static PyObject *const_tuple_str_digest_b6f4a8f71fe9ce5f9173564ff1edc89c_tuple; extern PyObject *const_tuple_str_plain__GLOBAL_DEFAULT_TIMEOUT_tuple; static PyObject *const_str_digest_450defc94378d179d797255f208f6f07; extern PyObject *const_str_plain___getitem__; static PyObject *const_str_digest_a2b9211444a2d47df9bfa67db6d202fd; static PyObject *const_str_digest_a9eab5f6a940c885b2cc9facaf38d440; extern PyObject *const_int_0; static PyObject *const_str_digest_02420e0e7893333998c7b371379c25fc; static PyObject *const_str_digest_76c1dcfcb96797006a5dce25d4faddbb; extern PyObject *const_str_plain_Timeout; extern PyObject *const_str_digest_75fd71b1edada749c2ef7ac810062295; static PyObject *const_str_digest_7fa89b0c3695d68f9a879df68f3328c9; extern PyObject *const_str_plain_type; extern PyObject *const_str_plain__connect; extern PyObject *const_str_plain_monotonic; static PyObject *const_tuple_fc2cf7f0fd082347583a3ba7b55239dd_tuple; extern PyObject *const_str_plain___cached__; extern PyObject *const_tuple_type_TypeError_type_ValueError_tuple; static PyObject *const_str_digest_9ef4e8ec87d851e2346706ba2658809b; extern PyObject *const_str_plain___class__; static PyObject *const_str_digest_d0928c9302966cb6030b0c893055e417; static PyObject *const_str_plain__start_connect; extern PyObject *const_tuple_type_object_tuple; extern PyObject *const_str_plain___module__; static PyObject *const_str_digest_b00f79e397dfa9e9c820c1e475aab761; extern PyObject *const_str_plain___str__; static PyObject *const_tuple_str_plain_TimeoutStateError_tuple; extern PyObject *const_str_plain_socket; static PyObject *const_str_plain__validate_timeout; static PyObject *const_str_digest_56c1d76d6fbf08b3cb8df1914efda274; extern PyObject *const_str_plain___prepare__; extern PyObject *const_str_plain___init__; extern PyObject *const_str_plain_self; extern PyObject *const_str_plain_current_time; static PyObject *const_str_digest_b6f4a8f71fe9ce5f9173564ff1edc89c; extern PyObject *const_str_digest_a82603375214fa180234243f5e1e4301; extern PyObject *const_str_plain_from_float; static PyObject *const_str_digest_1f0a7be0eb223c3fb339f4f8d89c76c4; static PyObject *const_str_digest_c05111021bf92e808b9d0f26ef51219e; extern PyObject *const_int_pos_2; extern PyObject *const_str_plain_property; static PyObject *module_filename_obj; static bool constants_created = false; static void createModuleConstants( void ) { const_str_digest_a990303886ccddcc19dabf1dd0dd5498 = UNSTREAM_STRING( &constant_bin[ 1527533 ], 15, 0 ); const_str_digest_64e15dbee6c4146dbe7421c492ac7ba5 = UNSTREAM_STRING( &constant_bin[ 1527548 ], 68, 0 ); const_str_digest_88850a00e49ce690c25047e50dcfce54 = UNSTREAM_STRING( &constant_bin[ 1527616 ], 508, 0 ); const_str_digest_d87c0d5d063fdf7b4b4db434df1ec2e3 = UNSTREAM_STRING( &constant_bin[ 1528124 ], 196, 0 ); const_tuple_str_plain_cls_str_plain_value_str_plain_name_tuple = PyTuple_New( 3 ); PyTuple_SET_ITEM( const_tuple_str_plain_cls_str_plain_value_str_plain_name_tuple, 0, const_str_plain_cls ); Py_INCREF( const_str_plain_cls ); PyTuple_SET_ITEM( const_tuple_str_plain_cls_str_plain_value_str_plain_name_tuple, 1, const_str_plain_value ); Py_INCREF( const_str_plain_value ); PyTuple_SET_ITEM( const_tuple_str_plain_cls_str_plain_value_str_plain_name_tuple, 2, const_str_plain_name ); Py_INCREF( const_str_plain_name ); const_str_digest_95153bcb73e0c026788c0de3a9407b4f = UNSTREAM_STRING( &constant_bin[ 1528320 ], 58, 0 ); const_str_plain_get_connect_duration = UNSTREAM_STRING( &constant_bin[ 1528378 ], 20, 1 ); const_tuple_str_digest_95153bcb73e0c026788c0de3a9407b4f_tuple = PyTuple_New( 1 ); PyTuple_SET_ITEM( const_tuple_str_digest_95153bcb73e0c026788c0de3a9407b4f_tuple, 0, const_str_digest_95153bcb73e0c026788c0de3a9407b4f ); Py_INCREF( const_str_digest_95153bcb73e0c026788c0de3a9407b4f ); const_str_digest_de3740d62fd80820559565b4f4c53af9 = UNSTREAM_STRING( &constant_bin[ 1528398 ], 25, 0 ); const_str_digest_cfcbb8b2e672157769bd403fa94854d0 = UNSTREAM_STRING( &constant_bin[ 1528423 ], 23, 0 ); const_str_digest_f7b67c6705a16b8d911cf345acb733d8 = UNSTREAM_STRING( &constant_bin[ 1528446 ], 16, 0 ); const_str_digest_acf717e616cfb45a8c383d29821dca48 = UNSTREAM_STRING( &constant_bin[ 1528462 ], 33, 0 ); const_str_digest_26f721d77f7e03a7561fccb69d4eb1a4 = UNSTREAM_STRING( &constant_bin[ 1528495 ], 21, 0 ); const_str_digest_214463a6452030df2b0845af6bafa357 = UNSTREAM_STRING( &constant_bin[ 1528516 ], 669, 0 ); const_str_digest_2f1dd0fe2e3f6f70224ea80af8bf458a = UNSTREAM_STRING( &constant_bin[ 1529185 ], 13, 0 ); const_tuple_str_plain_cls_str_plain_timeout_tuple = PyTuple_New( 2 ); PyTuple_SET_ITEM( const_tuple_str_plain_cls_str_plain_timeout_tuple, 0, const_str_plain_cls ); Py_INCREF( const_str_plain_cls ); PyTuple_SET_ITEM( const_tuple_str_plain_cls_str_plain_timeout_tuple, 1, const_str_plain_timeout ); Py_INCREF( const_str_plain_timeout ); const_tuple_str_digest_b6f4a8f71fe9ce5f9173564ff1edc89c_tuple = PyTuple_New( 1 ); const_str_digest_b6f4a8f71fe9ce5f9173564ff1edc89c = UNSTREAM_STRING( &constant_bin[ 1529198 ], 39, 0 ); PyTuple_SET_ITEM( const_tuple_str_digest_b6f4a8f71fe9ce5f9173564ff1edc89c_tuple, 0, const_str_digest_b6f4a8f71fe9ce5f9173564ff1edc89c ); Py_INCREF( const_str_digest_b6f4a8f71fe9ce5f9173564ff1edc89c ); const_str_digest_450defc94378d179d797255f208f6f07 = UNSTREAM_STRING( &constant_bin[ 1529237 ], 20, 0 ); const_str_digest_a2b9211444a2d47df9bfa67db6d202fd = UNSTREAM_STRING( &constant_bin[ 1529257 ], 100, 0 ); const_str_digest_a9eab5f6a940c885b2cc9facaf38d440 = UNSTREAM_STRING( &constant_bin[ 1529357 ], 28, 0 ); const_str_digest_02420e0e7893333998c7b371379c25fc = UNSTREAM_STRING( &constant_bin[ 1529385 ], 290, 0 ); const_str_digest_76c1dcfcb96797006a5dce25d4faddbb = UNSTREAM_STRING( &constant_bin[ 1529675 ], 436, 0 ); const_str_digest_7fa89b0c3695d68f9a879df68f3328c9 = UNSTREAM_STRING( &constant_bin[ 1530111 ], 3026, 0 ); const_tuple_fc2cf7f0fd082347583a3ba7b55239dd_tuple = PyTuple_New( 4 ); PyTuple_SET_ITEM( const_tuple_fc2cf7f0fd082347583a3ba7b55239dd_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self ); PyTuple_SET_ITEM( const_tuple_fc2cf7f0fd082347583a3ba7b55239dd_tuple, 1, const_str_plain_total ); Py_INCREF( const_str_plain_total ); PyTuple_SET_ITEM( const_tuple_fc2cf7f0fd082347583a3ba7b55239dd_tuple, 2, const_str_plain_connect ); Py_INCREF( const_str_plain_connect ); PyTuple_SET_ITEM( const_tuple_fc2cf7f0fd082347583a3ba7b55239dd_tuple, 3, const_str_plain_read ); Py_INCREF( const_str_plain_read ); const_str_digest_9ef4e8ec87d851e2346706ba2658809b = UNSTREAM_STRING( &constant_bin[ 1533137 ], 281, 0 ); const_str_digest_d0928c9302966cb6030b0c893055e417 = UNSTREAM_STRING( &constant_bin[ 1533418 ], 62, 0 ); const_str_plain__start_connect = UNSTREAM_STRING( &constant_bin[ 1533480 ], 14, 1 ); const_str_digest_b00f79e397dfa9e9c820c1e475aab761 = UNSTREAM_STRING( &constant_bin[ 1533494 ], 261, 0 ); const_tuple_str_plain_TimeoutStateError_tuple = PyTuple_New( 1 ); PyTuple_SET_ITEM( const_tuple_str_plain_TimeoutStateError_tuple, 0, const_str_plain_TimeoutStateError ); Py_INCREF( const_str_plain_TimeoutStateError ); const_str_plain__validate_timeout = UNSTREAM_STRING( &constant_bin[ 1528406 ], 17, 1 ); const_str_digest_56c1d76d6fbf08b3cb8df1914efda274 = UNSTREAM_STRING( &constant_bin[ 1533755 ], 29, 0 ); const_str_digest_1f0a7be0eb223c3fb339f4f8d89c76c4 = UNSTREAM_STRING( &constant_bin[ 1533784 ], 18, 0 ); const_str_digest_c05111021bf92e808b9d0f26ef51219e = UNSTREAM_STRING( &constant_bin[ 1533802 ], 56, 0 ); constants_created = true; } #ifndef __NUITKA_NO_ASSERT__ void checkModuleConstants_urllib3$util$timeout( void ) { // The module may not have been used at all. if (constants_created == false) return; } #endif // The module code objects. static PyCodeObject *codeobj_8d4f12629a81762480d86a2a0922bdda; static PyCodeObject *codeobj_b09f89d82e2883b25b36a412372dbb88; static PyCodeObject *codeobj_b817300c84505b89ee9ffaf8e12280b2; static PyCodeObject *codeobj_283c9dd1900c7bd72f80fa1c14a79f4f; static PyCodeObject *codeobj_898bc0bde673023c3458903acad17b8a; static PyCodeObject *codeobj_800a344eaa21c10d950dce896c3bced8; static PyCodeObject *codeobj_09a8c85ee1612f24ffdb5ff35edef0ad; static PyCodeObject *codeobj_7715362b20b7e0493e053a1169ee3e57; static PyCodeObject *codeobj_bd4c3e735dfeed887b33dd9fdada5999; static PyCodeObject *codeobj_28760c47bdea37a2ae5d909f8daa47bf; static PyCodeObject *codeobj_83f5e9353e85ec3675b62a6ef941c9d6; static void createModuleCodeObjects(void) { module_filename_obj = const_str_digest_c05111021bf92e808b9d0f26ef51219e; codeobj_8d4f12629a81762480d86a2a0922bdda = MAKE_CODEOBJ( module_filename_obj, const_str_digest_56c1d76d6fbf08b3cb8df1914efda274, 1, const_tuple_empty, 0, 0, CO_NOFREE ); codeobj_b09f89d82e2883b25b36a412372dbb88 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_Timeout, 18, const_tuple_str_plain___class___tuple, 0, 0, CO_NOFREE ); codeobj_b817300c84505b89ee9ffaf8e12280b2 = MAKE_CODEOBJ( module_filename_obj, const_str_plain___init__, 93, const_tuple_fc2cf7f0fd082347583a3ba7b55239dd_tuple, 4, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_283c9dd1900c7bd72f80fa1c14a79f4f = MAKE_CODEOBJ( module_filename_obj, const_str_plain___str__, 99, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_898bc0bde673023c3458903acad17b8a = MAKE_CODEOBJ( module_filename_obj, const_str_plain__validate_timeout, 103, const_tuple_str_plain_cls_str_plain_value_str_plain_name_tuple, 3, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_800a344eaa21c10d950dce896c3bced8 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_clone, 156, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_09a8c85ee1612f24ffdb5ff35edef0ad = MAKE_CODEOBJ( module_filename_obj, const_str_plain_connect_timeout, 195, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_7715362b20b7e0493e053a1169ee3e57 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_from_float, 140, const_tuple_str_plain_cls_str_plain_timeout_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_bd4c3e735dfeed887b33dd9fdada5999 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_get_connect_duration, 182, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_28760c47bdea37a2ae5d909f8daa47bf = MAKE_CODEOBJ( module_filename_obj, const_str_plain_read_timeout, 213, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_83f5e9353e85ec3675b62a6ef941c9d6 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_start_connect, 171, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); } // The module function declarations. NUITKA_CROSS_MODULE PyObject *impl___internal__$$$function_1__mro_entries_conversion( PyObject **python_pars ); static PyObject *MAKE_FUNCTION_urllib3$util$timeout$$$function_1___init__( PyObject *defaults ); static PyObject *MAKE_FUNCTION_urllib3$util$timeout$$$function_2___str__( ); static PyObject *MAKE_FUNCTION_urllib3$util$timeout$$$function_3__validate_timeout( ); static PyObject *MAKE_FUNCTION_urllib3$util$timeout$$$function_4_from_float( ); static PyObject *MAKE_FUNCTION_urllib3$util$timeout$$$function_5_clone( ); static PyObject *MAKE_FUNCTION_urllib3$util$timeout$$$function_6_start_connect( ); static PyObject *MAKE_FUNCTION_urllib3$util$timeout$$$function_7_get_connect_duration( ); static PyObject *MAKE_FUNCTION_urllib3$util$timeout$$$function_8_connect_timeout( ); static PyObject *MAKE_FUNCTION_urllib3$util$timeout$$$function_9_read_timeout( ); // The module function definitions. static PyObject *impl_urllib3$util$timeout$$$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_total = python_pars[ 1 ]; PyObject *par_connect = python_pars[ 2 ]; PyObject *par_read = python_pars[ 3 ]; struct Nuitka_FrameObject *frame_b817300c84505b89ee9ffaf8e12280b2; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; bool tmp_result; static struct Nuitka_FrameObject *cache_frame_b817300c84505b89ee9ffaf8e12280b2 = 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_b817300c84505b89ee9ffaf8e12280b2, codeobj_b817300c84505b89ee9ffaf8e12280b2, module_urllib3$util$timeout, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) ); frame_b817300c84505b89ee9ffaf8e12280b2 = cache_frame_b817300c84505b89ee9ffaf8e12280b2; // Push the new frame as the currently active one. pushFrameStack( frame_b817300c84505b89ee9ffaf8e12280b2 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_b817300c84505b89ee9ffaf8e12280b2 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_assattr_name_1; PyObject *tmp_called_name_1; PyObject *tmp_source_name_1; PyObject *tmp_args_element_name_1; PyObject *tmp_args_element_name_2; PyObject *tmp_assattr_target_1; CHECK_OBJECT( par_self ); tmp_source_name_1 = par_self; tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain__validate_timeout ); if ( tmp_called_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 94; type_description_1 = "oooo"; goto frame_exception_exit_1; } if ( par_connect == 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", "connect" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 94; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_args_element_name_1 = par_connect; tmp_args_element_name_2 = const_str_plain_connect; frame_b817300c84505b89ee9ffaf8e12280b2->m_frame.f_lineno = 94; { PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_2 }; tmp_assattr_name_1 = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_1, call_args ); } Py_DECREF( tmp_called_name_1 ); if ( tmp_assattr_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 94; type_description_1 = "oooo"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_assattr_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 94; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_assattr_target_1 = par_self; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain__connect, tmp_assattr_name_1 ); Py_DECREF( tmp_assattr_name_1 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 94; type_description_1 = "oooo"; goto frame_exception_exit_1; } } { PyObject *tmp_assattr_name_2; PyObject *tmp_called_name_2; PyObject *tmp_source_name_2; PyObject *tmp_args_element_name_3; PyObject *tmp_args_element_name_4; PyObject *tmp_assattr_target_2; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 95; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_source_name_2 = par_self; tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain__validate_timeout ); if ( tmp_called_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 95; type_description_1 = "oooo"; goto frame_exception_exit_1; } if ( par_read == 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", "read" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 95; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_args_element_name_3 = par_read; tmp_args_element_name_4 = const_str_plain_read; frame_b817300c84505b89ee9ffaf8e12280b2->m_frame.f_lineno = 95; { PyObject *call_args[] = { tmp_args_element_name_3, tmp_args_element_name_4 }; tmp_assattr_name_2 = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_2, call_args ); } Py_DECREF( tmp_called_name_2 ); if ( tmp_assattr_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 95; type_description_1 = "oooo"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_assattr_name_2 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 95; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_assattr_target_2 = par_self; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_2, const_str_plain__read, tmp_assattr_name_2 ); Py_DECREF( tmp_assattr_name_2 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 95; type_description_1 = "oooo"; goto frame_exception_exit_1; } } { PyObject *tmp_assattr_name_3; PyObject *tmp_called_name_3; PyObject *tmp_source_name_3; PyObject *tmp_args_element_name_5; PyObject *tmp_args_element_name_6; PyObject *tmp_assattr_target_3; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 96; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_source_name_3 = par_self; tmp_called_name_3 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain__validate_timeout ); if ( tmp_called_name_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 96; type_description_1 = "oooo"; goto frame_exception_exit_1; } if ( par_total == 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", "total" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 96; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_args_element_name_5 = par_total; tmp_args_element_name_6 = const_str_plain_total; frame_b817300c84505b89ee9ffaf8e12280b2->m_frame.f_lineno = 96; { PyObject *call_args[] = { tmp_args_element_name_5, tmp_args_element_name_6 }; tmp_assattr_name_3 = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_3, call_args ); } Py_DECREF( tmp_called_name_3 ); if ( tmp_assattr_name_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 96; type_description_1 = "oooo"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_assattr_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 = 96; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_assattr_target_3 = par_self; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_3, const_str_plain_total, tmp_assattr_name_3 ); Py_DECREF( tmp_assattr_name_3 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 96; type_description_1 = "oooo"; goto frame_exception_exit_1; } } { PyObject *tmp_assattr_name_4; PyObject *tmp_assattr_target_4; tmp_assattr_name_4 = 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 = 97; type_description_1 = "oooo"; goto frame_exception_exit_1; } tmp_assattr_target_4 = par_self; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_4, const_str_plain__start_connect, tmp_assattr_name_4 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 97; type_description_1 = "oooo"; goto frame_exception_exit_1; } } #if 0 RESTORE_FRAME_EXCEPTION( frame_b817300c84505b89ee9ffaf8e12280b2 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_b817300c84505b89ee9ffaf8e12280b2 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_b817300c84505b89ee9ffaf8e12280b2, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_b817300c84505b89ee9ffaf8e12280b2->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_b817300c84505b89ee9ffaf8e12280b2, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_b817300c84505b89ee9ffaf8e12280b2, type_description_1, par_self, par_total, par_connect, par_read ); // Release cached frame. if ( frame_b817300c84505b89ee9ffaf8e12280b2 == cache_frame_b817300c84505b89ee9ffaf8e12280b2 ) { Py_DECREF( frame_b817300c84505b89ee9ffaf8e12280b2 ); } cache_frame_b817300c84505b89ee9ffaf8e12280b2 = NULL; assertFrameObject( frame_b817300c84505b89ee9ffaf8e12280b2 ); // 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( urllib3$util$timeout$$$function_1___init__ ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { Py_XDECREF( par_total ); par_total = NULL; } { Py_XDECREF( par_connect ); par_connect = NULL; } { Py_XDECREF( par_read ); par_read = 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_total ); par_total = NULL; } { Py_XDECREF( par_connect ); par_connect = NULL; } { Py_XDECREF( par_read ); par_read = 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( urllib3$util$timeout$$$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_urllib3$util$timeout$$$function_2___str__( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; struct Nuitka_FrameObject *frame_283c9dd1900c7bd72f80fa1c14a79f4f; 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_283c9dd1900c7bd72f80fa1c14a79f4f = 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_283c9dd1900c7bd72f80fa1c14a79f4f, codeobj_283c9dd1900c7bd72f80fa1c14a79f4f, module_urllib3$util$timeout, sizeof(void *) ); frame_283c9dd1900c7bd72f80fa1c14a79f4f = cache_frame_283c9dd1900c7bd72f80fa1c14a79f4f; // Push the new frame as the currently active one. pushFrameStack( frame_283c9dd1900c7bd72f80fa1c14a79f4f ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_283c9dd1900c7bd72f80fa1c14a79f4f ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_left_name_1; PyObject *tmp_right_name_1; PyObject *tmp_tuple_element_1; PyObject *tmp_source_name_1; PyObject *tmp_type_arg_1; PyObject *tmp_source_name_2; PyObject *tmp_source_name_3; PyObject *tmp_source_name_4; tmp_left_name_1 = const_str_digest_acf717e616cfb45a8c383d29821dca48; CHECK_OBJECT( par_self ); tmp_type_arg_1 = par_self; tmp_source_name_1 = BUILTIN_TYPE1( tmp_type_arg_1 ); assert( !(tmp_source_name_1 == NULL) ); tmp_tuple_element_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain___name__ ); Py_DECREF( tmp_source_name_1 ); if ( tmp_tuple_element_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 101; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_right_name_1 = PyTuple_New( 4 ); PyTuple_SET_ITEM( tmp_right_name_1, 0, tmp_tuple_element_1 ); if ( par_self == NULL ) { Py_DECREF( tmp_right_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 101; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_2 = par_self; tmp_tuple_element_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain__connect ); if ( tmp_tuple_element_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_right_name_1 ); exception_lineno = 101; type_description_1 = "o"; goto frame_exception_exit_1; } PyTuple_SET_ITEM( tmp_right_name_1, 1, tmp_tuple_element_1 ); if ( par_self == NULL ) { Py_DECREF( tmp_right_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 101; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_3 = par_self; tmp_tuple_element_1 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain__read ); if ( tmp_tuple_element_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_right_name_1 ); exception_lineno = 101; type_description_1 = "o"; goto frame_exception_exit_1; } PyTuple_SET_ITEM( tmp_right_name_1, 2, tmp_tuple_element_1 ); if ( par_self == NULL ) { Py_DECREF( tmp_right_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 101; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_4 = par_self; tmp_tuple_element_1 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_total ); if ( tmp_tuple_element_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_right_name_1 ); exception_lineno = 101; type_description_1 = "o"; goto frame_exception_exit_1; } PyTuple_SET_ITEM( tmp_right_name_1, 3, tmp_tuple_element_1 ); tmp_return_value = BINARY_OPERATION_REMAINDER( tmp_left_name_1, tmp_right_name_1 ); Py_DECREF( tmp_right_name_1 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 100; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_283c9dd1900c7bd72f80fa1c14a79f4f ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_283c9dd1900c7bd72f80fa1c14a79f4f ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_283c9dd1900c7bd72f80fa1c14a79f4f ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_283c9dd1900c7bd72f80fa1c14a79f4f, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_283c9dd1900c7bd72f80fa1c14a79f4f->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_283c9dd1900c7bd72f80fa1c14a79f4f, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_283c9dd1900c7bd72f80fa1c14a79f4f, type_description_1, par_self ); // Release cached frame. if ( frame_283c9dd1900c7bd72f80fa1c14a79f4f == cache_frame_283c9dd1900c7bd72f80fa1c14a79f4f ) { Py_DECREF( frame_283c9dd1900c7bd72f80fa1c14a79f4f ); } cache_frame_283c9dd1900c7bd72f80fa1c14a79f4f = NULL; assertFrameObject( frame_283c9dd1900c7bd72f80fa1c14a79f4f ); // 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( urllib3$util$timeout$$$function_2___str__ ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( urllib3$util$timeout$$$function_2___str__ ); 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_urllib3$util$timeout$$$function_3__validate_timeout( 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_cls = python_pars[ 0 ]; PyObject *par_value = python_pars[ 1 ]; PyObject *par_name = python_pars[ 2 ]; struct Nuitka_FrameObject *frame_898bc0bde673023c3458903acad17b8a; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; PyObject *tmp_return_value = NULL; int tmp_res; NUITKA_MAY_BE_UNUSED PyObject *tmp_unused; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; PyObject *exception_preserved_type_1; PyObject *exception_preserved_value_1; PyTracebackObject *exception_preserved_tb_1; 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; 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_preserved_type_2; PyObject *exception_preserved_value_2; PyTracebackObject *exception_preserved_tb_2; PyObject *exception_keeper_type_4; PyObject *exception_keeper_value_4; PyTracebackObject *exception_keeper_tb_4; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4; static struct Nuitka_FrameObject *cache_frame_898bc0bde673023c3458903acad17b8a = 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. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_898bc0bde673023c3458903acad17b8a, codeobj_898bc0bde673023c3458903acad17b8a, module_urllib3$util$timeout, sizeof(void *)+sizeof(void *)+sizeof(void *) ); frame_898bc0bde673023c3458903acad17b8a = cache_frame_898bc0bde673023c3458903acad17b8a; // Push the new frame as the currently active one. pushFrameStack( frame_898bc0bde673023c3458903acad17b8a ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_898bc0bde673023c3458903acad17b8a ) == 2 ); // Frame stack // Framed code: { nuitka_bool tmp_condition_result_1; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; PyObject *tmp_mvar_value_1; CHECK_OBJECT( par_value ); tmp_compexpr_left_1 = par_value; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain__Default ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain__Default ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "_Default" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 114; type_description_1 = "ooo"; goto frame_exception_exit_1; } tmp_compexpr_right_1 = tmp_mvar_value_1; tmp_condition_result_1 = ( tmp_compexpr_left_1 == tmp_compexpr_right_1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { PyObject *tmp_source_name_1; if ( par_cls == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "cls" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 115; type_description_1 = "ooo"; goto frame_exception_exit_1; } tmp_source_name_1 = par_cls; tmp_return_value = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_DEFAULT_TIMEOUT ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 115; type_description_1 = "ooo"; goto frame_exception_exit_1; } goto frame_return_exit_1; } branch_no_1:; } { nuitka_bool tmp_condition_result_2; int tmp_or_left_truth_1; nuitka_bool tmp_or_left_value_1; nuitka_bool tmp_or_right_value_1; PyObject *tmp_compexpr_left_2; PyObject *tmp_compexpr_right_2; PyObject *tmp_compexpr_left_3; PyObject *tmp_compexpr_right_3; PyObject *tmp_source_name_2; if ( par_value == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "value" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 117; type_description_1 = "ooo"; goto frame_exception_exit_1; } tmp_compexpr_left_2 = par_value; tmp_compexpr_right_2 = Py_None; tmp_or_left_value_1 = ( tmp_compexpr_left_2 == tmp_compexpr_right_2 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; tmp_or_left_truth_1 = tmp_or_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; if ( tmp_or_left_truth_1 == 1 ) { goto or_left_1; } else { goto or_right_1; } or_right_1:; if ( par_value == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "value" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 117; type_description_1 = "ooo"; goto frame_exception_exit_1; } tmp_compexpr_left_3 = par_value; if ( par_cls == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "cls" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 117; type_description_1 = "ooo"; goto frame_exception_exit_1; } tmp_source_name_2 = par_cls; tmp_compexpr_right_3 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_DEFAULT_TIMEOUT ); if ( tmp_compexpr_right_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 117; type_description_1 = "ooo"; goto frame_exception_exit_1; } tmp_or_right_value_1 = ( tmp_compexpr_left_3 == tmp_compexpr_right_3 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_compexpr_right_3 ); tmp_condition_result_2 = tmp_or_right_value_1; goto or_end_1; or_left_1:; tmp_condition_result_2 = tmp_or_left_value_1; or_end_1:; if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE ) { goto branch_yes_2; } else { goto branch_no_2; } branch_yes_2:; { if ( par_value == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "value" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 118; type_description_1 = "ooo"; goto frame_exception_exit_1; } tmp_return_value = par_value; Py_INCREF( tmp_return_value ); goto frame_return_exit_1; } branch_no_2:; } { nuitka_bool tmp_condition_result_3; PyObject *tmp_isinstance_inst_1; PyObject *tmp_isinstance_cls_1; if ( par_value == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "value" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 120; type_description_1 = "ooo"; goto frame_exception_exit_1; } tmp_isinstance_inst_1 = par_value; tmp_isinstance_cls_1 = (PyObject *)&PyBool_Type; tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_1, tmp_isinstance_cls_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 120; type_description_1 = "ooo"; goto frame_exception_exit_1; } tmp_condition_result_3 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_3 == NUITKA_BOOL_TRUE ) { goto branch_yes_3; } else { goto branch_no_3; } branch_yes_3:; { PyObject *tmp_raise_type_1; PyObject *tmp_make_exception_arg_1; tmp_make_exception_arg_1 = const_str_digest_64e15dbee6c4146dbe7421c492ac7ba5; frame_898bc0bde673023c3458903acad17b8a->m_frame.f_lineno = 121; { PyObject *call_args[] = { tmp_make_exception_arg_1 }; tmp_raise_type_1 = CALL_FUNCTION_WITH_ARGS1( PyExc_ValueError, call_args ); } assert( !(tmp_raise_type_1 == NULL) ); exception_type = tmp_raise_type_1; exception_lineno = 121; RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb ); type_description_1 = "ooo"; goto frame_exception_exit_1; } branch_no_3:; } { // Tried code: { PyObject *tmp_float_arg_1; if ( par_value == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "value" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 124; type_description_1 = "ooo"; goto try_except_handler_2; } tmp_float_arg_1 = par_value; tmp_unused = TO_FLOAT( tmp_float_arg_1 ); if ( tmp_unused == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 124; type_description_1 = "ooo"; goto try_except_handler_2; } Py_DECREF( tmp_unused ); } goto try_end_1; // Exception handler code: try_except_handler_2:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { // 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_898bc0bde673023c3458903acad17b8a, exception_keeper_lineno_1 ); } else if ( exception_keeper_lineno_1 != 0 ) { exception_keeper_tb_1 = ADD_TRACEBACK( exception_keeper_tb_1, frame_898bc0bde673023c3458903acad17b8a, 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_4; PyObject *tmp_compexpr_left_4; PyObject *tmp_compexpr_right_4; tmp_compexpr_left_4 = EXC_TYPE(PyThreadState_GET()); tmp_compexpr_right_4 = const_tuple_type_TypeError_type_ValueError_tuple; tmp_res = EXCEPTION_MATCH_BOOL( tmp_compexpr_left_4, tmp_compexpr_right_4 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 125; type_description_1 = "ooo"; 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_raise_type_2; PyObject *tmp_make_exception_arg_2; PyObject *tmp_left_name_1; PyObject *tmp_right_name_1; PyObject *tmp_tuple_element_1; tmp_left_name_1 = const_str_digest_d0928c9302966cb6030b0c893055e417; if ( par_name == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 127; type_description_1 = "ooo"; goto try_except_handler_3; } tmp_tuple_element_1 = par_name; tmp_right_name_1 = PyTuple_New( 2 ); Py_INCREF( tmp_tuple_element_1 ); PyTuple_SET_ITEM( tmp_right_name_1, 0, tmp_tuple_element_1 ); if ( par_value == NULL ) { Py_DECREF( tmp_right_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "value" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 127; type_description_1 = "ooo"; goto try_except_handler_3; } tmp_tuple_element_1 = par_value; Py_INCREF( tmp_tuple_element_1 ); PyTuple_SET_ITEM( tmp_right_name_1, 1, tmp_tuple_element_1 ); tmp_make_exception_arg_2 = BINARY_OPERATION_REMAINDER( tmp_left_name_1, tmp_right_name_1 ); Py_DECREF( tmp_right_name_1 ); if ( tmp_make_exception_arg_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 126; type_description_1 = "ooo"; goto try_except_handler_3; } frame_898bc0bde673023c3458903acad17b8a->m_frame.f_lineno = 126; { PyObject *call_args[] = { tmp_make_exception_arg_2 }; tmp_raise_type_2 = CALL_FUNCTION_WITH_ARGS1( PyExc_ValueError, call_args ); } Py_DECREF( tmp_make_exception_arg_2 ); assert( !(tmp_raise_type_2 == NULL) ); exception_type = tmp_raise_type_2; exception_lineno = 126; RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb ); type_description_1 = "ooo"; goto try_except_handler_3; } goto branch_end_4; branch_no_4:; { tmp_result = RERAISE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); if (unlikely( tmp_result == false )) { exception_lineno = 123; } if (exception_tb && exception_tb->tb_frame == &frame_898bc0bde673023c3458903acad17b8a->m_frame) frame_898bc0bde673023c3458903acad17b8a->m_frame.f_lineno = exception_tb->tb_lineno; type_description_1 = "ooo"; goto try_except_handler_3; } branch_end_4:; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( urllib3$util$timeout$$$function_3__validate_timeout ); return NULL; // 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: try_end_1:; } { // Tried code: { nuitka_bool tmp_condition_result_5; PyObject *tmp_compexpr_left_5; PyObject *tmp_compexpr_right_5; if ( par_value == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "value" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 130; type_description_1 = "ooo"; goto try_except_handler_4; } tmp_compexpr_left_5 = par_value; tmp_compexpr_right_5 = const_int_0; tmp_res = RICH_COMPARE_BOOL_LE( tmp_compexpr_left_5, tmp_compexpr_right_5 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 130; type_description_1 = "ooo"; goto try_except_handler_4; } 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_raise_type_3; PyObject *tmp_make_exception_arg_3; PyObject *tmp_left_name_2; PyObject *tmp_right_name_2; PyObject *tmp_tuple_element_2; tmp_left_name_2 = const_str_digest_a2b9211444a2d47df9bfa67db6d202fd; if ( par_name == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 133; type_description_1 = "ooo"; goto try_except_handler_4; } tmp_tuple_element_2 = par_name; tmp_right_name_2 = PyTuple_New( 2 ); Py_INCREF( tmp_tuple_element_2 ); PyTuple_SET_ITEM( tmp_right_name_2, 0, tmp_tuple_element_2 ); if ( par_value == NULL ) { Py_DECREF( tmp_right_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 = 133; type_description_1 = "ooo"; goto try_except_handler_4; } tmp_tuple_element_2 = par_value; Py_INCREF( tmp_tuple_element_2 ); PyTuple_SET_ITEM( tmp_right_name_2, 1, tmp_tuple_element_2 ); tmp_make_exception_arg_3 = BINARY_OPERATION_REMAINDER( tmp_left_name_2, tmp_right_name_2 ); Py_DECREF( tmp_right_name_2 ); if ( tmp_make_exception_arg_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 131; type_description_1 = "ooo"; goto try_except_handler_4; } frame_898bc0bde673023c3458903acad17b8a->m_frame.f_lineno = 131; { PyObject *call_args[] = { tmp_make_exception_arg_3 }; tmp_raise_type_3 = CALL_FUNCTION_WITH_ARGS1( PyExc_ValueError, call_args ); } Py_DECREF( tmp_make_exception_arg_3 ); assert( !(tmp_raise_type_3 == NULL) ); exception_type = tmp_raise_type_3; exception_lineno = 131; RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb ); type_description_1 = "ooo"; goto try_except_handler_4; } branch_no_5:; } goto try_end_2; // Exception handler code: try_except_handler_4:; 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; { // 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_3 == NULL ) { exception_keeper_tb_3 = MAKE_TRACEBACK( frame_898bc0bde673023c3458903acad17b8a, exception_keeper_lineno_3 ); } else if ( exception_keeper_lineno_3 != 0 ) { exception_keeper_tb_3 = ADD_TRACEBACK( exception_keeper_tb_3, frame_898bc0bde673023c3458903acad17b8a, exception_keeper_lineno_3 ); } NORMALIZE_EXCEPTION( &exception_keeper_type_3, &exception_keeper_value_3, &exception_keeper_tb_3 ); PyException_SetTraceback( exception_keeper_value_3, (PyObject *)exception_keeper_tb_3 ); PUBLISH_EXCEPTION( &exception_keeper_type_3, &exception_keeper_value_3, &exception_keeper_tb_3 ); } { // Tried code: { nuitka_bool tmp_condition_result_6; PyObject *tmp_compexpr_left_6; PyObject *tmp_compexpr_right_6; tmp_compexpr_left_6 = EXC_TYPE(PyThreadState_GET()); tmp_compexpr_right_6 = PyExc_TypeError; tmp_res = EXCEPTION_MATCH_BOOL( tmp_compexpr_left_6, tmp_compexpr_right_6 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 134; type_description_1 = "ooo"; goto try_except_handler_5; } tmp_condition_result_6 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_6 == NUITKA_BOOL_TRUE ) { goto branch_yes_6; } else { goto branch_no_6; } branch_yes_6:; { PyObject *tmp_raise_type_4; PyObject *tmp_make_exception_arg_4; PyObject *tmp_left_name_3; PyObject *tmp_right_name_3; PyObject *tmp_tuple_element_3; tmp_left_name_3 = const_str_digest_d0928c9302966cb6030b0c893055e417; if ( par_name == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "name" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 136; type_description_1 = "ooo"; goto try_except_handler_5; } tmp_tuple_element_3 = par_name; tmp_right_name_3 = PyTuple_New( 2 ); Py_INCREF( tmp_tuple_element_3 ); PyTuple_SET_ITEM( tmp_right_name_3, 0, tmp_tuple_element_3 ); if ( par_value == NULL ) { Py_DECREF( tmp_right_name_3 ); 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 = 136; type_description_1 = "ooo"; goto try_except_handler_5; } tmp_tuple_element_3 = par_value; Py_INCREF( tmp_tuple_element_3 ); PyTuple_SET_ITEM( tmp_right_name_3, 1, tmp_tuple_element_3 ); tmp_make_exception_arg_4 = BINARY_OPERATION_REMAINDER( tmp_left_name_3, tmp_right_name_3 ); Py_DECREF( tmp_right_name_3 ); if ( tmp_make_exception_arg_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 135; type_description_1 = "ooo"; goto try_except_handler_5; } frame_898bc0bde673023c3458903acad17b8a->m_frame.f_lineno = 135; { PyObject *call_args[] = { tmp_make_exception_arg_4 }; tmp_raise_type_4 = CALL_FUNCTION_WITH_ARGS1( PyExc_ValueError, call_args ); } Py_DECREF( tmp_make_exception_arg_4 ); assert( !(tmp_raise_type_4 == NULL) ); exception_type = tmp_raise_type_4; exception_lineno = 135; RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb ); type_description_1 = "ooo"; goto try_except_handler_5; } goto branch_end_6; branch_no_6:; { tmp_result = RERAISE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); if (unlikely( tmp_result == false )) { exception_lineno = 129; } if (exception_tb && exception_tb->tb_frame == &frame_898bc0bde673023c3458903acad17b8a->m_frame) frame_898bc0bde673023c3458903acad17b8a->m_frame.f_lineno = exception_tb->tb_lineno; type_description_1 = "ooo"; goto try_except_handler_5; } branch_end_6:; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( urllib3$util$timeout$$$function_3__validate_timeout ); return NULL; // 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; { // Restore previous exception. SET_CURRENT_EXCEPTION( exception_preserved_type_2, exception_preserved_value_2, exception_preserved_tb_2 ); } { // 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: } // End of try: try_end_2:; } { if ( par_value == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "value" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 138; type_description_1 = "ooo"; goto frame_exception_exit_1; } tmp_return_value = par_value; Py_INCREF( tmp_return_value ); goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_898bc0bde673023c3458903acad17b8a ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_898bc0bde673023c3458903acad17b8a ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_898bc0bde673023c3458903acad17b8a ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_898bc0bde673023c3458903acad17b8a, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_898bc0bde673023c3458903acad17b8a->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_898bc0bde673023c3458903acad17b8a, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_898bc0bde673023c3458903acad17b8a, type_description_1, par_cls, par_value, par_name ); // Release cached frame. if ( frame_898bc0bde673023c3458903acad17b8a == cache_frame_898bc0bde673023c3458903acad17b8a ) { Py_DECREF( frame_898bc0bde673023c3458903acad17b8a ); } cache_frame_898bc0bde673023c3458903acad17b8a = NULL; assertFrameObject( frame_898bc0bde673023c3458903acad17b8a ); // 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( urllib3$util$timeout$$$function_3__validate_timeout ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_cls ); par_cls = NULL; } { Py_XDECREF( par_value ); par_value = NULL; } { Py_XDECREF( par_name ); par_name = 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_cls ); par_cls = NULL; } { Py_XDECREF( par_value ); par_value = NULL; } { Py_XDECREF( par_name ); par_name = 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( urllib3$util$timeout$$$function_3__validate_timeout ); 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_urllib3$util$timeout$$$function_4_from_float( 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_cls = python_pars[ 0 ]; PyObject *par_timeout = python_pars[ 1 ]; struct Nuitka_FrameObject *frame_7715362b20b7e0493e053a1169ee3e57; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; int tmp_res; static struct Nuitka_FrameObject *cache_frame_7715362b20b7e0493e053a1169ee3e57 = 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_7715362b20b7e0493e053a1169ee3e57, codeobj_7715362b20b7e0493e053a1169ee3e57, module_urllib3$util$timeout, sizeof(void *)+sizeof(void *) ); frame_7715362b20b7e0493e053a1169ee3e57 = cache_frame_7715362b20b7e0493e053a1169ee3e57; // Push the new frame as the currently active one. pushFrameStack( frame_7715362b20b7e0493e053a1169ee3e57 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_7715362b20b7e0493e053a1169ee3e57 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_called_name_1; PyObject *tmp_mvar_value_1; PyObject *tmp_kw_name_1; PyObject *tmp_dict_key_1; PyObject *tmp_dict_value_1; PyObject *tmp_dict_key_2; PyObject *tmp_dict_value_2; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain_Timeout ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_Timeout ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "Timeout" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 154; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_called_name_1 = tmp_mvar_value_1; tmp_dict_key_1 = const_str_plain_read; CHECK_OBJECT( par_timeout ); tmp_dict_value_1 = par_timeout; tmp_kw_name_1 = _PyDict_NewPresized( 2 ); tmp_res = PyDict_SetItem( tmp_kw_name_1, tmp_dict_key_1, tmp_dict_value_1 ); assert( !(tmp_res != 0) ); tmp_dict_key_2 = const_str_plain_connect; CHECK_OBJECT( par_timeout ); tmp_dict_value_2 = par_timeout; tmp_res = PyDict_SetItem( tmp_kw_name_1, tmp_dict_key_2, tmp_dict_value_2 ); assert( !(tmp_res != 0) ); frame_7715362b20b7e0493e053a1169ee3e57->m_frame.f_lineno = 154; tmp_return_value = CALL_FUNCTION_WITH_KEYARGS( tmp_called_name_1, tmp_kw_name_1 ); Py_DECREF( tmp_kw_name_1 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 154; type_description_1 = "oo"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_7715362b20b7e0493e053a1169ee3e57 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_7715362b20b7e0493e053a1169ee3e57 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_7715362b20b7e0493e053a1169ee3e57 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_7715362b20b7e0493e053a1169ee3e57, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_7715362b20b7e0493e053a1169ee3e57->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_7715362b20b7e0493e053a1169ee3e57, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_7715362b20b7e0493e053a1169ee3e57, type_description_1, par_cls, par_timeout ); // Release cached frame. if ( frame_7715362b20b7e0493e053a1169ee3e57 == cache_frame_7715362b20b7e0493e053a1169ee3e57 ) { Py_DECREF( frame_7715362b20b7e0493e053a1169ee3e57 ); } cache_frame_7715362b20b7e0493e053a1169ee3e57 = NULL; assertFrameObject( frame_7715362b20b7e0493e053a1169ee3e57 ); // 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( urllib3$util$timeout$$$function_4_from_float ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_cls ); par_cls = NULL; } { Py_XDECREF( par_timeout ); par_timeout = 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_cls ); par_cls = NULL; } { Py_XDECREF( par_timeout ); par_timeout = 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( urllib3$util$timeout$$$function_4_from_float ); 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_urllib3$util$timeout$$$function_5_clone( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; struct Nuitka_FrameObject *frame_800a344eaa21c10d950dce896c3bced8; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *tmp_return_value = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; int tmp_res; static struct Nuitka_FrameObject *cache_frame_800a344eaa21c10d950dce896c3bced8 = 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_800a344eaa21c10d950dce896c3bced8, codeobj_800a344eaa21c10d950dce896c3bced8, module_urllib3$util$timeout, sizeof(void *) ); frame_800a344eaa21c10d950dce896c3bced8 = cache_frame_800a344eaa21c10d950dce896c3bced8; // Push the new frame as the currently active one. pushFrameStack( frame_800a344eaa21c10d950dce896c3bced8 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_800a344eaa21c10d950dce896c3bced8 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_called_name_1; PyObject *tmp_mvar_value_1; PyObject *tmp_kw_name_1; PyObject *tmp_dict_key_1; PyObject *tmp_dict_value_1; PyObject *tmp_source_name_1; PyObject *tmp_dict_key_2; PyObject *tmp_dict_value_2; PyObject *tmp_source_name_2; PyObject *tmp_dict_key_3; PyObject *tmp_dict_value_3; PyObject *tmp_source_name_3; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain_Timeout ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_Timeout ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "Timeout" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 168; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_called_name_1 = tmp_mvar_value_1; tmp_dict_key_1 = const_str_plain_connect; CHECK_OBJECT( par_self ); tmp_source_name_1 = par_self; tmp_dict_value_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain__connect ); if ( tmp_dict_value_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 168; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_kw_name_1 = _PyDict_NewPresized( 3 ); tmp_res = PyDict_SetItem( tmp_kw_name_1, tmp_dict_key_1, tmp_dict_value_1 ); Py_DECREF( tmp_dict_value_1 ); assert( !(tmp_res != 0) ); tmp_dict_key_2 = const_str_plain_read; if ( par_self == NULL ) { Py_DECREF( tmp_kw_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 168; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_2 = par_self; tmp_dict_value_2 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain__read ); if ( tmp_dict_value_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_kw_name_1 ); exception_lineno = 168; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_res = PyDict_SetItem( tmp_kw_name_1, tmp_dict_key_2, tmp_dict_value_2 ); Py_DECREF( tmp_dict_value_2 ); assert( !(tmp_res != 0) ); tmp_dict_key_3 = const_str_plain_total; if ( par_self == NULL ) { Py_DECREF( tmp_kw_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 169; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_3 = par_self; tmp_dict_value_3 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_total ); if ( tmp_dict_value_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_kw_name_1 ); exception_lineno = 169; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_res = PyDict_SetItem( tmp_kw_name_1, tmp_dict_key_3, tmp_dict_value_3 ); Py_DECREF( tmp_dict_value_3 ); assert( !(tmp_res != 0) ); frame_800a344eaa21c10d950dce896c3bced8->m_frame.f_lineno = 168; tmp_return_value = CALL_FUNCTION_WITH_KEYARGS( tmp_called_name_1, tmp_kw_name_1 ); Py_DECREF( tmp_kw_name_1 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 168; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_800a344eaa21c10d950dce896c3bced8 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_800a344eaa21c10d950dce896c3bced8 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_800a344eaa21c10d950dce896c3bced8 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_800a344eaa21c10d950dce896c3bced8, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_800a344eaa21c10d950dce896c3bced8->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_800a344eaa21c10d950dce896c3bced8, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_800a344eaa21c10d950dce896c3bced8, type_description_1, par_self ); // Release cached frame. if ( frame_800a344eaa21c10d950dce896c3bced8 == cache_frame_800a344eaa21c10d950dce896c3bced8 ) { Py_DECREF( frame_800a344eaa21c10d950dce896c3bced8 ); } cache_frame_800a344eaa21c10d950dce896c3bced8 = NULL; assertFrameObject( frame_800a344eaa21c10d950dce896c3bced8 ); // 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( urllib3$util$timeout$$$function_5_clone ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( urllib3$util$timeout$$$function_5_clone ); 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_urllib3$util$timeout$$$function_6_start_connect( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; struct Nuitka_FrameObject *frame_83f5e9353e85ec3675b62a6ef941c9d6; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; bool tmp_result; PyObject *tmp_return_value = NULL; static struct Nuitka_FrameObject *cache_frame_83f5e9353e85ec3675b62a6ef941c9d6 = 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_83f5e9353e85ec3675b62a6ef941c9d6, codeobj_83f5e9353e85ec3675b62a6ef941c9d6, module_urllib3$util$timeout, sizeof(void *) ); frame_83f5e9353e85ec3675b62a6ef941c9d6 = cache_frame_83f5e9353e85ec3675b62a6ef941c9d6; // Push the new frame as the currently active one. pushFrameStack( frame_83f5e9353e85ec3675b62a6ef941c9d6 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_83f5e9353e85ec3675b62a6ef941c9d6 ) == 2 ); // Frame stack // Framed code: { nuitka_bool tmp_condition_result_1; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; PyObject *tmp_source_name_1; CHECK_OBJECT( par_self ); tmp_source_name_1 = par_self; tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain__start_connect ); if ( tmp_compexpr_left_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 177; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_compexpr_right_1 = Py_None; tmp_condition_result_1 = ( tmp_compexpr_left_1 != tmp_compexpr_right_1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_compexpr_left_1 ); if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { PyObject *tmp_raise_type_1; PyObject *tmp_called_name_1; PyObject *tmp_mvar_value_1; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain_TimeoutStateError ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_TimeoutStateError ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "TimeoutStateError" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 178; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_called_name_1 = tmp_mvar_value_1; frame_83f5e9353e85ec3675b62a6ef941c9d6->m_frame.f_lineno = 178; tmp_raise_type_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, &PyTuple_GET_ITEM( const_tuple_str_digest_b6f4a8f71fe9ce5f9173564ff1edc89c_tuple, 0 ) ); if ( tmp_raise_type_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 178; type_description_1 = "o"; goto frame_exception_exit_1; } exception_type = tmp_raise_type_1; exception_lineno = 178; RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb ); type_description_1 = "o"; goto frame_exception_exit_1; } branch_no_1:; } { PyObject *tmp_assattr_name_1; PyObject *tmp_called_name_2; PyObject *tmp_mvar_value_2; PyObject *tmp_assattr_target_1; tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain_current_time ); if (unlikely( tmp_mvar_value_2 == NULL )) { tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_current_time ); } if ( tmp_mvar_value_2 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "current_time" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 179; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_called_name_2 = tmp_mvar_value_2; frame_83f5e9353e85ec3675b62a6ef941c9d6->m_frame.f_lineno = 179; tmp_assattr_name_1 = CALL_FUNCTION_NO_ARGS( tmp_called_name_2 ); if ( tmp_assattr_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 179; type_description_1 = "o"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_assattr_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 179; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_assattr_target_1 = par_self; tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain__start_connect, tmp_assattr_name_1 ); Py_DECREF( tmp_assattr_name_1 ); if ( tmp_result == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 179; type_description_1 = "o"; goto frame_exception_exit_1; } } { PyObject *tmp_source_name_2; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 180; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_2 = par_self; tmp_return_value = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain__start_connect ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 180; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_83f5e9353e85ec3675b62a6ef941c9d6 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_83f5e9353e85ec3675b62a6ef941c9d6 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_83f5e9353e85ec3675b62a6ef941c9d6 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_83f5e9353e85ec3675b62a6ef941c9d6, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_83f5e9353e85ec3675b62a6ef941c9d6->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_83f5e9353e85ec3675b62a6ef941c9d6, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_83f5e9353e85ec3675b62a6ef941c9d6, type_description_1, par_self ); // Release cached frame. if ( frame_83f5e9353e85ec3675b62a6ef941c9d6 == cache_frame_83f5e9353e85ec3675b62a6ef941c9d6 ) { Py_DECREF( frame_83f5e9353e85ec3675b62a6ef941c9d6 ); } cache_frame_83f5e9353e85ec3675b62a6ef941c9d6 = NULL; assertFrameObject( frame_83f5e9353e85ec3675b62a6ef941c9d6 ); // 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( urllib3$util$timeout$$$function_6_start_connect ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( urllib3$util$timeout$$$function_6_start_connect ); 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_urllib3$util$timeout$$$function_7_get_connect_duration( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; struct Nuitka_FrameObject *frame_bd4c3e735dfeed887b33dd9fdada5999; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; PyObject *tmp_return_value = NULL; static struct Nuitka_FrameObject *cache_frame_bd4c3e735dfeed887b33dd9fdada5999 = 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_bd4c3e735dfeed887b33dd9fdada5999, codeobj_bd4c3e735dfeed887b33dd9fdada5999, module_urllib3$util$timeout, sizeof(void *) ); frame_bd4c3e735dfeed887b33dd9fdada5999 = cache_frame_bd4c3e735dfeed887b33dd9fdada5999; // Push the new frame as the currently active one. pushFrameStack( frame_bd4c3e735dfeed887b33dd9fdada5999 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_bd4c3e735dfeed887b33dd9fdada5999 ) == 2 ); // Frame stack // Framed code: { nuitka_bool tmp_condition_result_1; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; PyObject *tmp_source_name_1; CHECK_OBJECT( par_self ); tmp_source_name_1 = par_self; tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain__start_connect ); if ( tmp_compexpr_left_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 190; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_compexpr_right_1 = Py_None; tmp_condition_result_1 = ( tmp_compexpr_left_1 == tmp_compexpr_right_1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_compexpr_left_1 ); if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { PyObject *tmp_raise_type_1; PyObject *tmp_called_name_1; PyObject *tmp_mvar_value_1; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain_TimeoutStateError ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_TimeoutStateError ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "TimeoutStateError" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 191; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_called_name_1 = tmp_mvar_value_1; frame_bd4c3e735dfeed887b33dd9fdada5999->m_frame.f_lineno = 191; tmp_raise_type_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, &PyTuple_GET_ITEM( const_tuple_str_digest_95153bcb73e0c026788c0de3a9407b4f_tuple, 0 ) ); if ( tmp_raise_type_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 191; type_description_1 = "o"; goto frame_exception_exit_1; } exception_type = tmp_raise_type_1; exception_lineno = 191; RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb ); type_description_1 = "o"; goto frame_exception_exit_1; } branch_no_1:; } { PyObject *tmp_left_name_1; PyObject *tmp_called_name_2; PyObject *tmp_mvar_value_2; PyObject *tmp_right_name_1; PyObject *tmp_source_name_2; tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain_current_time ); if (unlikely( tmp_mvar_value_2 == NULL )) { tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_current_time ); } if ( tmp_mvar_value_2 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "current_time" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 193; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_called_name_2 = tmp_mvar_value_2; frame_bd4c3e735dfeed887b33dd9fdada5999->m_frame.f_lineno = 193; tmp_left_name_1 = CALL_FUNCTION_NO_ARGS( tmp_called_name_2 ); if ( tmp_left_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 193; type_description_1 = "o"; goto frame_exception_exit_1; } if ( par_self == 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", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 193; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_2 = par_self; tmp_right_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain__start_connect ); if ( tmp_right_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_left_name_1 ); exception_lineno = 193; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_return_value = BINARY_OPERATION_SUB( tmp_left_name_1, tmp_right_name_1 ); Py_DECREF( tmp_left_name_1 ); Py_DECREF( tmp_right_name_1 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 193; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_bd4c3e735dfeed887b33dd9fdada5999 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_bd4c3e735dfeed887b33dd9fdada5999 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_bd4c3e735dfeed887b33dd9fdada5999 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_bd4c3e735dfeed887b33dd9fdada5999, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_bd4c3e735dfeed887b33dd9fdada5999->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_bd4c3e735dfeed887b33dd9fdada5999, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_bd4c3e735dfeed887b33dd9fdada5999, type_description_1, par_self ); // Release cached frame. if ( frame_bd4c3e735dfeed887b33dd9fdada5999 == cache_frame_bd4c3e735dfeed887b33dd9fdada5999 ) { Py_DECREF( frame_bd4c3e735dfeed887b33dd9fdada5999 ); } cache_frame_bd4c3e735dfeed887b33dd9fdada5999 = NULL; assertFrameObject( frame_bd4c3e735dfeed887b33dd9fdada5999 ); // 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( urllib3$util$timeout$$$function_7_get_connect_duration ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( urllib3$util$timeout$$$function_7_get_connect_duration ); 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_urllib3$util$timeout$$$function_8_connect_timeout( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; struct Nuitka_FrameObject *frame_09a8c85ee1612f24ffdb5ff35edef0ad; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; PyObject *tmp_return_value = NULL; static struct Nuitka_FrameObject *cache_frame_09a8c85ee1612f24ffdb5ff35edef0ad = 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_09a8c85ee1612f24ffdb5ff35edef0ad, codeobj_09a8c85ee1612f24ffdb5ff35edef0ad, module_urllib3$util$timeout, sizeof(void *) ); frame_09a8c85ee1612f24ffdb5ff35edef0ad = cache_frame_09a8c85ee1612f24ffdb5ff35edef0ad; // Push the new frame as the currently active one. pushFrameStack( frame_09a8c85ee1612f24ffdb5ff35edef0ad ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_09a8c85ee1612f24ffdb5ff35edef0ad ) == 2 ); // Frame stack // Framed code: { nuitka_bool tmp_condition_result_1; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; PyObject *tmp_source_name_1; CHECK_OBJECT( par_self ); tmp_source_name_1 = par_self; tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_total ); if ( tmp_compexpr_left_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 205; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_compexpr_right_1 = Py_None; tmp_condition_result_1 = ( tmp_compexpr_left_1 == tmp_compexpr_right_1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_compexpr_left_1 ); if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { PyObject *tmp_source_name_2; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 206; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_2 = par_self; tmp_return_value = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain__connect ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 206; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } branch_no_1:; } { nuitka_bool tmp_condition_result_2; int tmp_or_left_truth_1; nuitka_bool tmp_or_left_value_1; nuitka_bool tmp_or_right_value_1; PyObject *tmp_compexpr_left_2; PyObject *tmp_compexpr_right_2; PyObject *tmp_source_name_3; PyObject *tmp_compexpr_left_3; PyObject *tmp_compexpr_right_3; PyObject *tmp_source_name_4; PyObject *tmp_source_name_5; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 208; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_3 = par_self; tmp_compexpr_left_2 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain__connect ); if ( tmp_compexpr_left_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 208; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_compexpr_right_2 = Py_None; tmp_or_left_value_1 = ( tmp_compexpr_left_2 == tmp_compexpr_right_2 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_compexpr_left_2 ); tmp_or_left_truth_1 = tmp_or_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; if ( tmp_or_left_truth_1 == 1 ) { goto or_left_1; } else { goto or_right_1; } or_right_1:; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 208; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_4 = par_self; tmp_compexpr_left_3 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain__connect ); if ( tmp_compexpr_left_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 208; type_description_1 = "o"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_compexpr_left_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 = 208; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_5 = par_self; tmp_compexpr_right_3 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain_DEFAULT_TIMEOUT ); if ( tmp_compexpr_right_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_compexpr_left_3 ); exception_lineno = 208; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_or_right_value_1 = ( tmp_compexpr_left_3 == tmp_compexpr_right_3 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_compexpr_left_3 ); Py_DECREF( tmp_compexpr_right_3 ); tmp_condition_result_2 = tmp_or_right_value_1; goto or_end_1; or_left_1:; tmp_condition_result_2 = tmp_or_left_value_1; or_end_1:; if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE ) { goto branch_yes_2; } else { goto branch_no_2; } branch_yes_2:; { PyObject *tmp_source_name_6; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 209; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_6 = par_self; tmp_return_value = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain_total ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 209; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } branch_no_2:; } { PyObject *tmp_called_name_1; PyObject *tmp_args_element_name_1; PyObject *tmp_source_name_7; PyObject *tmp_args_element_name_2; PyObject *tmp_source_name_8; tmp_called_name_1 = LOOKUP_BUILTIN( const_str_plain_min ); assert( tmp_called_name_1 != NULL ); 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 = 211; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_7 = par_self; tmp_args_element_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_7, const_str_plain__connect ); if ( tmp_args_element_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 211; type_description_1 = "o"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_args_element_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 211; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_8 = par_self; tmp_args_element_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_8, const_str_plain_total ); if ( tmp_args_element_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_args_element_name_1 ); exception_lineno = 211; type_description_1 = "o"; goto frame_exception_exit_1; } frame_09a8c85ee1612f24ffdb5ff35edef0ad->m_frame.f_lineno = 211; { PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_2 }; tmp_return_value = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_1, call_args ); } Py_DECREF( tmp_args_element_name_1 ); Py_DECREF( tmp_args_element_name_2 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 211; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_09a8c85ee1612f24ffdb5ff35edef0ad ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_09a8c85ee1612f24ffdb5ff35edef0ad ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_09a8c85ee1612f24ffdb5ff35edef0ad ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_09a8c85ee1612f24ffdb5ff35edef0ad, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_09a8c85ee1612f24ffdb5ff35edef0ad->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_09a8c85ee1612f24ffdb5ff35edef0ad, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_09a8c85ee1612f24ffdb5ff35edef0ad, type_description_1, par_self ); // Release cached frame. if ( frame_09a8c85ee1612f24ffdb5ff35edef0ad == cache_frame_09a8c85ee1612f24ffdb5ff35edef0ad ) { Py_DECREF( frame_09a8c85ee1612f24ffdb5ff35edef0ad ); } cache_frame_09a8c85ee1612f24ffdb5ff35edef0ad = NULL; assertFrameObject( frame_09a8c85ee1612f24ffdb5ff35edef0ad ); // 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( urllib3$util$timeout$$$function_8_connect_timeout ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( urllib3$util$timeout$$$function_8_connect_timeout ); 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_urllib3$util$timeout$$$function_9_read_timeout( struct Nuitka_FunctionObject const *self, PyObject **python_pars ) { // Preserve error status for checks #ifndef __NUITKA_NO_ASSERT__ NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED(); #endif // Local variable declarations. PyObject *par_self = python_pars[ 0 ]; struct Nuitka_FrameObject *frame_28760c47bdea37a2ae5d909f8daa47bf; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; PyObject *tmp_return_value = NULL; static struct Nuitka_FrameObject *cache_frame_28760c47bdea37a2ae5d909f8daa47bf = 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_28760c47bdea37a2ae5d909f8daa47bf, codeobj_28760c47bdea37a2ae5d909f8daa47bf, module_urllib3$util$timeout, sizeof(void *) ); frame_28760c47bdea37a2ae5d909f8daa47bf = cache_frame_28760c47bdea37a2ae5d909f8daa47bf; // Push the new frame as the currently active one. pushFrameStack( frame_28760c47bdea37a2ae5d909f8daa47bf ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_28760c47bdea37a2ae5d909f8daa47bf ) == 2 ); // Frame stack // Framed code: { nuitka_bool tmp_condition_result_1; int tmp_and_left_truth_1; nuitka_bool tmp_and_left_value_1; nuitka_bool tmp_and_right_value_1; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; PyObject *tmp_source_name_1; int tmp_and_left_truth_2; nuitka_bool tmp_and_left_value_2; nuitka_bool tmp_and_right_value_2; PyObject *tmp_compexpr_left_2; PyObject *tmp_compexpr_right_2; PyObject *tmp_source_name_2; PyObject *tmp_source_name_3; int tmp_and_left_truth_3; nuitka_bool tmp_and_left_value_3; nuitka_bool tmp_and_right_value_3; PyObject *tmp_compexpr_left_3; PyObject *tmp_compexpr_right_3; PyObject *tmp_source_name_4; PyObject *tmp_compexpr_left_4; PyObject *tmp_compexpr_right_4; PyObject *tmp_source_name_5; PyObject *tmp_source_name_6; CHECK_OBJECT( par_self ); tmp_source_name_1 = par_self; tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_total ); if ( tmp_compexpr_left_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 230; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_compexpr_right_1 = Py_None; tmp_and_left_value_1 = ( tmp_compexpr_left_1 != tmp_compexpr_right_1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_compexpr_left_1 ); tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0; if ( tmp_and_left_truth_1 == 1 ) { goto and_right_1; } else { goto and_left_1; } and_right_1:; if ( 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 = 231; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_2 = par_self; tmp_compexpr_left_2 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_total ); if ( tmp_compexpr_left_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 231; type_description_1 = "o"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_compexpr_left_2 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 231; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_3 = par_self; tmp_compexpr_right_2 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_DEFAULT_TIMEOUT ); if ( tmp_compexpr_right_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_compexpr_left_2 ); exception_lineno = 231; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_and_left_value_2 = ( tmp_compexpr_left_2 != tmp_compexpr_right_2 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_compexpr_left_2 ); Py_DECREF( tmp_compexpr_right_2 ); tmp_and_left_truth_2 = tmp_and_left_value_2 == NUITKA_BOOL_TRUE ? 1 : 0; if ( tmp_and_left_truth_2 == 1 ) { goto and_right_2; } else { goto and_left_2; } and_right_2:; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 232; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_4 = par_self; tmp_compexpr_left_3 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain__read ); if ( tmp_compexpr_left_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 232; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_compexpr_right_3 = Py_None; tmp_and_left_value_3 = ( tmp_compexpr_left_3 != tmp_compexpr_right_3 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_compexpr_left_3 ); tmp_and_left_truth_3 = tmp_and_left_value_3 == NUITKA_BOOL_TRUE ? 1 : 0; if ( tmp_and_left_truth_3 == 1 ) { goto and_right_3; } else { goto and_left_3; } and_right_3:; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 233; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_5 = par_self; tmp_compexpr_left_4 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain__read ); if ( tmp_compexpr_left_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 233; type_description_1 = "o"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_compexpr_left_4 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 233; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_6 = par_self; tmp_compexpr_right_4 = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain_DEFAULT_TIMEOUT ); if ( tmp_compexpr_right_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_compexpr_left_4 ); exception_lineno = 233; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_and_right_value_3 = ( tmp_compexpr_left_4 != tmp_compexpr_right_4 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_compexpr_left_4 ); Py_DECREF( tmp_compexpr_right_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_condition_result_1 = tmp_and_right_value_1; goto and_end_1; and_left_1:; tmp_condition_result_1 = tmp_and_left_value_1; and_end_1:; if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { nuitka_bool tmp_condition_result_2; PyObject *tmp_compexpr_left_5; PyObject *tmp_compexpr_right_5; PyObject *tmp_source_name_7; 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 = 235; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_7 = par_self; tmp_compexpr_left_5 = LOOKUP_ATTRIBUTE( tmp_source_name_7, const_str_plain__start_connect ); if ( tmp_compexpr_left_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 235; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_compexpr_right_5 = Py_None; tmp_condition_result_2 = ( tmp_compexpr_left_5 == tmp_compexpr_right_5 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_compexpr_left_5 ); if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE ) { goto branch_yes_2; } else { goto branch_no_2; } branch_yes_2:; { PyObject *tmp_source_name_8; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 236; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_8 = par_self; tmp_return_value = LOOKUP_ATTRIBUTE( tmp_source_name_8, const_str_plain__read ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 236; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } branch_no_2:; } { PyObject *tmp_called_name_1; PyObject *tmp_args_element_name_1; PyObject *tmp_args_element_name_2; PyObject *tmp_called_name_2; PyObject *tmp_args_element_name_3; PyObject *tmp_left_name_1; PyObject *tmp_source_name_9; PyObject *tmp_right_name_1; PyObject *tmp_called_instance_1; PyObject *tmp_args_element_name_4; PyObject *tmp_source_name_10; tmp_called_name_1 = LOOKUP_BUILTIN( const_str_plain_max ); assert( tmp_called_name_1 != NULL ); tmp_args_element_name_1 = const_int_0; tmp_called_name_2 = LOOKUP_BUILTIN( const_str_plain_min ); assert( tmp_called_name_2 != NULL ); 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 = 237; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_9 = par_self; tmp_left_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_9, const_str_plain_total ); if ( tmp_left_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 237; type_description_1 = "o"; goto frame_exception_exit_1; } if ( par_self == 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", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 237; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_called_instance_1 = par_self; frame_28760c47bdea37a2ae5d909f8daa47bf->m_frame.f_lineno = 237; tmp_right_name_1 = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain_get_connect_duration ); if ( tmp_right_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_left_name_1 ); exception_lineno = 237; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_args_element_name_3 = BINARY_OPERATION_SUB( tmp_left_name_1, tmp_right_name_1 ); Py_DECREF( tmp_left_name_1 ); Py_DECREF( tmp_right_name_1 ); if ( tmp_args_element_name_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 237; type_description_1 = "o"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_args_element_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 = 238; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_10 = par_self; tmp_args_element_name_4 = LOOKUP_ATTRIBUTE( tmp_source_name_10, const_str_plain__read ); if ( tmp_args_element_name_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_args_element_name_3 ); exception_lineno = 238; type_description_1 = "o"; goto frame_exception_exit_1; } frame_28760c47bdea37a2ae5d909f8daa47bf->m_frame.f_lineno = 237; { PyObject *call_args[] = { tmp_args_element_name_3, tmp_args_element_name_4 }; tmp_args_element_name_2 = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_2, call_args ); } Py_DECREF( tmp_args_element_name_3 ); Py_DECREF( tmp_args_element_name_4 ); if ( tmp_args_element_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 237; type_description_1 = "o"; goto frame_exception_exit_1; } frame_28760c47bdea37a2ae5d909f8daa47bf->m_frame.f_lineno = 237; { PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_2 }; tmp_return_value = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_1, call_args ); } Py_DECREF( tmp_args_element_name_2 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 237; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } goto branch_end_1; branch_no_1:; { nuitka_bool tmp_condition_result_3; int tmp_and_left_truth_4; nuitka_bool tmp_and_left_value_4; nuitka_bool tmp_and_right_value_4; PyObject *tmp_compexpr_left_6; PyObject *tmp_compexpr_right_6; PyObject *tmp_source_name_11; PyObject *tmp_compexpr_left_7; PyObject *tmp_compexpr_right_7; PyObject *tmp_source_name_12; PyObject *tmp_source_name_13; 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 = 239; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_11 = par_self; tmp_compexpr_left_6 = LOOKUP_ATTRIBUTE( tmp_source_name_11, const_str_plain_total ); if ( tmp_compexpr_left_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 239; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_compexpr_right_6 = Py_None; tmp_and_left_value_4 = ( tmp_compexpr_left_6 != tmp_compexpr_right_6 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_compexpr_left_6 ); tmp_and_left_truth_4 = tmp_and_left_value_4 == NUITKA_BOOL_TRUE ? 1 : 0; if ( tmp_and_left_truth_4 == 1 ) { goto and_right_4; } else { goto and_left_4; } and_right_4:; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 239; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_12 = par_self; tmp_compexpr_left_7 = LOOKUP_ATTRIBUTE( tmp_source_name_12, const_str_plain_total ); if ( tmp_compexpr_left_7 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 239; type_description_1 = "o"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_compexpr_left_7 ); 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 = 239; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_13 = par_self; tmp_compexpr_right_7 = LOOKUP_ATTRIBUTE( tmp_source_name_13, const_str_plain_DEFAULT_TIMEOUT ); if ( tmp_compexpr_right_7 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_compexpr_left_7 ); exception_lineno = 239; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_and_right_value_4 = ( tmp_compexpr_left_7 != tmp_compexpr_right_7 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_compexpr_left_7 ); Py_DECREF( tmp_compexpr_right_7 ); tmp_condition_result_3 = tmp_and_right_value_4; goto and_end_4; and_left_4:; tmp_condition_result_3 = tmp_and_left_value_4; and_end_4:; if ( tmp_condition_result_3 == NUITKA_BOOL_TRUE ) { goto branch_yes_3; } else { goto branch_no_3; } branch_yes_3:; { PyObject *tmp_called_name_3; PyObject *tmp_args_element_name_5; PyObject *tmp_args_element_name_6; PyObject *tmp_left_name_2; PyObject *tmp_source_name_14; PyObject *tmp_right_name_2; PyObject *tmp_called_instance_2; tmp_called_name_3 = LOOKUP_BUILTIN( const_str_plain_max ); assert( tmp_called_name_3 != NULL ); tmp_args_element_name_5 = const_int_0; 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 = 240; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_14 = par_self; tmp_left_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_14, const_str_plain_total ); if ( tmp_left_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 240; type_description_1 = "o"; goto frame_exception_exit_1; } if ( par_self == NULL ) { Py_DECREF( tmp_left_name_2 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 240; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_called_instance_2 = par_self; frame_28760c47bdea37a2ae5d909f8daa47bf->m_frame.f_lineno = 240; tmp_right_name_2 = CALL_METHOD_NO_ARGS( tmp_called_instance_2, const_str_plain_get_connect_duration ); if ( tmp_right_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_left_name_2 ); exception_lineno = 240; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_args_element_name_6 = BINARY_OPERATION_SUB( tmp_left_name_2, tmp_right_name_2 ); Py_DECREF( tmp_left_name_2 ); Py_DECREF( tmp_right_name_2 ); if ( tmp_args_element_name_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 240; type_description_1 = "o"; goto frame_exception_exit_1; } frame_28760c47bdea37a2ae5d909f8daa47bf->m_frame.f_lineno = 240; { PyObject *call_args[] = { tmp_args_element_name_5, tmp_args_element_name_6 }; tmp_return_value = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_3, call_args ); } Py_DECREF( tmp_args_element_name_6 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 240; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } goto branch_end_3; branch_no_3:; { PyObject *tmp_source_name_15; if ( par_self == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 242; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_15 = par_self; tmp_return_value = LOOKUP_ATTRIBUTE( tmp_source_name_15, const_str_plain__read ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 242; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } branch_end_3:; } branch_end_1:; } #if 0 RESTORE_FRAME_EXCEPTION( frame_28760c47bdea37a2ae5d909f8daa47bf ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_28760c47bdea37a2ae5d909f8daa47bf ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_28760c47bdea37a2ae5d909f8daa47bf ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_28760c47bdea37a2ae5d909f8daa47bf, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_28760c47bdea37a2ae5d909f8daa47bf->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_28760c47bdea37a2ae5d909f8daa47bf, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_28760c47bdea37a2ae5d909f8daa47bf, type_description_1, par_self ); // Release cached frame. if ( frame_28760c47bdea37a2ae5d909f8daa47bf == cache_frame_28760c47bdea37a2ae5d909f8daa47bf ) { Py_DECREF( frame_28760c47bdea37a2ae5d909f8daa47bf ); } cache_frame_28760c47bdea37a2ae5d909f8daa47bf = NULL; assertFrameObject( frame_28760c47bdea37a2ae5d909f8daa47bf ); // 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( urllib3$util$timeout$$$function_9_read_timeout ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_self ); par_self = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_self ); par_self = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( urllib3$util$timeout$$$function_9_read_timeout ); 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_urllib3$util$timeout$$$function_1___init__( PyObject *defaults ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_urllib3$util$timeout$$$function_1___init__, const_str_plain___init__, #if PYTHON_VERSION >= 300 const_str_digest_f7b67c6705a16b8d911cf345acb733d8, #endif codeobj_b817300c84505b89ee9ffaf8e12280b2, defaults, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_urllib3$util$timeout, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_urllib3$util$timeout$$$function_2___str__( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_urllib3$util$timeout$$$function_2___str__, const_str_plain___str__, #if PYTHON_VERSION >= 300 const_str_digest_a990303886ccddcc19dabf1dd0dd5498, #endif codeobj_283c9dd1900c7bd72f80fa1c14a79f4f, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_urllib3$util$timeout, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_urllib3$util$timeout$$$function_3__validate_timeout( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_urllib3$util$timeout$$$function_3__validate_timeout, const_str_plain__validate_timeout, #if PYTHON_VERSION >= 300 const_str_digest_de3740d62fd80820559565b4f4c53af9, #endif codeobj_898bc0bde673023c3458903acad17b8a, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_urllib3$util$timeout, const_str_digest_76c1dcfcb96797006a5dce25d4faddbb, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_urllib3$util$timeout$$$function_4_from_float( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_urllib3$util$timeout$$$function_4_from_float, const_str_plain_from_float, #if PYTHON_VERSION >= 300 const_str_digest_1f0a7be0eb223c3fb339f4f8d89c76c4, #endif codeobj_7715362b20b7e0493e053a1169ee3e57, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_urllib3$util$timeout, const_str_digest_88850a00e49ce690c25047e50dcfce54, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_urllib3$util$timeout$$$function_5_clone( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_urllib3$util$timeout$$$function_5_clone, const_str_plain_clone, #if PYTHON_VERSION >= 300 const_str_digest_2f1dd0fe2e3f6f70224ea80af8bf458a, #endif codeobj_800a344eaa21c10d950dce896c3bced8, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_urllib3$util$timeout, const_str_digest_9ef4e8ec87d851e2346706ba2658809b, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_urllib3$util$timeout$$$function_6_start_connect( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_urllib3$util$timeout$$$function_6_start_connect, const_str_plain_start_connect, #if PYTHON_VERSION >= 300 const_str_digest_26f721d77f7e03a7561fccb69d4eb1a4, #endif codeobj_83f5e9353e85ec3675b62a6ef941c9d6, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_urllib3$util$timeout, const_str_digest_d87c0d5d063fdf7b4b4db434df1ec2e3, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_urllib3$util$timeout$$$function_7_get_connect_duration( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_urllib3$util$timeout$$$function_7_get_connect_duration, const_str_plain_get_connect_duration, #if PYTHON_VERSION >= 300 const_str_digest_a9eab5f6a940c885b2cc9facaf38d440, #endif codeobj_bd4c3e735dfeed887b33dd9fdada5999, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_urllib3$util$timeout, const_str_digest_b00f79e397dfa9e9c820c1e475aab761, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_urllib3$util$timeout$$$function_8_connect_timeout( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_urllib3$util$timeout$$$function_8_connect_timeout, const_str_plain_connect_timeout, #if PYTHON_VERSION >= 300 const_str_digest_cfcbb8b2e672157769bd403fa94854d0, #endif codeobj_09a8c85ee1612f24ffdb5ff35edef0ad, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_urllib3$util$timeout, const_str_digest_02420e0e7893333998c7b371379c25fc, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_urllib3$util$timeout$$$function_9_read_timeout( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_urllib3$util$timeout$$$function_9_read_timeout, const_str_plain_read_timeout, #if PYTHON_VERSION >= 300 const_str_digest_450defc94378d179d797255f208f6f07, #endif codeobj_28760c47bdea37a2ae5d909f8daa47bf, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_urllib3$util$timeout, const_str_digest_214463a6452030df2b0845af6bafa357, 0 ); return (PyObject *)result; } #if PYTHON_VERSION >= 300 static struct PyModuleDef mdef_urllib3$util$timeout = { PyModuleDef_HEAD_INIT, "urllib3.util.timeout", /* 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( urllib3$util$timeout ) { #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_urllib3$util$timeout ); } 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("urllib3.util.timeout: 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("urllib3.util.timeout: Calling createModuleConstants()."); #endif createModuleConstants(); /* The code objects used by this module are created now. */ #ifdef _NUITKA_TRACE puts("urllib3.util.timeout: Calling createModuleCodeObjects()."); #endif createModuleCodeObjects(); // puts( "in initurllib3$util$timeout" ); // 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_urllib3$util$timeout = Py_InitModule4( "urllib3.util.timeout", // 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_urllib3$util$timeout = PyModule_Create( &mdef_urllib3$util$timeout ); #endif moduledict_urllib3$util$timeout = MODULE_DICT( module_urllib3$util$timeout ); // Update "__package__" value to what it ought to be. { #if 0 PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain___name__ ); UPDATE_STRING_DICT1( moduledict_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain___package__, module_name ); #else #if PYTHON_VERSION < 300 PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_urllib3$util$timeout, (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_urllib3$util$timeout, (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_urllib3$util$timeout, (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_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain___package__, PyUnicode_Substring( module_name, 0, dot_index ) ); } #endif #endif } CHECK_OBJECT( module_urllib3$util$timeout ); // 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_a82603375214fa180234243f5e1e4301, module_urllib3$util$timeout ); 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_urllib3$util$timeout, (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_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain___builtins__, value ); } #if PYTHON_VERSION >= 300 UPDATE_STRING_DICT0( moduledict_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain___loader__, metapath_based_loader ); #endif #if PYTHON_VERSION >= 340 #if 0 UPDATE_STRING_DICT0( moduledict_urllib3$util$timeout, (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_urllib3$util$timeout, (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_urllib3$util$timeout, (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; struct Nuitka_FrameObject *frame_8d4f12629a81762480d86a2a0922bdda; 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_dictdel_dict; PyObject *tmp_dictdel_key; bool tmp_result; PyObject *locals_urllib3$util$timeout_18 = NULL; PyObject *tmp_dictset_value; struct Nuitka_FrameObject *frame_b09f89d82e2883b25b36a412372dbb88_2; NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; static struct Nuitka_FrameObject *cache_frame_b09f89d82e2883b25b36a412372dbb88_2 = 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_keeper_type_2; PyObject *exception_keeper_value_2; PyTracebackObject *exception_keeper_tb_2; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; PyObject *exception_keeper_type_3; PyObject *exception_keeper_value_3; PyTracebackObject *exception_keeper_tb_3; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; // Module code. { PyObject *tmp_assign_source_1; tmp_assign_source_1 = Py_None; UPDATE_STRING_DICT0( moduledict_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain___doc__, tmp_assign_source_1 ); } { PyObject *tmp_assign_source_2; tmp_assign_source_2 = const_str_digest_c05111021bf92e808b9d0f26ef51219e; UPDATE_STRING_DICT0( moduledict_urllib3$util$timeout, (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_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain___cached__, tmp_assign_source_3 ); } // Frame without reuse. frame_8d4f12629a81762480d86a2a0922bdda = MAKE_MODULE_FRAME( codeobj_8d4f12629a81762480d86a2a0922bdda, module_urllib3$util$timeout ); // Push the new frame as the currently active one, and we should be exclusively // owning it. pushFrameStack( frame_8d4f12629a81762480d86a2a0922bdda ); assert( Py_REFCNT( frame_8d4f12629a81762480d86a2a0922bdda ) == 2 ); // Framed code: { PyObject *tmp_assign_source_4; PyObject *tmp_import_name_from_1; frame_8d4f12629a81762480d86a2a0922bdda->m_frame.f_lineno = 1; tmp_import_name_from_1 = PyImport_ImportModule("__future__"); assert( !(tmp_import_name_from_1 == NULL) ); tmp_assign_source_4 = IMPORT_NAME( tmp_import_name_from_1, const_str_plain_absolute_import ); if ( tmp_assign_source_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 1; goto frame_exception_exit_1; } UPDATE_STRING_DICT1( moduledict_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain_absolute_import, tmp_assign_source_4 ); } { PyObject *tmp_assign_source_5; PyObject *tmp_import_name_from_2; 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_socket; tmp_globals_name_1 = (PyObject *)moduledict_urllib3$util$timeout; tmp_locals_name_1 = Py_None; tmp_fromlist_name_1 = const_tuple_str_plain__GLOBAL_DEFAULT_TIMEOUT_tuple; tmp_level_name_1 = const_int_0; frame_8d4f12629a81762480d86a2a0922bdda->m_frame.f_lineno = 4; tmp_import_name_from_2 = 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_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 4; goto frame_exception_exit_1; } tmp_assign_source_5 = IMPORT_NAME( tmp_import_name_from_2, const_str_plain__GLOBAL_DEFAULT_TIMEOUT ); Py_DECREF( tmp_import_name_from_2 ); if ( tmp_assign_source_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 4; goto frame_exception_exit_1; } UPDATE_STRING_DICT1( moduledict_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain__GLOBAL_DEFAULT_TIMEOUT, tmp_assign_source_5 ); } { PyObject *tmp_assign_source_6; PyObject *tmp_name_name_2; PyObject *tmp_globals_name_2; PyObject *tmp_locals_name_2; PyObject *tmp_fromlist_name_2; PyObject *tmp_level_name_2; tmp_name_name_2 = const_str_plain_time; tmp_globals_name_2 = (PyObject *)moduledict_urllib3$util$timeout; tmp_locals_name_2 = Py_None; tmp_fromlist_name_2 = Py_None; tmp_level_name_2 = const_int_0; frame_8d4f12629a81762480d86a2a0922bdda->m_frame.f_lineno = 5; tmp_assign_source_6 = IMPORT_MODULE5( tmp_name_name_2, tmp_globals_name_2, tmp_locals_name_2, tmp_fromlist_name_2, tmp_level_name_2 ); assert( !(tmp_assign_source_6 == NULL) ); UPDATE_STRING_DICT1( moduledict_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain_time, tmp_assign_source_6 ); } { PyObject *tmp_assign_source_7; PyObject *tmp_import_name_from_3; PyObject *tmp_name_name_3; PyObject *tmp_globals_name_3; PyObject *tmp_locals_name_3; PyObject *tmp_fromlist_name_3; PyObject *tmp_level_name_3; tmp_name_name_3 = const_str_plain_exceptions; tmp_globals_name_3 = (PyObject *)moduledict_urllib3$util$timeout; tmp_locals_name_3 = Py_None; tmp_fromlist_name_3 = const_tuple_str_plain_TimeoutStateError_tuple; tmp_level_name_3 = const_int_pos_2; frame_8d4f12629a81762480d86a2a0922bdda->m_frame.f_lineno = 7; tmp_import_name_from_3 = IMPORT_MODULE5( tmp_name_name_3, tmp_globals_name_3, tmp_locals_name_3, tmp_fromlist_name_3, tmp_level_name_3 ); if ( tmp_import_name_from_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 7; goto frame_exception_exit_1; } if ( PyModule_Check( tmp_import_name_from_3 ) ) { tmp_assign_source_7 = IMPORT_NAME_OR_MODULE( tmp_import_name_from_3, (PyObject *)MODULE_DICT(tmp_import_name_from_3), const_str_plain_TimeoutStateError, const_int_pos_2 ); } else { tmp_assign_source_7 = IMPORT_NAME( tmp_import_name_from_3, const_str_plain_TimeoutStateError ); } Py_DECREF( tmp_import_name_from_3 ); if ( tmp_assign_source_7 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 7; goto frame_exception_exit_1; } UPDATE_STRING_DICT1( moduledict_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain_TimeoutStateError, tmp_assign_source_7 ); } { PyObject *tmp_assign_source_8; PyObject *tmp_called_name_1; tmp_called_name_1 = (PyObject *)&PyBaseObject_Type; frame_8d4f12629a81762480d86a2a0922bdda->m_frame.f_lineno = 11; tmp_assign_source_8 = CALL_FUNCTION_NO_ARGS( tmp_called_name_1 ); if ( tmp_assign_source_8 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 11; goto frame_exception_exit_1; } UPDATE_STRING_DICT1( moduledict_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain__Default, tmp_assign_source_8 ); } { PyObject *tmp_assign_source_9; PyObject *tmp_getattr_target_1; PyObject *tmp_mvar_value_1; PyObject *tmp_getattr_attr_1; PyObject *tmp_getattr_default_1; PyObject *tmp_source_name_1; PyObject *tmp_mvar_value_2; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain_time ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_time ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "time" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 15; goto frame_exception_exit_1; } tmp_getattr_target_1 = tmp_mvar_value_1; tmp_getattr_attr_1 = const_str_plain_monotonic; tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain_time ); if (unlikely( tmp_mvar_value_2 == NULL )) { tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_time ); } if ( tmp_mvar_value_2 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "time" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 15; goto frame_exception_exit_1; } tmp_source_name_1 = tmp_mvar_value_2; tmp_getattr_default_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_time ); if ( tmp_getattr_default_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 15; goto frame_exception_exit_1; } tmp_assign_source_9 = BUILTIN_GETATTR( tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1 ); Py_DECREF( tmp_getattr_default_1 ); if ( tmp_assign_source_9 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 15; goto frame_exception_exit_1; } UPDATE_STRING_DICT1( moduledict_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain_current_time, tmp_assign_source_9 ); } { // Tried code: { PyObject *tmp_assign_source_10; PyObject *tmp_dircall_arg1_1; tmp_dircall_arg1_1 = const_tuple_type_object_tuple; Py_INCREF( tmp_dircall_arg1_1 ); { PyObject *dir_call_args[] = {tmp_dircall_arg1_1}; tmp_assign_source_10 = impl___internal__$$$function_1__mro_entries_conversion( dir_call_args ); } if ( tmp_assign_source_10 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 18; goto try_except_handler_1; } assert( tmp_class_creation_1__bases == NULL ); tmp_class_creation_1__bases = tmp_assign_source_10; } { PyObject *tmp_assign_source_11; tmp_assign_source_11 = PyDict_New(); assert( tmp_class_creation_1__class_decl_dict == NULL ); tmp_class_creation_1__class_decl_dict = tmp_assign_source_11; } { PyObject *tmp_assign_source_12; PyObject *tmp_metaclass_name_1; nuitka_bool tmp_condition_result_1; 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_2; 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 = 18; goto try_except_handler_1; } tmp_condition_result_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_1 == 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 = 18; goto try_except_handler_1; } 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 = 18; goto try_except_handler_1; } tmp_condition_result_2 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE ) { goto 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 = 18; goto try_except_handler_1; } 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 = 18; goto try_except_handler_1; } 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_12 = SELECT_METACLASS( tmp_metaclass_name_1, tmp_bases_name_1 ); Py_DECREF( tmp_metaclass_name_1 ); if ( tmp_assign_source_12 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 18; goto try_except_handler_1; } assert( tmp_class_creation_1__metaclass == NULL ); tmp_class_creation_1__metaclass = tmp_assign_source_12; } { nuitka_bool tmp_condition_result_3; 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 = 18; goto try_except_handler_1; } tmp_condition_result_3 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_3 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { 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 = 18; goto try_except_handler_1; } } branch_no_1:; } { nuitka_bool tmp_condition_result_4; PyObject *tmp_source_name_2; CHECK_OBJECT( tmp_class_creation_1__metaclass ); tmp_source_name_2 = tmp_class_creation_1__metaclass; tmp_res = PyObject_HasAttr( tmp_source_name_2, const_str_plain___prepare__ ); tmp_condition_result_4 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_4 == NUITKA_BOOL_TRUE ) { goto branch_yes_2; } else { goto branch_no_2; } branch_yes_2:; { PyObject *tmp_assign_source_13; PyObject *tmp_called_name_2; PyObject *tmp_source_name_3; 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_3 = tmp_class_creation_1__metaclass; tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain___prepare__ ); if ( tmp_called_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 18; goto try_except_handler_1; } tmp_tuple_element_1 = const_str_plain_Timeout; 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_8d4f12629a81762480d86a2a0922bdda->m_frame.f_lineno = 18; tmp_assign_source_13 = CALL_FUNCTION( tmp_called_name_2, tmp_args_name_1, tmp_kw_name_1 ); Py_DECREF( tmp_called_name_2 ); Py_DECREF( tmp_args_name_1 ); if ( tmp_assign_source_13 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 18; goto try_except_handler_1; } assert( tmp_class_creation_1__prepared == NULL ); tmp_class_creation_1__prepared = tmp_assign_source_13; } { nuitka_bool tmp_condition_result_5; PyObject *tmp_operand_name_1; PyObject *tmp_source_name_4; CHECK_OBJECT( tmp_class_creation_1__prepared ); tmp_source_name_4 = tmp_class_creation_1__prepared; tmp_res = PyObject_HasAttr( tmp_source_name_4, const_str_plain___getitem__ ); tmp_operand_name_1 = ( tmp_res != 0 ) ? Py_True : Py_False; tmp_res = CHECK_IF_TRUE( tmp_operand_name_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 18; goto try_except_handler_1; } tmp_condition_result_5 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_5 == NUITKA_BOOL_TRUE ) { goto branch_yes_3; } else { goto branch_no_3; } branch_yes_3:; { PyObject *tmp_raise_type_1; PyObject *tmp_raise_value_1; PyObject *tmp_left_name_1; PyObject *tmp_right_name_1; PyObject *tmp_tuple_element_2; PyObject *tmp_getattr_target_2; PyObject *tmp_getattr_attr_2; PyObject *tmp_getattr_default_2; PyObject *tmp_source_name_5; PyObject *tmp_type_arg_2; tmp_raise_type_1 = PyExc_TypeError; tmp_left_name_1 = const_str_digest_75fd71b1edada749c2ef7ac810062295; CHECK_OBJECT( tmp_class_creation_1__metaclass ); tmp_getattr_target_2 = tmp_class_creation_1__metaclass; tmp_getattr_attr_2 = const_str_plain___name__; tmp_getattr_default_2 = const_str_angle_metaclass; tmp_tuple_element_2 = BUILTIN_GETATTR( tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2 ); if ( tmp_tuple_element_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 18; goto try_except_handler_1; } 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_5 = BUILTIN_TYPE1( tmp_type_arg_2 ); assert( !(tmp_source_name_5 == NULL) ); tmp_tuple_element_2 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain___name__ ); Py_DECREF( tmp_source_name_5 ); 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 = 18; goto try_except_handler_1; } 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 = 18; goto try_except_handler_1; } exception_type = tmp_raise_type_1; Py_INCREF( tmp_raise_type_1 ); exception_value = tmp_raise_value_1; exception_lineno = 18; RAISE_EXCEPTION_IMPLICIT( &exception_type, &exception_value, &exception_tb ); goto try_except_handler_1; } branch_no_3:; } goto branch_end_2; branch_no_2:; { PyObject *tmp_assign_source_14; tmp_assign_source_14 = PyDict_New(); assert( tmp_class_creation_1__prepared == NULL ); tmp_class_creation_1__prepared = tmp_assign_source_14; } branch_end_2:; } { PyObject *tmp_assign_source_15; { PyObject *tmp_set_locals_1; CHECK_OBJECT( tmp_class_creation_1__prepared ); tmp_set_locals_1 = tmp_class_creation_1__prepared; locals_urllib3$util$timeout_18 = tmp_set_locals_1; Py_INCREF( tmp_set_locals_1 ); } { // Tried code: { // Tried code: { tmp_dictset_value = const_str_digest_a82603375214fa180234243f5e1e4301; tmp_res = PyObject_SetItem( locals_urllib3$util$timeout_18, 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 = 18; goto try_except_handler_3; } } { tmp_dictset_value = const_str_digest_7fa89b0c3695d68f9a879df68f3328c9; tmp_res = PyObject_SetItem( locals_urllib3$util$timeout_18, 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 = 18; goto try_except_handler_3; } } { tmp_dictset_value = const_str_plain_Timeout; tmp_res = PyObject_SetItem( locals_urllib3$util$timeout_18, 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 = 18; goto try_except_handler_3; } } MAKE_OR_REUSE_FRAME( cache_frame_b09f89d82e2883b25b36a412372dbb88_2, codeobj_b09f89d82e2883b25b36a412372dbb88, module_urllib3$util$timeout, sizeof(void *) ); frame_b09f89d82e2883b25b36a412372dbb88_2 = cache_frame_b09f89d82e2883b25b36a412372dbb88_2; // Push the new frame as the currently active one. pushFrameStack( frame_b09f89d82e2883b25b36a412372dbb88_2 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_b09f89d82e2883b25b36a412372dbb88_2 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_mvar_value_3; tmp_dictset_value = PyObject_GetItem( locals_urllib3$util$timeout_18, const_str_plain__GLOBAL_DEFAULT_TIMEOUT ); if ( tmp_dictset_value == NULL ) { if ( CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() ) { tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain__GLOBAL_DEFAULT_TIMEOUT ); if (unlikely( tmp_mvar_value_3 == NULL )) { tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain__GLOBAL_DEFAULT_TIMEOUT ); } if ( tmp_mvar_value_3 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "_GLOBAL_DEFAULT_TIMEOUT" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 91; type_description_2 = "o"; goto frame_exception_exit_2; } tmp_dictset_value = tmp_mvar_value_3; Py_INCREF( tmp_dictset_value ); } } tmp_res = PyObject_SetItem( locals_urllib3$util$timeout_18, const_str_plain_DEFAULT_TIMEOUT, 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 = 91; type_description_2 = "o"; goto frame_exception_exit_2; } } { PyObject *tmp_defaults_1; PyObject *tmp_tuple_element_3; PyObject *tmp_mvar_value_4; PyObject *tmp_mvar_value_5; tmp_tuple_element_3 = Py_None; tmp_defaults_1 = PyTuple_New( 3 ); Py_INCREF( tmp_tuple_element_3 ); PyTuple_SET_ITEM( tmp_defaults_1, 0, tmp_tuple_element_3 ); tmp_tuple_element_3 = PyObject_GetItem( locals_urllib3$util$timeout_18, const_str_plain__Default ); if ( tmp_tuple_element_3 == NULL ) { if ( CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() ) { tmp_mvar_value_4 = GET_STRING_DICT_VALUE( moduledict_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain__Default ); if (unlikely( tmp_mvar_value_4 == NULL )) { tmp_mvar_value_4 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain__Default ); } if ( tmp_mvar_value_4 == NULL ) { Py_DECREF( tmp_defaults_1 ); exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "_Default" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 93; type_description_2 = "o"; goto frame_exception_exit_2; } tmp_tuple_element_3 = tmp_mvar_value_4; Py_INCREF( tmp_tuple_element_3 ); } } PyTuple_SET_ITEM( tmp_defaults_1, 1, tmp_tuple_element_3 ); tmp_tuple_element_3 = PyObject_GetItem( locals_urllib3$util$timeout_18, const_str_plain__Default ); if ( tmp_tuple_element_3 == NULL ) { if ( CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() ) { tmp_mvar_value_5 = GET_STRING_DICT_VALUE( moduledict_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain__Default ); if (unlikely( tmp_mvar_value_5 == NULL )) { tmp_mvar_value_5 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain__Default ); } if ( tmp_mvar_value_5 == NULL ) { Py_DECREF( tmp_defaults_1 ); exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "_Default" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 93; type_description_2 = "o"; goto frame_exception_exit_2; } tmp_tuple_element_3 = tmp_mvar_value_5; Py_INCREF( tmp_tuple_element_3 ); } } PyTuple_SET_ITEM( tmp_defaults_1, 2, tmp_tuple_element_3 ); tmp_dictset_value = MAKE_FUNCTION_urllib3$util$timeout$$$function_1___init__( tmp_defaults_1 ); tmp_res = PyObject_SetItem( locals_urllib3$util$timeout_18, 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 = 93; type_description_2 = "o"; goto frame_exception_exit_2; } } { tmp_dictset_value = MAKE_FUNCTION_urllib3$util$timeout$$$function_2___str__( ); tmp_res = PyObject_SetItem( locals_urllib3$util$timeout_18, const_str_plain___str__, 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 = 99; type_description_2 = "o"; goto frame_exception_exit_2; } } { nuitka_bool tmp_condition_result_6; PyObject *tmp_called_name_3; PyObject *tmp_args_element_name_1; PyObject *tmp_classmethod_arg_1; tmp_res = MAPPING_HAS_ITEM( locals_urllib3$util$timeout_18, const_str_plain_classmethod ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 103; type_description_2 = "o"; goto frame_exception_exit_2; } tmp_condition_result_6 = ( tmp_res == 1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_6 == NUITKA_BOOL_TRUE ) { goto condexpr_true_3; } else { goto condexpr_false_3; } condexpr_true_3:; tmp_called_name_3 = PyObject_GetItem( locals_urllib3$util$timeout_18, const_str_plain_classmethod ); if ( tmp_called_name_3 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "classmethod" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 103; type_description_2 = "o"; goto frame_exception_exit_2; } if ( tmp_called_name_3 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 103; type_description_2 = "o"; goto frame_exception_exit_2; } tmp_args_element_name_1 = MAKE_FUNCTION_urllib3$util$timeout$$$function_3__validate_timeout( ); frame_b09f89d82e2883b25b36a412372dbb88_2->m_frame.f_lineno = 103; { PyObject *call_args[] = { tmp_args_element_name_1 }; tmp_dictset_value = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_3, call_args ); } Py_DECREF( tmp_called_name_3 ); Py_DECREF( tmp_args_element_name_1 ); if ( tmp_dictset_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 103; type_description_2 = "o"; goto frame_exception_exit_2; } goto condexpr_end_3; condexpr_false_3:; tmp_classmethod_arg_1 = MAKE_FUNCTION_urllib3$util$timeout$$$function_3__validate_timeout( ); tmp_dictset_value = BUILTIN_CLASSMETHOD( tmp_classmethod_arg_1 ); Py_DECREF( tmp_classmethod_arg_1 ); if ( tmp_dictset_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 103; type_description_2 = "o"; goto frame_exception_exit_2; } condexpr_end_3:; tmp_res = PyObject_SetItem( locals_urllib3$util$timeout_18, const_str_plain__validate_timeout, 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 = 103; type_description_2 = "o"; goto frame_exception_exit_2; } } { nuitka_bool tmp_condition_result_7; PyObject *tmp_called_name_4; PyObject *tmp_args_element_name_2; PyObject *tmp_classmethod_arg_2; tmp_res = MAPPING_HAS_ITEM( locals_urllib3$util$timeout_18, const_str_plain_classmethod ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 140; type_description_2 = "o"; goto frame_exception_exit_2; } tmp_condition_result_7 = ( tmp_res == 1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_7 == NUITKA_BOOL_TRUE ) { goto condexpr_true_4; } else { goto condexpr_false_4; } condexpr_true_4:; tmp_called_name_4 = PyObject_GetItem( locals_urllib3$util$timeout_18, const_str_plain_classmethod ); if ( tmp_called_name_4 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "classmethod" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 140; type_description_2 = "o"; goto frame_exception_exit_2; } if ( tmp_called_name_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 140; type_description_2 = "o"; goto frame_exception_exit_2; } tmp_args_element_name_2 = MAKE_FUNCTION_urllib3$util$timeout$$$function_4_from_float( ); frame_b09f89d82e2883b25b36a412372dbb88_2->m_frame.f_lineno = 140; { PyObject *call_args[] = { tmp_args_element_name_2 }; tmp_dictset_value = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_4, call_args ); } Py_DECREF( tmp_called_name_4 ); Py_DECREF( tmp_args_element_name_2 ); if ( tmp_dictset_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 140; type_description_2 = "o"; goto frame_exception_exit_2; } goto condexpr_end_4; condexpr_false_4:; tmp_classmethod_arg_2 = MAKE_FUNCTION_urllib3$util$timeout$$$function_4_from_float( ); tmp_dictset_value = BUILTIN_CLASSMETHOD( tmp_classmethod_arg_2 ); Py_DECREF( tmp_classmethod_arg_2 ); if ( tmp_dictset_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 140; type_description_2 = "o"; goto frame_exception_exit_2; } condexpr_end_4:; tmp_res = PyObject_SetItem( locals_urllib3$util$timeout_18, const_str_plain_from_float, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 140; type_description_2 = "o"; goto frame_exception_exit_2; } } { tmp_dictset_value = MAKE_FUNCTION_urllib3$util$timeout$$$function_5_clone( ); tmp_res = PyObject_SetItem( locals_urllib3$util$timeout_18, const_str_plain_clone, 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 = 156; type_description_2 = "o"; goto frame_exception_exit_2; } } { tmp_dictset_value = MAKE_FUNCTION_urllib3$util$timeout$$$function_6_start_connect( ); tmp_res = PyObject_SetItem( locals_urllib3$util$timeout_18, const_str_plain_start_connect, 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 = 171; type_description_2 = "o"; goto frame_exception_exit_2; } } { tmp_dictset_value = MAKE_FUNCTION_urllib3$util$timeout$$$function_7_get_connect_duration( ); tmp_res = PyObject_SetItem( locals_urllib3$util$timeout_18, const_str_plain_get_connect_duration, 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 = 182; type_description_2 = "o"; goto frame_exception_exit_2; } } { nuitka_bool tmp_condition_result_8; PyObject *tmp_called_name_5; PyObject *tmp_args_element_name_3; PyObject *tmp_called_name_6; PyObject *tmp_args_element_name_4; tmp_res = MAPPING_HAS_ITEM( locals_urllib3$util$timeout_18, const_str_plain_property ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 195; type_description_2 = "o"; goto frame_exception_exit_2; } tmp_condition_result_8 = ( tmp_res == 1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_8 == NUITKA_BOOL_TRUE ) { goto condexpr_true_5; } else { goto condexpr_false_5; } condexpr_true_5:; tmp_called_name_5 = PyObject_GetItem( locals_urllib3$util$timeout_18, const_str_plain_property ); if ( tmp_called_name_5 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "property" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 195; type_description_2 = "o"; goto frame_exception_exit_2; } if ( tmp_called_name_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 195; type_description_2 = "o"; goto frame_exception_exit_2; } tmp_args_element_name_3 = MAKE_FUNCTION_urllib3$util$timeout$$$function_8_connect_timeout( ); frame_b09f89d82e2883b25b36a412372dbb88_2->m_frame.f_lineno = 195; { PyObject *call_args[] = { tmp_args_element_name_3 }; tmp_dictset_value = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_5, call_args ); } Py_DECREF( tmp_called_name_5 ); Py_DECREF( tmp_args_element_name_3 ); if ( tmp_dictset_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 195; type_description_2 = "o"; goto frame_exception_exit_2; } goto condexpr_end_5; condexpr_false_5:; tmp_called_name_6 = (PyObject *)&PyProperty_Type; tmp_args_element_name_4 = MAKE_FUNCTION_urllib3$util$timeout$$$function_8_connect_timeout( ); frame_b09f89d82e2883b25b36a412372dbb88_2->m_frame.f_lineno = 195; { PyObject *call_args[] = { tmp_args_element_name_4 }; tmp_dictset_value = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_6, call_args ); } Py_DECREF( tmp_args_element_name_4 ); if ( tmp_dictset_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 195; type_description_2 = "o"; goto frame_exception_exit_2; } condexpr_end_5:; tmp_res = PyObject_SetItem( locals_urllib3$util$timeout_18, const_str_plain_connect_timeout, 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 = 195; type_description_2 = "o"; goto frame_exception_exit_2; } } { nuitka_bool tmp_condition_result_9; PyObject *tmp_called_name_7; PyObject *tmp_args_element_name_5; PyObject *tmp_called_name_8; PyObject *tmp_args_element_name_6; tmp_res = MAPPING_HAS_ITEM( locals_urllib3$util$timeout_18, const_str_plain_property ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 213; type_description_2 = "o"; goto frame_exception_exit_2; } tmp_condition_result_9 = ( tmp_res == 1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_9 == NUITKA_BOOL_TRUE ) { goto condexpr_true_6; } else { goto condexpr_false_6; } condexpr_true_6:; tmp_called_name_7 = PyObject_GetItem( locals_urllib3$util$timeout_18, const_str_plain_property ); if ( tmp_called_name_7 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "property" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 213; type_description_2 = "o"; goto frame_exception_exit_2; } if ( tmp_called_name_7 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 213; type_description_2 = "o"; goto frame_exception_exit_2; } tmp_args_element_name_5 = MAKE_FUNCTION_urllib3$util$timeout$$$function_9_read_timeout( ); frame_b09f89d82e2883b25b36a412372dbb88_2->m_frame.f_lineno = 213; { PyObject *call_args[] = { tmp_args_element_name_5 }; tmp_dictset_value = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_7, call_args ); } Py_DECREF( tmp_called_name_7 ); Py_DECREF( tmp_args_element_name_5 ); if ( tmp_dictset_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 213; type_description_2 = "o"; goto frame_exception_exit_2; } goto condexpr_end_6; condexpr_false_6:; tmp_called_name_8 = (PyObject *)&PyProperty_Type; tmp_args_element_name_6 = MAKE_FUNCTION_urllib3$util$timeout$$$function_9_read_timeout( ); frame_b09f89d82e2883b25b36a412372dbb88_2->m_frame.f_lineno = 213; { PyObject *call_args[] = { tmp_args_element_name_6 }; tmp_dictset_value = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_8, call_args ); } Py_DECREF( tmp_args_element_name_6 ); if ( tmp_dictset_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 213; type_description_2 = "o"; goto frame_exception_exit_2; } condexpr_end_6:; tmp_res = PyObject_SetItem( locals_urllib3$util$timeout_18, const_str_plain_read_timeout, tmp_dictset_value ); Py_DECREF( tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 213; type_description_2 = "o"; goto frame_exception_exit_2; } } #if 0 RESTORE_FRAME_EXCEPTION( frame_b09f89d82e2883b25b36a412372dbb88_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_b09f89d82e2883b25b36a412372dbb88_2 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_b09f89d82e2883b25b36a412372dbb88_2, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_b09f89d82e2883b25b36a412372dbb88_2->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_b09f89d82e2883b25b36a412372dbb88_2, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_b09f89d82e2883b25b36a412372dbb88_2, type_description_2, outline_0_var___class__ ); // Release cached frame. if ( frame_b09f89d82e2883b25b36a412372dbb88_2 == cache_frame_b09f89d82e2883b25b36a412372dbb88_2 ) { Py_DECREF( frame_b09f89d82e2883b25b36a412372dbb88_2 ); } cache_frame_b09f89d82e2883b25b36a412372dbb88_2 = NULL; assertFrameObject( frame_b09f89d82e2883b25b36a412372dbb88_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_3; skip_nested_handling_1:; { nuitka_bool tmp_condition_result_10; PyObject *tmp_compexpr_left_1; PyObject *tmp_compexpr_right_1; CHECK_OBJECT( tmp_class_creation_1__bases ); tmp_compexpr_left_1 = tmp_class_creation_1__bases; tmp_compexpr_right_1 = const_tuple_type_object_tuple; tmp_res = RICH_COMPARE_BOOL_NE( 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 = 18; goto try_except_handler_3; } tmp_condition_result_10 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_10 == NUITKA_BOOL_TRUE ) { goto branch_yes_4; } else { goto branch_no_4; } branch_yes_4:; { tmp_dictset_value = const_tuple_type_object_tuple; tmp_res = PyObject_SetItem( locals_urllib3$util$timeout_18, 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 = 18; goto try_except_handler_3; } } branch_no_4:; } { PyObject *tmp_assign_source_16; PyObject *tmp_called_name_9; PyObject *tmp_args_name_2; PyObject *tmp_tuple_element_4; PyObject *tmp_kw_name_2; CHECK_OBJECT( tmp_class_creation_1__metaclass ); tmp_called_name_9 = tmp_class_creation_1__metaclass; tmp_tuple_element_4 = const_str_plain_Timeout; tmp_args_name_2 = PyTuple_New( 3 ); Py_INCREF( tmp_tuple_element_4 ); PyTuple_SET_ITEM( tmp_args_name_2, 0, tmp_tuple_element_4 ); CHECK_OBJECT( tmp_class_creation_1__bases ); tmp_tuple_element_4 = tmp_class_creation_1__bases; Py_INCREF( tmp_tuple_element_4 ); PyTuple_SET_ITEM( tmp_args_name_2, 1, tmp_tuple_element_4 ); tmp_tuple_element_4 = locals_urllib3$util$timeout_18; Py_INCREF( tmp_tuple_element_4 ); PyTuple_SET_ITEM( tmp_args_name_2, 2, tmp_tuple_element_4 ); CHECK_OBJECT( tmp_class_creation_1__class_decl_dict ); tmp_kw_name_2 = tmp_class_creation_1__class_decl_dict; frame_8d4f12629a81762480d86a2a0922bdda->m_frame.f_lineno = 18; tmp_assign_source_16 = CALL_FUNCTION( tmp_called_name_9, tmp_args_name_2, tmp_kw_name_2 ); Py_DECREF( tmp_args_name_2 ); if ( tmp_assign_source_16 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 18; goto try_except_handler_3; } assert( outline_0_var___class__ == NULL ); outline_0_var___class__ = tmp_assign_source_16; } { CHECK_OBJECT( outline_0_var___class__ ); tmp_assign_source_15 = outline_0_var___class__; Py_INCREF( tmp_assign_source_15 ); goto try_return_handler_3; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( urllib3$util$timeout ); return MOD_RETURN_VALUE( NULL ); // Return handler code: try_return_handler_3:; { Py_DECREF( locals_urllib3$util$timeout_18 ); locals_urllib3$util$timeout_18 = NULL; } { goto try_return_handler_2; } // Exception handler code: try_except_handler_3:; 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_DECREF( locals_urllib3$util$timeout_18 ); locals_urllib3$util$timeout_18 = 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_2; } // End of try: } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( urllib3$util$timeout ); return MOD_RETURN_VALUE( NULL ); // Return handler code: try_return_handler_2:; { CHECK_OBJECT( (PyObject *)outline_0_var___class__ ); Py_DECREF( outline_0_var___class__ ); outline_0_var___class__ = NULL; } { goto outline_result_1; } // Exception handler code: try_except_handler_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; { // 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 outline_exception_1; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( urllib3$util$timeout ); return MOD_RETURN_VALUE( NULL ); outline_exception_1:; exception_lineno = 18; goto try_except_handler_1; outline_result_1:; UPDATE_STRING_DICT1( moduledict_urllib3$util$timeout, (Nuitka_StringObject *)const_str_plain_Timeout, tmp_assign_source_15 ); } goto try_end_1; // 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( 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_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_1:; } // Restore frame exception if necessary. #if 0 RESTORE_FRAME_EXCEPTION( frame_8d4f12629a81762480d86a2a0922bdda ); #endif popFrameStack(); assertFrameObject( frame_8d4f12629a81762480d86a2a0922bdda ); goto frame_no_exception_2; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_8d4f12629a81762480d86a2a0922bdda ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_8d4f12629a81762480d86a2a0922bdda, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_8d4f12629a81762480d86a2a0922bdda->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_8d4f12629a81762480d86a2a0922bdda, 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; } return MOD_RETURN_VALUE( module_urllib3$util$timeout ); module_exception_exit: RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return MOD_RETURN_VALUE( NULL ); }