Warning: chmod(): Operation not permitted in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [0] in function chmod in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [1] in function include_once in /var/www/hopeinstoughton_www/wp-settings.php on line 560 [2] in function require_once in /var/www/hopeinstoughton_www/wp-config.php on line 85 [3] in function require_once in /var/www/hopeinstoughton_www/wp-load.php on line 50 [4] in function require_once in /var/www/hopeinstoughton_www/wp-blog-header.php on line 13 [5] in function require in /var/www/hopeinstoughton_www/index.php on line 17
| Server IP : 94.177.8.99 / Your IP : 216.73.217.165 Web Server : Apache/2.4.58 (Ubuntu) System : Linux aries 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /nuitka/eggshell.build/ |
Upload File : |
/* Generated code for Python module 'urllib3.util.retry'
* created by Nuitka version 1.3rc9
*
* This code is in part copyright 2022 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 "nuitka/unfreezing.h"
#include "__helpers.h"
/* The "module_urllib3$util$retry" 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$retry;
PyDictObject *moduledict_urllib3$util$retry;
/* The declarations of module constants used, if any. */
static PyObject *mod_consts[177];
#ifndef __NUITKA_NO_ASSERT__
static Py_hash_t mod_consts_hash[177];
#endif
static PyObject *module_filename_obj = NULL;
/* Indicator if this modules private constants were created yet. */
static bool constants_created = false;
/* Function to create module private constants. */
static void createModuleConstants(void) {
if (constants_created == false) {
loadConstantsBlob(&mod_consts[0], UNTRANSLATE("urllib3.util.retry"));
constants_created = true;
#ifndef __NUITKA_NO_ASSERT__
for (int i = 0; i < 177; i++) {
mod_consts_hash[i] = DEEP_HASH(mod_consts[i]);
}
#endif
}
}
// We want to be able to initialize the "__main__" constants in any case.
#if 0
void createMainModuleConstants(void) {
createModuleConstants();
}
#endif
/* Function to verify module private constants for non-corruption. */
#ifndef __NUITKA_NO_ASSERT__
void checkModuleConstants_urllib3$util$retry(void) {
// The module may not have been used at all, then ignore this.
if (constants_created == false) return;
for (int i = 0; i < 177; i++) {
assert(mod_consts_hash[i] == DEEP_HASH(mod_consts[i]));
CHECK_OBJECT_DEEP(mod_consts[i]);
}
}
#endif
// The module code objects.
static PyCodeObject *codeobj_e264048c7eb5e8d89158e71aa56aa2c0;
static PyCodeObject *codeobj_7aa90fc29ef9962ac0cc7afd68e4ee07;
static PyCodeObject *codeobj_4f1a6f8c048abac6ede3a57f3c0dbd39;
static PyCodeObject *codeobj_dacc6e773df778810c54ea45019cfa99;
static PyCodeObject *codeobj_70c421f85ec8e532fe0f701f915e962f;
static PyCodeObject *codeobj_c0bf923961435936b8b020e73a20e2fb;
static PyCodeObject *codeobj_2d5fea8d3a7b78c7ceab20f4bb49947e;
static PyCodeObject *codeobj_1d9bce523fe63892bfa3fa7b938070ee;
static PyCodeObject *codeobj_c90a031cdc5f24ac8e4f9a080a333295;
static PyCodeObject *codeobj_0d666f7d6f1bc79ae6c85aab7f1b89fe;
static PyCodeObject *codeobj_86f54c135a6f8ac62ab5228fbce3f8b9;
static PyCodeObject *codeobj_c5f77a8f653eaa1d75542879888b4b5f;
static PyCodeObject *codeobj_d9d00a2c60ec55f19f720570fd55f06d;
static PyCodeObject *codeobj_52a249990d5c13a2ed48f8beb9be931f;
static PyCodeObject *codeobj_c1ca6796f74a9c49d0c5d62c11dc7e5b;
static PyCodeObject *codeobj_94667b7a3a6fd54b9fe83deb2cf2e481;
static PyCodeObject *codeobj_f8751bbefa23e20d5db26163ec4bf3ba;
static PyCodeObject *codeobj_8e51ebcbe638c49e15ac4599ae16e92e;
static PyCodeObject *codeobj_05915f7b1b748eded149b7053a0f8ae9;
static PyCodeObject *codeobj_c9c24f201530f0b568434780cabda7d9;
static void createModuleCodeObjects(void) {
module_filename_obj = mod_consts[89]; CHECK_OBJECT(module_filename_obj);
codeobj_e264048c7eb5e8d89158e71aa56aa2c0 = MAKE_CODE_OBJECT(module_filename_obj, 240, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[25], mod_consts[25], mod_consts[157], NULL, 1, 0, 0);
codeobj_7aa90fc29ef9962ac0cc7afd68e4ee07 = MAKE_CODE_OBJECT(module_filename_obj, 196, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[158], mod_consts[158], mod_consts[159], NULL, 1, 0, 0);
codeobj_4f1a6f8c048abac6ede3a57f3c0dbd39 = MAKE_CODE_OBJECT(module_filename_obj, 1, CO_NOFREE, mod_consts[160], mod_consts[160], NULL, NULL, 0, 0, 0);
codeobj_dacc6e773df778810c54ea45019cfa99 = MAKE_CODE_OBJECT(module_filename_obj, 29, CO_NOFREE, mod_consts[17], mod_consts[17], mod_consts[161], NULL, 0, 0, 0);
codeobj_70c421f85ec8e532fe0f701f915e962f = MAKE_CODE_OBJECT(module_filename_obj, 161, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[129], mod_consts[129], mod_consts[162], NULL, 14, 0, 0);
codeobj_c0bf923961435936b8b020e73a20e2fb = MAKE_CODE_OBJECT(module_filename_obj, 442, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[153], mod_consts[153], mod_consts[163], NULL, 1, 0, 0);
codeobj_2d5fea8d3a7b78c7ceab20f4bb49947e = MAKE_CODE_OBJECT(module_filename_obj, 305, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[67], mod_consts[67], mod_consts[164], NULL, 2, 0, 0);
codeobj_1d9bce523fe63892bfa3fa7b938070ee = MAKE_CODE_OBJECT(module_filename_obj, 317, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[59], mod_consts[59], mod_consts[165], NULL, 2, 0, 0);
codeobj_c90a031cdc5f24ac8e4f9a080a333295 = MAKE_CODE_OBJECT(module_filename_obj, 311, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[69], mod_consts[69], mod_consts[164], NULL, 2, 0, 0);
codeobj_0d666f7d6f1bc79ae6c85aab7f1b89fe = MAKE_CODE_OBJECT(module_filename_obj, 283, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[50], mod_consts[50], mod_consts[166], NULL, 1, 0, 0);
codeobj_86f54c135a6f8ac62ab5228fbce3f8b9 = MAKE_CODE_OBJECT(module_filename_obj, 219, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[134], mod_consts[134], mod_consts[167], NULL, 4, 0, 0);
codeobj_c5f77a8f653eaa1d75542879888b4b5f = MAKE_CODE_OBJECT(module_filename_obj, 232, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[48], mod_consts[48], mod_consts[168], NULL, 1, 0, 0);
codeobj_d9d00a2c60ec55f19f720570fd55f06d = MAKE_CODE_OBJECT(module_filename_obj, 265, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[46], mod_consts[46], mod_consts[169], NULL, 2, 0, 0);
codeobj_52a249990d5c13a2ed48f8beb9be931f = MAKE_CODE_OBJECT(module_filename_obj, 355, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[151], mod_consts[151], mod_consts[170], NULL, 7, 0, 0);
codeobj_c1ca6796f74a9c49d0c5d62c11dc7e5b = MAKE_CODE_OBJECT(module_filename_obj, 346, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[82], mod_consts[82], mod_consts[171], NULL, 1, 0, 0);
codeobj_94667b7a3a6fd54b9fe83deb2cf2e481 = MAKE_CODE_OBJECT(module_filename_obj, 326, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[147], mod_consts[147], mod_consts[172], NULL, 4, 0, 0);
codeobj_f8751bbefa23e20d5db26163ec4bf3ba = MAKE_CODE_OBJECT(module_filename_obj, 199, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE, mod_consts[80], mod_consts[80], mod_consts[173], NULL, 1, 0, 0);
codeobj_8e51ebcbe638c49e15ac4599ae16e92e = MAKE_CODE_OBJECT(module_filename_obj, 249, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[44], mod_consts[44], mod_consts[174], NULL, 2, 0, 0);
codeobj_05915f7b1b748eded149b7053a0f8ae9 = MAKE_CODE_OBJECT(module_filename_obj, 289, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[47], mod_consts[47], mod_consts[175], NULL, 2, 0, 0);
codeobj_c9c24f201530f0b568434780cabda7d9 = MAKE_CODE_OBJECT(module_filename_obj, 275, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE, mod_consts[49], mod_consts[49], mod_consts[169], NULL, 2, 0, 0);
}
// The module function declarations.
NUITKA_CROSS_MODULE PyObject *impl___main__$$$function__1__mro_entries_conversion(PyObject **python_pars);
NUITKA_CROSS_MODULE PyObject *impl___main__$$$function__8_complex_call_helper_star_dict(PyObject **python_pars);
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__10__is_connection_error();
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__11__is_read_error();
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__12__is_method_retryable();
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__13_is_retry(PyObject *defaults);
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__14_is_exhausted();
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__15_increment(PyObject *defaults);
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__16___repr__();
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__1___init__(PyObject *defaults);
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__2_new();
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__3_from_int(PyObject *defaults);
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__4_get_backoff_time();
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__4_get_backoff_time$$$function__1_lambda();
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__5_parse_retry_after();
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__6_get_retry_after();
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__7_sleep_for_retry(PyObject *defaults);
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__8__sleep_backoff();
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__9_sleep(PyObject *defaults);
// The module function definitions.
static PyObject *impl_urllib3$util$retry$$$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];
PyObject *par_redirect = python_pars[4];
PyObject *par_status = python_pars[5];
PyObject *par_method_whitelist = python_pars[6];
PyObject *par_status_forcelist = python_pars[7];
PyObject *par_backoff_factor = python_pars[8];
PyObject *par_raise_on_redirect = python_pars[9];
PyObject *par_raise_on_status = python_pars[10];
PyObject *par_history = python_pars[11];
PyObject *par_respect_retry_after_header = python_pars[12];
PyObject *par_remove_headers_on_redirect = python_pars[13];
PyObject *outline_0_var_h = NULL;
PyObject *tmp_listcomp_1__$0 = NULL;
PyObject *tmp_listcomp_1__contraction = NULL;
PyObject *tmp_listcomp_1__iter_value_0 = NULL;
struct Nuitka_FrameObject *frame_70c421f85ec8e532fe0f701f915e962f;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
bool tmp_result;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
struct Nuitka_FrameObject *frame_7aa90fc29ef9962ac0cc7afd68e4ee07_2;
NUITKA_MAY_BE_UNUSED char const *type_description_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;
static struct Nuitka_FrameObject *cache_frame_7aa90fc29ef9962ac0cc7afd68e4ee07_2 = NULL;
PyObject *exception_keeper_type_2;
PyObject *exception_keeper_value_2;
PyTracebackObject *exception_keeper_tb_2;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2;
static struct Nuitka_FrameObject *cache_frame_70c421f85ec8e532fe0f701f915e962f = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_keeper_type_3;
PyObject *exception_keeper_value_3;
PyTracebackObject *exception_keeper_tb_3;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3;
// Actual function body.
// Tried code:
if (isFrameUnusable(cache_frame_70c421f85ec8e532fe0f701f915e962f)) {
Py_XDECREF(cache_frame_70c421f85ec8e532fe0f701f915e962f);
#if _DEBUG_REFCOUNTS
if (cache_frame_70c421f85ec8e532fe0f701f915e962f == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_70c421f85ec8e532fe0f701f915e962f = MAKE_FUNCTION_FRAME(codeobj_70c421f85ec8e532fe0f701f915e962f, module_urllib3$util$retry, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_70c421f85ec8e532fe0f701f915e962f->m_type_description == NULL);
frame_70c421f85ec8e532fe0f701f915e962f = cache_frame_70c421f85ec8e532fe0f701f915e962f;
// Push the new frame as the currently active one.
pushFrameStack(frame_70c421f85ec8e532fe0f701f915e962f);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_70c421f85ec8e532fe0f701f915e962f) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_assattr_value_1;
PyObject *tmp_assattr_target_1;
CHECK_OBJECT(par_total);
tmp_assattr_value_1 = par_total;
CHECK_OBJECT(par_self);
tmp_assattr_target_1 = par_self;
tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[0], tmp_assattr_value_1);
if (tmp_result == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 178;
type_description_1 = "oooooooooooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_value_2;
PyObject *tmp_assattr_target_2;
CHECK_OBJECT(par_connect);
tmp_assattr_value_2 = par_connect;
CHECK_OBJECT(par_self);
tmp_assattr_target_2 = par_self;
tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[1], tmp_assattr_value_2);
if (tmp_result == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 179;
type_description_1 = "oooooooooooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_value_3;
PyObject *tmp_assattr_target_3;
CHECK_OBJECT(par_read);
tmp_assattr_value_3 = par_read;
CHECK_OBJECT(par_self);
tmp_assattr_target_3 = par_self;
tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[2], tmp_assattr_value_3);
if (tmp_result == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 180;
type_description_1 = "oooooooooooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_value_4;
PyObject *tmp_assattr_target_4;
CHECK_OBJECT(par_status);
tmp_assattr_value_4 = par_status;
CHECK_OBJECT(par_self);
tmp_assattr_target_4 = par_self;
tmp_result = SET_ATTRIBUTE(tmp_assattr_target_4, mod_consts[3], tmp_assattr_value_4);
if (tmp_result == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 181;
type_description_1 = "oooooooooooooo";
goto frame_exception_exit_1;
}
}
{
bool tmp_condition_result_1;
int tmp_or_left_truth_1;
bool tmp_or_left_value_1;
bool tmp_or_right_value_1;
PyObject *tmp_cmp_expr_left_1;
PyObject *tmp_cmp_expr_right_1;
PyObject *tmp_cmp_expr_left_2;
PyObject *tmp_cmp_expr_right_2;
CHECK_OBJECT(par_redirect);
tmp_cmp_expr_left_1 = par_redirect;
tmp_cmp_expr_right_1 = Py_False;
tmp_or_left_value_1 = (tmp_cmp_expr_left_1 == tmp_cmp_expr_right_1) ? true : false;
tmp_or_left_truth_1 = tmp_or_left_value_1 != false ? 1 : 0;
if (tmp_or_left_truth_1 == 1) {
goto or_left_1;
} else {
goto or_right_1;
}
or_right_1:;
CHECK_OBJECT(par_total);
tmp_cmp_expr_left_2 = par_total;
tmp_cmp_expr_right_2 = Py_False;
tmp_or_right_value_1 = (tmp_cmp_expr_left_2 == tmp_cmp_expr_right_2) ? true : false;
tmp_condition_result_1 = tmp_or_right_value_1;
goto or_end_1;
or_left_1:;
tmp_condition_result_1 = tmp_or_left_value_1;
or_end_1:;
if (tmp_condition_result_1 != false) {
goto branch_yes_1;
} else {
goto branch_no_1;
}
}
branch_yes_1:;
{
PyObject *tmp_assign_source_1;
tmp_assign_source_1 = mod_consts[4];
{
PyObject *old = par_redirect;
assert(old != NULL);
par_redirect = tmp_assign_source_1;
Py_INCREF(par_redirect);
Py_DECREF(old);
}
}
{
PyObject *tmp_assign_source_2;
tmp_assign_source_2 = Py_False;
{
PyObject *old = par_raise_on_redirect;
assert(old != NULL);
par_raise_on_redirect = tmp_assign_source_2;
Py_INCREF(par_raise_on_redirect);
Py_DECREF(old);
}
}
branch_no_1:;
{
PyObject *tmp_assattr_value_5;
PyObject *tmp_assattr_target_5;
CHECK_OBJECT(par_redirect);
tmp_assattr_value_5 = par_redirect;
CHECK_OBJECT(par_self);
tmp_assattr_target_5 = par_self;
tmp_result = SET_ATTRIBUTE(tmp_assattr_target_5, mod_consts[5], tmp_assattr_value_5);
if (tmp_result == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 187;
type_description_1 = "oooooooooooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_value_6;
int tmp_or_left_truth_2;
PyObject *tmp_or_left_value_2;
PyObject *tmp_or_right_value_2;
PyObject *tmp_assattr_target_6;
CHECK_OBJECT(par_status_forcelist);
tmp_or_left_value_2 = par_status_forcelist;
tmp_or_left_truth_2 = CHECK_IF_TRUE(tmp_or_left_value_2);
if (tmp_or_left_truth_2 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 188;
type_description_1 = "oooooooooooooo";
goto frame_exception_exit_1;
}
if (tmp_or_left_truth_2 == 1) {
goto or_left_2;
} else {
goto or_right_2;
}
or_right_2:;
tmp_or_right_value_2 = PySet_New(NULL);
tmp_assattr_value_6 = tmp_or_right_value_2;
goto or_end_2;
or_left_2:;
Py_INCREF(tmp_or_left_value_2);
tmp_assattr_value_6 = tmp_or_left_value_2;
or_end_2:;
CHECK_OBJECT(par_self);
tmp_assattr_target_6 = par_self;
tmp_result = SET_ATTRIBUTE(tmp_assattr_target_6, mod_consts[6], tmp_assattr_value_6);
Py_DECREF(tmp_assattr_value_6);
if (tmp_result == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 188;
type_description_1 = "oooooooooooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_value_7;
PyObject *tmp_assattr_target_7;
CHECK_OBJECT(par_method_whitelist);
tmp_assattr_value_7 = par_method_whitelist;
CHECK_OBJECT(par_self);
tmp_assattr_target_7 = par_self;
tmp_result = SET_ATTRIBUTE(tmp_assattr_target_7, mod_consts[7], tmp_assattr_value_7);
if (tmp_result == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 189;
type_description_1 = "oooooooooooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_value_8;
PyObject *tmp_assattr_target_8;
CHECK_OBJECT(par_backoff_factor);
tmp_assattr_value_8 = par_backoff_factor;
CHECK_OBJECT(par_self);
tmp_assattr_target_8 = par_self;
tmp_result = SET_ATTRIBUTE(tmp_assattr_target_8, mod_consts[8], tmp_assattr_value_8);
if (tmp_result == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 190;
type_description_1 = "oooooooooooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_value_9;
PyObject *tmp_assattr_target_9;
CHECK_OBJECT(par_raise_on_redirect);
tmp_assattr_value_9 = par_raise_on_redirect;
CHECK_OBJECT(par_self);
tmp_assattr_target_9 = par_self;
tmp_result = SET_ATTRIBUTE(tmp_assattr_target_9, mod_consts[9], tmp_assattr_value_9);
if (tmp_result == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 191;
type_description_1 = "oooooooooooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_value_10;
PyObject *tmp_assattr_target_10;
CHECK_OBJECT(par_raise_on_status);
tmp_assattr_value_10 = par_raise_on_status;
CHECK_OBJECT(par_self);
tmp_assattr_target_10 = par_self;
tmp_result = SET_ATTRIBUTE(tmp_assattr_target_10, mod_consts[10], tmp_assattr_value_10);
if (tmp_result == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 192;
type_description_1 = "oooooooooooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_value_11;
int tmp_or_left_truth_3;
PyObject *tmp_or_left_value_3;
PyObject *tmp_or_right_value_3;
PyObject *tmp_assattr_target_11;
CHECK_OBJECT(par_history);
tmp_or_left_value_3 = par_history;
tmp_or_left_truth_3 = CHECK_IF_TRUE(tmp_or_left_value_3);
if (tmp_or_left_truth_3 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 193;
type_description_1 = "oooooooooooooo";
goto frame_exception_exit_1;
}
if (tmp_or_left_truth_3 == 1) {
goto or_left_3;
} else {
goto or_right_3;
}
or_right_3:;
tmp_or_right_value_3 = mod_consts[11];
tmp_assattr_value_11 = tmp_or_right_value_3;
goto or_end_3;
or_left_3:;
tmp_assattr_value_11 = tmp_or_left_value_3;
or_end_3:;
CHECK_OBJECT(par_self);
tmp_assattr_target_11 = par_self;
tmp_result = SET_ATTRIBUTE(tmp_assattr_target_11, mod_consts[12], tmp_assattr_value_11);
if (tmp_result == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 193;
type_description_1 = "oooooooooooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_value_12;
PyObject *tmp_assattr_target_12;
CHECK_OBJECT(par_respect_retry_after_header);
tmp_assattr_value_12 = par_respect_retry_after_header;
CHECK_OBJECT(par_self);
tmp_assattr_target_12 = par_self;
tmp_result = SET_ATTRIBUTE(tmp_assattr_target_12, mod_consts[13], tmp_assattr_value_12);
if (tmp_result == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 194;
type_description_1 = "oooooooooooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_value_13;
PyObject *tmp_frozenset_arg_1;
PyObject *tmp_assattr_target_13;
// Tried code:
{
PyObject *tmp_assign_source_3;
PyObject *tmp_iter_arg_1;
CHECK_OBJECT(par_remove_headers_on_redirect);
tmp_iter_arg_1 = par_remove_headers_on_redirect;
tmp_assign_source_3 = MAKE_ITERATOR(tmp_iter_arg_1);
if (tmp_assign_source_3 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 196;
type_description_1 = "oooooooooooooo";
goto try_except_handler_2;
}
assert(tmp_listcomp_1__$0 == NULL);
tmp_listcomp_1__$0 = tmp_assign_source_3;
}
{
PyObject *tmp_assign_source_4;
tmp_assign_source_4 = MAKE_LIST_EMPTY(0);
assert(tmp_listcomp_1__contraction == NULL);
tmp_listcomp_1__contraction = tmp_assign_source_4;
}
if (isFrameUnusable(cache_frame_7aa90fc29ef9962ac0cc7afd68e4ee07_2)) {
Py_XDECREF(cache_frame_7aa90fc29ef9962ac0cc7afd68e4ee07_2);
#if _DEBUG_REFCOUNTS
if (cache_frame_7aa90fc29ef9962ac0cc7afd68e4ee07_2 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_7aa90fc29ef9962ac0cc7afd68e4ee07_2 = MAKE_FUNCTION_FRAME(codeobj_7aa90fc29ef9962ac0cc7afd68e4ee07, module_urllib3$util$retry, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_7aa90fc29ef9962ac0cc7afd68e4ee07_2->m_type_description == NULL);
frame_7aa90fc29ef9962ac0cc7afd68e4ee07_2 = cache_frame_7aa90fc29ef9962ac0cc7afd68e4ee07_2;
// Push the new frame as the currently active one.
pushFrameStack(frame_7aa90fc29ef9962ac0cc7afd68e4ee07_2);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_7aa90fc29ef9962ac0cc7afd68e4ee07_2) == 2); // Frame stack
// Framed code:
// Tried code:
loop_start_1:;
{
PyObject *tmp_next_source_1;
PyObject *tmp_assign_source_5;
CHECK_OBJECT(tmp_listcomp_1__$0);
tmp_next_source_1 = tmp_listcomp_1__$0;
tmp_assign_source_5 = ITERATOR_NEXT(tmp_next_source_1);
if (tmp_assign_source_5 == NULL) {
if (CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED()) {
goto loop_end_1;
} else {
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
type_description_2 = "o";
exception_lineno = 196;
goto try_except_handler_3;
}
}
{
PyObject *old = tmp_listcomp_1__iter_value_0;
tmp_listcomp_1__iter_value_0 = tmp_assign_source_5;
Py_XDECREF(old);
}
}
{
PyObject *tmp_assign_source_6;
CHECK_OBJECT(tmp_listcomp_1__iter_value_0);
tmp_assign_source_6 = tmp_listcomp_1__iter_value_0;
{
PyObject *old = outline_0_var_h;
outline_0_var_h = tmp_assign_source_6;
Py_INCREF(outline_0_var_h);
Py_XDECREF(old);
}
}
{
PyObject *tmp_append_list_1;
PyObject *tmp_append_value_1;
PyObject *tmp_called_value_1;
PyObject *tmp_expression_value_1;
CHECK_OBJECT(tmp_listcomp_1__contraction);
tmp_append_list_1 = tmp_listcomp_1__contraction;
CHECK_OBJECT(outline_0_var_h);
tmp_expression_value_1 = outline_0_var_h;
tmp_called_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_1, mod_consts[14]);
if (tmp_called_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 196;
type_description_2 = "o";
goto try_except_handler_3;
}
frame_7aa90fc29ef9962ac0cc7afd68e4ee07_2->m_frame.f_lineno = 196;
tmp_append_value_1 = CALL_FUNCTION_NO_ARGS(tmp_called_value_1);
Py_DECREF(tmp_called_value_1);
if (tmp_append_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 196;
type_description_2 = "o";
goto try_except_handler_3;
}
assert(PyList_Check(tmp_append_list_1));
tmp_result = LIST_APPEND1(tmp_append_list_1, tmp_append_value_1);
if (tmp_result == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 196;
type_description_2 = "o";
goto try_except_handler_3;
}
}
if (CONSIDER_THREADING() == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 196;
type_description_2 = "o";
goto try_except_handler_3;
}
goto loop_start_1;
loop_end_1:;
CHECK_OBJECT(tmp_listcomp_1__contraction);
tmp_frozenset_arg_1 = tmp_listcomp_1__contraction;
Py_INCREF(tmp_frozenset_arg_1);
goto try_return_handler_3;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_3:;
CHECK_OBJECT(tmp_listcomp_1__$0);
Py_DECREF(tmp_listcomp_1__$0);
tmp_listcomp_1__$0 = NULL;
CHECK_OBJECT(tmp_listcomp_1__contraction);
Py_DECREF(tmp_listcomp_1__contraction);
tmp_listcomp_1__contraction = NULL;
Py_XDECREF(tmp_listcomp_1__iter_value_0);
tmp_listcomp_1__iter_value_0 = NULL;
goto frame_return_exit_1;
// 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;
CHECK_OBJECT(tmp_listcomp_1__$0);
Py_DECREF(tmp_listcomp_1__$0);
tmp_listcomp_1__$0 = NULL;
CHECK_OBJECT(tmp_listcomp_1__contraction);
Py_DECREF(tmp_listcomp_1__contraction);
tmp_listcomp_1__contraction = NULL;
Py_XDECREF(tmp_listcomp_1__iter_value_0);
tmp_listcomp_1__iter_value_0 = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto frame_exception_exit_2;
// End of try:
#if 0
RESTORE_FRAME_EXCEPTION(frame_7aa90fc29ef9962ac0cc7afd68e4ee07_2);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_7aa90fc29ef9962ac0cc7afd68e4ee07_2);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_2;
frame_exception_exit_2:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_7aa90fc29ef9962ac0cc7afd68e4ee07_2);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_7aa90fc29ef9962ac0cc7afd68e4ee07_2, exception_lineno);
} else if (exception_tb->tb_frame != &frame_7aa90fc29ef9962ac0cc7afd68e4ee07_2->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_7aa90fc29ef9962ac0cc7afd68e4ee07_2, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_7aa90fc29ef9962ac0cc7afd68e4ee07_2,
type_description_2,
outline_0_var_h
);
// Release cached frame if used for exception.
if (frame_7aa90fc29ef9962ac0cc7afd68e4ee07_2 == cache_frame_7aa90fc29ef9962ac0cc7afd68e4ee07_2) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_7aa90fc29ef9962ac0cc7afd68e4ee07_2);
cache_frame_7aa90fc29ef9962ac0cc7afd68e4ee07_2 = NULL;
}
assertFrameObject(frame_7aa90fc29ef9962ac0cc7afd68e4ee07_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:;
type_description_1 = "oooooooooooooo";
goto try_except_handler_2;
skip_nested_handling_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_2:;
Py_XDECREF(outline_0_var_h);
outline_0_var_h = 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;
Py_XDECREF(outline_0_var_h);
outline_0_var_h = NULL;
// Re-raise.
exception_type = exception_keeper_type_2;
exception_value = exception_keeper_value_2;
exception_tb = exception_keeper_tb_2;
exception_lineno = exception_keeper_lineno_2;
goto outline_exception_1;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
outline_exception_1:;
exception_lineno = 196;
goto frame_exception_exit_1;
outline_result_1:;
tmp_assattr_value_13 = PyFrozenSet_New(tmp_frozenset_arg_1);
Py_DECREF(tmp_frozenset_arg_1);
if (tmp_assattr_value_13 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 195;
type_description_1 = "oooooooooooooo";
goto frame_exception_exit_1;
}
CHECK_OBJECT(par_self);
tmp_assattr_target_13 = par_self;
tmp_result = SET_ATTRIBUTE(tmp_assattr_target_13, mod_consts[15], tmp_assattr_value_13);
Py_DECREF(tmp_assattr_value_13);
if (tmp_result == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 195;
type_description_1 = "oooooooooooooo";
goto frame_exception_exit_1;
}
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_70c421f85ec8e532fe0f701f915e962f);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_2;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_70c421f85ec8e532fe0f701f915e962f);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_70c421f85ec8e532fe0f701f915e962f, exception_lineno);
} else if (exception_tb->tb_frame != &frame_70c421f85ec8e532fe0f701f915e962f->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_70c421f85ec8e532fe0f701f915e962f, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_70c421f85ec8e532fe0f701f915e962f,
type_description_1,
par_self,
par_total,
par_connect,
par_read,
par_redirect,
par_status,
par_method_whitelist,
par_status_forcelist,
par_backoff_factor,
par_raise_on_redirect,
par_raise_on_status,
par_history,
par_respect_retry_after_header,
par_remove_headers_on_redirect
);
// Release cached frame if used for exception.
if (frame_70c421f85ec8e532fe0f701f915e962f == cache_frame_70c421f85ec8e532fe0f701f915e962f) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_70c421f85ec8e532fe0f701f915e962f);
cache_frame_70c421f85ec8e532fe0f701f915e962f = NULL;
}
assertFrameObject(frame_70c421f85ec8e532fe0f701f915e962f);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_2:;
tmp_return_value = Py_None;
Py_INCREF(tmp_return_value);
goto try_return_handler_1;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(par_redirect);
Py_DECREF(par_redirect);
par_redirect = NULL;
CHECK_OBJECT(par_raise_on_redirect);
Py_DECREF(par_raise_on_redirect);
par_raise_on_redirect = NULL;
goto function_return_exit;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_3 = exception_type;
exception_keeper_value_3 = exception_value;
exception_keeper_tb_3 = exception_tb;
exception_keeper_lineno_3 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(par_redirect);
Py_DECREF(par_redirect);
par_redirect = NULL;
CHECK_OBJECT(par_raise_on_redirect);
Py_DECREF(par_raise_on_redirect);
par_raise_on_redirect = NULL;
// Re-raise.
exception_type = exception_keeper_type_3;
exception_value = exception_keeper_value_3;
exception_tb = exception_keeper_tb_3;
exception_lineno = exception_keeper_lineno_3;
goto function_exception_exit;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
CHECK_OBJECT(par_total);
Py_DECREF(par_total);
CHECK_OBJECT(par_connect);
Py_DECREF(par_connect);
CHECK_OBJECT(par_read);
Py_DECREF(par_read);
CHECK_OBJECT(par_status);
Py_DECREF(par_status);
CHECK_OBJECT(par_method_whitelist);
Py_DECREF(par_method_whitelist);
CHECK_OBJECT(par_status_forcelist);
Py_DECREF(par_status_forcelist);
CHECK_OBJECT(par_backoff_factor);
Py_DECREF(par_backoff_factor);
CHECK_OBJECT(par_raise_on_status);
Py_DECREF(par_raise_on_status);
CHECK_OBJECT(par_history);
Py_DECREF(par_history);
CHECK_OBJECT(par_respect_retry_after_header);
Py_DECREF(par_respect_retry_after_header);
CHECK_OBJECT(par_remove_headers_on_redirect);
Py_DECREF(par_remove_headers_on_redirect);
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
CHECK_OBJECT(par_total);
Py_DECREF(par_total);
CHECK_OBJECT(par_connect);
Py_DECREF(par_connect);
CHECK_OBJECT(par_read);
Py_DECREF(par_read);
CHECK_OBJECT(par_status);
Py_DECREF(par_status);
CHECK_OBJECT(par_method_whitelist);
Py_DECREF(par_method_whitelist);
CHECK_OBJECT(par_status_forcelist);
Py_DECREF(par_status_forcelist);
CHECK_OBJECT(par_backoff_factor);
Py_DECREF(par_backoff_factor);
CHECK_OBJECT(par_raise_on_status);
Py_DECREF(par_raise_on_status);
CHECK_OBJECT(par_history);
Py_DECREF(par_history);
CHECK_OBJECT(par_respect_retry_after_header);
Py_DECREF(par_respect_retry_after_header);
CHECK_OBJECT(par_remove_headers_on_redirect);
Py_DECREF(par_remove_headers_on_redirect);
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_urllib3$util$retry$$$function__2_new(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_kw = python_pars[1];
PyObject *var_params = NULL;
struct Nuitka_FrameObject *frame_f8751bbefa23e20d5db26163ec4bf3ba;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused;
PyObject *tmp_return_value = NULL;
static struct Nuitka_FrameObject *cache_frame_f8751bbefa23e20d5db26163ec4bf3ba = 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 body.
// Tried code:
if (isFrameUnusable(cache_frame_f8751bbefa23e20d5db26163ec4bf3ba)) {
Py_XDECREF(cache_frame_f8751bbefa23e20d5db26163ec4bf3ba);
#if _DEBUG_REFCOUNTS
if (cache_frame_f8751bbefa23e20d5db26163ec4bf3ba == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_f8751bbefa23e20d5db26163ec4bf3ba = MAKE_FUNCTION_FRAME(codeobj_f8751bbefa23e20d5db26163ec4bf3ba, module_urllib3$util$retry, sizeof(void *)+sizeof(void *)+sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_f8751bbefa23e20d5db26163ec4bf3ba->m_type_description == NULL);
frame_f8751bbefa23e20d5db26163ec4bf3ba = cache_frame_f8751bbefa23e20d5db26163ec4bf3ba;
// Push the new frame as the currently active one.
pushFrameStack(frame_f8751bbefa23e20d5db26163ec4bf3ba);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_f8751bbefa23e20d5db26163ec4bf3ba) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_assign_source_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_expression_value_1;
tmp_dict_key_1 = mod_consts[0];
CHECK_OBJECT(par_self);
tmp_expression_value_1 = par_self;
tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_1, mod_consts[0]);
if (tmp_dict_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 201;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_assign_source_1 = _PyDict_NewPresized( 13 );
{
PyObject *tmp_expression_value_2;
PyObject *tmp_expression_value_3;
PyObject *tmp_expression_value_4;
PyObject *tmp_expression_value_5;
PyObject *tmp_expression_value_6;
PyObject *tmp_expression_value_7;
PyObject *tmp_expression_value_8;
PyObject *tmp_expression_value_9;
PyObject *tmp_expression_value_10;
PyObject *tmp_expression_value_11;
PyObject *tmp_expression_value_12;
PyObject *tmp_expression_value_13;
tmp_res = PyDict_SetItem(tmp_assign_source_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
tmp_dict_key_1 = mod_consts[1];
CHECK_OBJECT(par_self);
tmp_expression_value_2 = par_self;
tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_2, mod_consts[1]);
if (tmp_dict_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 202;
type_description_1 = "ooo";
goto dict_build_exception_1;
}
tmp_res = PyDict_SetItem(tmp_assign_source_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
tmp_dict_key_1 = mod_consts[2];
CHECK_OBJECT(par_self);
tmp_expression_value_3 = par_self;
tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_3, mod_consts[2]);
if (tmp_dict_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 203;
type_description_1 = "ooo";
goto dict_build_exception_1;
}
tmp_res = PyDict_SetItem(tmp_assign_source_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
tmp_dict_key_1 = mod_consts[5];
CHECK_OBJECT(par_self);
tmp_expression_value_4 = par_self;
tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_4, mod_consts[5]);
if (tmp_dict_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 204;
type_description_1 = "ooo";
goto dict_build_exception_1;
}
tmp_res = PyDict_SetItem(tmp_assign_source_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
tmp_dict_key_1 = mod_consts[3];
CHECK_OBJECT(par_self);
tmp_expression_value_5 = par_self;
tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_5, mod_consts[3]);
if (tmp_dict_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 205;
type_description_1 = "ooo";
goto dict_build_exception_1;
}
tmp_res = PyDict_SetItem(tmp_assign_source_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
tmp_dict_key_1 = mod_consts[7];
CHECK_OBJECT(par_self);
tmp_expression_value_6 = par_self;
tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_6, mod_consts[7]);
if (tmp_dict_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 206;
type_description_1 = "ooo";
goto dict_build_exception_1;
}
tmp_res = PyDict_SetItem(tmp_assign_source_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
tmp_dict_key_1 = mod_consts[6];
CHECK_OBJECT(par_self);
tmp_expression_value_7 = par_self;
tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_7, mod_consts[6]);
if (tmp_dict_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 207;
type_description_1 = "ooo";
goto dict_build_exception_1;
}
tmp_res = PyDict_SetItem(tmp_assign_source_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
tmp_dict_key_1 = mod_consts[8];
CHECK_OBJECT(par_self);
tmp_expression_value_8 = par_self;
tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_8, mod_consts[8]);
if (tmp_dict_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 208;
type_description_1 = "ooo";
goto dict_build_exception_1;
}
tmp_res = PyDict_SetItem(tmp_assign_source_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
tmp_dict_key_1 = mod_consts[9];
CHECK_OBJECT(par_self);
tmp_expression_value_9 = par_self;
tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_9, mod_consts[9]);
if (tmp_dict_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 209;
type_description_1 = "ooo";
goto dict_build_exception_1;
}
tmp_res = PyDict_SetItem(tmp_assign_source_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
tmp_dict_key_1 = mod_consts[10];
CHECK_OBJECT(par_self);
tmp_expression_value_10 = par_self;
tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_10, mod_consts[10]);
if (tmp_dict_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 210;
type_description_1 = "ooo";
goto dict_build_exception_1;
}
tmp_res = PyDict_SetItem(tmp_assign_source_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
tmp_dict_key_1 = mod_consts[12];
CHECK_OBJECT(par_self);
tmp_expression_value_11 = par_self;
tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_11, mod_consts[12]);
if (tmp_dict_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 211;
type_description_1 = "ooo";
goto dict_build_exception_1;
}
tmp_res = PyDict_SetItem(tmp_assign_source_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
tmp_dict_key_1 = mod_consts[15];
CHECK_OBJECT(par_self);
tmp_expression_value_12 = par_self;
tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_12, mod_consts[15]);
if (tmp_dict_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 212;
type_description_1 = "ooo";
goto dict_build_exception_1;
}
tmp_res = PyDict_SetItem(tmp_assign_source_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
tmp_dict_key_1 = mod_consts[13];
CHECK_OBJECT(par_self);
tmp_expression_value_13 = par_self;
tmp_dict_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_13, mod_consts[13]);
if (tmp_dict_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 213;
type_description_1 = "ooo";
goto dict_build_exception_1;
}
tmp_res = PyDict_SetItem(tmp_assign_source_1, tmp_dict_key_1, tmp_dict_value_1);
Py_DECREF(tmp_dict_value_1);
assert(!(tmp_res != 0));
}
goto dict_build_noexception_1;
// Exception handling pass through code for dict_build:
dict_build_exception_1:;
Py_DECREF(tmp_assign_source_1);
goto frame_exception_exit_1;
// Finished with no exception for dict_build:
dict_build_noexception_1:;
assert(var_params == NULL);
var_params = tmp_assign_source_1;
}
{
PyObject *tmp_dict_arg_value_1;
PyObject *tmp_iterable_value_1;
CHECK_OBJECT(var_params);
tmp_dict_arg_value_1 = var_params;
CHECK_OBJECT(par_kw);
tmp_iterable_value_1 = par_kw;
assert(PyDict_Check(tmp_dict_arg_value_1));
tmp_res = PyDict_Merge(tmp_dict_arg_value_1, tmp_iterable_value_1, 1);
if (tmp_res != 0) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 215;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_type_arg_1;
PyObject *tmp_dircall_arg2_1;
CHECK_OBJECT(par_self);
tmp_type_arg_1 = par_self;
tmp_dircall_arg1_1 = BUILTIN_TYPE1(tmp_type_arg_1);
assert(!(tmp_dircall_arg1_1 == NULL));
CHECK_OBJECT(var_params);
tmp_dircall_arg2_1 = var_params;
Py_INCREF(tmp_dircall_arg2_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1};
tmp_return_value = impl___main__$$$function__8_complex_call_helper_star_dict(dir_call_args);
}
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 216;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_f8751bbefa23e20d5db26163ec4bf3ba);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_f8751bbefa23e20d5db26163ec4bf3ba);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_f8751bbefa23e20d5db26163ec4bf3ba);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_f8751bbefa23e20d5db26163ec4bf3ba, exception_lineno);
} else if (exception_tb->tb_frame != &frame_f8751bbefa23e20d5db26163ec4bf3ba->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_f8751bbefa23e20d5db26163ec4bf3ba, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_f8751bbefa23e20d5db26163ec4bf3ba,
type_description_1,
par_self,
par_kw,
var_params
);
// Release cached frame if used for exception.
if (frame_f8751bbefa23e20d5db26163ec4bf3ba == cache_frame_f8751bbefa23e20d5db26163ec4bf3ba) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_f8751bbefa23e20d5db26163ec4bf3ba);
cache_frame_f8751bbefa23e20d5db26163ec4bf3ba = NULL;
}
assertFrameObject(frame_f8751bbefa23e20d5db26163ec4bf3ba);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(var_params);
Py_DECREF(var_params);
var_params = 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(var_params);
var_params = 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:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
CHECK_OBJECT(par_kw);
Py_DECREF(par_kw);
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
CHECK_OBJECT(par_kw);
Py_DECREF(par_kw);
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_urllib3$util$retry$$$function__3_from_int(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_retries = python_pars[1];
PyObject *par_redirect = python_pars[2];
PyObject *par_default = python_pars[3];
PyObject *var_new_retries = NULL;
struct Nuitka_FrameObject *frame_86f54c135a6f8ac62ab5228fbce3f8b9;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
PyObject *tmp_return_value = NULL;
NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused;
static struct Nuitka_FrameObject *cache_frame_86f54c135a6f8ac62ab5228fbce3f8b9 = 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 body.
// Tried code:
if (isFrameUnusable(cache_frame_86f54c135a6f8ac62ab5228fbce3f8b9)) {
Py_XDECREF(cache_frame_86f54c135a6f8ac62ab5228fbce3f8b9);
#if _DEBUG_REFCOUNTS
if (cache_frame_86f54c135a6f8ac62ab5228fbce3f8b9 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_86f54c135a6f8ac62ab5228fbce3f8b9 = MAKE_FUNCTION_FRAME(codeobj_86f54c135a6f8ac62ab5228fbce3f8b9, module_urllib3$util$retry, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_86f54c135a6f8ac62ab5228fbce3f8b9->m_type_description == NULL);
frame_86f54c135a6f8ac62ab5228fbce3f8b9 = cache_frame_86f54c135a6f8ac62ab5228fbce3f8b9;
// Push the new frame as the currently active one.
pushFrameStack(frame_86f54c135a6f8ac62ab5228fbce3f8b9);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_86f54c135a6f8ac62ab5228fbce3f8b9) == 2); // Frame stack
// Framed code:
{
bool tmp_condition_result_1;
PyObject *tmp_cmp_expr_left_1;
PyObject *tmp_cmp_expr_right_1;
CHECK_OBJECT(par_retries);
tmp_cmp_expr_left_1 = par_retries;
tmp_cmp_expr_right_1 = Py_None;
tmp_condition_result_1 = (tmp_cmp_expr_left_1 == tmp_cmp_expr_right_1) ? true : false;
if (tmp_condition_result_1 != false) {
goto branch_yes_1;
} else {
goto branch_no_1;
}
}
branch_yes_1:;
{
PyObject *tmp_assign_source_1;
bool tmp_condition_result_2;
PyObject *tmp_cmp_expr_left_2;
PyObject *tmp_cmp_expr_right_2;
PyObject *tmp_expression_value_1;
CHECK_OBJECT(par_default);
tmp_cmp_expr_left_2 = par_default;
tmp_cmp_expr_right_2 = Py_None;
tmp_condition_result_2 = (tmp_cmp_expr_left_2 != tmp_cmp_expr_right_2) ? true : false;
if (tmp_condition_result_2 != false) {
goto condexpr_true_1;
} else {
goto condexpr_false_1;
}
condexpr_true_1:;
CHECK_OBJECT(par_default);
tmp_assign_source_1 = par_default;
Py_INCREF(tmp_assign_source_1);
goto condexpr_end_1;
condexpr_false_1:;
CHECK_OBJECT(par_cls);
tmp_expression_value_1 = par_cls;
tmp_assign_source_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_1, mod_consts[16]);
if (tmp_assign_source_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 222;
type_description_1 = "ooooo";
goto frame_exception_exit_1;
}
condexpr_end_1:;
{
PyObject *old = par_retries;
assert(old != NULL);
par_retries = tmp_assign_source_1;
Py_DECREF(old);
}
}
branch_no_1:;
{
nuitka_bool tmp_condition_result_3;
PyObject *tmp_isinstance_inst_1;
PyObject *tmp_isinstance_cls_1;
CHECK_OBJECT(par_retries);
tmp_isinstance_inst_1 = par_retries;
tmp_isinstance_cls_1 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[17]);
if (unlikely(tmp_isinstance_cls_1 == NULL)) {
tmp_isinstance_cls_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]);
}
if (tmp_isinstance_cls_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 224;
type_description_1 = "ooooo";
goto frame_exception_exit_1;
}
tmp_res = PyObject_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 = 224;
type_description_1 = "ooooo";
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_2;
} else {
goto branch_no_2;
}
}
branch_yes_2:;
CHECK_OBJECT(par_retries);
tmp_return_value = par_retries;
Py_INCREF(tmp_return_value);
goto frame_return_exit_1;
branch_no_2:;
{
PyObject *tmp_assign_source_2;
int tmp_and_left_truth_1;
PyObject *tmp_and_left_value_1;
PyObject *tmp_and_right_value_1;
PyObject *tmp_value_value_1;
CHECK_OBJECT(par_redirect);
tmp_value_value_1 = par_redirect;
tmp_res = CHECK_IF_TRUE(tmp_value_value_1);
if (tmp_res == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 227;
type_description_1 = "ooooo";
goto frame_exception_exit_1;
}
tmp_and_left_value_1 = (tmp_res != 0) ? Py_True : Py_False;
tmp_and_left_truth_1 = CHECK_IF_TRUE(tmp_and_left_value_1);
if (tmp_and_left_truth_1 == 1) {
goto and_right_1;
} else {
goto and_left_1;
}
and_right_1:;
tmp_and_right_value_1 = Py_None;
tmp_assign_source_2 = tmp_and_right_value_1;
goto and_end_1;
and_left_1:;
tmp_assign_source_2 = tmp_and_left_value_1;
and_end_1:;
{
PyObject *old = par_redirect;
assert(old != NULL);
par_redirect = tmp_assign_source_2;
Py_INCREF(par_redirect);
Py_DECREF(old);
}
}
{
PyObject *tmp_assign_source_3;
PyObject *tmp_called_value_1;
PyObject *tmp_kw_call_arg_value_0_1;
PyObject *tmp_kw_call_dict_value_0_1;
if (par_cls == NULL) {
FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[18]);
exception_tb = NULL;
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
CHAIN_EXCEPTION(exception_value);
exception_lineno = 228;
type_description_1 = "ooooo";
goto frame_exception_exit_1;
}
tmp_called_value_1 = par_cls;
CHECK_OBJECT(par_retries);
tmp_kw_call_arg_value_0_1 = par_retries;
CHECK_OBJECT(par_redirect);
tmp_kw_call_dict_value_0_1 = par_redirect;
frame_86f54c135a6f8ac62ab5228fbce3f8b9->m_frame.f_lineno = 228;
{
PyObject *args[] = {tmp_kw_call_arg_value_0_1};
PyObject *kw_values[1] = {tmp_kw_call_dict_value_0_1};
tmp_assign_source_3 = CALL_FUNCTION_WITH_ARGS1_KWSPLIT(tmp_called_value_1, args, kw_values, mod_consts[19]);
}
if (tmp_assign_source_3 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 228;
type_description_1 = "ooooo";
goto frame_exception_exit_1;
}
assert(var_new_retries == NULL);
var_new_retries = tmp_assign_source_3;
}
{
PyObject *tmp_called_instance_1;
PyObject *tmp_call_result_1;
PyObject *tmp_args_element_value_1;
PyObject *tmp_args_element_value_2;
PyObject *tmp_args_element_value_3;
tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[20]);
if (unlikely(tmp_called_instance_1 == NULL)) {
tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]);
}
if (tmp_called_instance_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 229;
type_description_1 = "ooooo";
goto frame_exception_exit_1;
}
tmp_args_element_value_1 = mod_consts[22];
CHECK_OBJECT(par_retries);
tmp_args_element_value_2 = par_retries;
CHECK_OBJECT(var_new_retries);
tmp_args_element_value_3 = var_new_retries;
frame_86f54c135a6f8ac62ab5228fbce3f8b9->m_frame.f_lineno = 229;
{
PyObject *call_args[] = {tmp_args_element_value_1, tmp_args_element_value_2, tmp_args_element_value_3};
tmp_call_result_1 = CALL_METHOD_WITH_ARGS3(
tmp_called_instance_1,
mod_consts[21],
call_args
);
}
if (tmp_call_result_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 229;
type_description_1 = "ooooo";
goto frame_exception_exit_1;
}
Py_DECREF(tmp_call_result_1);
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_86f54c135a6f8ac62ab5228fbce3f8b9);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_86f54c135a6f8ac62ab5228fbce3f8b9);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_86f54c135a6f8ac62ab5228fbce3f8b9);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_86f54c135a6f8ac62ab5228fbce3f8b9, exception_lineno);
} else if (exception_tb->tb_frame != &frame_86f54c135a6f8ac62ab5228fbce3f8b9->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_86f54c135a6f8ac62ab5228fbce3f8b9, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_86f54c135a6f8ac62ab5228fbce3f8b9,
type_description_1,
par_cls,
par_retries,
par_redirect,
par_default,
var_new_retries
);
// Release cached frame if used for exception.
if (frame_86f54c135a6f8ac62ab5228fbce3f8b9 == cache_frame_86f54c135a6f8ac62ab5228fbce3f8b9) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_86f54c135a6f8ac62ab5228fbce3f8b9);
cache_frame_86f54c135a6f8ac62ab5228fbce3f8b9 = NULL;
}
assertFrameObject(frame_86f54c135a6f8ac62ab5228fbce3f8b9);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
CHECK_OBJECT(var_new_retries);
tmp_return_value = var_new_retries;
Py_INCREF(tmp_return_value);
goto try_return_handler_1;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
Py_XDECREF(par_retries);
par_retries = NULL;
Py_XDECREF(par_redirect);
par_redirect = NULL;
Py_XDECREF(var_new_retries);
var_new_retries = 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_retries);
par_retries = NULL;
Py_XDECREF(par_redirect);
par_redirect = NULL;
Py_XDECREF(var_new_retries);
var_new_retries = 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:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
CHECK_OBJECT(par_cls);
Py_DECREF(par_cls);
CHECK_OBJECT(par_default);
Py_DECREF(par_default);
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
CHECK_OBJECT(par_cls);
Py_DECREF(par_cls);
CHECK_OBJECT(par_default);
Py_DECREF(par_default);
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_urllib3$util$retry$$$function__4_get_backoff_time(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_self = python_pars[0];
PyObject *var_consecutive_errors_len = NULL;
PyObject *var_backoff_value = NULL;
struct Nuitka_FrameObject *frame_c5f77a8f653eaa1d75542879888b4b5f;
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_c5f77a8f653eaa1d75542879888b4b5f = 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 body.
// Tried code:
if (isFrameUnusable(cache_frame_c5f77a8f653eaa1d75542879888b4b5f)) {
Py_XDECREF(cache_frame_c5f77a8f653eaa1d75542879888b4b5f);
#if _DEBUG_REFCOUNTS
if (cache_frame_c5f77a8f653eaa1d75542879888b4b5f == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_c5f77a8f653eaa1d75542879888b4b5f = MAKE_FUNCTION_FRAME(codeobj_c5f77a8f653eaa1d75542879888b4b5f, module_urllib3$util$retry, sizeof(void *)+sizeof(void *)+sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_c5f77a8f653eaa1d75542879888b4b5f->m_type_description == NULL);
frame_c5f77a8f653eaa1d75542879888b4b5f = cache_frame_c5f77a8f653eaa1d75542879888b4b5f;
// Push the new frame as the currently active one.
pushFrameStack(frame_c5f77a8f653eaa1d75542879888b4b5f);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_c5f77a8f653eaa1d75542879888b4b5f) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_assign_source_1;
PyObject *tmp_len_arg_1;
PyObject *tmp_list_arg_1;
PyObject *tmp_called_value_1;
PyObject *tmp_args_element_value_1;
PyObject *tmp_args_element_value_2;
PyObject *tmp_called_value_2;
PyObject *tmp_args_element_value_3;
PyObject *tmp_expression_value_1;
tmp_called_value_1 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[24]);
if (unlikely(tmp_called_value_1 == NULL)) {
tmp_called_value_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[24]);
}
if (tmp_called_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 240;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_args_element_value_1 = MAKE_FUNCTION_urllib3$util$retry$$$function__4_get_backoff_time$$$function__1_lambda();
tmp_called_value_2 = (PyObject *)&PyReversed_Type;
CHECK_OBJECT(par_self);
tmp_expression_value_1 = par_self;
tmp_args_element_value_3 = LOOKUP_ATTRIBUTE(tmp_expression_value_1, mod_consts[12]);
if (tmp_args_element_value_3 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
Py_DECREF(tmp_args_element_value_1);
exception_lineno = 240;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
frame_c5f77a8f653eaa1d75542879888b4b5f->m_frame.f_lineno = 240;
tmp_args_element_value_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_value_2, tmp_args_element_value_3);
Py_DECREF(tmp_args_element_value_3);
if (tmp_args_element_value_2 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
Py_DECREF(tmp_args_element_value_1);
exception_lineno = 240;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
frame_c5f77a8f653eaa1d75542879888b4b5f->m_frame.f_lineno = 240;
{
PyObject *call_args[] = {tmp_args_element_value_1, tmp_args_element_value_2};
tmp_list_arg_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_value_1, call_args);
}
Py_DECREF(tmp_args_element_value_1);
Py_DECREF(tmp_args_element_value_2);
if (tmp_list_arg_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 240;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_len_arg_1 = MAKE_LIST(tmp_list_arg_1);
Py_DECREF(tmp_list_arg_1);
if (tmp_len_arg_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 239;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_assign_source_1 = BUILTIN_LEN(tmp_len_arg_1);
Py_DECREF(tmp_len_arg_1);
if (tmp_assign_source_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 238;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
assert(var_consecutive_errors_len == NULL);
var_consecutive_errors_len = tmp_assign_source_1;
}
{
bool tmp_condition_result_1;
PyObject *tmp_cmp_expr_left_1;
nuitka_digit tmp_cmp_expr_right_1;
CHECK_OBJECT(var_consecutive_errors_len);
tmp_cmp_expr_left_1 = var_consecutive_errors_len;
tmp_cmp_expr_right_1 = 1;
tmp_condition_result_1 = RICH_COMPARE_LE_CBOOL_LONG_DIGIT(tmp_cmp_expr_left_1, tmp_cmp_expr_right_1);
if (tmp_condition_result_1 != false) {
goto branch_yes_1;
} else {
goto branch_no_1;
}
}
branch_yes_1:;
tmp_return_value = mod_consts[4];
Py_INCREF(tmp_return_value);
goto frame_return_exit_1;
branch_no_1:;
{
PyObject *tmp_assign_source_2;
PyObject *tmp_mult_expr_left_1;
PyObject *tmp_mult_expr_right_1;
PyObject *tmp_expression_value_2;
PyObject *tmp_pow_expr_left_1;
PyObject *tmp_pow_expr_right_1;
PyObject *tmp_sub_expr_left_1;
nuitka_digit tmp_sub_expr_right_1;
CHECK_OBJECT(par_self);
tmp_expression_value_2 = par_self;
tmp_mult_expr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_2, mod_consts[8]);
if (tmp_mult_expr_left_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 246;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_pow_expr_left_1 = mod_consts[27];
CHECK_OBJECT(var_consecutive_errors_len);
tmp_sub_expr_left_1 = var_consecutive_errors_len;
tmp_sub_expr_right_1 = 1;
tmp_pow_expr_right_1 = BINARY_OPERATION_SUB_OBJECT_LONG_DIGIT(tmp_sub_expr_left_1, tmp_sub_expr_right_1);
assert(!(tmp_pow_expr_right_1 == NULL));
tmp_mult_expr_right_1 = BINARY_OPERATION_POW_OBJECT_OBJECT_OBJECT(tmp_pow_expr_left_1, tmp_pow_expr_right_1);
Py_DECREF(tmp_pow_expr_right_1);
if (tmp_mult_expr_right_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
Py_DECREF(tmp_mult_expr_left_1);
exception_lineno = 246;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_assign_source_2 = BINARY_OPERATION_MULT_OBJECT_OBJECT_OBJECT(tmp_mult_expr_left_1, tmp_mult_expr_right_1);
Py_DECREF(tmp_mult_expr_left_1);
Py_DECREF(tmp_mult_expr_right_1);
if (tmp_assign_source_2 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 246;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
assert(var_backoff_value == NULL);
var_backoff_value = tmp_assign_source_2;
}
{
PyObject *tmp_called_value_3;
PyObject *tmp_args_element_value_4;
PyObject *tmp_expression_value_3;
PyObject *tmp_args_element_value_5;
tmp_called_value_3 = LOOKUP_BUILTIN(mod_consts[28]);
assert(tmp_called_value_3 != NULL);
CHECK_OBJECT(par_self);
tmp_expression_value_3 = par_self;
tmp_args_element_value_4 = LOOKUP_ATTRIBUTE(tmp_expression_value_3, mod_consts[29]);
if (tmp_args_element_value_4 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 247;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
CHECK_OBJECT(var_backoff_value);
tmp_args_element_value_5 = var_backoff_value;
frame_c5f77a8f653eaa1d75542879888b4b5f->m_frame.f_lineno = 247;
{
PyObject *call_args[] = {tmp_args_element_value_4, tmp_args_element_value_5};
tmp_return_value = CALL_FUNCTION_WITH_ARGS2(tmp_called_value_3, call_args);
}
Py_DECREF(tmp_args_element_value_4);
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 247;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_c5f77a8f653eaa1d75542879888b4b5f);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_c5f77a8f653eaa1d75542879888b4b5f);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_c5f77a8f653eaa1d75542879888b4b5f);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_c5f77a8f653eaa1d75542879888b4b5f, exception_lineno);
} else if (exception_tb->tb_frame != &frame_c5f77a8f653eaa1d75542879888b4b5f->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_c5f77a8f653eaa1d75542879888b4b5f, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_c5f77a8f653eaa1d75542879888b4b5f,
type_description_1,
par_self,
var_consecutive_errors_len,
var_backoff_value
);
// Release cached frame if used for exception.
if (frame_c5f77a8f653eaa1d75542879888b4b5f == cache_frame_c5f77a8f653eaa1d75542879888b4b5f) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_c5f77a8f653eaa1d75542879888b4b5f);
cache_frame_c5f77a8f653eaa1d75542879888b4b5f = NULL;
}
assertFrameObject(frame_c5f77a8f653eaa1d75542879888b4b5f);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(var_consecutive_errors_len);
Py_DECREF(var_consecutive_errors_len);
var_consecutive_errors_len = NULL;
Py_XDECREF(var_backoff_value);
var_backoff_value = 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(var_consecutive_errors_len);
var_consecutive_errors_len = NULL;
Py_XDECREF(var_backoff_value);
var_backoff_value = 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:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_urllib3$util$retry$$$function__4_get_backoff_time$$$function__1_lambda(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_x = python_pars[0];
struct Nuitka_FrameObject *frame_e264048c7eb5e8d89158e71aa56aa2c0;
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_e264048c7eb5e8d89158e71aa56aa2c0 = NULL;
// Actual function body.
if (isFrameUnusable(cache_frame_e264048c7eb5e8d89158e71aa56aa2c0)) {
Py_XDECREF(cache_frame_e264048c7eb5e8d89158e71aa56aa2c0);
#if _DEBUG_REFCOUNTS
if (cache_frame_e264048c7eb5e8d89158e71aa56aa2c0 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_e264048c7eb5e8d89158e71aa56aa2c0 = MAKE_FUNCTION_FRAME(codeobj_e264048c7eb5e8d89158e71aa56aa2c0, module_urllib3$util$retry, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_e264048c7eb5e8d89158e71aa56aa2c0->m_type_description == NULL);
frame_e264048c7eb5e8d89158e71aa56aa2c0 = cache_frame_e264048c7eb5e8d89158e71aa56aa2c0;
// Push the new frame as the currently active one.
pushFrameStack(frame_e264048c7eb5e8d89158e71aa56aa2c0);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_e264048c7eb5e8d89158e71aa56aa2c0) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_cmp_expr_left_1;
PyObject *tmp_cmp_expr_right_1;
PyObject *tmp_expression_value_1;
CHECK_OBJECT(par_x);
tmp_expression_value_1 = par_x;
tmp_cmp_expr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_1, mod_consts[31]);
if (tmp_cmp_expr_left_1 == 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;
}
tmp_cmp_expr_right_1 = Py_None;
tmp_return_value = (tmp_cmp_expr_left_1 == tmp_cmp_expr_right_1) ? Py_True : Py_False;
Py_DECREF(tmp_cmp_expr_left_1);
Py_INCREF(tmp_return_value);
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_e264048c7eb5e8d89158e71aa56aa2c0);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_e264048c7eb5e8d89158e71aa56aa2c0);
#endif
// Put the previous frame back on top.
popFrameStack();
goto function_return_exit;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_e264048c7eb5e8d89158e71aa56aa2c0);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_e264048c7eb5e8d89158e71aa56aa2c0, exception_lineno);
} else if (exception_tb->tb_frame != &frame_e264048c7eb5e8d89158e71aa56aa2c0->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_e264048c7eb5e8d89158e71aa56aa2c0, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_e264048c7eb5e8d89158e71aa56aa2c0,
type_description_1,
par_x
);
// Release cached frame if used for exception.
if (frame_e264048c7eb5e8d89158e71aa56aa2c0 == cache_frame_e264048c7eb5e8d89158e71aa56aa2c0) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_e264048c7eb5e8d89158e71aa56aa2c0);
cache_frame_e264048c7eb5e8d89158e71aa56aa2c0 = NULL;
}
assertFrameObject(frame_e264048c7eb5e8d89158e71aa56aa2c0);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto function_exception_exit;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
CHECK_OBJECT(par_x);
Py_DECREF(par_x);
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
CHECK_OBJECT(par_x);
Py_DECREF(par_x);
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_urllib3$util$retry$$$function__5_parse_retry_after(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_retry_after = python_pars[1];
PyObject *var_seconds = NULL;
PyObject *var_retry_date_tuple = NULL;
PyObject *var_retry_date = NULL;
struct Nuitka_FrameObject *frame_8e51ebcbe638c49e15ac4599ae16e92e;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
static struct Nuitka_FrameObject *cache_frame_8e51ebcbe638c49e15ac4599ae16e92e = 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 body.
// Tried code:
if (isFrameUnusable(cache_frame_8e51ebcbe638c49e15ac4599ae16e92e)) {
Py_XDECREF(cache_frame_8e51ebcbe638c49e15ac4599ae16e92e);
#if _DEBUG_REFCOUNTS
if (cache_frame_8e51ebcbe638c49e15ac4599ae16e92e == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_8e51ebcbe638c49e15ac4599ae16e92e = MAKE_FUNCTION_FRAME(codeobj_8e51ebcbe638c49e15ac4599ae16e92e, module_urllib3$util$retry, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_8e51ebcbe638c49e15ac4599ae16e92e->m_type_description == NULL);
frame_8e51ebcbe638c49e15ac4599ae16e92e = cache_frame_8e51ebcbe638c49e15ac4599ae16e92e;
// Push the new frame as the currently active one.
pushFrameStack(frame_8e51ebcbe638c49e15ac4599ae16e92e);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_8e51ebcbe638c49e15ac4599ae16e92e) == 2); // Frame stack
// Framed code:
{
nuitka_bool tmp_condition_result_1;
PyObject *tmp_called_instance_1;
PyObject *tmp_call_result_1;
PyObject *tmp_args_element_value_1;
PyObject *tmp_args_element_value_2;
int tmp_truth_name_1;
tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[32]);
if (unlikely(tmp_called_instance_1 == NULL)) {
tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[32]);
}
if (tmp_called_instance_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 251;
type_description_1 = "ooooo";
goto frame_exception_exit_1;
}
tmp_args_element_value_1 = mod_consts[34];
CHECK_OBJECT(par_retry_after);
tmp_args_element_value_2 = par_retry_after;
frame_8e51ebcbe638c49e15ac4599ae16e92e->m_frame.f_lineno = 251;
{
PyObject *call_args[] = {tmp_args_element_value_1, tmp_args_element_value_2};
tmp_call_result_1 = CALL_METHOD_WITH_ARGS2(
tmp_called_instance_1,
mod_consts[33],
call_args
);
}
if (tmp_call_result_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 251;
type_description_1 = "ooooo";
goto frame_exception_exit_1;
}
tmp_truth_name_1 = CHECK_IF_TRUE(tmp_call_result_1);
if (tmp_truth_name_1 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
Py_DECREF(tmp_call_result_1);
exception_lineno = 251;
type_description_1 = "ooooo";
goto frame_exception_exit_1;
}
tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE;
Py_DECREF(tmp_call_result_1);
if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) {
goto branch_yes_1;
} else {
goto branch_no_1;
}
}
branch_yes_1:;
{
PyObject *tmp_assign_source_1;
PyObject *tmp_int_arg_1;
CHECK_OBJECT(par_retry_after);
tmp_int_arg_1 = par_retry_after;
tmp_assign_source_1 = PyNumber_Int(tmp_int_arg_1);
if (tmp_assign_source_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 252;
type_description_1 = "ooooo";
goto frame_exception_exit_1;
}
assert(var_seconds == NULL);
var_seconds = tmp_assign_source_1;
}
goto branch_end_1;
branch_no_1:;
{
PyObject *tmp_assign_source_2;
PyObject *tmp_called_instance_2;
PyObject *tmp_expression_value_1;
PyObject *tmp_args_element_value_3;
tmp_expression_value_1 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[35]);
if (unlikely(tmp_expression_value_1 == NULL)) {
tmp_expression_value_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[35]);
}
if (tmp_expression_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 254;
type_description_1 = "ooooo";
goto frame_exception_exit_1;
}
tmp_called_instance_2 = LOOKUP_ATTRIBUTE(tmp_expression_value_1, mod_consts[36]);
if (tmp_called_instance_2 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 254;
type_description_1 = "ooooo";
goto frame_exception_exit_1;
}
CHECK_OBJECT(par_retry_after);
tmp_args_element_value_3 = par_retry_after;
frame_8e51ebcbe638c49e15ac4599ae16e92e->m_frame.f_lineno = 254;
tmp_assign_source_2 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[37], tmp_args_element_value_3);
Py_DECREF(tmp_called_instance_2);
if (tmp_assign_source_2 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 254;
type_description_1 = "ooooo";
goto frame_exception_exit_1;
}
assert(var_retry_date_tuple == NULL);
var_retry_date_tuple = tmp_assign_source_2;
}
{
bool tmp_condition_result_2;
PyObject *tmp_cmp_expr_left_1;
PyObject *tmp_cmp_expr_right_1;
CHECK_OBJECT(var_retry_date_tuple);
tmp_cmp_expr_left_1 = var_retry_date_tuple;
tmp_cmp_expr_right_1 = Py_None;
tmp_condition_result_2 = (tmp_cmp_expr_left_1 == tmp_cmp_expr_right_1) ? true : false;
if (tmp_condition_result_2 != false) {
goto branch_yes_2;
} else {
goto branch_no_2;
}
}
branch_yes_2:;
{
PyObject *tmp_raise_type_1;
PyObject *tmp_called_value_1;
PyObject *tmp_args_element_value_4;
PyObject *tmp_mod_expr_left_1;
PyObject *tmp_mod_expr_right_1;
tmp_called_value_1 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[38]);
if (unlikely(tmp_called_value_1 == NULL)) {
tmp_called_value_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[38]);
}
if (tmp_called_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 256;
type_description_1 = "ooooo";
goto frame_exception_exit_1;
}
tmp_mod_expr_left_1 = mod_consts[39];
CHECK_OBJECT(par_retry_after);
tmp_mod_expr_right_1 = par_retry_after;
tmp_args_element_value_4 = BINARY_OPERATION_MOD_OBJECT_UNICODE_OBJECT(tmp_mod_expr_left_1, tmp_mod_expr_right_1);
if (tmp_args_element_value_4 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 256;
type_description_1 = "ooooo";
goto frame_exception_exit_1;
}
frame_8e51ebcbe638c49e15ac4599ae16e92e->m_frame.f_lineno = 256;
tmp_raise_type_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_value_1, tmp_args_element_value_4);
Py_DECREF(tmp_args_element_value_4);
if (tmp_raise_type_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 256;
type_description_1 = "ooooo";
goto frame_exception_exit_1;
}
exception_type = tmp_raise_type_1;
exception_lineno = 256;
RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb);
type_description_1 = "ooooo";
goto frame_exception_exit_1;
}
branch_no_2:;
{
PyObject *tmp_assign_source_3;
PyObject *tmp_called_instance_3;
PyObject *tmp_args_element_value_5;
tmp_called_instance_3 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[40]);
if (unlikely(tmp_called_instance_3 == NULL)) {
tmp_called_instance_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[40]);
}
if (tmp_called_instance_3 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 257;
type_description_1 = "ooooo";
goto frame_exception_exit_1;
}
CHECK_OBJECT(var_retry_date_tuple);
tmp_args_element_value_5 = var_retry_date_tuple;
frame_8e51ebcbe638c49e15ac4599ae16e92e->m_frame.f_lineno = 257;
tmp_assign_source_3 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_3, mod_consts[41], tmp_args_element_value_5);
if (tmp_assign_source_3 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 257;
type_description_1 = "ooooo";
goto frame_exception_exit_1;
}
assert(var_retry_date == NULL);
var_retry_date = tmp_assign_source_3;
}
{
PyObject *tmp_assign_source_4;
PyObject *tmp_sub_expr_left_1;
PyObject *tmp_sub_expr_right_1;
PyObject *tmp_called_instance_4;
CHECK_OBJECT(var_retry_date);
tmp_sub_expr_left_1 = var_retry_date;
tmp_called_instance_4 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[40]);
if (unlikely(tmp_called_instance_4 == NULL)) {
tmp_called_instance_4 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[40]);
}
if (tmp_called_instance_4 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 258;
type_description_1 = "ooooo";
goto frame_exception_exit_1;
}
frame_8e51ebcbe638c49e15ac4599ae16e92e->m_frame.f_lineno = 258;
tmp_sub_expr_right_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[40]);
if (tmp_sub_expr_right_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 258;
type_description_1 = "ooooo";
goto frame_exception_exit_1;
}
tmp_assign_source_4 = BINARY_OPERATION_SUB_OBJECT_OBJECT_OBJECT(tmp_sub_expr_left_1, tmp_sub_expr_right_1);
Py_DECREF(tmp_sub_expr_right_1);
if (tmp_assign_source_4 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 258;
type_description_1 = "ooooo";
goto frame_exception_exit_1;
}
assert(var_seconds == NULL);
var_seconds = tmp_assign_source_4;
}
branch_end_1:;
{
nuitka_bool tmp_condition_result_3;
PyObject *tmp_cmp_expr_left_2;
PyObject *tmp_cmp_expr_right_2;
CHECK_OBJECT(var_seconds);
tmp_cmp_expr_left_2 = var_seconds;
tmp_cmp_expr_right_2 = mod_consts[4];
tmp_condition_result_3 = RICH_COMPARE_LT_NBOOL_OBJECT_LONG(tmp_cmp_expr_left_2, tmp_cmp_expr_right_2);
if (tmp_condition_result_3 == NUITKA_BOOL_EXCEPTION) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 260;
type_description_1 = "ooooo";
goto frame_exception_exit_1;
}
if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) {
goto branch_yes_3;
} else {
goto branch_no_3;
}
}
branch_yes_3:;
{
PyObject *tmp_assign_source_5;
tmp_assign_source_5 = mod_consts[4];
{
PyObject *old = var_seconds;
assert(old != NULL);
var_seconds = tmp_assign_source_5;
Py_INCREF(var_seconds);
Py_DECREF(old);
}
}
branch_no_3:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_8e51ebcbe638c49e15ac4599ae16e92e);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_8e51ebcbe638c49e15ac4599ae16e92e);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_8e51ebcbe638c49e15ac4599ae16e92e, exception_lineno);
} else if (exception_tb->tb_frame != &frame_8e51ebcbe638c49e15ac4599ae16e92e->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_8e51ebcbe638c49e15ac4599ae16e92e, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_8e51ebcbe638c49e15ac4599ae16e92e,
type_description_1,
par_self,
par_retry_after,
var_seconds,
var_retry_date_tuple,
var_retry_date
);
// Release cached frame if used for exception.
if (frame_8e51ebcbe638c49e15ac4599ae16e92e == cache_frame_8e51ebcbe638c49e15ac4599ae16e92e) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_8e51ebcbe638c49e15ac4599ae16e92e);
cache_frame_8e51ebcbe638c49e15ac4599ae16e92e = NULL;
}
assertFrameObject(frame_8e51ebcbe638c49e15ac4599ae16e92e);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
CHECK_OBJECT(var_seconds);
tmp_return_value = var_seconds;
Py_INCREF(tmp_return_value);
goto try_return_handler_1;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(var_seconds);
Py_DECREF(var_seconds);
var_seconds = NULL;
Py_XDECREF(var_retry_date_tuple);
var_retry_date_tuple = NULL;
Py_XDECREF(var_retry_date);
var_retry_date = 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(var_seconds);
var_seconds = NULL;
Py_XDECREF(var_retry_date_tuple);
var_retry_date_tuple = NULL;
Py_XDECREF(var_retry_date);
var_retry_date = 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:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
CHECK_OBJECT(par_retry_after);
Py_DECREF(par_retry_after);
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
CHECK_OBJECT(par_retry_after);
Py_DECREF(par_retry_after);
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_urllib3$util$retry$$$function__6_get_retry_after(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_response = python_pars[1];
PyObject *var_retry_after = NULL;
struct Nuitka_FrameObject *frame_d9d00a2c60ec55f19f720570fd55f06d;
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_d9d00a2c60ec55f19f720570fd55f06d = 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 body.
// Tried code:
if (isFrameUnusable(cache_frame_d9d00a2c60ec55f19f720570fd55f06d)) {
Py_XDECREF(cache_frame_d9d00a2c60ec55f19f720570fd55f06d);
#if _DEBUG_REFCOUNTS
if (cache_frame_d9d00a2c60ec55f19f720570fd55f06d == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_d9d00a2c60ec55f19f720570fd55f06d = MAKE_FUNCTION_FRAME(codeobj_d9d00a2c60ec55f19f720570fd55f06d, module_urllib3$util$retry, sizeof(void *)+sizeof(void *)+sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_d9d00a2c60ec55f19f720570fd55f06d->m_type_description == NULL);
frame_d9d00a2c60ec55f19f720570fd55f06d = cache_frame_d9d00a2c60ec55f19f720570fd55f06d;
// Push the new frame as the currently active one.
pushFrameStack(frame_d9d00a2c60ec55f19f720570fd55f06d);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_d9d00a2c60ec55f19f720570fd55f06d) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_assign_source_1;
PyObject *tmp_called_instance_1;
CHECK_OBJECT(par_response);
tmp_called_instance_1 = par_response;
frame_d9d00a2c60ec55f19f720570fd55f06d->m_frame.f_lineno = 268;
tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(
tmp_called_instance_1,
mod_consts[42],
PyTuple_GET_ITEM(mod_consts[43], 0)
);
if (tmp_assign_source_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 268;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
assert(var_retry_after == NULL);
var_retry_after = tmp_assign_source_1;
}
{
bool tmp_condition_result_1;
PyObject *tmp_cmp_expr_left_1;
PyObject *tmp_cmp_expr_right_1;
CHECK_OBJECT(var_retry_after);
tmp_cmp_expr_left_1 = var_retry_after;
tmp_cmp_expr_right_1 = Py_None;
tmp_condition_result_1 = (tmp_cmp_expr_left_1 == tmp_cmp_expr_right_1) ? true : false;
if (tmp_condition_result_1 != false) {
goto branch_yes_1;
} else {
goto branch_no_1;
}
}
branch_yes_1:;
tmp_return_value = Py_None;
Py_INCREF(tmp_return_value);
goto frame_return_exit_1;
branch_no_1:;
{
PyObject *tmp_called_instance_2;
PyObject *tmp_args_element_value_1;
CHECK_OBJECT(par_self);
tmp_called_instance_2 = par_self;
CHECK_OBJECT(var_retry_after);
tmp_args_element_value_1 = var_retry_after;
frame_d9d00a2c60ec55f19f720570fd55f06d->m_frame.f_lineno = 273;
tmp_return_value = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[44], tmp_args_element_value_1);
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 273;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_d9d00a2c60ec55f19f720570fd55f06d);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_d9d00a2c60ec55f19f720570fd55f06d);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_d9d00a2c60ec55f19f720570fd55f06d);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_d9d00a2c60ec55f19f720570fd55f06d, exception_lineno);
} else if (exception_tb->tb_frame != &frame_d9d00a2c60ec55f19f720570fd55f06d->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_d9d00a2c60ec55f19f720570fd55f06d, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_d9d00a2c60ec55f19f720570fd55f06d,
type_description_1,
par_self,
par_response,
var_retry_after
);
// Release cached frame if used for exception.
if (frame_d9d00a2c60ec55f19f720570fd55f06d == cache_frame_d9d00a2c60ec55f19f720570fd55f06d) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_d9d00a2c60ec55f19f720570fd55f06d);
cache_frame_d9d00a2c60ec55f19f720570fd55f06d = NULL;
}
assertFrameObject(frame_d9d00a2c60ec55f19f720570fd55f06d);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
Py_XDECREF(var_retry_after);
var_retry_after = 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(var_retry_after);
var_retry_after = 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:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
CHECK_OBJECT(par_response);
Py_DECREF(par_response);
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
CHECK_OBJECT(par_response);
Py_DECREF(par_response);
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_urllib3$util$retry$$$function__7_sleep_for_retry(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_response = python_pars[1];
PyObject *var_retry_after = NULL;
struct Nuitka_FrameObject *frame_c9c24f201530f0b568434780cabda7d9;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused;
PyObject *tmp_return_value = NULL;
static struct Nuitka_FrameObject *cache_frame_c9c24f201530f0b568434780cabda7d9 = 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 body.
// Tried code:
if (isFrameUnusable(cache_frame_c9c24f201530f0b568434780cabda7d9)) {
Py_XDECREF(cache_frame_c9c24f201530f0b568434780cabda7d9);
#if _DEBUG_REFCOUNTS
if (cache_frame_c9c24f201530f0b568434780cabda7d9 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_c9c24f201530f0b568434780cabda7d9 = MAKE_FUNCTION_FRAME(codeobj_c9c24f201530f0b568434780cabda7d9, module_urllib3$util$retry, sizeof(void *)+sizeof(void *)+sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_c9c24f201530f0b568434780cabda7d9->m_type_description == NULL);
frame_c9c24f201530f0b568434780cabda7d9 = cache_frame_c9c24f201530f0b568434780cabda7d9;
// Push the new frame as the currently active one.
pushFrameStack(frame_c9c24f201530f0b568434780cabda7d9);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_c9c24f201530f0b568434780cabda7d9) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_assign_source_1;
PyObject *tmp_called_instance_1;
PyObject *tmp_args_element_value_1;
CHECK_OBJECT(par_self);
tmp_called_instance_1 = par_self;
CHECK_OBJECT(par_response);
tmp_args_element_value_1 = par_response;
frame_c9c24f201530f0b568434780cabda7d9->m_frame.f_lineno = 276;
tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[46], tmp_args_element_value_1);
if (tmp_assign_source_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 276;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
assert(var_retry_after == NULL);
var_retry_after = tmp_assign_source_1;
}
{
nuitka_bool tmp_condition_result_1;
int tmp_truth_name_1;
CHECK_OBJECT(var_retry_after);
tmp_truth_name_1 = CHECK_IF_TRUE(var_retry_after);
if (tmp_truth_name_1 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 277;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_condition_result_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE;
if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) {
goto branch_yes_1;
} else {
goto branch_no_1;
}
}
branch_yes_1:;
{
PyObject *tmp_called_instance_2;
PyObject *tmp_call_result_1;
PyObject *tmp_args_element_value_2;
tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[40]);
if (unlikely(tmp_called_instance_2 == NULL)) {
tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[40]);
}
if (tmp_called_instance_2 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 278;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
CHECK_OBJECT(var_retry_after);
tmp_args_element_value_2 = var_retry_after;
frame_c9c24f201530f0b568434780cabda7d9->m_frame.f_lineno = 278;
tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[47], tmp_args_element_value_2);
if (tmp_call_result_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 278;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
Py_DECREF(tmp_call_result_1);
}
tmp_return_value = Py_True;
Py_INCREF(tmp_return_value);
goto frame_return_exit_1;
branch_no_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_c9c24f201530f0b568434780cabda7d9);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_c9c24f201530f0b568434780cabda7d9);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_c9c24f201530f0b568434780cabda7d9);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_c9c24f201530f0b568434780cabda7d9, exception_lineno);
} else if (exception_tb->tb_frame != &frame_c9c24f201530f0b568434780cabda7d9->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_c9c24f201530f0b568434780cabda7d9, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_c9c24f201530f0b568434780cabda7d9,
type_description_1,
par_self,
par_response,
var_retry_after
);
// Release cached frame if used for exception.
if (frame_c9c24f201530f0b568434780cabda7d9 == cache_frame_c9c24f201530f0b568434780cabda7d9) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_c9c24f201530f0b568434780cabda7d9);
cache_frame_c9c24f201530f0b568434780cabda7d9 = NULL;
}
assertFrameObject(frame_c9c24f201530f0b568434780cabda7d9);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
tmp_return_value = Py_False;
Py_INCREF(tmp_return_value);
goto try_return_handler_1;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(var_retry_after);
Py_DECREF(var_retry_after);
var_retry_after = 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(var_retry_after);
var_retry_after = 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:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
CHECK_OBJECT(par_response);
Py_DECREF(par_response);
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
CHECK_OBJECT(par_response);
Py_DECREF(par_response);
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_urllib3$util$retry$$$function__8__sleep_backoff(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_self = python_pars[0];
PyObject *var_backoff = NULL;
struct Nuitka_FrameObject *frame_0d666f7d6f1bc79ae6c85aab7f1b89fe;
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;
NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused;
static struct Nuitka_FrameObject *cache_frame_0d666f7d6f1bc79ae6c85aab7f1b89fe = 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 body.
// Tried code:
if (isFrameUnusable(cache_frame_0d666f7d6f1bc79ae6c85aab7f1b89fe)) {
Py_XDECREF(cache_frame_0d666f7d6f1bc79ae6c85aab7f1b89fe);
#if _DEBUG_REFCOUNTS
if (cache_frame_0d666f7d6f1bc79ae6c85aab7f1b89fe == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_0d666f7d6f1bc79ae6c85aab7f1b89fe = MAKE_FUNCTION_FRAME(codeobj_0d666f7d6f1bc79ae6c85aab7f1b89fe, module_urllib3$util$retry, sizeof(void *)+sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_0d666f7d6f1bc79ae6c85aab7f1b89fe->m_type_description == NULL);
frame_0d666f7d6f1bc79ae6c85aab7f1b89fe = cache_frame_0d666f7d6f1bc79ae6c85aab7f1b89fe;
// Push the new frame as the currently active one.
pushFrameStack(frame_0d666f7d6f1bc79ae6c85aab7f1b89fe);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_0d666f7d6f1bc79ae6c85aab7f1b89fe) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_assign_source_1;
PyObject *tmp_called_instance_1;
CHECK_OBJECT(par_self);
tmp_called_instance_1 = par_self;
frame_0d666f7d6f1bc79ae6c85aab7f1b89fe->m_frame.f_lineno = 284;
tmp_assign_source_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_1, mod_consts[48]);
if (tmp_assign_source_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 284;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
assert(var_backoff == NULL);
var_backoff = tmp_assign_source_1;
}
{
nuitka_bool tmp_condition_result_1;
PyObject *tmp_cmp_expr_left_1;
PyObject *tmp_cmp_expr_right_1;
CHECK_OBJECT(var_backoff);
tmp_cmp_expr_left_1 = var_backoff;
tmp_cmp_expr_right_1 = mod_consts[4];
tmp_condition_result_1 = RICH_COMPARE_LE_NBOOL_OBJECT_LONG(tmp_cmp_expr_left_1, tmp_cmp_expr_right_1);
if (tmp_condition_result_1 == NUITKA_BOOL_EXCEPTION) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 285;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) {
goto branch_yes_1;
} else {
goto branch_no_1;
}
}
branch_yes_1:;
tmp_return_value = Py_None;
Py_INCREF(tmp_return_value);
goto frame_return_exit_1;
branch_no_1:;
{
PyObject *tmp_called_instance_2;
PyObject *tmp_call_result_1;
PyObject *tmp_args_element_value_1;
tmp_called_instance_2 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[40]);
if (unlikely(tmp_called_instance_2 == NULL)) {
tmp_called_instance_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[40]);
}
if (tmp_called_instance_2 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 287;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
CHECK_OBJECT(var_backoff);
tmp_args_element_value_1 = var_backoff;
frame_0d666f7d6f1bc79ae6c85aab7f1b89fe->m_frame.f_lineno = 287;
tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[47], tmp_args_element_value_1);
if (tmp_call_result_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 287;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
Py_DECREF(tmp_call_result_1);
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_0d666f7d6f1bc79ae6c85aab7f1b89fe);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_0d666f7d6f1bc79ae6c85aab7f1b89fe);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_0d666f7d6f1bc79ae6c85aab7f1b89fe);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_0d666f7d6f1bc79ae6c85aab7f1b89fe, exception_lineno);
} else if (exception_tb->tb_frame != &frame_0d666f7d6f1bc79ae6c85aab7f1b89fe->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_0d666f7d6f1bc79ae6c85aab7f1b89fe, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_0d666f7d6f1bc79ae6c85aab7f1b89fe,
type_description_1,
par_self,
var_backoff
);
// Release cached frame if used for exception.
if (frame_0d666f7d6f1bc79ae6c85aab7f1b89fe == cache_frame_0d666f7d6f1bc79ae6c85aab7f1b89fe) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_0d666f7d6f1bc79ae6c85aab7f1b89fe);
cache_frame_0d666f7d6f1bc79ae6c85aab7f1b89fe = NULL;
}
assertFrameObject(frame_0d666f7d6f1bc79ae6c85aab7f1b89fe);
// 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;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
Py_XDECREF(var_backoff);
var_backoff = 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(var_backoff);
var_backoff = 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:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_urllib3$util$retry$$$function__9_sleep(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_response = python_pars[1];
PyObject *var_slept = NULL;
struct Nuitka_FrameObject *frame_05915f7b1b748eded149b7053a0f8ae9;
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;
NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused;
static struct Nuitka_FrameObject *cache_frame_05915f7b1b748eded149b7053a0f8ae9 = 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 body.
// Tried code:
if (isFrameUnusable(cache_frame_05915f7b1b748eded149b7053a0f8ae9)) {
Py_XDECREF(cache_frame_05915f7b1b748eded149b7053a0f8ae9);
#if _DEBUG_REFCOUNTS
if (cache_frame_05915f7b1b748eded149b7053a0f8ae9 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_05915f7b1b748eded149b7053a0f8ae9 = MAKE_FUNCTION_FRAME(codeobj_05915f7b1b748eded149b7053a0f8ae9, module_urllib3$util$retry, sizeof(void *)+sizeof(void *)+sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_05915f7b1b748eded149b7053a0f8ae9->m_type_description == NULL);
frame_05915f7b1b748eded149b7053a0f8ae9 = cache_frame_05915f7b1b748eded149b7053a0f8ae9;
// Push the new frame as the currently active one.
pushFrameStack(frame_05915f7b1b748eded149b7053a0f8ae9);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_05915f7b1b748eded149b7053a0f8ae9) == 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_expression_value_1;
PyObject *tmp_attribute_value_1;
int tmp_truth_name_1;
int tmp_truth_name_2;
CHECK_OBJECT(par_self);
tmp_expression_value_1 = par_self;
tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_1, mod_consts[13]);
if (tmp_attribute_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 298;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_truth_name_1 = CHECK_IF_TRUE(tmp_attribute_value_1);
if (tmp_truth_name_1 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
Py_DECREF(tmp_attribute_value_1);
exception_lineno = 298;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_and_left_value_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE;
Py_DECREF(tmp_attribute_value_1);
tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0;
if (tmp_and_left_truth_1 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 298;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
if (tmp_and_left_truth_1 == 1) {
goto and_right_1;
} else {
goto and_left_1;
}
and_right_1:;
CHECK_OBJECT(par_response);
tmp_truth_name_2 = CHECK_IF_TRUE(par_response);
if (tmp_truth_name_2 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 298;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_and_right_value_1 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE;
tmp_condition_result_1 = tmp_and_right_value_1;
goto and_end_1;
and_left_1:;
tmp_condition_result_1 = tmp_and_left_value_1;
and_end_1:;
if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) {
goto branch_yes_1;
} else {
goto branch_no_1;
}
}
branch_yes_1:;
{
PyObject *tmp_assign_source_1;
PyObject *tmp_called_instance_1;
PyObject *tmp_args_element_value_1;
CHECK_OBJECT(par_self);
tmp_called_instance_1 = par_self;
CHECK_OBJECT(par_response);
tmp_args_element_value_1 = par_response;
frame_05915f7b1b748eded149b7053a0f8ae9->m_frame.f_lineno = 299;
tmp_assign_source_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[49], tmp_args_element_value_1);
if (tmp_assign_source_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 299;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
assert(var_slept == NULL);
var_slept = tmp_assign_source_1;
}
{
nuitka_bool tmp_condition_result_2;
int tmp_truth_name_3;
CHECK_OBJECT(var_slept);
tmp_truth_name_3 = CHECK_IF_TRUE(var_slept);
if (tmp_truth_name_3 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 300;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_condition_result_2 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE;
if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) {
goto branch_yes_2;
} else {
goto branch_no_2;
}
}
branch_yes_2:;
tmp_return_value = Py_None;
Py_INCREF(tmp_return_value);
goto frame_return_exit_1;
branch_no_2:;
branch_no_1:;
{
PyObject *tmp_called_instance_2;
PyObject *tmp_call_result_1;
CHECK_OBJECT(par_self);
tmp_called_instance_2 = par_self;
frame_05915f7b1b748eded149b7053a0f8ae9->m_frame.f_lineno = 303;
tmp_call_result_1 = CALL_METHOD_NO_ARGS(tmp_called_instance_2, mod_consts[50]);
if (tmp_call_result_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 303;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
Py_DECREF(tmp_call_result_1);
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_05915f7b1b748eded149b7053a0f8ae9);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_05915f7b1b748eded149b7053a0f8ae9);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_05915f7b1b748eded149b7053a0f8ae9);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_05915f7b1b748eded149b7053a0f8ae9, exception_lineno);
} else if (exception_tb->tb_frame != &frame_05915f7b1b748eded149b7053a0f8ae9->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_05915f7b1b748eded149b7053a0f8ae9, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_05915f7b1b748eded149b7053a0f8ae9,
type_description_1,
par_self,
par_response,
var_slept
);
// Release cached frame if used for exception.
if (frame_05915f7b1b748eded149b7053a0f8ae9 == cache_frame_05915f7b1b748eded149b7053a0f8ae9) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_05915f7b1b748eded149b7053a0f8ae9);
cache_frame_05915f7b1b748eded149b7053a0f8ae9 = NULL;
}
assertFrameObject(frame_05915f7b1b748eded149b7053a0f8ae9);
// 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;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
Py_XDECREF(var_slept);
var_slept = 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(var_slept);
var_slept = 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:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
CHECK_OBJECT(par_response);
Py_DECREF(par_response);
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
CHECK_OBJECT(par_response);
Py_DECREF(par_response);
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_urllib3$util$retry$$$function__10__is_connection_error(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_err = python_pars[1];
struct Nuitka_FrameObject *frame_2d5fea8d3a7b78c7ceab20f4bb49947e;
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_2d5fea8d3a7b78c7ceab20f4bb49947e = NULL;
// Actual function body.
if (isFrameUnusable(cache_frame_2d5fea8d3a7b78c7ceab20f4bb49947e)) {
Py_XDECREF(cache_frame_2d5fea8d3a7b78c7ceab20f4bb49947e);
#if _DEBUG_REFCOUNTS
if (cache_frame_2d5fea8d3a7b78c7ceab20f4bb49947e == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_2d5fea8d3a7b78c7ceab20f4bb49947e = MAKE_FUNCTION_FRAME(codeobj_2d5fea8d3a7b78c7ceab20f4bb49947e, module_urllib3$util$retry, sizeof(void *)+sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_2d5fea8d3a7b78c7ceab20f4bb49947e->m_type_description == NULL);
frame_2d5fea8d3a7b78c7ceab20f4bb49947e = cache_frame_2d5fea8d3a7b78c7ceab20f4bb49947e;
// Push the new frame as the currently active one.
pushFrameStack(frame_2d5fea8d3a7b78c7ceab20f4bb49947e);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_2d5fea8d3a7b78c7ceab20f4bb49947e) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_isinstance_inst_1;
PyObject *tmp_isinstance_cls_1;
CHECK_OBJECT(par_err);
tmp_isinstance_inst_1 = par_err;
tmp_isinstance_cls_1 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[52]);
if (unlikely(tmp_isinstance_cls_1 == NULL)) {
tmp_isinstance_cls_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[52]);
}
if (tmp_isinstance_cls_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 309;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_res = PyObject_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 = 309;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_return_value = (tmp_res != 0) ? Py_True : Py_False;
Py_INCREF(tmp_return_value);
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_2d5fea8d3a7b78c7ceab20f4bb49947e);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_2d5fea8d3a7b78c7ceab20f4bb49947e);
#endif
// Put the previous frame back on top.
popFrameStack();
goto function_return_exit;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_2d5fea8d3a7b78c7ceab20f4bb49947e);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_2d5fea8d3a7b78c7ceab20f4bb49947e, exception_lineno);
} else if (exception_tb->tb_frame != &frame_2d5fea8d3a7b78c7ceab20f4bb49947e->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_2d5fea8d3a7b78c7ceab20f4bb49947e, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_2d5fea8d3a7b78c7ceab20f4bb49947e,
type_description_1,
par_self,
par_err
);
// Release cached frame if used for exception.
if (frame_2d5fea8d3a7b78c7ceab20f4bb49947e == cache_frame_2d5fea8d3a7b78c7ceab20f4bb49947e) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_2d5fea8d3a7b78c7ceab20f4bb49947e);
cache_frame_2d5fea8d3a7b78c7ceab20f4bb49947e = NULL;
}
assertFrameObject(frame_2d5fea8d3a7b78c7ceab20f4bb49947e);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto function_exception_exit;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
CHECK_OBJECT(par_err);
Py_DECREF(par_err);
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
CHECK_OBJECT(par_err);
Py_DECREF(par_err);
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_urllib3$util$retry$$$function__11__is_read_error(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_err = python_pars[1];
struct Nuitka_FrameObject *frame_c90a031cdc5f24ac8e4f9a080a333295;
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_c90a031cdc5f24ac8e4f9a080a333295 = NULL;
// Actual function body.
if (isFrameUnusable(cache_frame_c90a031cdc5f24ac8e4f9a080a333295)) {
Py_XDECREF(cache_frame_c90a031cdc5f24ac8e4f9a080a333295);
#if _DEBUG_REFCOUNTS
if (cache_frame_c90a031cdc5f24ac8e4f9a080a333295 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_c90a031cdc5f24ac8e4f9a080a333295 = MAKE_FUNCTION_FRAME(codeobj_c90a031cdc5f24ac8e4f9a080a333295, module_urllib3$util$retry, sizeof(void *)+sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_c90a031cdc5f24ac8e4f9a080a333295->m_type_description == NULL);
frame_c90a031cdc5f24ac8e4f9a080a333295 = cache_frame_c90a031cdc5f24ac8e4f9a080a333295;
// Push the new frame as the currently active one.
pushFrameStack(frame_c90a031cdc5f24ac8e4f9a080a333295);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_c90a031cdc5f24ac8e4f9a080a333295) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_isinstance_inst_1;
PyObject *tmp_isinstance_cls_1;
PyObject *tmp_tuple_element_1;
CHECK_OBJECT(par_err);
tmp_isinstance_inst_1 = par_err;
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[54]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[54]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 315;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_isinstance_cls_1 = MAKE_TUPLE_EMPTY(2);
PyTuple_SET_ITEM0(tmp_isinstance_cls_1, 0, tmp_tuple_element_1);
tmp_tuple_element_1 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[55]);
if (unlikely(tmp_tuple_element_1 == NULL)) {
tmp_tuple_element_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[55]);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 315;
type_description_1 = "oo";
goto tuple_build_exception_1;
}
PyTuple_SET_ITEM0(tmp_isinstance_cls_1, 1, tmp_tuple_element_1);
goto tuple_build_noexception_1;
// Exception handling pass through code for tuple_build:
tuple_build_exception_1:;
Py_DECREF(tmp_isinstance_cls_1);
goto frame_exception_exit_1;
// Finished with no exception for tuple_build:
tuple_build_noexception_1:;
tmp_res = PyObject_IsInstance(tmp_isinstance_inst_1, tmp_isinstance_cls_1);
Py_DECREF(tmp_isinstance_cls_1);
if (tmp_res == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 315;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_return_value = (tmp_res != 0) ? Py_True : Py_False;
Py_INCREF(tmp_return_value);
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_c90a031cdc5f24ac8e4f9a080a333295);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_c90a031cdc5f24ac8e4f9a080a333295);
#endif
// Put the previous frame back on top.
popFrameStack();
goto function_return_exit;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_c90a031cdc5f24ac8e4f9a080a333295);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_c90a031cdc5f24ac8e4f9a080a333295, exception_lineno);
} else if (exception_tb->tb_frame != &frame_c90a031cdc5f24ac8e4f9a080a333295->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_c90a031cdc5f24ac8e4f9a080a333295, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_c90a031cdc5f24ac8e4f9a080a333295,
type_description_1,
par_self,
par_err
);
// Release cached frame if used for exception.
if (frame_c90a031cdc5f24ac8e4f9a080a333295 == cache_frame_c90a031cdc5f24ac8e4f9a080a333295) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_c90a031cdc5f24ac8e4f9a080a333295);
cache_frame_c90a031cdc5f24ac8e4f9a080a333295 = NULL;
}
assertFrameObject(frame_c90a031cdc5f24ac8e4f9a080a333295);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto function_exception_exit;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
CHECK_OBJECT(par_err);
Py_DECREF(par_err);
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
CHECK_OBJECT(par_err);
Py_DECREF(par_err);
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_urllib3$util$retry$$$function__12__is_method_retryable(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_method = python_pars[1];
struct Nuitka_FrameObject *frame_1d9bce523fe63892bfa3fa7b938070ee;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
PyObject *tmp_return_value = NULL;
static struct Nuitka_FrameObject *cache_frame_1d9bce523fe63892bfa3fa7b938070ee = NULL;
// Actual function body.
if (isFrameUnusable(cache_frame_1d9bce523fe63892bfa3fa7b938070ee)) {
Py_XDECREF(cache_frame_1d9bce523fe63892bfa3fa7b938070ee);
#if _DEBUG_REFCOUNTS
if (cache_frame_1d9bce523fe63892bfa3fa7b938070ee == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_1d9bce523fe63892bfa3fa7b938070ee = MAKE_FUNCTION_FRAME(codeobj_1d9bce523fe63892bfa3fa7b938070ee, module_urllib3$util$retry, sizeof(void *)+sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_1d9bce523fe63892bfa3fa7b938070ee->m_type_description == NULL);
frame_1d9bce523fe63892bfa3fa7b938070ee = cache_frame_1d9bce523fe63892bfa3fa7b938070ee;
// Push the new frame as the currently active one.
pushFrameStack(frame_1d9bce523fe63892bfa3fa7b938070ee);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_1d9bce523fe63892bfa3fa7b938070ee) == 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_expression_value_1;
PyObject *tmp_attribute_value_1;
int tmp_truth_name_1;
PyObject *tmp_cmp_expr_left_1;
PyObject *tmp_cmp_expr_right_1;
PyObject *tmp_called_value_1;
PyObject *tmp_expression_value_2;
PyObject *tmp_expression_value_3;
CHECK_OBJECT(par_self);
tmp_expression_value_1 = par_self;
tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_1, mod_consts[7]);
if (tmp_attribute_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 321;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_truth_name_1 = CHECK_IF_TRUE(tmp_attribute_value_1);
if (tmp_truth_name_1 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
Py_DECREF(tmp_attribute_value_1);
exception_lineno = 321;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_and_left_value_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE;
Py_DECREF(tmp_attribute_value_1);
tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0;
if (tmp_and_left_truth_1 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 321;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
if (tmp_and_left_truth_1 == 1) {
goto and_right_1;
} else {
goto and_left_1;
}
and_right_1:;
CHECK_OBJECT(par_method);
tmp_expression_value_2 = par_method;
tmp_called_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_2, mod_consts[57]);
if (tmp_called_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 321;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
frame_1d9bce523fe63892bfa3fa7b938070ee->m_frame.f_lineno = 321;
tmp_cmp_expr_left_1 = CALL_FUNCTION_NO_ARGS(tmp_called_value_1);
Py_DECREF(tmp_called_value_1);
if (tmp_cmp_expr_left_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 321;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
CHECK_OBJECT(par_self);
tmp_expression_value_3 = par_self;
tmp_cmp_expr_right_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_3, mod_consts[7]);
if (tmp_cmp_expr_right_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
Py_DECREF(tmp_cmp_expr_left_1);
exception_lineno = 321;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_res = PySequence_Contains(tmp_cmp_expr_right_1, tmp_cmp_expr_left_1);
Py_DECREF(tmp_cmp_expr_left_1);
Py_DECREF(tmp_cmp_expr_right_1);
if (tmp_res == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 321;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_and_right_value_1 = (tmp_res == 0) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
tmp_condition_result_1 = tmp_and_right_value_1;
goto and_end_1;
and_left_1:;
tmp_condition_result_1 = tmp_and_left_value_1;
and_end_1:;
if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) {
goto branch_yes_1;
} else {
goto branch_no_1;
}
}
branch_yes_1:;
tmp_return_value = Py_False;
Py_INCREF(tmp_return_value);
goto frame_return_exit_1;
branch_no_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_1d9bce523fe63892bfa3fa7b938070ee);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_1d9bce523fe63892bfa3fa7b938070ee);
#endif
// Put the previous frame back on top.
popFrameStack();
goto function_return_exit;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_1d9bce523fe63892bfa3fa7b938070ee);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_1d9bce523fe63892bfa3fa7b938070ee, exception_lineno);
} else if (exception_tb->tb_frame != &frame_1d9bce523fe63892bfa3fa7b938070ee->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_1d9bce523fe63892bfa3fa7b938070ee, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_1d9bce523fe63892bfa3fa7b938070ee,
type_description_1,
par_self,
par_method
);
// Release cached frame if used for exception.
if (frame_1d9bce523fe63892bfa3fa7b938070ee == cache_frame_1d9bce523fe63892bfa3fa7b938070ee) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_1d9bce523fe63892bfa3fa7b938070ee);
cache_frame_1d9bce523fe63892bfa3fa7b938070ee = NULL;
}
assertFrameObject(frame_1d9bce523fe63892bfa3fa7b938070ee);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto function_exception_exit;
frame_no_exception_1:;
tmp_return_value = Py_True;
Py_INCREF(tmp_return_value);
goto function_return_exit;
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
CHECK_OBJECT(par_method);
Py_DECREF(par_method);
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
CHECK_OBJECT(par_method);
Py_DECREF(par_method);
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_urllib3$util$retry$$$function__13_is_retry(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_method = python_pars[1];
PyObject *par_status_code = python_pars[2];
PyObject *par_has_retry_after = python_pars[3];
struct Nuitka_FrameObject *frame_94667b7a3a6fd54b9fe83deb2cf2e481;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
PyObject *tmp_return_value = NULL;
static struct Nuitka_FrameObject *cache_frame_94667b7a3a6fd54b9fe83deb2cf2e481 = NULL;
// Actual function body.
if (isFrameUnusable(cache_frame_94667b7a3a6fd54b9fe83deb2cf2e481)) {
Py_XDECREF(cache_frame_94667b7a3a6fd54b9fe83deb2cf2e481);
#if _DEBUG_REFCOUNTS
if (cache_frame_94667b7a3a6fd54b9fe83deb2cf2e481 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_94667b7a3a6fd54b9fe83deb2cf2e481 = MAKE_FUNCTION_FRAME(codeobj_94667b7a3a6fd54b9fe83deb2cf2e481, module_urllib3$util$retry, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_94667b7a3a6fd54b9fe83deb2cf2e481->m_type_description == NULL);
frame_94667b7a3a6fd54b9fe83deb2cf2e481 = cache_frame_94667b7a3a6fd54b9fe83deb2cf2e481;
// Push the new frame as the currently active one.
pushFrameStack(frame_94667b7a3a6fd54b9fe83deb2cf2e481);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_94667b7a3a6fd54b9fe83deb2cf2e481) == 2); // Frame stack
// Framed code:
{
bool tmp_condition_result_1;
PyObject *tmp_operand_value_1;
PyObject *tmp_called_instance_1;
PyObject *tmp_args_element_value_1;
CHECK_OBJECT(par_self);
tmp_called_instance_1 = par_self;
CHECK_OBJECT(par_method);
tmp_args_element_value_1 = par_method;
frame_94667b7a3a6fd54b9fe83deb2cf2e481->m_frame.f_lineno = 333;
tmp_operand_value_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_1, mod_consts[59], tmp_args_element_value_1);
if (tmp_operand_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 333;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
tmp_res = CHECK_IF_TRUE(tmp_operand_value_1);
Py_DECREF(tmp_operand_value_1);
if (tmp_res == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 333;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
tmp_condition_result_1 = (tmp_res == 0) ? true : false;
if (tmp_condition_result_1 != false) {
goto branch_yes_1;
} else {
goto branch_no_1;
}
}
branch_yes_1:;
tmp_return_value = Py_False;
Py_INCREF(tmp_return_value);
goto frame_return_exit_1;
branch_no_1:;
{
nuitka_bool tmp_condition_result_2;
int tmp_and_left_truth_1;
nuitka_bool tmp_and_left_value_1;
nuitka_bool tmp_and_right_value_1;
PyObject *tmp_expression_value_1;
PyObject *tmp_attribute_value_1;
int tmp_truth_name_1;
PyObject *tmp_cmp_expr_left_1;
PyObject *tmp_cmp_expr_right_1;
PyObject *tmp_expression_value_2;
CHECK_OBJECT(par_self);
tmp_expression_value_1 = par_self;
tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_1, mod_consts[6]);
if (tmp_attribute_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 336;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
tmp_truth_name_1 = CHECK_IF_TRUE(tmp_attribute_value_1);
if (tmp_truth_name_1 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
Py_DECREF(tmp_attribute_value_1);
exception_lineno = 336;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
tmp_and_left_value_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE;
Py_DECREF(tmp_attribute_value_1);
tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0;
if (tmp_and_left_truth_1 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 336;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
if (tmp_and_left_truth_1 == 1) {
goto and_right_1;
} else {
goto and_left_1;
}
and_right_1:;
CHECK_OBJECT(par_status_code);
tmp_cmp_expr_left_1 = par_status_code;
CHECK_OBJECT(par_self);
tmp_expression_value_2 = par_self;
tmp_cmp_expr_right_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_2, mod_consts[6]);
if (tmp_cmp_expr_right_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 336;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
tmp_res = PySequence_Contains(tmp_cmp_expr_right_1, tmp_cmp_expr_left_1);
Py_DECREF(tmp_cmp_expr_right_1);
if (tmp_res == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 336;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
tmp_and_right_value_1 = (tmp_res == 1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
tmp_condition_result_2 = tmp_and_right_value_1;
goto and_end_1;
and_left_1:;
tmp_condition_result_2 = tmp_and_left_value_1;
and_end_1:;
if (tmp_condition_result_2 == NUITKA_BOOL_TRUE) {
goto branch_yes_2;
} else {
goto branch_no_2;
}
}
branch_yes_2:;
tmp_return_value = Py_True;
Py_INCREF(tmp_return_value);
goto frame_return_exit_1;
branch_no_2:;
{
int tmp_and_left_truth_2;
PyObject *tmp_and_left_value_2;
PyObject *tmp_and_right_value_2;
PyObject *tmp_expression_value_3;
int tmp_and_left_truth_3;
PyObject *tmp_and_left_value_3;
PyObject *tmp_and_right_value_3;
PyObject *tmp_expression_value_4;
int tmp_and_left_truth_4;
PyObject *tmp_and_left_value_4;
PyObject *tmp_and_right_value_4;
PyObject *tmp_cmp_expr_left_2;
PyObject *tmp_cmp_expr_right_2;
PyObject *tmp_expression_value_5;
CHECK_OBJECT(par_self);
tmp_expression_value_3 = par_self;
tmp_and_left_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_value_3, mod_consts[0]);
if (tmp_and_left_value_2 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 340;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
tmp_and_left_truth_2 = CHECK_IF_TRUE(tmp_and_left_value_2);
if (tmp_and_left_truth_2 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
Py_DECREF(tmp_and_left_value_2);
exception_lineno = 340;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
if (tmp_and_left_truth_2 == 1) {
goto and_right_2;
} else {
goto and_left_2;
}
and_right_2:;
Py_DECREF(tmp_and_left_value_2);
CHECK_OBJECT(par_self);
tmp_expression_value_4 = par_self;
tmp_and_left_value_3 = LOOKUP_ATTRIBUTE(tmp_expression_value_4, mod_consts[13]);
if (tmp_and_left_value_3 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 341;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
tmp_and_left_truth_3 = CHECK_IF_TRUE(tmp_and_left_value_3);
if (tmp_and_left_truth_3 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
Py_DECREF(tmp_and_left_value_3);
exception_lineno = 341;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
if (tmp_and_left_truth_3 == 1) {
goto and_right_3;
} else {
goto and_left_3;
}
and_right_3:;
Py_DECREF(tmp_and_left_value_3);
CHECK_OBJECT(par_has_retry_after);
tmp_and_left_value_4 = par_has_retry_after;
tmp_and_left_truth_4 = CHECK_IF_TRUE(tmp_and_left_value_4);
if (tmp_and_left_truth_4 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 342;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
if (tmp_and_left_truth_4 == 1) {
goto and_right_4;
} else {
goto and_left_4;
}
and_right_4:;
CHECK_OBJECT(par_status_code);
tmp_cmp_expr_left_2 = par_status_code;
CHECK_OBJECT(par_self);
tmp_expression_value_5 = par_self;
tmp_cmp_expr_right_2 = LOOKUP_ATTRIBUTE(tmp_expression_value_5, mod_consts[60]);
if (tmp_cmp_expr_right_2 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 343;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
tmp_res = PySequence_Contains(tmp_cmp_expr_right_2, tmp_cmp_expr_left_2);
Py_DECREF(tmp_cmp_expr_right_2);
if (tmp_res == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 343;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
tmp_and_right_value_4 = (tmp_res == 1) ? Py_True : Py_False;
tmp_and_right_value_3 = tmp_and_right_value_4;
goto and_end_4;
and_left_4:;
tmp_and_right_value_3 = tmp_and_left_value_4;
and_end_4:;
Py_INCREF(tmp_and_right_value_3);
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_return_value = tmp_and_right_value_2;
goto and_end_2;
and_left_2:;
tmp_return_value = tmp_and_left_value_2;
and_end_2:;
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_94667b7a3a6fd54b9fe83deb2cf2e481);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_94667b7a3a6fd54b9fe83deb2cf2e481);
#endif
// Put the previous frame back on top.
popFrameStack();
goto function_return_exit;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_94667b7a3a6fd54b9fe83deb2cf2e481);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_94667b7a3a6fd54b9fe83deb2cf2e481, exception_lineno);
} else if (exception_tb->tb_frame != &frame_94667b7a3a6fd54b9fe83deb2cf2e481->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_94667b7a3a6fd54b9fe83deb2cf2e481, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_94667b7a3a6fd54b9fe83deb2cf2e481,
type_description_1,
par_self,
par_method,
par_status_code,
par_has_retry_after
);
// Release cached frame if used for exception.
if (frame_94667b7a3a6fd54b9fe83deb2cf2e481 == cache_frame_94667b7a3a6fd54b9fe83deb2cf2e481) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_94667b7a3a6fd54b9fe83deb2cf2e481);
cache_frame_94667b7a3a6fd54b9fe83deb2cf2e481 = NULL;
}
assertFrameObject(frame_94667b7a3a6fd54b9fe83deb2cf2e481);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto function_exception_exit;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
CHECK_OBJECT(par_method);
Py_DECREF(par_method);
CHECK_OBJECT(par_status_code);
Py_DECREF(par_status_code);
CHECK_OBJECT(par_has_retry_after);
Py_DECREF(par_has_retry_after);
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
CHECK_OBJECT(par_method);
Py_DECREF(par_method);
CHECK_OBJECT(par_status_code);
Py_DECREF(par_status_code);
CHECK_OBJECT(par_has_retry_after);
Py_DECREF(par_has_retry_after);
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_urllib3$util$retry$$$function__14_is_exhausted(struct Nuitka_FunctionObject const *self, PyObject **python_pars) {
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_self = python_pars[0];
PyObject *var_retry_counts = NULL;
struct Nuitka_FrameObject *frame_c1ca6796f74a9c49d0c5d62c11dc7e5b;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
PyObject *tmp_return_value = NULL;
static struct Nuitka_FrameObject *cache_frame_c1ca6796f74a9c49d0c5d62c11dc7e5b = 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 body.
// Tried code:
if (isFrameUnusable(cache_frame_c1ca6796f74a9c49d0c5d62c11dc7e5b)) {
Py_XDECREF(cache_frame_c1ca6796f74a9c49d0c5d62c11dc7e5b);
#if _DEBUG_REFCOUNTS
if (cache_frame_c1ca6796f74a9c49d0c5d62c11dc7e5b == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_c1ca6796f74a9c49d0c5d62c11dc7e5b = MAKE_FUNCTION_FRAME(codeobj_c1ca6796f74a9c49d0c5d62c11dc7e5b, module_urllib3$util$retry, sizeof(void *)+sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_c1ca6796f74a9c49d0c5d62c11dc7e5b->m_type_description == NULL);
frame_c1ca6796f74a9c49d0c5d62c11dc7e5b = cache_frame_c1ca6796f74a9c49d0c5d62c11dc7e5b;
// Push the new frame as the currently active one.
pushFrameStack(frame_c1ca6796f74a9c49d0c5d62c11dc7e5b);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_c1ca6796f74a9c49d0c5d62c11dc7e5b) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_assign_source_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_expression_value_1;
CHECK_OBJECT(par_self);
tmp_expression_value_1 = par_self;
tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_1, mod_consts[0]);
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 348;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_assign_source_1 = MAKE_TUPLE_EMPTY(5);
{
PyObject *tmp_expression_value_2;
PyObject *tmp_expression_value_3;
PyObject *tmp_expression_value_4;
PyObject *tmp_expression_value_5;
PyTuple_SET_ITEM(tmp_assign_source_1, 0, tmp_tuple_element_1);
CHECK_OBJECT(par_self);
tmp_expression_value_2 = par_self;
tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_2, mod_consts[1]);
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 348;
type_description_1 = "oo";
goto tuple_build_exception_1;
}
PyTuple_SET_ITEM(tmp_assign_source_1, 1, tmp_tuple_element_1);
CHECK_OBJECT(par_self);
tmp_expression_value_3 = par_self;
tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_3, mod_consts[2]);
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 348;
type_description_1 = "oo";
goto tuple_build_exception_1;
}
PyTuple_SET_ITEM(tmp_assign_source_1, 2, tmp_tuple_element_1);
CHECK_OBJECT(par_self);
tmp_expression_value_4 = par_self;
tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_4, mod_consts[5]);
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 348;
type_description_1 = "oo";
goto tuple_build_exception_1;
}
PyTuple_SET_ITEM(tmp_assign_source_1, 3, tmp_tuple_element_1);
CHECK_OBJECT(par_self);
tmp_expression_value_5 = par_self;
tmp_tuple_element_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_5, mod_consts[3]);
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 348;
type_description_1 = "oo";
goto tuple_build_exception_1;
}
PyTuple_SET_ITEM(tmp_assign_source_1, 4, tmp_tuple_element_1);
}
goto tuple_build_noexception_1;
// Exception handling pass through code for tuple_build:
tuple_build_exception_1:;
Py_DECREF(tmp_assign_source_1);
goto frame_exception_exit_1;
// Finished with no exception for tuple_build:
tuple_build_noexception_1:;
assert(var_retry_counts == NULL);
var_retry_counts = tmp_assign_source_1;
}
{
PyObject *tmp_assign_source_2;
PyObject *tmp_list_arg_1;
PyObject *tmp_called_value_1;
PyObject *tmp_args_element_value_1;
PyObject *tmp_args_element_value_2;
tmp_called_value_1 = (PyObject *)&PyFilter_Type;
tmp_args_element_value_1 = Py_None;
CHECK_OBJECT(var_retry_counts);
tmp_args_element_value_2 = var_retry_counts;
frame_c1ca6796f74a9c49d0c5d62c11dc7e5b->m_frame.f_lineno = 349;
{
PyObject *call_args[] = {tmp_args_element_value_1, tmp_args_element_value_2};
tmp_list_arg_1 = CALL_FUNCTION_WITH_ARGS2(tmp_called_value_1, call_args);
}
if (tmp_list_arg_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 349;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_assign_source_2 = MAKE_LIST(tmp_list_arg_1);
Py_DECREF(tmp_list_arg_1);
if (tmp_assign_source_2 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 349;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
{
PyObject *old = var_retry_counts;
assert(old != NULL);
var_retry_counts = tmp_assign_source_2;
Py_DECREF(old);
}
}
{
bool tmp_condition_result_1;
PyObject *tmp_operand_value_1;
CHECK_OBJECT(var_retry_counts);
tmp_operand_value_1 = var_retry_counts;
tmp_res = CHECK_IF_TRUE(tmp_operand_value_1);
assert(!(tmp_res == -1));
tmp_condition_result_1 = (tmp_res == 0) ? true : false;
if (tmp_condition_result_1 != false) {
goto branch_yes_1;
} else {
goto branch_no_1;
}
}
branch_yes_1:;
tmp_return_value = Py_False;
Py_INCREF(tmp_return_value);
goto frame_return_exit_1;
branch_no_1:;
{
PyObject *tmp_cmp_expr_left_1;
PyObject *tmp_cmp_expr_right_1;
PyObject *tmp_called_value_2;
PyObject *tmp_args_element_value_3;
tmp_called_value_2 = LOOKUP_BUILTIN(mod_consts[28]);
assert(tmp_called_value_2 != NULL);
CHECK_OBJECT(var_retry_counts);
tmp_args_element_value_3 = var_retry_counts;
frame_c1ca6796f74a9c49d0c5d62c11dc7e5b->m_frame.f_lineno = 353;
tmp_cmp_expr_left_1 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_value_2, tmp_args_element_value_3);
if (tmp_cmp_expr_left_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 353;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_cmp_expr_right_1 = mod_consts[4];
tmp_return_value = RICH_COMPARE_LT_OBJECT_OBJECT_LONG(tmp_cmp_expr_left_1, tmp_cmp_expr_right_1);
Py_DECREF(tmp_cmp_expr_left_1);
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 353;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_c1ca6796f74a9c49d0c5d62c11dc7e5b);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_c1ca6796f74a9c49d0c5d62c11dc7e5b);
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_c1ca6796f74a9c49d0c5d62c11dc7e5b);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_c1ca6796f74a9c49d0c5d62c11dc7e5b, exception_lineno);
} else if (exception_tb->tb_frame != &frame_c1ca6796f74a9c49d0c5d62c11dc7e5b->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_c1ca6796f74a9c49d0c5d62c11dc7e5b, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_c1ca6796f74a9c49d0c5d62c11dc7e5b,
type_description_1,
par_self,
var_retry_counts
);
// Release cached frame if used for exception.
if (frame_c1ca6796f74a9c49d0c5d62c11dc7e5b == cache_frame_c1ca6796f74a9c49d0c5d62c11dc7e5b) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_c1ca6796f74a9c49d0c5d62c11dc7e5b);
cache_frame_c1ca6796f74a9c49d0c5d62c11dc7e5b = NULL;
}
assertFrameObject(frame_c1ca6796f74a9c49d0c5d62c11dc7e5b);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(var_retry_counts);
Py_DECREF(var_retry_counts);
var_retry_counts = 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(var_retry_counts);
var_retry_counts = 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:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_urllib3$util$retry$$$function__15_increment(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_method = python_pars[1];
PyObject *par_url = python_pars[2];
PyObject *par_response = python_pars[3];
PyObject *par_error = python_pars[4];
PyObject *par__pool = python_pars[5];
PyObject *par__stacktrace = python_pars[6];
PyObject *var_total = NULL;
PyObject *var_connect = NULL;
PyObject *var_read = NULL;
PyObject *var_redirect = NULL;
PyObject *var_status_count = NULL;
PyObject *var_cause = NULL;
PyObject *var_status = NULL;
PyObject *var_redirect_location = NULL;
PyObject *var_history = NULL;
PyObject *var_new_retry = NULL;
struct Nuitka_FrameObject *frame_52a249990d5c13a2ed48f8beb9be931f;
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;
int tmp_res;
NUITKA_MAY_BE_UNUSED nuitka_void tmp_unused;
static struct Nuitka_FrameObject *cache_frame_52a249990d5c13a2ed48f8beb9be931f = 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 body.
// Tried code:
if (isFrameUnusable(cache_frame_52a249990d5c13a2ed48f8beb9be931f)) {
Py_XDECREF(cache_frame_52a249990d5c13a2ed48f8beb9be931f);
#if _DEBUG_REFCOUNTS
if (cache_frame_52a249990d5c13a2ed48f8beb9be931f == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_52a249990d5c13a2ed48f8beb9be931f = MAKE_FUNCTION_FRAME(codeobj_52a249990d5c13a2ed48f8beb9be931f, module_urllib3$util$retry, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_52a249990d5c13a2ed48f8beb9be931f->m_type_description == NULL);
frame_52a249990d5c13a2ed48f8beb9be931f = cache_frame_52a249990d5c13a2ed48f8beb9be931f;
// Push the new frame as the currently active one.
pushFrameStack(frame_52a249990d5c13a2ed48f8beb9be931f);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_52a249990d5c13a2ed48f8beb9be931f) == 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_cmp_expr_left_1;
PyObject *tmp_cmp_expr_right_1;
PyObject *tmp_expression_value_1;
int tmp_truth_name_1;
CHECK_OBJECT(par_self);
tmp_expression_value_1 = par_self;
tmp_cmp_expr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_1, mod_consts[0]);
if (tmp_cmp_expr_left_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 374;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_cmp_expr_right_1 = Py_False;
tmp_and_left_value_1 = (tmp_cmp_expr_left_1 == tmp_cmp_expr_right_1) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
Py_DECREF(tmp_cmp_expr_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:;
CHECK_OBJECT(par_error);
tmp_truth_name_1 = CHECK_IF_TRUE(par_error);
if (tmp_truth_name_1 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 374;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_and_right_value_1 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE;
tmp_condition_result_1 = tmp_and_right_value_1;
goto and_end_1;
and_left_1:;
tmp_condition_result_1 = tmp_and_left_value_1;
and_end_1:;
if (tmp_condition_result_1 == NUITKA_BOOL_TRUE) {
goto branch_yes_1;
} else {
goto branch_no_1;
}
}
branch_yes_1:;
{
PyObject *tmp_raise_type_1;
PyObject *tmp_called_instance_1;
PyObject *tmp_args_element_value_1;
PyObject *tmp_type_arg_1;
PyObject *tmp_args_element_value_2;
PyObject *tmp_args_element_value_3;
tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[63]);
if (unlikely(tmp_called_instance_1 == NULL)) {
tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[63]);
}
if (tmp_called_instance_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 376;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
CHECK_OBJECT(par_error);
tmp_type_arg_1 = par_error;
tmp_args_element_value_1 = BUILTIN_TYPE1(tmp_type_arg_1);
assert(!(tmp_args_element_value_1 == NULL));
CHECK_OBJECT(par_error);
tmp_args_element_value_2 = par_error;
CHECK_OBJECT(par__stacktrace);
tmp_args_element_value_3 = par__stacktrace;
frame_52a249990d5c13a2ed48f8beb9be931f->m_frame.f_lineno = 376;
{
PyObject *call_args[] = {tmp_args_element_value_1, tmp_args_element_value_2, tmp_args_element_value_3};
tmp_raise_type_1 = CALL_METHOD_WITH_ARGS3(
tmp_called_instance_1,
mod_consts[64],
call_args
);
}
Py_DECREF(tmp_args_element_value_1);
if (tmp_raise_type_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 376;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
exception_type = tmp_raise_type_1;
exception_lineno = 376;
RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb);
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
branch_no_1:;
{
PyObject *tmp_assign_source_1;
PyObject *tmp_expression_value_2;
CHECK_OBJECT(par_self);
tmp_expression_value_2 = par_self;
tmp_assign_source_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_2, mod_consts[0]);
if (tmp_assign_source_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 378;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
assert(var_total == NULL);
var_total = tmp_assign_source_1;
}
{
bool tmp_condition_result_2;
PyObject *tmp_cmp_expr_left_2;
PyObject *tmp_cmp_expr_right_2;
CHECK_OBJECT(var_total);
tmp_cmp_expr_left_2 = var_total;
tmp_cmp_expr_right_2 = Py_None;
tmp_condition_result_2 = (tmp_cmp_expr_left_2 != tmp_cmp_expr_right_2) ? true : false;
if (tmp_condition_result_2 != false) {
goto branch_yes_2;
} else {
goto branch_no_2;
}
}
branch_yes_2:;
{
PyObject *tmp_assign_source_2;
PyObject *tmp_isub_expr_left_1;
PyObject *tmp_isub_expr_right_1;
CHECK_OBJECT(var_total);
tmp_isub_expr_left_1 = var_total;
tmp_isub_expr_right_1 = mod_consts[65];
tmp_result = INPLACE_OPERATION_SUB_OBJECT_LONG(&tmp_isub_expr_left_1, tmp_isub_expr_right_1);
if (tmp_result == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 380;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_assign_source_2 = tmp_isub_expr_left_1;
var_total = tmp_assign_source_2;
}
branch_no_2:;
{
PyObject *tmp_assign_source_3;
PyObject *tmp_expression_value_3;
CHECK_OBJECT(par_self);
tmp_expression_value_3 = par_self;
tmp_assign_source_3 = LOOKUP_ATTRIBUTE(tmp_expression_value_3, mod_consts[1]);
if (tmp_assign_source_3 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 382;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
assert(var_connect == NULL);
var_connect = tmp_assign_source_3;
}
{
PyObject *tmp_assign_source_4;
PyObject *tmp_expression_value_4;
CHECK_OBJECT(par_self);
tmp_expression_value_4 = par_self;
tmp_assign_source_4 = LOOKUP_ATTRIBUTE(tmp_expression_value_4, mod_consts[2]);
if (tmp_assign_source_4 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 383;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
assert(var_read == NULL);
var_read = tmp_assign_source_4;
}
{
PyObject *tmp_assign_source_5;
PyObject *tmp_expression_value_5;
CHECK_OBJECT(par_self);
tmp_expression_value_5 = par_self;
tmp_assign_source_5 = LOOKUP_ATTRIBUTE(tmp_expression_value_5, mod_consts[5]);
if (tmp_assign_source_5 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 384;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
assert(var_redirect == NULL);
var_redirect = tmp_assign_source_5;
}
{
PyObject *tmp_assign_source_6;
PyObject *tmp_expression_value_6;
CHECK_OBJECT(par_self);
tmp_expression_value_6 = par_self;
tmp_assign_source_6 = LOOKUP_ATTRIBUTE(tmp_expression_value_6, mod_consts[3]);
if (tmp_assign_source_6 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 385;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
assert(var_status_count == NULL);
var_status_count = tmp_assign_source_6;
}
{
PyObject *tmp_assign_source_7;
tmp_assign_source_7 = mod_consts[66];
assert(var_cause == NULL);
Py_INCREF(tmp_assign_source_7);
var_cause = tmp_assign_source_7;
}
{
PyObject *tmp_assign_source_8;
tmp_assign_source_8 = Py_None;
assert(var_status == NULL);
Py_INCREF(tmp_assign_source_8);
var_status = tmp_assign_source_8;
}
{
PyObject *tmp_assign_source_9;
tmp_assign_source_9 = Py_None;
assert(var_redirect_location == NULL);
Py_INCREF(tmp_assign_source_9);
var_redirect_location = tmp_assign_source_9;
}
{
nuitka_bool tmp_condition_result_3;
int tmp_and_left_truth_2;
nuitka_bool tmp_and_left_value_2;
nuitka_bool tmp_and_right_value_2;
int tmp_truth_name_2;
PyObject *tmp_called_instance_2;
PyObject *tmp_call_result_1;
PyObject *tmp_args_element_value_4;
int tmp_truth_name_3;
CHECK_OBJECT(par_error);
tmp_truth_name_2 = CHECK_IF_TRUE(par_error);
if (tmp_truth_name_2 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 390;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_and_left_value_2 = tmp_truth_name_2 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE;
tmp_and_left_truth_2 = tmp_and_left_value_2 == NUITKA_BOOL_TRUE ? 1 : 0;
if (tmp_and_left_truth_2 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 390;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
if (tmp_and_left_truth_2 == 1) {
goto and_right_2;
} else {
goto and_left_2;
}
and_right_2:;
CHECK_OBJECT(par_self);
tmp_called_instance_2 = par_self;
CHECK_OBJECT(par_error);
tmp_args_element_value_4 = par_error;
frame_52a249990d5c13a2ed48f8beb9be931f->m_frame.f_lineno = 390;
tmp_call_result_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_2, mod_consts[67], tmp_args_element_value_4);
if (tmp_call_result_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 390;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_truth_name_3 = CHECK_IF_TRUE(tmp_call_result_1);
if (tmp_truth_name_3 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
Py_DECREF(tmp_call_result_1);
exception_lineno = 390;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_and_right_value_2 = tmp_truth_name_3 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE;
Py_DECREF(tmp_call_result_1);
tmp_condition_result_3 = tmp_and_right_value_2;
goto and_end_2;
and_left_2:;
tmp_condition_result_3 = tmp_and_left_value_2;
and_end_2:;
if (tmp_condition_result_3 == NUITKA_BOOL_TRUE) {
goto branch_yes_3;
} else {
goto branch_no_3;
}
}
branch_yes_3:;
{
bool tmp_condition_result_4;
PyObject *tmp_cmp_expr_left_3;
PyObject *tmp_cmp_expr_right_3;
CHECK_OBJECT(var_connect);
tmp_cmp_expr_left_3 = var_connect;
tmp_cmp_expr_right_3 = Py_False;
tmp_condition_result_4 = (tmp_cmp_expr_left_3 == tmp_cmp_expr_right_3) ? true : false;
if (tmp_condition_result_4 != false) {
goto branch_yes_4;
} else {
goto branch_no_4;
}
}
branch_yes_4:;
{
PyObject *tmp_raise_type_2;
PyObject *tmp_called_value_1;
PyObject *tmp_expression_value_7;
PyObject *tmp_args_element_value_5;
PyObject *tmp_type_arg_2;
PyObject *tmp_args_element_value_6;
PyObject *tmp_args_element_value_7;
tmp_expression_value_7 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[63]);
if (unlikely(tmp_expression_value_7 == NULL)) {
tmp_expression_value_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[63]);
}
if (tmp_expression_value_7 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 393;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_called_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_7, mod_consts[64]);
if (tmp_called_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 393;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
if (par_error == NULL) {
Py_DECREF(tmp_called_value_1);
FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[68]);
exception_tb = NULL;
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
CHAIN_EXCEPTION(exception_value);
exception_lineno = 393;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_type_arg_2 = par_error;
tmp_args_element_value_5 = BUILTIN_TYPE1(tmp_type_arg_2);
if (tmp_args_element_value_5 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
Py_DECREF(tmp_called_value_1);
exception_lineno = 393;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
if (par_error == NULL) {
Py_DECREF(tmp_called_value_1);
Py_DECREF(tmp_args_element_value_5);
FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[68]);
exception_tb = NULL;
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
CHAIN_EXCEPTION(exception_value);
exception_lineno = 393;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_args_element_value_6 = par_error;
CHECK_OBJECT(par__stacktrace);
tmp_args_element_value_7 = par__stacktrace;
frame_52a249990d5c13a2ed48f8beb9be931f->m_frame.f_lineno = 393;
{
PyObject *call_args[] = {tmp_args_element_value_5, tmp_args_element_value_6, tmp_args_element_value_7};
tmp_raise_type_2 = CALL_FUNCTION_WITH_ARGS3(tmp_called_value_1, call_args);
}
Py_DECREF(tmp_called_value_1);
Py_DECREF(tmp_args_element_value_5);
if (tmp_raise_type_2 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 393;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
exception_type = tmp_raise_type_2;
exception_lineno = 393;
RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb);
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
goto branch_end_4;
branch_no_4:;
{
bool tmp_condition_result_5;
PyObject *tmp_cmp_expr_left_4;
PyObject *tmp_cmp_expr_right_4;
CHECK_OBJECT(var_connect);
tmp_cmp_expr_left_4 = var_connect;
tmp_cmp_expr_right_4 = Py_None;
tmp_condition_result_5 = (tmp_cmp_expr_left_4 != tmp_cmp_expr_right_4) ? true : false;
if (tmp_condition_result_5 != false) {
goto branch_yes_5;
} else {
goto branch_no_5;
}
}
branch_yes_5:;
{
PyObject *tmp_assign_source_10;
PyObject *tmp_isub_expr_left_2;
PyObject *tmp_isub_expr_right_2;
CHECK_OBJECT(var_connect);
tmp_isub_expr_left_2 = var_connect;
tmp_isub_expr_right_2 = mod_consts[65];
tmp_result = INPLACE_OPERATION_SUB_OBJECT_LONG(&tmp_isub_expr_left_2, tmp_isub_expr_right_2);
if (tmp_result == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 395;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_assign_source_10 = tmp_isub_expr_left_2;
var_connect = tmp_assign_source_10;
}
branch_no_5:;
branch_end_4:;
goto branch_end_3;
branch_no_3:;
{
nuitka_bool tmp_condition_result_6;
int tmp_and_left_truth_3;
nuitka_bool tmp_and_left_value_3;
nuitka_bool tmp_and_right_value_3;
int tmp_truth_name_4;
PyObject *tmp_called_value_2;
PyObject *tmp_expression_value_8;
PyObject *tmp_call_result_2;
PyObject *tmp_args_element_value_8;
int tmp_truth_name_5;
if (par_error == NULL) {
FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[68]);
exception_tb = NULL;
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
CHAIN_EXCEPTION(exception_value);
exception_lineno = 397;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_truth_name_4 = CHECK_IF_TRUE(par_error);
if (tmp_truth_name_4 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 397;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_and_left_value_3 = tmp_truth_name_4 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE;
tmp_and_left_truth_3 = tmp_and_left_value_3 == NUITKA_BOOL_TRUE ? 1 : 0;
if (tmp_and_left_truth_3 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 397;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
if (tmp_and_left_truth_3 == 1) {
goto and_right_3;
} else {
goto and_left_3;
}
and_right_3:;
CHECK_OBJECT(par_self);
tmp_expression_value_8 = par_self;
tmp_called_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_value_8, mod_consts[69]);
if (tmp_called_value_2 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 397;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
if (par_error == NULL) {
Py_DECREF(tmp_called_value_2);
FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[68]);
exception_tb = NULL;
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
CHAIN_EXCEPTION(exception_value);
exception_lineno = 397;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_args_element_value_8 = par_error;
frame_52a249990d5c13a2ed48f8beb9be931f->m_frame.f_lineno = 397;
tmp_call_result_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_value_2, tmp_args_element_value_8);
Py_DECREF(tmp_called_value_2);
if (tmp_call_result_2 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 397;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_truth_name_5 = CHECK_IF_TRUE(tmp_call_result_2);
if (tmp_truth_name_5 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
Py_DECREF(tmp_call_result_2);
exception_lineno = 397;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_and_right_value_3 = tmp_truth_name_5 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE;
Py_DECREF(tmp_call_result_2);
tmp_condition_result_6 = tmp_and_right_value_3;
goto and_end_3;
and_left_3:;
tmp_condition_result_6 = tmp_and_left_value_3;
and_end_3:;
if (tmp_condition_result_6 == NUITKA_BOOL_TRUE) {
goto branch_yes_6;
} else {
goto branch_no_6;
}
}
branch_yes_6:;
{
bool tmp_condition_result_7;
int tmp_or_left_truth_1;
bool tmp_or_left_value_1;
bool tmp_or_right_value_1;
PyObject *tmp_cmp_expr_left_5;
PyObject *tmp_cmp_expr_right_5;
PyObject *tmp_operand_value_1;
PyObject *tmp_called_instance_3;
PyObject *tmp_args_element_value_9;
CHECK_OBJECT(var_read);
tmp_cmp_expr_left_5 = var_read;
tmp_cmp_expr_right_5 = Py_False;
tmp_or_left_value_1 = (tmp_cmp_expr_left_5 == tmp_cmp_expr_right_5) ? true : false;
tmp_or_left_truth_1 = tmp_or_left_value_1 != false ? 1 : 0;
if (tmp_or_left_truth_1 == 1) {
goto or_left_1;
} else {
goto or_right_1;
}
or_right_1:;
CHECK_OBJECT(par_self);
tmp_called_instance_3 = par_self;
CHECK_OBJECT(par_method);
tmp_args_element_value_9 = par_method;
frame_52a249990d5c13a2ed48f8beb9be931f->m_frame.f_lineno = 399;
tmp_operand_value_1 = CALL_METHOD_WITH_SINGLE_ARG(tmp_called_instance_3, mod_consts[59], tmp_args_element_value_9);
if (tmp_operand_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 399;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_res = CHECK_IF_TRUE(tmp_operand_value_1);
Py_DECREF(tmp_operand_value_1);
if (tmp_res == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 399;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_or_right_value_1 = (tmp_res == 0) ? true : false;
tmp_condition_result_7 = tmp_or_right_value_1;
goto or_end_1;
or_left_1:;
tmp_condition_result_7 = tmp_or_left_value_1;
or_end_1:;
if (tmp_condition_result_7 != false) {
goto branch_yes_7;
} else {
goto branch_no_7;
}
}
branch_yes_7:;
{
PyObject *tmp_raise_type_3;
PyObject *tmp_called_value_3;
PyObject *tmp_expression_value_9;
PyObject *tmp_args_element_value_10;
PyObject *tmp_type_arg_3;
PyObject *tmp_args_element_value_11;
PyObject *tmp_args_element_value_12;
tmp_expression_value_9 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[63]);
if (unlikely(tmp_expression_value_9 == NULL)) {
tmp_expression_value_9 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[63]);
}
if (tmp_expression_value_9 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 400;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_called_value_3 = LOOKUP_ATTRIBUTE(tmp_expression_value_9, mod_consts[64]);
if (tmp_called_value_3 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 400;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
if (par_error == NULL) {
Py_DECREF(tmp_called_value_3);
FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[68]);
exception_tb = NULL;
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
CHAIN_EXCEPTION(exception_value);
exception_lineno = 400;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_type_arg_3 = par_error;
tmp_args_element_value_10 = BUILTIN_TYPE1(tmp_type_arg_3);
if (tmp_args_element_value_10 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
Py_DECREF(tmp_called_value_3);
exception_lineno = 400;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
if (par_error == NULL) {
Py_DECREF(tmp_called_value_3);
Py_DECREF(tmp_args_element_value_10);
FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[68]);
exception_tb = NULL;
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
CHAIN_EXCEPTION(exception_value);
exception_lineno = 400;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_args_element_value_11 = par_error;
CHECK_OBJECT(par__stacktrace);
tmp_args_element_value_12 = par__stacktrace;
frame_52a249990d5c13a2ed48f8beb9be931f->m_frame.f_lineno = 400;
{
PyObject *call_args[] = {tmp_args_element_value_10, tmp_args_element_value_11, tmp_args_element_value_12};
tmp_raise_type_3 = CALL_FUNCTION_WITH_ARGS3(tmp_called_value_3, call_args);
}
Py_DECREF(tmp_called_value_3);
Py_DECREF(tmp_args_element_value_10);
if (tmp_raise_type_3 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 400;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
exception_type = tmp_raise_type_3;
exception_lineno = 400;
RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb);
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
goto branch_end_7;
branch_no_7:;
{
bool tmp_condition_result_8;
PyObject *tmp_cmp_expr_left_6;
PyObject *tmp_cmp_expr_right_6;
CHECK_OBJECT(var_read);
tmp_cmp_expr_left_6 = var_read;
tmp_cmp_expr_right_6 = Py_None;
tmp_condition_result_8 = (tmp_cmp_expr_left_6 != tmp_cmp_expr_right_6) ? true : false;
if (tmp_condition_result_8 != false) {
goto branch_yes_8;
} else {
goto branch_no_8;
}
}
branch_yes_8:;
{
PyObject *tmp_assign_source_11;
PyObject *tmp_isub_expr_left_3;
PyObject *tmp_isub_expr_right_3;
CHECK_OBJECT(var_read);
tmp_isub_expr_left_3 = var_read;
tmp_isub_expr_right_3 = mod_consts[65];
tmp_result = INPLACE_OPERATION_SUB_OBJECT_LONG(&tmp_isub_expr_left_3, tmp_isub_expr_right_3);
if (tmp_result == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 402;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_assign_source_11 = tmp_isub_expr_left_3;
var_read = tmp_assign_source_11;
}
branch_no_8:;
branch_end_7:;
goto branch_end_6;
branch_no_6:;
{
nuitka_bool tmp_condition_result_9;
int tmp_and_left_truth_4;
nuitka_bool tmp_and_left_value_4;
nuitka_bool tmp_and_right_value_4;
int tmp_truth_name_6;
PyObject *tmp_called_instance_4;
PyObject *tmp_call_result_3;
int tmp_truth_name_7;
CHECK_OBJECT(par_response);
tmp_truth_name_6 = CHECK_IF_TRUE(par_response);
if (tmp_truth_name_6 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 404;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_and_left_value_4 = tmp_truth_name_6 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE;
tmp_and_left_truth_4 = tmp_and_left_value_4 == NUITKA_BOOL_TRUE ? 1 : 0;
if (tmp_and_left_truth_4 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 404;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
if (tmp_and_left_truth_4 == 1) {
goto and_right_4;
} else {
goto and_left_4;
}
and_right_4:;
CHECK_OBJECT(par_response);
tmp_called_instance_4 = par_response;
frame_52a249990d5c13a2ed48f8beb9be931f->m_frame.f_lineno = 404;
tmp_call_result_3 = CALL_METHOD_NO_ARGS(tmp_called_instance_4, mod_consts[70]);
if (tmp_call_result_3 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 404;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_truth_name_7 = CHECK_IF_TRUE(tmp_call_result_3);
if (tmp_truth_name_7 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
Py_DECREF(tmp_call_result_3);
exception_lineno = 404;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_and_right_value_4 = tmp_truth_name_7 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE;
Py_DECREF(tmp_call_result_3);
tmp_condition_result_9 = tmp_and_right_value_4;
goto and_end_4;
and_left_4:;
tmp_condition_result_9 = tmp_and_left_value_4;
and_end_4:;
if (tmp_condition_result_9 == NUITKA_BOOL_TRUE) {
goto branch_yes_9;
} else {
goto branch_no_9;
}
}
branch_yes_9:;
{
bool tmp_condition_result_10;
PyObject *tmp_cmp_expr_left_7;
PyObject *tmp_cmp_expr_right_7;
CHECK_OBJECT(var_redirect);
tmp_cmp_expr_left_7 = var_redirect;
tmp_cmp_expr_right_7 = Py_None;
tmp_condition_result_10 = (tmp_cmp_expr_left_7 != tmp_cmp_expr_right_7) ? true : false;
if (tmp_condition_result_10 != false) {
goto branch_yes_10;
} else {
goto branch_no_10;
}
}
branch_yes_10:;
{
PyObject *tmp_assign_source_12;
PyObject *tmp_isub_expr_left_4;
PyObject *tmp_isub_expr_right_4;
CHECK_OBJECT(var_redirect);
tmp_isub_expr_left_4 = var_redirect;
tmp_isub_expr_right_4 = mod_consts[65];
tmp_result = INPLACE_OPERATION_SUB_OBJECT_LONG(&tmp_isub_expr_left_4, tmp_isub_expr_right_4);
if (tmp_result == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 407;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_assign_source_12 = tmp_isub_expr_left_4;
var_redirect = tmp_assign_source_12;
}
branch_no_10:;
{
PyObject *tmp_assign_source_13;
tmp_assign_source_13 = mod_consts[71];
{
PyObject *old = var_cause;
assert(old != NULL);
var_cause = tmp_assign_source_13;
Py_INCREF(var_cause);
Py_DECREF(old);
}
}
{
PyObject *tmp_assign_source_14;
PyObject *tmp_called_instance_5;
if (par_response == NULL) {
FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[72]);
exception_tb = NULL;
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
CHAIN_EXCEPTION(exception_value);
exception_lineno = 409;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_called_instance_5 = par_response;
frame_52a249990d5c13a2ed48f8beb9be931f->m_frame.f_lineno = 409;
tmp_assign_source_14 = CALL_METHOD_NO_ARGS(tmp_called_instance_5, mod_consts[70]);
if (tmp_assign_source_14 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 409;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
{
PyObject *old = var_redirect_location;
assert(old != NULL);
var_redirect_location = tmp_assign_source_14;
Py_DECREF(old);
}
}
{
PyObject *tmp_assign_source_15;
PyObject *tmp_expression_value_10;
if (par_response == NULL) {
FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[72]);
exception_tb = NULL;
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
CHAIN_EXCEPTION(exception_value);
exception_lineno = 410;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_expression_value_10 = par_response;
tmp_assign_source_15 = LOOKUP_ATTRIBUTE(tmp_expression_value_10, mod_consts[3]);
if (tmp_assign_source_15 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 410;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
{
PyObject *old = var_status;
assert(old != NULL);
var_status = tmp_assign_source_15;
Py_DECREF(old);
}
}
goto branch_end_9;
branch_no_9:;
{
PyObject *tmp_assign_source_16;
PyObject *tmp_expression_value_11;
tmp_expression_value_11 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[73]);
if (unlikely(tmp_expression_value_11 == NULL)) {
tmp_expression_value_11 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[73]);
}
if (tmp_expression_value_11 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 415;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_assign_source_16 = LOOKUP_ATTRIBUTE(tmp_expression_value_11, mod_consts[74]);
if (tmp_assign_source_16 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 415;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
{
PyObject *old = var_cause;
assert(old != NULL);
var_cause = tmp_assign_source_16;
Py_DECREF(old);
}
}
{
nuitka_bool tmp_condition_result_11;
int tmp_and_left_truth_5;
nuitka_bool tmp_and_left_value_5;
nuitka_bool tmp_and_right_value_5;
int tmp_truth_name_8;
PyObject *tmp_expression_value_12;
PyObject *tmp_attribute_value_1;
int tmp_truth_name_9;
if (par_response == NULL) {
FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[72]);
exception_tb = NULL;
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
CHAIN_EXCEPTION(exception_value);
exception_lineno = 416;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_truth_name_8 = CHECK_IF_TRUE(par_response);
if (tmp_truth_name_8 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 416;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_and_left_value_5 = tmp_truth_name_8 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE;
tmp_and_left_truth_5 = tmp_and_left_value_5 == NUITKA_BOOL_TRUE ? 1 : 0;
if (tmp_and_left_truth_5 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 416;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
if (tmp_and_left_truth_5 == 1) {
goto and_right_5;
} else {
goto and_left_5;
}
and_right_5:;
if (par_response == NULL) {
FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[72]);
exception_tb = NULL;
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
CHAIN_EXCEPTION(exception_value);
exception_lineno = 416;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_expression_value_12 = par_response;
tmp_attribute_value_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_12, mod_consts[3]);
if (tmp_attribute_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 416;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_truth_name_9 = CHECK_IF_TRUE(tmp_attribute_value_1);
if (tmp_truth_name_9 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
Py_DECREF(tmp_attribute_value_1);
exception_lineno = 416;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_and_right_value_5 = tmp_truth_name_9 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE;
Py_DECREF(tmp_attribute_value_1);
tmp_condition_result_11 = tmp_and_right_value_5;
goto and_end_5;
and_left_5:;
tmp_condition_result_11 = tmp_and_left_value_5;
and_end_5:;
if (tmp_condition_result_11 == NUITKA_BOOL_TRUE) {
goto branch_yes_11;
} else {
goto branch_no_11;
}
}
branch_yes_11:;
{
bool tmp_condition_result_12;
PyObject *tmp_cmp_expr_left_8;
PyObject *tmp_cmp_expr_right_8;
CHECK_OBJECT(var_status_count);
tmp_cmp_expr_left_8 = var_status_count;
tmp_cmp_expr_right_8 = Py_None;
tmp_condition_result_12 = (tmp_cmp_expr_left_8 != tmp_cmp_expr_right_8) ? true : false;
if (tmp_condition_result_12 != false) {
goto branch_yes_12;
} else {
goto branch_no_12;
}
}
branch_yes_12:;
{
PyObject *tmp_assign_source_17;
PyObject *tmp_isub_expr_left_5;
PyObject *tmp_isub_expr_right_5;
CHECK_OBJECT(var_status_count);
tmp_isub_expr_left_5 = var_status_count;
tmp_isub_expr_right_5 = mod_consts[65];
tmp_result = INPLACE_OPERATION_SUB_OBJECT_LONG(&tmp_isub_expr_left_5, tmp_isub_expr_right_5);
if (tmp_result == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 418;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_assign_source_17 = tmp_isub_expr_left_5;
var_status_count = tmp_assign_source_17;
}
branch_no_12:;
{
PyObject *tmp_assign_source_18;
PyObject *tmp_called_value_4;
PyObject *tmp_expression_value_13;
PyObject *tmp_expression_value_14;
PyObject *tmp_kw_call_value_0_1;
PyObject *tmp_expression_value_15;
tmp_expression_value_14 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[73]);
if (unlikely(tmp_expression_value_14 == NULL)) {
tmp_expression_value_14 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[73]);
}
if (tmp_expression_value_14 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 419;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_expression_value_13 = LOOKUP_ATTRIBUTE(tmp_expression_value_14, mod_consts[75]);
if (tmp_expression_value_13 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 419;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_called_value_4 = LOOKUP_ATTRIBUTE(tmp_expression_value_13, mod_consts[76]);
Py_DECREF(tmp_expression_value_13);
if (tmp_called_value_4 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 419;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
if (par_response == NULL) {
Py_DECREF(tmp_called_value_4);
FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[72]);
exception_tb = NULL;
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
CHAIN_EXCEPTION(exception_value);
exception_lineno = 419;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_expression_value_15 = par_response;
tmp_kw_call_value_0_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_15, mod_consts[3]);
if (tmp_kw_call_value_0_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
Py_DECREF(tmp_called_value_4);
exception_lineno = 419;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
frame_52a249990d5c13a2ed48f8beb9be931f->m_frame.f_lineno = 419;
{
PyObject *kw_values[1] = {tmp_kw_call_value_0_1};
tmp_assign_source_18 = CALL_FUNCTION_WITH_NO_ARGS_KWSPLIT(tmp_called_value_4, kw_values, mod_consts[77]);
}
Py_DECREF(tmp_called_value_4);
Py_DECREF(tmp_kw_call_value_0_1);
if (tmp_assign_source_18 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 419;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
{
PyObject *old = var_cause;
assert(old != NULL);
var_cause = tmp_assign_source_18;
Py_DECREF(old);
}
}
{
PyObject *tmp_assign_source_19;
PyObject *tmp_expression_value_16;
if (par_response == NULL) {
FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[72]);
exception_tb = NULL;
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
CHAIN_EXCEPTION(exception_value);
exception_lineno = 420;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_expression_value_16 = par_response;
tmp_assign_source_19 = LOOKUP_ATTRIBUTE(tmp_expression_value_16, mod_consts[3]);
if (tmp_assign_source_19 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 420;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
{
PyObject *old = var_status;
assert(old != NULL);
var_status = tmp_assign_source_19;
Py_DECREF(old);
}
}
branch_no_11:;
branch_end_9:;
branch_end_6:;
branch_end_3:;
{
PyObject *tmp_assign_source_20;
PyObject *tmp_add_expr_left_1;
PyObject *tmp_add_expr_right_1;
PyObject *tmp_expression_value_17;
PyObject *tmp_tuple_element_1;
PyObject *tmp_called_value_5;
PyObject *tmp_args_element_value_13;
PyObject *tmp_args_element_value_14;
PyObject *tmp_args_element_value_15;
PyObject *tmp_args_element_value_16;
PyObject *tmp_args_element_value_17;
CHECK_OBJECT(par_self);
tmp_expression_value_17 = par_self;
tmp_add_expr_left_1 = LOOKUP_ATTRIBUTE(tmp_expression_value_17, mod_consts[12]);
if (tmp_add_expr_left_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 422;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_called_value_5 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[78]);
if (unlikely(tmp_called_value_5 == NULL)) {
tmp_called_value_5 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[78]);
}
if (tmp_called_value_5 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
Py_DECREF(tmp_add_expr_left_1);
exception_lineno = 423;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
if (par_method == NULL) {
Py_DECREF(tmp_add_expr_left_1);
FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[79]);
exception_tb = NULL;
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
CHAIN_EXCEPTION(exception_value);
exception_lineno = 423;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_args_element_value_13 = par_method;
CHECK_OBJECT(par_url);
tmp_args_element_value_14 = par_url;
if (par_error == NULL) {
Py_DECREF(tmp_add_expr_left_1);
FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[68]);
exception_tb = NULL;
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
CHAIN_EXCEPTION(exception_value);
exception_lineno = 423;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_args_element_value_15 = par_error;
CHECK_OBJECT(var_status);
tmp_args_element_value_16 = var_status;
CHECK_OBJECT(var_redirect_location);
tmp_args_element_value_17 = var_redirect_location;
frame_52a249990d5c13a2ed48f8beb9be931f->m_frame.f_lineno = 423;
{
PyObject *call_args[] = {tmp_args_element_value_13, tmp_args_element_value_14, tmp_args_element_value_15, tmp_args_element_value_16, tmp_args_element_value_17};
tmp_tuple_element_1 = CALL_FUNCTION_WITH_ARGS5(tmp_called_value_5, call_args);
}
if (tmp_tuple_element_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
Py_DECREF(tmp_add_expr_left_1);
exception_lineno = 423;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_add_expr_right_1 = MAKE_TUPLE_EMPTY(1);
PyTuple_SET_ITEM(tmp_add_expr_right_1, 0, tmp_tuple_element_1);
tmp_assign_source_20 = BINARY_OPERATION_ADD_OBJECT_OBJECT_TUPLE(tmp_add_expr_left_1, tmp_add_expr_right_1);
Py_DECREF(tmp_add_expr_left_1);
Py_DECREF(tmp_add_expr_right_1);
if (tmp_assign_source_20 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 422;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
assert(var_history == NULL);
var_history = tmp_assign_source_20;
}
{
PyObject *tmp_assign_source_21;
PyObject *tmp_called_value_6;
PyObject *tmp_expression_value_18;
PyObject *tmp_kw_call_value_0_2;
PyObject *tmp_kw_call_value_1_1;
PyObject *tmp_kw_call_value_2_1;
PyObject *tmp_kw_call_value_3_1;
PyObject *tmp_kw_call_value_4_1;
PyObject *tmp_kw_call_value_5_1;
CHECK_OBJECT(par_self);
tmp_expression_value_18 = par_self;
tmp_called_value_6 = LOOKUP_ATTRIBUTE(tmp_expression_value_18, mod_consts[80]);
if (tmp_called_value_6 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 426;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
CHECK_OBJECT(var_total);
tmp_kw_call_value_0_2 = var_total;
CHECK_OBJECT(var_connect);
tmp_kw_call_value_1_1 = var_connect;
CHECK_OBJECT(var_read);
tmp_kw_call_value_2_1 = var_read;
CHECK_OBJECT(var_redirect);
tmp_kw_call_value_3_1 = var_redirect;
CHECK_OBJECT(var_status_count);
tmp_kw_call_value_4_1 = var_status_count;
CHECK_OBJECT(var_history);
tmp_kw_call_value_5_1 = var_history;
frame_52a249990d5c13a2ed48f8beb9be931f->m_frame.f_lineno = 426;
{
PyObject *kw_values[6] = {tmp_kw_call_value_0_2, tmp_kw_call_value_1_1, tmp_kw_call_value_2_1, tmp_kw_call_value_3_1, tmp_kw_call_value_4_1, tmp_kw_call_value_5_1};
tmp_assign_source_21 = CALL_FUNCTION_WITH_NO_ARGS_KWSPLIT(tmp_called_value_6, kw_values, mod_consts[81]);
}
Py_DECREF(tmp_called_value_6);
if (tmp_assign_source_21 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 426;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
assert(var_new_retry == NULL);
var_new_retry = tmp_assign_source_21;
}
{
nuitka_bool tmp_condition_result_13;
PyObject *tmp_called_instance_6;
PyObject *tmp_call_result_4;
int tmp_truth_name_10;
CHECK_OBJECT(var_new_retry);
tmp_called_instance_6 = var_new_retry;
frame_52a249990d5c13a2ed48f8beb9be931f->m_frame.f_lineno = 435;
tmp_call_result_4 = CALL_METHOD_NO_ARGS(tmp_called_instance_6, mod_consts[82]);
if (tmp_call_result_4 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 435;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_truth_name_10 = CHECK_IF_TRUE(tmp_call_result_4);
if (tmp_truth_name_10 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
Py_DECREF(tmp_call_result_4);
exception_lineno = 435;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_condition_result_13 = tmp_truth_name_10 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE;
Py_DECREF(tmp_call_result_4);
if (tmp_condition_result_13 == NUITKA_BOOL_TRUE) {
goto branch_yes_13;
} else {
goto branch_no_13;
}
}
branch_yes_13:;
{
PyObject *tmp_raise_type_4;
PyObject *tmp_called_value_7;
PyObject *tmp_args_element_value_18;
PyObject *tmp_args_element_value_19;
PyObject *tmp_args_element_value_20;
int tmp_or_left_truth_2;
PyObject *tmp_or_left_value_2;
PyObject *tmp_or_right_value_2;
PyObject *tmp_called_value_8;
PyObject *tmp_args_element_value_21;
tmp_called_value_7 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[83]);
if (unlikely(tmp_called_value_7 == NULL)) {
tmp_called_value_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[83]);
}
if (tmp_called_value_7 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 436;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
CHECK_OBJECT(par__pool);
tmp_args_element_value_18 = par__pool;
CHECK_OBJECT(par_url);
tmp_args_element_value_19 = par_url;
if (par_error == NULL) {
FORMAT_UNBOUND_LOCAL_ERROR(&exception_type, &exception_value, mod_consts[68]);
exception_tb = NULL;
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
CHAIN_EXCEPTION(exception_value);
exception_lineno = 436;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_or_left_value_2 = par_error;
tmp_or_left_truth_2 = CHECK_IF_TRUE(tmp_or_left_value_2);
if (tmp_or_left_truth_2 == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 436;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
if (tmp_or_left_truth_2 == 1) {
goto or_left_2;
} else {
goto or_right_2;
}
or_right_2:;
tmp_called_value_8 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[73]);
if (unlikely(tmp_called_value_8 == NULL)) {
tmp_called_value_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[73]);
}
if (tmp_called_value_8 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 436;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
CHECK_OBJECT(var_cause);
tmp_args_element_value_21 = var_cause;
frame_52a249990d5c13a2ed48f8beb9be931f->m_frame.f_lineno = 436;
tmp_or_right_value_2 = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_value_8, tmp_args_element_value_21);
if (tmp_or_right_value_2 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 436;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_args_element_value_20 = tmp_or_right_value_2;
goto or_end_2;
or_left_2:;
Py_INCREF(tmp_or_left_value_2);
tmp_args_element_value_20 = tmp_or_left_value_2;
or_end_2:;
frame_52a249990d5c13a2ed48f8beb9be931f->m_frame.f_lineno = 436;
{
PyObject *call_args[] = {tmp_args_element_value_18, tmp_args_element_value_19, tmp_args_element_value_20};
tmp_raise_type_4 = CALL_FUNCTION_WITH_ARGS3(tmp_called_value_7, call_args);
}
Py_DECREF(tmp_args_element_value_20);
if (tmp_raise_type_4 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 436;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
exception_type = tmp_raise_type_4;
exception_lineno = 436;
RAISE_EXCEPTION_WITH_TYPE(&exception_type, &exception_value, &exception_tb);
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
branch_no_13:;
{
PyObject *tmp_called_instance_7;
PyObject *tmp_call_result_5;
PyObject *tmp_args_element_value_22;
PyObject *tmp_args_element_value_23;
PyObject *tmp_args_element_value_24;
tmp_called_instance_7 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[20]);
if (unlikely(tmp_called_instance_7 == NULL)) {
tmp_called_instance_7 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[20]);
}
if (tmp_called_instance_7 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 438;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
tmp_args_element_value_22 = mod_consts[84];
CHECK_OBJECT(par_url);
tmp_args_element_value_23 = par_url;
CHECK_OBJECT(var_new_retry);
tmp_args_element_value_24 = var_new_retry;
frame_52a249990d5c13a2ed48f8beb9be931f->m_frame.f_lineno = 438;
{
PyObject *call_args[] = {tmp_args_element_value_22, tmp_args_element_value_23, tmp_args_element_value_24};
tmp_call_result_5 = CALL_METHOD_WITH_ARGS3(
tmp_called_instance_7,
mod_consts[21],
call_args
);
}
if (tmp_call_result_5 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 438;
type_description_1 = "ooooooooooooooooo";
goto frame_exception_exit_1;
}
Py_DECREF(tmp_call_result_5);
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_52a249990d5c13a2ed48f8beb9be931f);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_52a249990d5c13a2ed48f8beb9be931f);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_52a249990d5c13a2ed48f8beb9be931f, exception_lineno);
} else if (exception_tb->tb_frame != &frame_52a249990d5c13a2ed48f8beb9be931f->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_52a249990d5c13a2ed48f8beb9be931f, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_52a249990d5c13a2ed48f8beb9be931f,
type_description_1,
par_self,
par_method,
par_url,
par_response,
par_error,
par__pool,
par__stacktrace,
var_total,
var_connect,
var_read,
var_redirect,
var_status_count,
var_cause,
var_status,
var_redirect_location,
var_history,
var_new_retry
);
// Release cached frame if used for exception.
if (frame_52a249990d5c13a2ed48f8beb9be931f == cache_frame_52a249990d5c13a2ed48f8beb9be931f) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_52a249990d5c13a2ed48f8beb9be931f);
cache_frame_52a249990d5c13a2ed48f8beb9be931f = NULL;
}
assertFrameObject(frame_52a249990d5c13a2ed48f8beb9be931f);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
CHECK_OBJECT(var_new_retry);
tmp_return_value = var_new_retry;
Py_INCREF(tmp_return_value);
goto try_return_handler_1;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_1:;
CHECK_OBJECT(var_total);
Py_DECREF(var_total);
var_total = NULL;
CHECK_OBJECT(var_connect);
Py_DECREF(var_connect);
var_connect = NULL;
CHECK_OBJECT(var_read);
Py_DECREF(var_read);
var_read = NULL;
CHECK_OBJECT(var_redirect);
Py_DECREF(var_redirect);
var_redirect = NULL;
CHECK_OBJECT(var_status_count);
Py_DECREF(var_status_count);
var_status_count = NULL;
CHECK_OBJECT(var_cause);
Py_DECREF(var_cause);
var_cause = NULL;
CHECK_OBJECT(var_status);
Py_DECREF(var_status);
var_status = NULL;
CHECK_OBJECT(var_redirect_location);
Py_DECREF(var_redirect_location);
var_redirect_location = NULL;
CHECK_OBJECT(var_history);
Py_DECREF(var_history);
var_history = NULL;
CHECK_OBJECT(var_new_retry);
Py_DECREF(var_new_retry);
var_new_retry = 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(var_total);
var_total = NULL;
Py_XDECREF(var_connect);
var_connect = NULL;
Py_XDECREF(var_read);
var_read = NULL;
Py_XDECREF(var_redirect);
var_redirect = NULL;
Py_XDECREF(var_status_count);
var_status_count = NULL;
Py_XDECREF(var_cause);
var_cause = NULL;
Py_XDECREF(var_status);
var_status = NULL;
Py_XDECREF(var_redirect_location);
var_redirect_location = NULL;
Py_XDECREF(var_history);
var_history = NULL;
Py_XDECREF(var_new_retry);
var_new_retry = 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:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
CHECK_OBJECT(par_method);
Py_DECREF(par_method);
CHECK_OBJECT(par_url);
Py_DECREF(par_url);
CHECK_OBJECT(par_response);
Py_DECREF(par_response);
CHECK_OBJECT(par_error);
Py_DECREF(par_error);
CHECK_OBJECT(par__pool);
Py_DECREF(par__pool);
CHECK_OBJECT(par__stacktrace);
Py_DECREF(par__stacktrace);
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
CHECK_OBJECT(par_method);
Py_DECREF(par_method);
CHECK_OBJECT(par_url);
Py_DECREF(par_url);
CHECK_OBJECT(par_response);
Py_DECREF(par_response);
CHECK_OBJECT(par_error);
Py_DECREF(par_error);
CHECK_OBJECT(par__pool);
Py_DECREF(par__pool);
CHECK_OBJECT(par__stacktrace);
Py_DECREF(par__stacktrace);
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *impl_urllib3$util$retry$$$function__16___repr__(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_c0bf923961435936b8b020e73a20e2fb;
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_c0bf923961435936b8b020e73a20e2fb = NULL;
// Actual function body.
if (isFrameUnusable(cache_frame_c0bf923961435936b8b020e73a20e2fb)) {
Py_XDECREF(cache_frame_c0bf923961435936b8b020e73a20e2fb);
#if _DEBUG_REFCOUNTS
if (cache_frame_c0bf923961435936b8b020e73a20e2fb == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_c0bf923961435936b8b020e73a20e2fb = MAKE_FUNCTION_FRAME(codeobj_c0bf923961435936b8b020e73a20e2fb, module_urllib3$util$retry, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_c0bf923961435936b8b020e73a20e2fb->m_type_description == NULL);
frame_c0bf923961435936b8b020e73a20e2fb = cache_frame_c0bf923961435936b8b020e73a20e2fb;
// Push the new frame as the currently active one.
pushFrameStack(frame_c0bf923961435936b8b020e73a20e2fb);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_c0bf923961435936b8b020e73a20e2fb) == 2); // Frame stack
// Framed code:
{
PyObject *tmp_kw_call_arg_value_0_1;
PyObject *tmp_kw_call_dict_value_0_1;
PyObject *tmp_type_arg_1;
PyObject *tmp_kw_call_dict_value_1_1;
tmp_kw_call_arg_value_0_1 = mod_consts[86];
CHECK_OBJECT(par_self);
tmp_type_arg_1 = par_self;
tmp_kw_call_dict_value_0_1 = BUILTIN_TYPE1(tmp_type_arg_1);
assert(!(tmp_kw_call_dict_value_0_1 == NULL));
CHECK_OBJECT(par_self);
tmp_kw_call_dict_value_1_1 = par_self;
frame_c0bf923961435936b8b020e73a20e2fb->m_frame.f_lineno = 443;
{
PyObject *args[] = {tmp_kw_call_arg_value_0_1};
PyObject *kw_values[2] = {tmp_kw_call_dict_value_0_1, tmp_kw_call_dict_value_1_1};
tmp_return_value = CALL_FUNCTION_WITH_ARGS1_KWSPLIT(unicode_builtin_format, args, kw_values, mod_consts[87]);
}
Py_DECREF(tmp_kw_call_dict_value_0_1);
if (tmp_return_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 443;
type_description_1 = "o";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_c0bf923961435936b8b020e73a20e2fb);
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_c0bf923961435936b8b020e73a20e2fb);
#endif
// Put the previous frame back on top.
popFrameStack();
goto function_return_exit;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_c0bf923961435936b8b020e73a20e2fb);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_c0bf923961435936b8b020e73a20e2fb, exception_lineno);
} else if (exception_tb->tb_frame != &frame_c0bf923961435936b8b020e73a20e2fb->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_c0bf923961435936b8b020e73a20e2fb, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_c0bf923961435936b8b020e73a20e2fb,
type_description_1,
par_self
);
// Release cached frame if used for exception.
if (frame_c0bf923961435936b8b020e73a20e2fb == cache_frame_c0bf923961435936b8b020e73a20e2fb) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_c0bf923961435936b8b020e73a20e2fb);
cache_frame_c0bf923961435936b8b020e73a20e2fb = NULL;
}
assertFrameObject(frame_c0bf923961435936b8b020e73a20e2fb);
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto function_exception_exit;
frame_no_exception_1:;
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
function_exception_exit:
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
assert(exception_type);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
function_return_exit:
// Function cleanup code if any.
CHECK_OBJECT(par_self);
Py_DECREF(par_self);
// Actual function exit with return value, making sure we did not make
// the error status worse despite non-NULL return.
CHECK_OBJECT(tmp_return_value);
assert(had_error || !ERROR_OCCURRED());
return tmp_return_value;
}
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__10__is_connection_error() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$util$retry$$$function__10__is_connection_error,
mod_consts[67],
#if PYTHON_VERSION >= 0x300
mod_consts[143],
#endif
codeobj_2d5fea8d3a7b78c7ceab20f4bb49947e,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_urllib3$util$retry,
mod_consts[53],
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__11__is_read_error() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$util$retry$$$function__11__is_read_error,
mod_consts[69],
#if PYTHON_VERSION >= 0x300
mod_consts[144],
#endif
codeobj_c90a031cdc5f24ac8e4f9a080a333295,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_urllib3$util$retry,
mod_consts[56],
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__12__is_method_retryable() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$util$retry$$$function__12__is_method_retryable,
mod_consts[59],
#if PYTHON_VERSION >= 0x300
mod_consts[145],
#endif
codeobj_1d9bce523fe63892bfa3fa7b938070ee,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_urllib3$util$retry,
mod_consts[58],
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__13_is_retry(PyObject *defaults) {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$util$retry$$$function__13_is_retry,
mod_consts[147],
#if PYTHON_VERSION >= 0x300
mod_consts[148],
#endif
codeobj_94667b7a3a6fd54b9fe83deb2cf2e481,
defaults,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_urllib3$util$retry,
mod_consts[61],
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__14_is_exhausted() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$util$retry$$$function__14_is_exhausted,
mod_consts[82],
#if PYTHON_VERSION >= 0x300
mod_consts[149],
#endif
codeobj_c1ca6796f74a9c49d0c5d62c11dc7e5b,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_urllib3$util$retry,
mod_consts[62],
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__15_increment(PyObject *defaults) {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$util$retry$$$function__15_increment,
mod_consts[151],
#if PYTHON_VERSION >= 0x300
mod_consts[152],
#endif
codeobj_52a249990d5c13a2ed48f8beb9be931f,
defaults,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_urllib3$util$retry,
mod_consts[85],
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__16___repr__() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$util$retry$$$function__16___repr__,
mod_consts[153],
#if PYTHON_VERSION >= 0x300
mod_consts[154],
#endif
codeobj_c0bf923961435936b8b020e73a20e2fb,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_urllib3$util$retry,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__1___init__(PyObject *defaults) {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$util$retry$$$function__1___init__,
mod_consts[129],
#if PYTHON_VERSION >= 0x300
mod_consts[130],
#endif
codeobj_70c421f85ec8e532fe0f701f915e962f,
defaults,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_urllib3$util$retry,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__2_new() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$util$retry$$$function__2_new,
mod_consts[80],
#if PYTHON_VERSION >= 0x300
mod_consts[131],
#endif
codeobj_f8751bbefa23e20d5db26163ec4bf3ba,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_urllib3$util$retry,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__3_from_int(PyObject *defaults) {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$util$retry$$$function__3_from_int,
mod_consts[134],
#if PYTHON_VERSION >= 0x300
mod_consts[135],
#endif
codeobj_86f54c135a6f8ac62ab5228fbce3f8b9,
defaults,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_urllib3$util$retry,
mod_consts[23],
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__4_get_backoff_time() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$util$retry$$$function__4_get_backoff_time,
mod_consts[48],
#if PYTHON_VERSION >= 0x300
mod_consts[136],
#endif
codeobj_c5f77a8f653eaa1d75542879888b4b5f,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_urllib3$util$retry,
mod_consts[30],
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__4_get_backoff_time$$$function__1_lambda() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$util$retry$$$function__4_get_backoff_time$$$function__1_lambda,
mod_consts[25],
#if PYTHON_VERSION >= 0x300
mod_consts[26],
#endif
codeobj_e264048c7eb5e8d89158e71aa56aa2c0,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_urllib3$util$retry,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__5_parse_retry_after() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$util$retry$$$function__5_parse_retry_after,
mod_consts[44],
#if PYTHON_VERSION >= 0x300
mod_consts[137],
#endif
codeobj_8e51ebcbe638c49e15ac4599ae16e92e,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_urllib3$util$retry,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__6_get_retry_after() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$util$retry$$$function__6_get_retry_after,
mod_consts[46],
#if PYTHON_VERSION >= 0x300
mod_consts[138],
#endif
codeobj_d9d00a2c60ec55f19f720570fd55f06d,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_urllib3$util$retry,
mod_consts[45],
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__7_sleep_for_retry(PyObject *defaults) {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$util$retry$$$function__7_sleep_for_retry,
mod_consts[49],
#if PYTHON_VERSION >= 0x300
mod_consts[140],
#endif
codeobj_c9c24f201530f0b568434780cabda7d9,
defaults,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_urllib3$util$retry,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__8__sleep_backoff() {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$util$retry$$$function__8__sleep_backoff,
mod_consts[50],
#if PYTHON_VERSION >= 0x300
mod_consts[141],
#endif
codeobj_0d666f7d6f1bc79ae6c85aab7f1b89fe,
NULL,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_urllib3$util$retry,
NULL,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$util$retry$$$function__9_sleep(PyObject *defaults) {
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$util$retry$$$function__9_sleep,
mod_consts[47],
#if PYTHON_VERSION >= 0x300
mod_consts[142],
#endif
codeobj_05915f7b1b748eded149b7053a0f8ae9,
defaults,
#if PYTHON_VERSION >= 0x300
NULL,
NULL,
#endif
module_urllib3$util$retry,
mod_consts[51],
NULL,
0
);
return (PyObject *)result;
}
extern void _initCompiledCellType();
extern void _initCompiledGeneratorType();
extern void _initCompiledFunctionType();
extern void _initCompiledMethodType();
extern void _initCompiledFrameType();
extern PyTypeObject Nuitka_Loader_Type;
#ifdef _NUITKA_PLUGIN_DILL_ENABLED
// Provide a way to create find a function via its C code and create it back
// in another process, useful for multiprocessing extensions like dill
extern void registerDillPluginTables(char const *module_name, PyMethodDef *reduce_compiled_function, PyMethodDef *create_compiled_function);
function_impl_code functable_urllib3$util$retry[] = {
impl_urllib3$util$retry$$$function__4_get_backoff_time$$$function__1_lambda,
impl_urllib3$util$retry$$$function__1___init__,
impl_urllib3$util$retry$$$function__2_new,
impl_urllib3$util$retry$$$function__3_from_int,
impl_urllib3$util$retry$$$function__4_get_backoff_time,
impl_urllib3$util$retry$$$function__5_parse_retry_after,
impl_urllib3$util$retry$$$function__6_get_retry_after,
impl_urllib3$util$retry$$$function__7_sleep_for_retry,
impl_urllib3$util$retry$$$function__8__sleep_backoff,
impl_urllib3$util$retry$$$function__9_sleep,
impl_urllib3$util$retry$$$function__10__is_connection_error,
impl_urllib3$util$retry$$$function__11__is_read_error,
impl_urllib3$util$retry$$$function__12__is_method_retryable,
impl_urllib3$util$retry$$$function__13_is_retry,
impl_urllib3$util$retry$$$function__14_is_exhausted,
impl_urllib3$util$retry$$$function__15_increment,
impl_urllib3$util$retry$$$function__16___repr__,
NULL
};
static char const *_reduce_compiled_function_argnames[] = {
"func",
NULL
};
static PyObject *_reduce_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) {
PyObject *func;
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O:reduce_compiled_function", (char **)_reduce_compiled_function_argnames, &func, NULL)) {
return NULL;
}
if (Nuitka_Function_Check(func) == false) {
SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "not a compiled function");
return NULL;
}
struct Nuitka_FunctionObject *function = (struct Nuitka_FunctionObject *)func;
function_impl_code *current = functable_urllib3$util$retry;
int offset = 0;
while (*current != NULL) {
if (*current == function->m_c_code) {
break;
}
current += 1;
offset += 1;
}
if (*current == NULL) {
SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Cannot find compiled function in module.");
return NULL;
}
PyObject *code_object_desc = MAKE_TUPLE_EMPTY(6);
PyTuple_SET_ITEM0(code_object_desc, 0, function->m_code_object->co_filename);
PyTuple_SET_ITEM0(code_object_desc, 1, function->m_code_object->co_name);
PyTuple_SET_ITEM(code_object_desc, 2, PyLong_FromLong(function->m_code_object->co_firstlineno));
PyTuple_SET_ITEM0(code_object_desc, 3, function->m_code_object->co_varnames);
PyTuple_SET_ITEM(code_object_desc, 4, PyLong_FromLong(function->m_code_object->co_argcount));
PyTuple_SET_ITEM(code_object_desc, 5, PyLong_FromLong(function->m_code_object->co_flags));
CHECK_OBJECT_DEEP(code_object_desc);
PyObject *result = MAKE_TUPLE_EMPTY(4);
PyTuple_SET_ITEM(result, 0, PyLong_FromLong(offset));
PyTuple_SET_ITEM(result, 1, code_object_desc);
PyTuple_SET_ITEM0(result, 2, function->m_defaults);
PyTuple_SET_ITEM0(result, 3, function->m_doc != NULL ? function->m_doc : Py_None);
CHECK_OBJECT_DEEP(result);
return result;
}
static PyMethodDef _method_def_reduce_compiled_function = {"reduce_compiled_function", (PyCFunction)_reduce_compiled_function,
METH_VARARGS | METH_KEYWORDS, NULL};
static char const *_create_compiled_function_argnames[] = {
"func",
"code_object_desc",
"defaults",
"doc",
NULL
};
static PyObject *_create_compiled_function(PyObject *self, PyObject *args, PyObject *kwds) {
CHECK_OBJECT_DEEP(args);
PyObject *func;
PyObject *code_object_desc;
PyObject *defaults;
PyObject *doc;
if (!PyArg_ParseTupleAndKeywords(args, kwds, "OOOO:create_compiled_function", (char **)_create_compiled_function_argnames, &func, &code_object_desc, &defaults, &doc, NULL)) {
return NULL;
}
int offset = PyLong_AsLong(func);
if (offset == -1 && ERROR_OCCURRED()) {
return NULL;
}
if (offset > sizeof(functable_urllib3$util$retry) || offset < 0) {
SET_CURRENT_EXCEPTION_TYPE0_STR(PyExc_TypeError, "Wrong offset for compiled function.");
return NULL;
}
PyObject *filename = PyTuple_GET_ITEM(code_object_desc, 0);
PyObject *function_name = PyTuple_GET_ITEM(code_object_desc, 1);
PyObject *line = PyTuple_GET_ITEM(code_object_desc, 2);
int line_int = PyLong_AsLong(line);
assert(!ERROR_OCCURRED());
PyObject *argnames = PyTuple_GET_ITEM(code_object_desc, 3);
PyObject *arg_count = PyTuple_GET_ITEM(code_object_desc, 4);
int arg_count_int = PyLong_AsLong(arg_count);
assert(!ERROR_OCCURRED());
PyObject *flags = PyTuple_GET_ITEM(code_object_desc, 5);
int flags_int = PyLong_AsLong(flags);
assert(!ERROR_OCCURRED());
PyCodeObject *code_object = MAKE_CODE_OBJECT(
filename,
line_int,
flags_int,
function_name,
argnames,
NULL, // freevars
arg_count_int,
0, // TODO: Missing kw_only_count
0 // TODO: Missing pos_only_count
);
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
functable_urllib3$util$retry[offset],
code_object->co_name,
#if PYTHON_VERSION >= 0x300
NULL, // TODO: Not transferring qualname yet
#endif
code_object,
defaults,
#if PYTHON_VERSION >= 0x300
NULL, // kwdefaults are done on the outside currently
NULL, // TODO: Not transferring annotations
#endif
module_urllib3$util$retry,
doc,
NULL,
0
);
return (PyObject *)result;
}
static PyMethodDef _method_def_create_compiled_function = {
"create_compiled_function",
(PyCFunction)_create_compiled_function,
METH_VARARGS | METH_KEYWORDS, NULL
};
#endif
// Internal entry point for module code.
PyObject *modulecode_urllib3$util$retry(PyObject *module, struct Nuitka_MetaPathBasedLoaderEntry const *loader_entry) {
// Report entry to PGO.
PGO_onModuleEntered("urllib3.util.retry");
// Store the module for future use.
module_urllib3$util$retry = module;
// Modules can be loaded again in case of errors, avoid the init being done again.
static bool init_done = false;
if (init_done == false) {
#if defined(_NUITKA_MODULE) && 0
// In case of an extension module loaded into a process, we need to call
// initialization here because that's the first and potentially only time
// we are going called.
// Initialize the constant values used.
_initBuiltinModule();
createGlobalConstants();
/* Initialize the compiled types of Nuitka. */
_initCompiledCellType();
_initCompiledGeneratorType();
_initCompiledFunctionType();
_initCompiledMethodType();
_initCompiledFrameType();
_initSlotCompare();
#if PYTHON_VERSION >= 0x270
_initSlotIterNext();
#endif
patchTypeComparison();
// Enable meta path based loader if not already done.
#ifdef _NUITKA_TRACE
PRINT_STRING("urllib3.util.retry: Calling setupMetaPathBasedLoader().\n");
#endif
setupMetaPathBasedLoader();
#if PYTHON_VERSION >= 0x300
patchInspectModule();
#endif
#endif
/* The constants only used by this module are created now. */
#ifdef _NUITKA_TRACE
PRINT_STRING("urllib3.util.retry: Calling createModuleConstants().\n");
#endif
createModuleConstants();
/* The code objects used by this module are created now. */
#ifdef _NUITKA_TRACE
PRINT_STRING("urllib3.util.retry: Calling createModuleCodeObjects().\n");
#endif
createModuleCodeObjects();
init_done = true;
}
// PRINT_STRING("in initurllib3$util$retry\n");
moduledict_urllib3$util$retry = MODULE_DICT(module_urllib3$util$retry);
#ifdef _NUITKA_PLUGIN_DILL_ENABLED
registerDillPluginTables(loader_entry->name, &_method_def_reduce_compiled_function, &_method_def_create_compiled_function);
#endif
// Set "__compiled__" to what version information we have.
UPDATE_STRING_DICT0(
moduledict_urllib3$util$retry,
(Nuitka_StringObject *)const_str_plain___compiled__,
Nuitka_dunder_compiled_value
);
// Update "__package__" value to what it ought to be.
{
#if 0
UPDATE_STRING_DICT0(
moduledict_urllib3$util$retry,
(Nuitka_StringObject *)const_str_plain___package__,
mod_consts[176]
);
#elif 0
PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)const_str_plain___name__);
UPDATE_STRING_DICT0(
moduledict_urllib3$util$retry,
(Nuitka_StringObject *)const_str_plain___package__,
module_name
);
#else
#if PYTHON_VERSION < 0x300
PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (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$retry,
(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$retry, (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$retry,
(Nuitka_StringObject *)const_str_plain___package__,
PyUnicode_Substring(module_name, 0, dot_index)
);
}
#endif
#endif
}
CHECK_OBJECT(module_urllib3$util$retry);
// 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$retry, (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_MODULE) || !0
value = PyModule_GetDict(value);
#endif
UPDATE_STRING_DICT0(moduledict_urllib3$util$retry, (Nuitka_StringObject *)const_str_plain___builtins__, value);
}
#if PYTHON_VERSION >= 0x300
UPDATE_STRING_DICT0(moduledict_urllib3$util$retry, (Nuitka_StringObject *)const_str_plain___loader__, (PyObject *)&Nuitka_Loader_Type);
#endif
#if PYTHON_VERSION >= 0x340
// Set the "__spec__" value
#if 0
// Main modules just get "None" as spec.
UPDATE_STRING_DICT0(moduledict_urllib3$util$retry, (Nuitka_StringObject *)const_str_plain___spec__, Py_None);
#else
// Other modules get a "ModuleSpec" from the standard mechanism.
{
PyObject *bootstrap_module = getImportLibBootstrapModule();
CHECK_OBJECT(bootstrap_module);
PyObject *_spec_from_module = PyObject_GetAttrString(bootstrap_module, "_spec_from_module");
CHECK_OBJECT(_spec_from_module);
PyObject *spec_value = CALL_FUNCTION_WITH_SINGLE_ARG(_spec_from_module, module_urllib3$util$retry);
Py_DECREF(_spec_from_module);
// We can assume this to never fail, or else we are in trouble anyway.
// CHECK_OBJECT(spec_value);
if (spec_value == NULL) {
PyErr_PrintEx(0);
abort();
}
// Mark the execution in the "__spec__" value.
SET_ATTRIBUTE(spec_value, const_str_plain__initializing, Py_True);
UPDATE_STRING_DICT1(moduledict_urllib3$util$retry, (Nuitka_StringObject *)const_str_plain___spec__, spec_value);
}
#endif
#endif
// Temp variables if any
PyObject *outline_0_var___class__ = NULL;
PyObject *tmp_class_creation_1__bases = NULL;
PyObject *tmp_class_creation_1__class_decl_dict = NULL;
PyObject *tmp_class_creation_1__metaclass = NULL;
PyObject *tmp_class_creation_1__prepared = NULL;
PyObject *tmp_import_from_1__module = NULL;
struct Nuitka_FrameObject *frame_4f1a6f8c048abac6ede3a57f3c0dbd39;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
bool tmp_result;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
int tmp_res;
PyObject *tmp_dictdel_dict;
PyObject *tmp_dictdel_key;
PyObject *locals_urllib3$util$retry$$$class__1_Retry_29 = NULL;
PyObject *tmp_dictset_value;
struct Nuitka_FrameObject *frame_dacc6e773df778810c54ea45019cfa99_2;
NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL;
static struct Nuitka_FrameObject *cache_frame_dacc6e773df778810c54ea45019cfa99_2 = NULL;
PyObject *exception_keeper_type_2;
PyObject *exception_keeper_value_2;
PyTracebackObject *exception_keeper_tb_2;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2;
PyObject *exception_keeper_type_3;
PyObject *exception_keeper_value_3;
PyTracebackObject *exception_keeper_tb_3;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3;
PyObject *exception_keeper_type_4;
PyObject *exception_keeper_value_4;
PyTracebackObject *exception_keeper_tb_4;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4;
// Module code.
{
PyObject *tmp_assign_source_1;
tmp_assign_source_1 = Py_None;
UPDATE_STRING_DICT0(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[88], tmp_assign_source_1);
}
{
PyObject *tmp_assign_source_2;
tmp_assign_source_2 = mod_consts[89];
UPDATE_STRING_DICT0(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[90], tmp_assign_source_2);
}
// Frame without reuse.
frame_4f1a6f8c048abac6ede3a57f3c0dbd39 = MAKE_MODULE_FRAME(codeobj_4f1a6f8c048abac6ede3a57f3c0dbd39, module_urllib3$util$retry);
// Push the new frame as the currently active one, and we should be exclusively
// owning it.
pushFrameStack(frame_4f1a6f8c048abac6ede3a57f3c0dbd39);
assert(Py_REFCNT(frame_4f1a6f8c048abac6ede3a57f3c0dbd39) == 2);
// Framed code:
{
PyObject *tmp_assattr_value_1;
PyObject *tmp_assattr_target_1;
tmp_assattr_value_1 = mod_consts[89];
tmp_assattr_target_1 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[91]);
if (unlikely(tmp_assattr_target_1 == NULL)) {
tmp_assattr_target_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[91]);
}
assert(!(tmp_assattr_target_1 == NULL));
tmp_result = SET_ATTRIBUTE(tmp_assattr_target_1, mod_consts[92], tmp_assattr_value_1);
if (tmp_result == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 1;
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_value_2;
PyObject *tmp_assattr_target_2;
tmp_assattr_value_2 = Py_True;
tmp_assattr_target_2 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[91]);
if (unlikely(tmp_assattr_target_2 == NULL)) {
tmp_assattr_target_2 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[91]);
}
assert(!(tmp_assattr_target_2 == NULL));
tmp_result = SET_ATTRIBUTE(tmp_assattr_target_2, mod_consts[93], tmp_assattr_value_2);
if (tmp_result == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 1;
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assign_source_3;
tmp_assign_source_3 = Py_None;
UPDATE_STRING_DICT0(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[94], tmp_assign_source_3);
}
{
PyObject *tmp_assign_source_4;
{
PyObject *hard_module = IMPORT_HARD___FUTURE__();
tmp_assign_source_4 = LOOKUP_ATTRIBUTE(hard_module, mod_consts[95]);
}
assert(!(tmp_assign_source_4 == NULL));
UPDATE_STRING_DICT1(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[95], tmp_assign_source_4);
}
{
PyObject *tmp_assign_source_5;
PyObject *tmp_name_value_1;
PyObject *tmp_globals_arg_value_1;
PyObject *tmp_locals_arg_value_1;
PyObject *tmp_fromlist_value_1;
PyObject *tmp_level_value_1;
tmp_name_value_1 = mod_consts[40];
tmp_globals_arg_value_1 = (PyObject *)moduledict_urllib3$util$retry;
tmp_locals_arg_value_1 = Py_None;
tmp_fromlist_value_1 = Py_None;
tmp_level_value_1 = mod_consts[4];
frame_4f1a6f8c048abac6ede3a57f3c0dbd39->m_frame.f_lineno = 2;
tmp_assign_source_5 = IMPORT_MODULE5(tmp_name_value_1, tmp_globals_arg_value_1, tmp_locals_arg_value_1, tmp_fromlist_value_1, tmp_level_value_1);
assert(!(tmp_assign_source_5 == NULL));
UPDATE_STRING_DICT1(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[40], tmp_assign_source_5);
}
{
PyObject *tmp_assign_source_6;
PyObject *tmp_name_value_2;
PyObject *tmp_globals_arg_value_2;
PyObject *tmp_locals_arg_value_2;
PyObject *tmp_fromlist_value_2;
PyObject *tmp_level_value_2;
tmp_name_value_2 = mod_consts[96];
tmp_globals_arg_value_2 = (PyObject *)moduledict_urllib3$util$retry;
tmp_locals_arg_value_2 = Py_None;
tmp_fromlist_value_2 = Py_None;
tmp_level_value_2 = mod_consts[4];
frame_4f1a6f8c048abac6ede3a57f3c0dbd39->m_frame.f_lineno = 3;
tmp_assign_source_6 = IMPORT_MODULE5(tmp_name_value_2, tmp_globals_arg_value_2, tmp_locals_arg_value_2, tmp_fromlist_value_2, tmp_level_value_2);
if (tmp_assign_source_6 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 3;
goto frame_exception_exit_1;
}
UPDATE_STRING_DICT1(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[96], tmp_assign_source_6);
}
{
PyObject *tmp_assign_source_7;
PyObject *tmp_import_name_from_1;
PyObject *tmp_name_value_3;
PyObject *tmp_globals_arg_value_3;
PyObject *tmp_locals_arg_value_3;
PyObject *tmp_fromlist_value_3;
PyObject *tmp_level_value_3;
tmp_name_value_3 = mod_consts[97];
tmp_globals_arg_value_3 = (PyObject *)moduledict_urllib3$util$retry;
tmp_locals_arg_value_3 = Py_None;
tmp_fromlist_value_3 = mod_consts[98];
tmp_level_value_3 = mod_consts[4];
frame_4f1a6f8c048abac6ede3a57f3c0dbd39->m_frame.f_lineno = 4;
tmp_import_name_from_1 = IMPORT_MODULE5(tmp_name_value_3, tmp_globals_arg_value_3, tmp_locals_arg_value_3, tmp_fromlist_value_3, tmp_level_value_3);
if (tmp_import_name_from_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 4;
goto frame_exception_exit_1;
}
if (PyModule_Check(tmp_import_name_from_1)) {
tmp_assign_source_7 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_1,
(PyObject *)moduledict_urllib3$util$retry,
mod_consts[99],
mod_consts[4]
);
} else {
tmp_assign_source_7 = IMPORT_NAME(tmp_import_name_from_1, mod_consts[99]);
}
Py_DECREF(tmp_import_name_from_1);
if (tmp_assign_source_7 == 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$retry, (Nuitka_StringObject *)mod_consts[99], tmp_assign_source_7);
}
{
PyObject *tmp_assign_source_8;
PyObject *tmp_import_name_from_2;
PyObject *tmp_name_value_4;
PyObject *tmp_globals_arg_value_4;
PyObject *tmp_locals_arg_value_4;
PyObject *tmp_fromlist_value_4;
PyObject *tmp_level_value_4;
tmp_name_value_4 = mod_consts[100];
tmp_globals_arg_value_4 = (PyObject *)moduledict_urllib3$util$retry;
tmp_locals_arg_value_4 = Py_None;
tmp_fromlist_value_4 = mod_consts[101];
tmp_level_value_4 = mod_consts[4];
frame_4f1a6f8c048abac6ede3a57f3c0dbd39->m_frame.f_lineno = 5;
tmp_import_name_from_2 = IMPORT_MODULE5(tmp_name_value_4, tmp_globals_arg_value_4, tmp_locals_arg_value_4, tmp_fromlist_value_4, tmp_level_value_4);
assert(!(tmp_import_name_from_2 == NULL));
if (PyModule_Check(tmp_import_name_from_2)) {
tmp_assign_source_8 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_2,
(PyObject *)moduledict_urllib3$util$retry,
mod_consts[24],
mod_consts[4]
);
} else {
tmp_assign_source_8 = IMPORT_NAME(tmp_import_name_from_2, mod_consts[24]);
}
Py_DECREF(tmp_import_name_from_2);
assert(!(tmp_assign_source_8 == NULL));
UPDATE_STRING_DICT1(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[24], tmp_assign_source_8);
}
{
PyObject *tmp_assign_source_9;
PyObject *tmp_name_value_5;
PyObject *tmp_globals_arg_value_5;
PyObject *tmp_locals_arg_value_5;
PyObject *tmp_fromlist_value_5;
PyObject *tmp_level_value_5;
tmp_name_value_5 = mod_consts[35];
tmp_globals_arg_value_5 = (PyObject *)moduledict_urllib3$util$retry;
tmp_locals_arg_value_5 = Py_None;
tmp_fromlist_value_5 = Py_None;
tmp_level_value_5 = mod_consts[4];
frame_4f1a6f8c048abac6ede3a57f3c0dbd39->m_frame.f_lineno = 6;
tmp_assign_source_9 = IMPORT_MODULE5(tmp_name_value_5, tmp_globals_arg_value_5, tmp_locals_arg_value_5, tmp_fromlist_value_5, tmp_level_value_5);
if (tmp_assign_source_9 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 6;
goto frame_exception_exit_1;
}
UPDATE_STRING_DICT1(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[35], tmp_assign_source_9);
}
{
PyObject *tmp_assign_source_10;
PyObject *tmp_name_value_6;
PyObject *tmp_globals_arg_value_6;
PyObject *tmp_locals_arg_value_6;
PyObject *tmp_fromlist_value_6;
PyObject *tmp_level_value_6;
tmp_name_value_6 = mod_consts[32];
tmp_globals_arg_value_6 = (PyObject *)moduledict_urllib3$util$retry;
tmp_locals_arg_value_6 = Py_None;
tmp_fromlist_value_6 = Py_None;
tmp_level_value_6 = mod_consts[4];
frame_4f1a6f8c048abac6ede3a57f3c0dbd39->m_frame.f_lineno = 7;
tmp_assign_source_10 = IMPORT_MODULE5(tmp_name_value_6, tmp_globals_arg_value_6, tmp_locals_arg_value_6, tmp_fromlist_value_6, tmp_level_value_6);
if (tmp_assign_source_10 == 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$retry, (Nuitka_StringObject *)mod_consts[32], tmp_assign_source_10);
}
{
PyObject *tmp_assign_source_11;
PyObject *tmp_name_value_7;
PyObject *tmp_globals_arg_value_7;
PyObject *tmp_locals_arg_value_7;
PyObject *tmp_fromlist_value_7;
PyObject *tmp_level_value_7;
tmp_name_value_7 = mod_consts[102];
tmp_globals_arg_value_7 = (PyObject *)moduledict_urllib3$util$retry;
tmp_locals_arg_value_7 = Py_None;
tmp_fromlist_value_7 = mod_consts[103];
tmp_level_value_7 = mod_consts[27];
frame_4f1a6f8c048abac6ede3a57f3c0dbd39->m_frame.f_lineno = 9;
tmp_assign_source_11 = IMPORT_MODULE5(tmp_name_value_7, tmp_globals_arg_value_7, tmp_locals_arg_value_7, tmp_fromlist_value_7, tmp_level_value_7);
if (tmp_assign_source_11 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 9;
goto frame_exception_exit_1;
}
assert(tmp_import_from_1__module == NULL);
tmp_import_from_1__module = tmp_assign_source_11;
}
// Tried code:
{
PyObject *tmp_assign_source_12;
PyObject *tmp_import_name_from_3;
CHECK_OBJECT(tmp_import_from_1__module);
tmp_import_name_from_3 = tmp_import_from_1__module;
if (PyModule_Check(tmp_import_name_from_3)) {
tmp_assign_source_12 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_3,
(PyObject *)moduledict_urllib3$util$retry,
mod_consts[52],
mod_consts[4]
);
} else {
tmp_assign_source_12 = IMPORT_NAME(tmp_import_name_from_3, mod_consts[52]);
}
if (tmp_assign_source_12 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 9;
goto try_except_handler_1;
}
UPDATE_STRING_DICT1(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[52], tmp_assign_source_12);
}
{
PyObject *tmp_assign_source_13;
PyObject *tmp_import_name_from_4;
CHECK_OBJECT(tmp_import_from_1__module);
tmp_import_name_from_4 = tmp_import_from_1__module;
if (PyModule_Check(tmp_import_name_from_4)) {
tmp_assign_source_13 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_4,
(PyObject *)moduledict_urllib3$util$retry,
mod_consts[83],
mod_consts[4]
);
} else {
tmp_assign_source_13 = IMPORT_NAME(tmp_import_name_from_4, mod_consts[83]);
}
if (tmp_assign_source_13 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 9;
goto try_except_handler_1;
}
UPDATE_STRING_DICT1(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[83], tmp_assign_source_13);
}
{
PyObject *tmp_assign_source_14;
PyObject *tmp_import_name_from_5;
CHECK_OBJECT(tmp_import_from_1__module);
tmp_import_name_from_5 = tmp_import_from_1__module;
if (PyModule_Check(tmp_import_name_from_5)) {
tmp_assign_source_14 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_5,
(PyObject *)moduledict_urllib3$util$retry,
mod_consts[55],
mod_consts[4]
);
} else {
tmp_assign_source_14 = IMPORT_NAME(tmp_import_name_from_5, mod_consts[55]);
}
if (tmp_assign_source_14 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 9;
goto try_except_handler_1;
}
UPDATE_STRING_DICT1(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[55], tmp_assign_source_14);
}
{
PyObject *tmp_assign_source_15;
PyObject *tmp_import_name_from_6;
CHECK_OBJECT(tmp_import_from_1__module);
tmp_import_name_from_6 = tmp_import_from_1__module;
if (PyModule_Check(tmp_import_name_from_6)) {
tmp_assign_source_15 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_6,
(PyObject *)moduledict_urllib3$util$retry,
mod_consts[54],
mod_consts[4]
);
} else {
tmp_assign_source_15 = IMPORT_NAME(tmp_import_name_from_6, mod_consts[54]);
}
if (tmp_assign_source_15 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 9;
goto try_except_handler_1;
}
UPDATE_STRING_DICT1(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[54], tmp_assign_source_15);
}
{
PyObject *tmp_assign_source_16;
PyObject *tmp_import_name_from_7;
CHECK_OBJECT(tmp_import_from_1__module);
tmp_import_name_from_7 = tmp_import_from_1__module;
if (PyModule_Check(tmp_import_name_from_7)) {
tmp_assign_source_16 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_7,
(PyObject *)moduledict_urllib3$util$retry,
mod_consts[73],
mod_consts[4]
);
} else {
tmp_assign_source_16 = IMPORT_NAME(tmp_import_name_from_7, mod_consts[73]);
}
if (tmp_assign_source_16 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 9;
goto try_except_handler_1;
}
UPDATE_STRING_DICT1(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[73], tmp_assign_source_16);
}
{
PyObject *tmp_assign_source_17;
PyObject *tmp_import_name_from_8;
CHECK_OBJECT(tmp_import_from_1__module);
tmp_import_name_from_8 = tmp_import_from_1__module;
if (PyModule_Check(tmp_import_name_from_8)) {
tmp_assign_source_17 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_8,
(PyObject *)moduledict_urllib3$util$retry,
mod_consts[38],
mod_consts[4]
);
} else {
tmp_assign_source_17 = IMPORT_NAME(tmp_import_name_from_8, mod_consts[38]);
}
if (tmp_assign_source_17 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 9;
goto try_except_handler_1;
}
UPDATE_STRING_DICT1(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[38], tmp_assign_source_17);
}
goto try_end_1;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
CHECK_OBJECT(tmp_import_from_1__module);
Py_DECREF(tmp_import_from_1__module);
tmp_import_from_1__module = NULL;
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto frame_exception_exit_1;
// End of try:
try_end_1:;
CHECK_OBJECT(tmp_import_from_1__module);
Py_DECREF(tmp_import_from_1__module);
tmp_import_from_1__module = NULL;
{
PyObject *tmp_assign_source_18;
PyObject *tmp_name_value_8;
PyObject *tmp_globals_arg_value_8;
PyObject *tmp_locals_arg_value_8;
PyObject *tmp_fromlist_value_8;
PyObject *tmp_level_value_8;
tmp_name_value_8 = mod_consts[63];
tmp_globals_arg_value_8 = (PyObject *)moduledict_urllib3$util$retry;
tmp_locals_arg_value_8 = Py_None;
tmp_fromlist_value_8 = Py_None;
tmp_level_value_8 = mod_consts[4];
frame_4f1a6f8c048abac6ede3a57f3c0dbd39->m_frame.f_lineno = 17;
tmp_assign_source_18 = IMPORT_MODULE5(tmp_name_value_8, tmp_globals_arg_value_8, tmp_locals_arg_value_8, tmp_fromlist_value_8, tmp_level_value_8);
if (tmp_assign_source_18 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 17;
goto frame_exception_exit_1;
}
UPDATE_STRING_DICT1(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[63], tmp_assign_source_18);
}
{
PyObject *tmp_assign_source_19;
PyObject *tmp_called_instance_1;
tmp_called_instance_1 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[96]);
if (unlikely(tmp_called_instance_1 == NULL)) {
tmp_called_instance_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[96]);
}
if (tmp_called_instance_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 20;
goto frame_exception_exit_1;
}
frame_4f1a6f8c048abac6ede3a57f3c0dbd39->m_frame.f_lineno = 20;
tmp_assign_source_19 = CALL_METHOD_WITH_SINGLE_ARG(
tmp_called_instance_1,
mod_consts[104],
PyTuple_GET_ITEM(mod_consts[105], 0)
);
if (tmp_assign_source_19 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 20;
goto frame_exception_exit_1;
}
UPDATE_STRING_DICT1(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[20], tmp_assign_source_19);
}
{
PyObject *tmp_assign_source_20;
PyObject *tmp_called_value_1;
PyObject *tmp_call_arg_element_1;
PyObject *tmp_call_arg_element_2;
tmp_called_value_1 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[99]);
if (unlikely(tmp_called_value_1 == NULL)) {
tmp_called_value_1 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[99]);
}
if (tmp_called_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 24;
goto frame_exception_exit_1;
}
tmp_call_arg_element_1 = mod_consts[78];
tmp_call_arg_element_2 = LIST_COPY(mod_consts[106]);
frame_4f1a6f8c048abac6ede3a57f3c0dbd39->m_frame.f_lineno = 24;
{
PyObject *call_args[] = {tmp_call_arg_element_1, tmp_call_arg_element_2};
tmp_assign_source_20 = CALL_FUNCTION_WITH_ARGS2(tmp_called_value_1, call_args);
}
Py_DECREF(tmp_call_arg_element_2);
if (tmp_assign_source_20 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 24;
goto frame_exception_exit_1;
}
UPDATE_STRING_DICT1(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[78], tmp_assign_source_20);
}
// Tried code:
{
PyObject *tmp_assign_source_21;
PyObject *tmp_dircall_arg1_1;
tmp_dircall_arg1_1 = mod_consts[107];
Py_INCREF(tmp_dircall_arg1_1);
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1};
tmp_assign_source_21 = impl___main__$$$function__1__mro_entries_conversion(dir_call_args);
}
if (tmp_assign_source_21 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 29;
goto try_except_handler_2;
}
assert(tmp_class_creation_1__bases == NULL);
tmp_class_creation_1__bases = tmp_assign_source_21;
}
{
PyObject *tmp_assign_source_22;
tmp_assign_source_22 = MAKE_DICT_EMPTY();
assert(tmp_class_creation_1__class_decl_dict == NULL);
tmp_class_creation_1__class_decl_dict = tmp_assign_source_22;
}
{
PyObject *tmp_assign_source_23;
PyObject *tmp_metaclass_value_1;
bool tmp_condition_result_1;
PyObject *tmp_key_value_1;
PyObject *tmp_dict_arg_value_1;
PyObject *tmp_dict_arg_value_2;
PyObject *tmp_key_value_2;
nuitka_bool tmp_condition_result_2;
int tmp_truth_name_1;
PyObject *tmp_type_arg_1;
PyObject *tmp_expression_value_1;
PyObject *tmp_subscript_value_1;
PyObject *tmp_bases_value_1;
tmp_key_value_1 = mod_consts[108];
CHECK_OBJECT(tmp_class_creation_1__class_decl_dict);
tmp_dict_arg_value_1 = tmp_class_creation_1__class_decl_dict;
tmp_res = DICT_HAS_ITEM(tmp_dict_arg_value_1, tmp_key_value_1);
assert(!(tmp_res == -1));
tmp_condition_result_1 = (tmp_res != 0) ? true : false;
if (tmp_condition_result_1 != false) {
goto condexpr_true_1;
} else {
goto condexpr_false_1;
}
condexpr_true_1:;
CHECK_OBJECT(tmp_class_creation_1__class_decl_dict);
tmp_dict_arg_value_2 = tmp_class_creation_1__class_decl_dict;
tmp_key_value_2 = mod_consts[108];
tmp_metaclass_value_1 = DICT_GET_ITEM0(tmp_dict_arg_value_2, tmp_key_value_2);
if (tmp_metaclass_value_1 == NULL) {
tmp_metaclass_value_1 = Py_None;
}
assert(!(tmp_metaclass_value_1 == NULL));
Py_INCREF(tmp_metaclass_value_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 = 29;
goto try_except_handler_2;
}
tmp_condition_result_2 = tmp_truth_name_1 == 0 ? NUITKA_BOOL_FALSE : NUITKA_BOOL_TRUE;
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_expression_value_1 = tmp_class_creation_1__bases;
tmp_subscript_value_1 = mod_consts[4];
tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST(tmp_expression_value_1, tmp_subscript_value_1, 0);
if (tmp_type_arg_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 29;
goto try_except_handler_2;
}
tmp_metaclass_value_1 = BUILTIN_TYPE1(tmp_type_arg_1);
Py_DECREF(tmp_type_arg_1);
if (tmp_metaclass_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 29;
goto try_except_handler_2;
}
goto condexpr_end_2;
condexpr_false_2:;
tmp_metaclass_value_1 = (PyObject *)&PyType_Type;
Py_INCREF(tmp_metaclass_value_1);
condexpr_end_2:;
condexpr_end_1:;
CHECK_OBJECT(tmp_class_creation_1__bases);
tmp_bases_value_1 = tmp_class_creation_1__bases;
tmp_assign_source_23 = SELECT_METACLASS(tmp_metaclass_value_1, tmp_bases_value_1);
Py_DECREF(tmp_metaclass_value_1);
if (tmp_assign_source_23 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 29;
goto try_except_handler_2;
}
assert(tmp_class_creation_1__metaclass == NULL);
tmp_class_creation_1__metaclass = tmp_assign_source_23;
}
{
bool tmp_condition_result_3;
PyObject *tmp_key_value_3;
PyObject *tmp_dict_arg_value_3;
tmp_key_value_3 = mod_consts[108];
CHECK_OBJECT(tmp_class_creation_1__class_decl_dict);
tmp_dict_arg_value_3 = tmp_class_creation_1__class_decl_dict;
tmp_res = DICT_HAS_ITEM(tmp_dict_arg_value_3, tmp_key_value_3);
assert(!(tmp_res == -1));
tmp_condition_result_3 = (tmp_res != 0) ? true : false;
if (tmp_condition_result_3 != false) {
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 = mod_consts[108];
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 = 29;
goto try_except_handler_2;
}
branch_no_1:;
{
nuitka_bool tmp_condition_result_4;
PyObject *tmp_expression_value_2;
CHECK_OBJECT(tmp_class_creation_1__metaclass);
tmp_expression_value_2 = tmp_class_creation_1__metaclass;
tmp_result = HAS_ATTR_BOOL(tmp_expression_value_2, mod_consts[109]);
tmp_condition_result_4 = (tmp_result) ? 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_24;
PyObject *tmp_called_value_2;
PyObject *tmp_expression_value_3;
PyObject *tmp_args_value_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_kwargs_value_1;
CHECK_OBJECT(tmp_class_creation_1__metaclass);
tmp_expression_value_3 = tmp_class_creation_1__metaclass;
tmp_called_value_2 = LOOKUP_ATTRIBUTE(tmp_expression_value_3, mod_consts[109]);
if (tmp_called_value_2 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 29;
goto try_except_handler_2;
}
tmp_tuple_element_1 = mod_consts[17];
tmp_args_value_1 = MAKE_TUPLE_EMPTY(2);
PyTuple_SET_ITEM0(tmp_args_value_1, 0, tmp_tuple_element_1);
CHECK_OBJECT(tmp_class_creation_1__bases);
tmp_tuple_element_1 = tmp_class_creation_1__bases;
PyTuple_SET_ITEM0(tmp_args_value_1, 1, tmp_tuple_element_1);
CHECK_OBJECT(tmp_class_creation_1__class_decl_dict);
tmp_kwargs_value_1 = tmp_class_creation_1__class_decl_dict;
frame_4f1a6f8c048abac6ede3a57f3c0dbd39->m_frame.f_lineno = 29;
tmp_assign_source_24 = CALL_FUNCTION(tmp_called_value_2, tmp_args_value_1, tmp_kwargs_value_1);
Py_DECREF(tmp_called_value_2);
Py_DECREF(tmp_args_value_1);
if (tmp_assign_source_24 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 29;
goto try_except_handler_2;
}
assert(tmp_class_creation_1__prepared == NULL);
tmp_class_creation_1__prepared = tmp_assign_source_24;
}
{
bool tmp_condition_result_5;
PyObject *tmp_operand_value_1;
PyObject *tmp_expression_value_4;
CHECK_OBJECT(tmp_class_creation_1__prepared);
tmp_expression_value_4 = tmp_class_creation_1__prepared;
tmp_result = HAS_ATTR_BOOL(tmp_expression_value_4, mod_consts[110]);
tmp_operand_value_1 = (tmp_result) ? Py_True : Py_False;
tmp_res = CHECK_IF_TRUE(tmp_operand_value_1);
if (tmp_res == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 29;
goto try_except_handler_2;
}
tmp_condition_result_5 = (tmp_res == 0) ? true : false;
if (tmp_condition_result_5 != false) {
goto branch_yes_3;
} else {
goto branch_no_3;
}
}
branch_yes_3:;
{
PyObject *tmp_raise_type_1;
PyObject *tmp_raise_value_1;
PyObject *tmp_mod_expr_left_1;
PyObject *tmp_mod_expr_right_1;
PyObject *tmp_tuple_element_2;
PyObject *tmp_getattr_target_1;
PyObject *tmp_getattr_attr_1;
PyObject *tmp_getattr_default_1;
tmp_raise_type_1 = PyExc_TypeError;
tmp_mod_expr_left_1 = mod_consts[111];
CHECK_OBJECT(tmp_class_creation_1__metaclass);
tmp_getattr_target_1 = tmp_class_creation_1__metaclass;
tmp_getattr_attr_1 = mod_consts[112];
tmp_getattr_default_1 = mod_consts[113];
tmp_tuple_element_2 = BUILTIN_GETATTR(tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1);
if (tmp_tuple_element_2 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 29;
goto try_except_handler_2;
}
tmp_mod_expr_right_1 = MAKE_TUPLE_EMPTY(2);
{
PyObject *tmp_expression_value_5;
PyObject *tmp_type_arg_2;
PyTuple_SET_ITEM(tmp_mod_expr_right_1, 0, tmp_tuple_element_2);
CHECK_OBJECT(tmp_class_creation_1__prepared);
tmp_type_arg_2 = tmp_class_creation_1__prepared;
tmp_expression_value_5 = BUILTIN_TYPE1(tmp_type_arg_2);
assert(!(tmp_expression_value_5 == NULL));
tmp_tuple_element_2 = LOOKUP_ATTRIBUTE(tmp_expression_value_5, mod_consts[112]);
Py_DECREF(tmp_expression_value_5);
if (tmp_tuple_element_2 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 29;
goto tuple_build_exception_1;
}
PyTuple_SET_ITEM(tmp_mod_expr_right_1, 1, tmp_tuple_element_2);
}
goto tuple_build_noexception_1;
// Exception handling pass through code for tuple_build:
tuple_build_exception_1:;
Py_DECREF(tmp_mod_expr_right_1);
goto try_except_handler_2;
// Finished with no exception for tuple_build:
tuple_build_noexception_1:;
tmp_raise_value_1 = BINARY_OPERATION_MOD_OBJECT_UNICODE_TUPLE(tmp_mod_expr_left_1, tmp_mod_expr_right_1);
Py_DECREF(tmp_mod_expr_right_1);
if (tmp_raise_value_1 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 29;
goto try_except_handler_2;
}
exception_type = tmp_raise_type_1;
Py_INCREF(tmp_raise_type_1);
exception_value = tmp_raise_value_1;
exception_lineno = 29;
RAISE_EXCEPTION_IMPLICIT(&exception_type, &exception_value, &exception_tb);
goto try_except_handler_2;
}
branch_no_3:;
goto branch_end_2;
branch_no_2:;
{
PyObject *tmp_assign_source_25;
tmp_assign_source_25 = MAKE_DICT_EMPTY();
assert(tmp_class_creation_1__prepared == NULL);
tmp_class_creation_1__prepared = tmp_assign_source_25;
}
branch_end_2:;
{
PyObject *tmp_assign_source_26;
{
PyObject *tmp_set_locals_1;
CHECK_OBJECT(tmp_class_creation_1__prepared);
tmp_set_locals_1 = tmp_class_creation_1__prepared;
locals_urllib3$util$retry$$$class__1_Retry_29 = tmp_set_locals_1;
Py_INCREF(tmp_set_locals_1);
}
// Tried code:
// Tried code:
tmp_dictset_value = mod_consts[114];
tmp_res = PyObject_SetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[115], tmp_dictset_value);
if (tmp_res != 0) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 29;
goto try_except_handler_4;
}
tmp_dictset_value = mod_consts[116];
tmp_res = PyObject_SetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[88], tmp_dictset_value);
if (tmp_res != 0) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 29;
goto try_except_handler_4;
}
tmp_dictset_value = mod_consts[17];
tmp_res = PyObject_SetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[117], tmp_dictset_value);
if (tmp_res != 0) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 29;
goto try_except_handler_4;
}
if (isFrameUnusable(cache_frame_dacc6e773df778810c54ea45019cfa99_2)) {
Py_XDECREF(cache_frame_dacc6e773df778810c54ea45019cfa99_2);
#if _DEBUG_REFCOUNTS
if (cache_frame_dacc6e773df778810c54ea45019cfa99_2 == NULL) {
count_active_frame_cache_instances += 1;
} else {
count_released_frame_cache_instances += 1;
}
count_allocated_frame_cache_instances += 1;
#endif
cache_frame_dacc6e773df778810c54ea45019cfa99_2 = MAKE_CLASS_FRAME(codeobj_dacc6e773df778810c54ea45019cfa99, module_urllib3$util$retry, NULL, sizeof(void *));
#if _DEBUG_REFCOUNTS
} else {
count_hit_frame_cache_instances += 1;
#endif
}
assert(cache_frame_dacc6e773df778810c54ea45019cfa99_2->m_type_description == NULL);
frame_dacc6e773df778810c54ea45019cfa99_2 = cache_frame_dacc6e773df778810c54ea45019cfa99_2;
// Push the new frame as the currently active one.
pushFrameStack(frame_dacc6e773df778810c54ea45019cfa99_2);
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert(Py_REFCNT(frame_dacc6e773df778810c54ea45019cfa99_2) == 2); // Frame stack
// Framed code:
{
nuitka_bool tmp_condition_result_6;
PyObject *tmp_called_value_3;
PyObject *tmp_call_arg_element_3;
tmp_res = MAPPING_HAS_ITEM(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[118]);
if (tmp_res == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 150;
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_value_3 = PyObject_GetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[118]);
if (unlikely(tmp_called_value_3 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) {
FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[118]);
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
CHAIN_EXCEPTION(exception_value);
exception_lineno = 150;
type_description_2 = "o";
goto frame_exception_exit_2;
}
if (tmp_called_value_3 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 150;
type_description_2 = "o";
goto frame_exception_exit_2;
}
tmp_call_arg_element_3 = LIST_COPY(mod_consts[119]);
frame_dacc6e773df778810c54ea45019cfa99_2->m_frame.f_lineno = 150;
tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_value_3, tmp_call_arg_element_3);
Py_DECREF(tmp_called_value_3);
Py_DECREF(tmp_call_arg_element_3);
if (tmp_dictset_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 150;
type_description_2 = "o";
goto frame_exception_exit_2;
}
goto condexpr_end_3;
condexpr_false_3:;
tmp_dictset_value = mod_consts[120];
Py_INCREF(tmp_dictset_value);
condexpr_end_3:;
tmp_res = PyObject_SetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[121], 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 = 150;
type_description_2 = "o";
goto frame_exception_exit_2;
}
}
{
nuitka_bool tmp_condition_result_7;
PyObject *tmp_called_value_4;
PyObject *tmp_call_arg_element_4;
tmp_res = MAPPING_HAS_ITEM(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[118]);
if (tmp_res == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 154;
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_value_4 = PyObject_GetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[118]);
if (unlikely(tmp_called_value_4 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) {
FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[118]);
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
CHAIN_EXCEPTION(exception_value);
exception_lineno = 154;
type_description_2 = "o";
goto frame_exception_exit_2;
}
if (tmp_called_value_4 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 154;
type_description_2 = "o";
goto frame_exception_exit_2;
}
tmp_call_arg_element_4 = LIST_COPY(mod_consts[122]);
frame_dacc6e773df778810c54ea45019cfa99_2->m_frame.f_lineno = 154;
tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_value_4, tmp_call_arg_element_4);
Py_DECREF(tmp_called_value_4);
Py_DECREF(tmp_call_arg_element_4);
if (tmp_dictset_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 154;
type_description_2 = "o";
goto frame_exception_exit_2;
}
goto condexpr_end_4;
condexpr_false_4:;
tmp_dictset_value = mod_consts[123];
Py_INCREF(tmp_dictset_value);
condexpr_end_4:;
tmp_res = PyObject_SetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[60], 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 = 154;
type_description_2 = "o";
goto frame_exception_exit_2;
}
}
{
nuitka_bool tmp_condition_result_8;
PyObject *tmp_called_value_5;
PyObject *tmp_call_arg_element_5;
tmp_res = MAPPING_HAS_ITEM(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[118]);
if (tmp_res == -1) {
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_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_value_5 = PyObject_GetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[118]);
if (unlikely(tmp_called_value_5 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) {
FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[118]);
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
CHAIN_EXCEPTION(exception_value);
exception_lineno = 156;
type_description_2 = "o";
goto frame_exception_exit_2;
}
if (tmp_called_value_5 == NULL) {
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_call_arg_element_5 = LIST_COPY(mod_consts[124]);
frame_dacc6e773df778810c54ea45019cfa99_2->m_frame.f_lineno = 156;
tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_value_5, tmp_call_arg_element_5);
Py_DECREF(tmp_called_value_5);
Py_DECREF(tmp_call_arg_element_5);
if (tmp_dictset_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 156;
type_description_2 = "o";
goto frame_exception_exit_2;
}
goto condexpr_end_5;
condexpr_false_5:;
tmp_dictset_value = mod_consts[125];
Py_INCREF(tmp_dictset_value);
condexpr_end_5:;
tmp_res = PyObject_SetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[126], 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 = mod_consts[127];
tmp_res = PyObject_SetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[29], tmp_dictset_value);
if (tmp_res != 0) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 159;
type_description_2 = "o";
goto frame_exception_exit_2;
}
{
PyObject *tmp_defaults_1;
PyObject *tmp_tuple_element_3;
tmp_tuple_element_3 = mod_consts[128];
tmp_defaults_1 = MAKE_TUPLE_EMPTY(13);
PyTuple_SET_ITEM0(tmp_defaults_1, 0, tmp_tuple_element_3);
tmp_tuple_element_3 = Py_None;
PyTuple_SET_ITEM0(tmp_defaults_1, 1, tmp_tuple_element_3);
tmp_tuple_element_3 = Py_None;
PyTuple_SET_ITEM0(tmp_defaults_1, 2, tmp_tuple_element_3);
tmp_tuple_element_3 = Py_None;
PyTuple_SET_ITEM0(tmp_defaults_1, 3, tmp_tuple_element_3);
tmp_tuple_element_3 = Py_None;
PyTuple_SET_ITEM0(tmp_defaults_1, 4, tmp_tuple_element_3);
tmp_tuple_element_3 = PyObject_GetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[121]);
if (unlikely(tmp_tuple_element_3 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) {
FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[121]);
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
CHAIN_EXCEPTION(exception_value);
exception_lineno = 168;
type_description_2 = "o";
goto frame_exception_exit_2;
}
if (tmp_tuple_element_3 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 168;
type_description_2 = "o";
goto frame_exception_exit_2;
}
PyTuple_SET_ITEM(tmp_defaults_1, 5, tmp_tuple_element_3);
tmp_tuple_element_3 = Py_None;
PyTuple_SET_ITEM0(tmp_defaults_1, 6, tmp_tuple_element_3);
tmp_tuple_element_3 = mod_consts[4];
PyTuple_SET_ITEM0(tmp_defaults_1, 7, tmp_tuple_element_3);
tmp_tuple_element_3 = Py_True;
PyTuple_SET_ITEM0(tmp_defaults_1, 8, tmp_tuple_element_3);
tmp_tuple_element_3 = Py_True;
PyTuple_SET_ITEM0(tmp_defaults_1, 9, tmp_tuple_element_3);
tmp_tuple_element_3 = Py_None;
PyTuple_SET_ITEM0(tmp_defaults_1, 10, tmp_tuple_element_3);
tmp_tuple_element_3 = Py_True;
PyTuple_SET_ITEM0(tmp_defaults_1, 11, tmp_tuple_element_3);
tmp_tuple_element_3 = PyObject_GetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[126]);
if (unlikely(tmp_tuple_element_3 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) {
FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[126]);
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
CHAIN_EXCEPTION(exception_value);
exception_lineno = 175;
type_description_2 = "o";
goto frame_exception_exit_2;
}
if (tmp_tuple_element_3 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 175;
type_description_2 = "o";
goto frame_exception_exit_2;
}
PyTuple_SET_ITEM(tmp_defaults_1, 12, tmp_tuple_element_3);
tmp_dictset_value = MAKE_FUNCTION_urllib3$util$retry$$$function__1___init__(tmp_defaults_1);
tmp_res = PyObject_SetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[129], 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 = 161;
type_description_2 = "o";
goto frame_exception_exit_2;
}
}
tmp_dictset_value = MAKE_FUNCTION_urllib3$util$retry$$$function__2_new();
tmp_res = PyObject_SetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[80], tmp_dictset_value);
Py_DECREF(tmp_dictset_value);
if (tmp_res != 0) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 199;
type_description_2 = "o";
goto frame_exception_exit_2;
}
{
nuitka_bool tmp_condition_result_9;
PyObject *tmp_called_value_6;
PyObject *tmp_args_element_value_1;
PyObject *tmp_defaults_2;
PyObject *tmp_classmethod_arg_1;
PyObject *tmp_defaults_3;
tmp_res = MAPPING_HAS_ITEM(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[132]);
if (tmp_res == -1) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 218;
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_value_6 = PyObject_GetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[132]);
if (unlikely(tmp_called_value_6 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED())) {
FORMAT_NAME_ERROR(&exception_type, &exception_value, mod_consts[132]);
NORMALIZE_EXCEPTION(&exception_type, &exception_value, &exception_tb);
CHAIN_EXCEPTION(exception_value);
exception_lineno = 218;
type_description_2 = "o";
goto frame_exception_exit_2;
}
if (tmp_called_value_6 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 218;
type_description_2 = "o";
goto frame_exception_exit_2;
}
tmp_defaults_2 = mod_consts[133];
Py_INCREF(tmp_defaults_2);
tmp_args_element_value_1 = MAKE_FUNCTION_urllib3$util$retry$$$function__3_from_int(tmp_defaults_2);
frame_dacc6e773df778810c54ea45019cfa99_2->m_frame.f_lineno = 218;
tmp_dictset_value = CALL_FUNCTION_WITH_SINGLE_ARG(tmp_called_value_6, tmp_args_element_value_1);
Py_DECREF(tmp_called_value_6);
Py_DECREF(tmp_args_element_value_1);
if (tmp_dictset_value == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 218;
type_description_2 = "o";
goto frame_exception_exit_2;
}
goto condexpr_end_6;
condexpr_false_6:;
tmp_defaults_3 = mod_consts[133];
Py_INCREF(tmp_defaults_3);
tmp_classmethod_arg_1 = MAKE_FUNCTION_urllib3$util$retry$$$function__3_from_int(tmp_defaults_3);
tmp_dictset_value = BUILTIN_CLASSMETHOD(tmp_classmethod_arg_1);
Py_DECREF(tmp_classmethod_arg_1);
assert(!(tmp_dictset_value == NULL));
condexpr_end_6:;
tmp_res = PyObject_SetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[134], tmp_dictset_value);
Py_DECREF(tmp_dictset_value);
if (tmp_res != 0) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 219;
type_description_2 = "o";
goto frame_exception_exit_2;
}
}
tmp_dictset_value = MAKE_FUNCTION_urllib3$util$retry$$$function__4_get_backoff_time();
tmp_res = PyObject_SetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[48], 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 = 232;
type_description_2 = "o";
goto frame_exception_exit_2;
}
tmp_dictset_value = MAKE_FUNCTION_urllib3$util$retry$$$function__5_parse_retry_after();
tmp_res = PyObject_SetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[44], 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 = 249;
type_description_2 = "o";
goto frame_exception_exit_2;
}
tmp_dictset_value = MAKE_FUNCTION_urllib3$util$retry$$$function__6_get_retry_after();
tmp_res = PyObject_SetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[46], 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 = 265;
type_description_2 = "o";
goto frame_exception_exit_2;
}
{
PyObject *tmp_defaults_4;
tmp_defaults_4 = mod_consts[139];
Py_INCREF(tmp_defaults_4);
tmp_dictset_value = MAKE_FUNCTION_urllib3$util$retry$$$function__7_sleep_for_retry(tmp_defaults_4);
tmp_res = PyObject_SetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[49], 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 = 275;
type_description_2 = "o";
goto frame_exception_exit_2;
}
}
tmp_dictset_value = MAKE_FUNCTION_urllib3$util$retry$$$function__8__sleep_backoff();
tmp_res = PyObject_SetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[50], 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 = 283;
type_description_2 = "o";
goto frame_exception_exit_2;
}
{
PyObject *tmp_defaults_5;
tmp_defaults_5 = mod_consts[139];
Py_INCREF(tmp_defaults_5);
tmp_dictset_value = MAKE_FUNCTION_urllib3$util$retry$$$function__9_sleep(tmp_defaults_5);
tmp_res = PyObject_SetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[47], tmp_dictset_value);
Py_DECREF(tmp_dictset_value);
if (tmp_res != 0) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 289;
type_description_2 = "o";
goto frame_exception_exit_2;
}
}
tmp_dictset_value = MAKE_FUNCTION_urllib3$util$retry$$$function__10__is_connection_error();
tmp_res = PyObject_SetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[67], 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 = 305;
type_description_2 = "o";
goto frame_exception_exit_2;
}
tmp_dictset_value = MAKE_FUNCTION_urllib3$util$retry$$$function__11__is_read_error();
tmp_res = PyObject_SetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[69], tmp_dictset_value);
Py_DECREF(tmp_dictset_value);
if (tmp_res != 0) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 311;
type_description_2 = "o";
goto frame_exception_exit_2;
}
tmp_dictset_value = MAKE_FUNCTION_urllib3$util$retry$$$function__12__is_method_retryable();
tmp_res = PyObject_SetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[59], 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 = 317;
type_description_2 = "o";
goto frame_exception_exit_2;
}
{
PyObject *tmp_defaults_6;
tmp_defaults_6 = mod_consts[146];
Py_INCREF(tmp_defaults_6);
tmp_dictset_value = MAKE_FUNCTION_urllib3$util$retry$$$function__13_is_retry(tmp_defaults_6);
tmp_res = PyObject_SetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[147], 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 = 326;
type_description_2 = "o";
goto frame_exception_exit_2;
}
}
tmp_dictset_value = MAKE_FUNCTION_urllib3$util$retry$$$function__14_is_exhausted();
tmp_res = PyObject_SetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[82], 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 = 346;
type_description_2 = "o";
goto frame_exception_exit_2;
}
{
PyObject *tmp_defaults_7;
tmp_defaults_7 = mod_consts[150];
Py_INCREF(tmp_defaults_7);
tmp_dictset_value = MAKE_FUNCTION_urllib3$util$retry$$$function__15_increment(tmp_defaults_7);
tmp_res = PyObject_SetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[151], 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 = 355;
type_description_2 = "o";
goto frame_exception_exit_2;
}
}
tmp_dictset_value = MAKE_FUNCTION_urllib3$util$retry$$$function__16___repr__();
tmp_res = PyObject_SetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[153], 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 = 442;
type_description_2 = "o";
goto frame_exception_exit_2;
}
#if 0
RESTORE_FRAME_EXCEPTION(frame_dacc6e773df778810c54ea45019cfa99_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_dacc6e773df778810c54ea45019cfa99_2);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_dacc6e773df778810c54ea45019cfa99_2, exception_lineno);
} else if (exception_tb->tb_frame != &frame_dacc6e773df778810c54ea45019cfa99_2->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_dacc6e773df778810c54ea45019cfa99_2, exception_lineno);
}
// Attaches locals to frame if any.
Nuitka_Frame_AttachLocals(
frame_dacc6e773df778810c54ea45019cfa99_2,
type_description_2,
outline_0_var___class__
);
// Release cached frame if used for exception.
if (frame_dacc6e773df778810c54ea45019cfa99_2 == cache_frame_dacc6e773df778810c54ea45019cfa99_2) {
#if _DEBUG_REFCOUNTS
count_active_frame_cache_instances -= 1;
count_released_frame_cache_instances += 1;
#endif
Py_DECREF(cache_frame_dacc6e773df778810c54ea45019cfa99_2);
cache_frame_dacc6e773df778810c54ea45019cfa99_2 = NULL;
}
assertFrameObject(frame_dacc6e773df778810c54ea45019cfa99_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_4;
skip_nested_handling_1:;
{
nuitka_bool tmp_condition_result_10;
PyObject *tmp_cmp_expr_left_1;
PyObject *tmp_cmp_expr_right_1;
CHECK_OBJECT(tmp_class_creation_1__bases);
tmp_cmp_expr_left_1 = tmp_class_creation_1__bases;
tmp_cmp_expr_right_1 = mod_consts[107];
tmp_condition_result_10 = RICH_COMPARE_NE_NBOOL_OBJECT_TUPLE(tmp_cmp_expr_left_1, tmp_cmp_expr_right_1);
if (tmp_condition_result_10 == NUITKA_BOOL_EXCEPTION) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 29;
goto try_except_handler_4;
}
if (tmp_condition_result_10 == NUITKA_BOOL_TRUE) {
goto branch_yes_4;
} else {
goto branch_no_4;
}
}
branch_yes_4:;
tmp_dictset_value = mod_consts[107];
tmp_res = PyObject_SetItem(locals_urllib3$util$retry$$$class__1_Retry_29, mod_consts[155], tmp_dictset_value);
if (tmp_res != 0) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 29;
goto try_except_handler_4;
}
branch_no_4:;
{
PyObject *tmp_assign_source_27;
PyObject *tmp_called_value_7;
PyObject *tmp_args_value_2;
PyObject *tmp_tuple_element_4;
PyObject *tmp_kwargs_value_2;
CHECK_OBJECT(tmp_class_creation_1__metaclass);
tmp_called_value_7 = tmp_class_creation_1__metaclass;
tmp_tuple_element_4 = mod_consts[17];
tmp_args_value_2 = MAKE_TUPLE_EMPTY(3);
PyTuple_SET_ITEM0(tmp_args_value_2, 0, tmp_tuple_element_4);
CHECK_OBJECT(tmp_class_creation_1__bases);
tmp_tuple_element_4 = tmp_class_creation_1__bases;
PyTuple_SET_ITEM0(tmp_args_value_2, 1, tmp_tuple_element_4);
tmp_tuple_element_4 = locals_urllib3$util$retry$$$class__1_Retry_29;
PyTuple_SET_ITEM0(tmp_args_value_2, 2, tmp_tuple_element_4);
CHECK_OBJECT(tmp_class_creation_1__class_decl_dict);
tmp_kwargs_value_2 = tmp_class_creation_1__class_decl_dict;
frame_4f1a6f8c048abac6ede3a57f3c0dbd39->m_frame.f_lineno = 29;
tmp_assign_source_27 = CALL_FUNCTION(tmp_called_value_7, tmp_args_value_2, tmp_kwargs_value_2);
Py_DECREF(tmp_args_value_2);
if (tmp_assign_source_27 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 29;
goto try_except_handler_4;
}
assert(outline_0_var___class__ == NULL);
outline_0_var___class__ = tmp_assign_source_27;
}
CHECK_OBJECT(outline_0_var___class__);
tmp_assign_source_26 = outline_0_var___class__;
Py_INCREF(tmp_assign_source_26);
goto try_return_handler_4;
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_4:;
Py_DECREF(locals_urllib3$util$retry$$$class__1_Retry_29);
locals_urllib3$util$retry$$$class__1_Retry_29 = NULL;
goto try_return_handler_3;
// Exception handler code:
try_except_handler_4:;
exception_keeper_type_2 = exception_type;
exception_keeper_value_2 = exception_value;
exception_keeper_tb_2 = exception_tb;
exception_keeper_lineno_2 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
Py_DECREF(locals_urllib3$util$retry$$$class__1_Retry_29);
locals_urllib3$util$retry$$$class__1_Retry_29 = NULL;
// Re-raise.
exception_type = exception_keeper_type_2;
exception_value = exception_keeper_value_2;
exception_tb = exception_keeper_tb_2;
exception_lineno = exception_keeper_lineno_2;
goto try_except_handler_3;
// End of try:
NUITKA_CANNOT_GET_HERE("tried codes exits in all cases");
return NULL;
// Return handler code:
try_return_handler_3:;
CHECK_OBJECT(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_3:;
exception_keeper_type_3 = exception_type;
exception_keeper_value_3 = exception_value;
exception_keeper_tb_3 = exception_tb;
exception_keeper_lineno_3 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
// 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 outline_exception_1;
// End of try:
NUITKA_CANNOT_GET_HERE("Return statement must have exited already.");
return NULL;
outline_exception_1:;
exception_lineno = 29;
goto try_except_handler_2;
outline_result_1:;
UPDATE_STRING_DICT1(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[17], tmp_assign_source_26);
}
goto try_end_2;
// Exception handler code:
try_except_handler_2:;
exception_keeper_type_4 = exception_type;
exception_keeper_value_4 = exception_value;
exception_keeper_tb_4 = exception_tb;
exception_keeper_lineno_4 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
Py_XDECREF(tmp_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_4;
exception_value = exception_keeper_value_4;
exception_tb = exception_keeper_tb_4;
exception_lineno = exception_keeper_lineno_4;
goto frame_exception_exit_1;
// End of try:
try_end_2:;
CHECK_OBJECT(tmp_class_creation_1__bases);
Py_DECREF(tmp_class_creation_1__bases);
tmp_class_creation_1__bases = NULL;
CHECK_OBJECT(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(tmp_class_creation_1__metaclass);
Py_DECREF(tmp_class_creation_1__metaclass);
tmp_class_creation_1__metaclass = NULL;
CHECK_OBJECT(tmp_class_creation_1__prepared);
Py_DECREF(tmp_class_creation_1__prepared);
tmp_class_creation_1__prepared = NULL;
{
PyObject *tmp_assattr_value_3;
PyObject *tmp_called_value_8;
PyObject *tmp_assattr_target_3;
tmp_called_value_8 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[17]);
if (unlikely(tmp_called_value_8 == NULL)) {
tmp_called_value_8 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]);
}
if (tmp_called_value_8 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 450;
goto frame_exception_exit_1;
}
frame_4f1a6f8c048abac6ede3a57f3c0dbd39->m_frame.f_lineno = 450;
tmp_assattr_value_3 = CALL_FUNCTION_WITH_POSARGS1(tmp_called_value_8, mod_consts[156]);
if (tmp_assattr_value_3 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 450;
goto frame_exception_exit_1;
}
tmp_assattr_target_3 = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)mod_consts[17]);
if (unlikely(tmp_assattr_target_3 == NULL)) {
tmp_assattr_target_3 = GET_MODULE_VARIABLE_VALUE_FALLBACK(mod_consts[17]);
}
if (tmp_assattr_target_3 == NULL) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
Py_DECREF(tmp_assattr_value_3);
exception_lineno = 450;
goto frame_exception_exit_1;
}
tmp_result = SET_ATTRIBUTE(tmp_assattr_target_3, mod_consts[16], tmp_assattr_value_3);
Py_DECREF(tmp_assattr_value_3);
if (tmp_result == false) {
assert(ERROR_OCCURRED());
FETCH_ERROR_OCCURRED(&exception_type, &exception_value, &exception_tb);
exception_lineno = 450;
goto frame_exception_exit_1;
}
}
// Restore frame exception if necessary.
#if 0
RESTORE_FRAME_EXCEPTION(frame_4f1a6f8c048abac6ede3a57f3c0dbd39);
#endif
popFrameStack();
goto frame_no_exception_2;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION(frame_4f1a6f8c048abac6ede3a57f3c0dbd39);
#endif
if (exception_tb == NULL) {
exception_tb = MAKE_TRACEBACK(frame_4f1a6f8c048abac6ede3a57f3c0dbd39, exception_lineno);
} else if (exception_tb->tb_frame != &frame_4f1a6f8c048abac6ede3a57f3c0dbd39->m_frame) {
exception_tb = ADD_TRACEBACK(exception_tb, frame_4f1a6f8c048abac6ede3a57f3c0dbd39, exception_lineno);
}
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto module_exception_exit;
frame_no_exception_2:;
// Report to PGO about leaving the module without error.
PGO_onModuleExit("urllib3.util.retry", false);
Py_INCREF(module_urllib3$util$retry);
return module_urllib3$util$retry;
module_exception_exit:
#if defined(_NUITKA_MODULE) && 0
{
PyObject *module_name = GET_STRING_DICT_VALUE(moduledict_urllib3$util$retry, (Nuitka_StringObject *)const_str_plain___name__);
if (module_name != NULL) {
Nuitka_DelModule(module_name);
}
}
#endif
PGO_onModuleExit("urllib3$util$retry", false);
RESTORE_ERROR_OCCURRED(exception_type, exception_value, exception_tb);
return NULL;
}