Files
fesmoo_perdoliq/baraban.build/module.requests.status_codes.c
2019-12-06 12:23:21 +03:00

2910 lines
95 KiB
C

/* Generated code for Python source for module 'requests.status_codes'
* created by Nuitka version 0.6.0
*
* This code is in part copyright 2018 Kay Hayen.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "nuitka/prelude.h"
#include "__helpers.h"
/* The _module_requests$status_codes 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_requests$status_codes;
PyDictObject *moduledict_requests$status_codes;
/* The module constants used, if any. */
extern PyObject *const_str_plain_status_codes;
static PyObject *const_tuple_str_plain_LookupDict_tuple;
static PyObject *const_str_plain__codes;
extern PyObject *const_str_chr_47;
extern PyObject *const_str_angle_genexpr;
static PyObject *const_tuple_00f94f85879959e8f63f93e77b16fdc4_tuple;
extern PyObject *const_str_plain_doc;
extern PyObject *const_str_plain__init;
extern PyObject *const_str_plain_sorted;
extern PyObject *const_int_pos_1;
static PyObject *const_str_digest_d5efefc072f5fed882dbe1314d642554;
extern PyObject *const_str_plain___file__;
extern PyObject *const_str_plain_n;
extern PyObject *const_str_digest_b9c4baf879ebd882d40843df3a4dead7;
static PyObject *const_tuple_tuple_str_chr_92_str_chr_47_tuple_tuple;
extern PyObject *const_str_plain_upper;
extern PyObject *const_str_newline;
extern PyObject *const_str_plain_code;
extern PyObject *const_str_plain_codes;
static PyObject *const_tuple_str_digest_b9c4baf879ebd882d40843df3a4dead7_str_plain_n_tuple;
static PyObject *const_tuple_str_chr_92_str_chr_47_tuple;
extern PyObject *const_str_plain_items;
static PyObject *const_str_digest_d0ba2b007b9e105961a784a71c1bc2d9;
static PyObject *const_str_digest_ac287d930ccff60e2a2e6a9bf4946046;
extern PyObject *const_str_digest_db35ab94a03c3cbeb13cbe2a1d728b77;
static PyObject *const_str_digest_c6f45b699f3010ac9fa73b2ec6d2f6ec;
static PyObject *const_tuple_693b6c8901824fba4ce83fd47b5d4213_tuple;
static PyObject *const_str_digest_962df51b668def68f550bdf2959dd728;
static PyObject *const_str_digest_f24f0d2d61a12ffb7f933692c0769883;
static PyObject *const_str_digest_3ec69d7af2832df7e4cacf918673adde;
extern PyObject *const_tuple_empty;
static PyObject *const_tuple_str_plain_code_str_plain_names_tuple;
static PyObject *const_dict_38252060f20256dc080a28c7e1fb8512;
extern PyObject *const_str_plain_LookupDict;
extern PyObject *const_str_plain_structures;
static PyObject *const_dict_a458e737a8852d300c78b7ab1e058713;
extern PyObject *const_str_plain_title;
static PyObject *const_str_digest_e26a01ee85033c35e44f056d847dbade;
extern PyObject *const_str_plain_join;
static PyObject *const_str_plain_titles;
extern PyObject *const_str_plain_startswith;
extern PyObject *const_str_plain_names;
extern PyObject *const_str_plain_name;
extern PyObject *const_str_chr_92;
extern PyObject *const_str_plain___doc__;
extern PyObject *const_str_plain___cached__;
static PyObject *const_str_digest_7906b030368eebc07be081a8bf4eacb0;
static PyObject *module_filename_obj;
static bool constants_created = false;
static void createModuleConstants( void )
{
const_tuple_str_plain_LookupDict_tuple = PyTuple_New( 1 );
PyTuple_SET_ITEM( const_tuple_str_plain_LookupDict_tuple, 0, const_str_plain_LookupDict ); Py_INCREF( const_str_plain_LookupDict );
const_str_plain__codes = UNSTREAM_STRING( &constant_bin[ 486370 ], 6, 1 );
const_tuple_00f94f85879959e8f63f93e77b16fdc4_tuple = PyTuple_New( 3 );
PyTuple_SET_ITEM( const_tuple_00f94f85879959e8f63f93e77b16fdc4_tuple, 0, const_str_digest_b9c4baf879ebd882d40843df3a4dead7 ); Py_INCREF( const_str_digest_b9c4baf879ebd882d40843df3a4dead7 );
PyTuple_SET_ITEM( const_tuple_00f94f85879959e8f63f93e77b16fdc4_tuple, 1, const_str_plain_code ); Py_INCREF( const_str_plain_code );
PyTuple_SET_ITEM( const_tuple_00f94f85879959e8f63f93e77b16fdc4_tuple, 2, const_str_plain_doc ); Py_INCREF( const_str_plain_doc );
const_str_digest_d5efefc072f5fed882dbe1314d642554 = UNSTREAM_STRING( &constant_bin[ 1086975 ], 24, 0 );
const_tuple_tuple_str_chr_92_str_chr_47_tuple_tuple = PyTuple_New( 1 );
const_tuple_str_chr_92_str_chr_47_tuple = PyTuple_New( 2 );
PyTuple_SET_ITEM( const_tuple_str_chr_92_str_chr_47_tuple, 0, const_str_chr_92 ); Py_INCREF( const_str_chr_92 );
PyTuple_SET_ITEM( const_tuple_str_chr_92_str_chr_47_tuple, 1, const_str_chr_47 ); Py_INCREF( const_str_chr_47 );
PyTuple_SET_ITEM( const_tuple_tuple_str_chr_92_str_chr_47_tuple_tuple, 0, const_tuple_str_chr_92_str_chr_47_tuple ); Py_INCREF( const_tuple_str_chr_92_str_chr_47_tuple );
const_tuple_str_digest_b9c4baf879ebd882d40843df3a4dead7_str_plain_n_tuple = PyTuple_New( 2 );
PyTuple_SET_ITEM( const_tuple_str_digest_b9c4baf879ebd882d40843df3a4dead7_str_plain_n_tuple, 0, const_str_digest_b9c4baf879ebd882d40843df3a4dead7 ); Py_INCREF( const_str_digest_b9c4baf879ebd882d40843df3a4dead7 );
PyTuple_SET_ITEM( const_tuple_str_digest_b9c4baf879ebd882d40843df3a4dead7_str_plain_n_tuple, 1, const_str_plain_n ); Py_INCREF( const_str_plain_n );
const_str_digest_d0ba2b007b9e105961a784a71c1bc2d9 = UNSTREAM_STRING( &constant_bin[ 1086999 ], 37, 0 );
const_str_digest_ac287d930ccff60e2a2e6a9bf4946046 = UNSTREAM_STRING( &constant_bin[ 1087036 ], 21, 0 );
const_str_digest_c6f45b699f3010ac9fa73b2ec6d2f6ec = UNSTREAM_STRING( &constant_bin[ 1087057 ], 57, 0 );
const_tuple_693b6c8901824fba4ce83fd47b5d4213_tuple = PyTuple_New( 4 );
PyTuple_SET_ITEM( const_tuple_693b6c8901824fba4ce83fd47b5d4213_tuple, 0, const_str_plain_code ); Py_INCREF( const_str_plain_code );
const_str_plain_titles = UNSTREAM_STRING( &constant_bin[ 1087114 ], 6, 1 );
PyTuple_SET_ITEM( const_tuple_693b6c8901824fba4ce83fd47b5d4213_tuple, 1, const_str_plain_titles ); Py_INCREF( const_str_plain_titles );
PyTuple_SET_ITEM( const_tuple_693b6c8901824fba4ce83fd47b5d4213_tuple, 2, const_str_plain_title ); Py_INCREF( const_str_plain_title );
PyTuple_SET_ITEM( const_tuple_693b6c8901824fba4ce83fd47b5d4213_tuple, 3, const_str_plain_doc ); Py_INCREF( const_str_plain_doc );
const_str_digest_962df51b668def68f550bdf2959dd728 = UNSTREAM_STRING( &constant_bin[ 1086999 ], 18, 0 );
const_str_digest_f24f0d2d61a12ffb7f933692c0769883 = UNSTREAM_STRING( &constant_bin[ 1087120 ], 6, 0 );
const_str_digest_3ec69d7af2832df7e4cacf918673adde = UNSTREAM_STRING( &constant_bin[ 1087126 ], 467, 0 );
const_tuple_str_plain_code_str_plain_names_tuple = PyTuple_New( 2 );
PyTuple_SET_ITEM( const_tuple_str_plain_code_str_plain_names_tuple, 0, const_str_plain_code ); Py_INCREF( const_str_plain_code );
PyTuple_SET_ITEM( const_tuple_str_plain_code_str_plain_names_tuple, 1, const_str_plain_names ); Py_INCREF( const_str_plain_names );
const_dict_38252060f20256dc080a28c7e1fb8512 = _PyDict_NewPresized( 1 );
PyDict_SetItem( const_dict_38252060f20256dc080a28c7e1fb8512, const_str_plain_name, const_str_plain_status_codes );
assert( PyDict_Size( const_dict_38252060f20256dc080a28c7e1fb8512 ) == 1 );
const_dict_a458e737a8852d300c78b7ab1e058713 = PyMarshal_ReadObjectFromString( (char *)&constant_bin[ 1087593 ], 2348 );
const_str_digest_e26a01ee85033c35e44f056d847dbade = UNSTREAM_STRING( &constant_bin[ 1089941 ], 30, 0 );
const_str_digest_7906b030368eebc07be081a8bf4eacb0 = UNSTREAM_STRING( &constant_bin[ 1089971 ], 8, 0 );
constants_created = true;
}
#ifndef __NUITKA_NO_ASSERT__
void checkModuleConstants_requests$status_codes( void )
{
// The module may not have been used at all.
if (constants_created == false) return;
}
#endif
// The module code objects.
static PyCodeObject *codeobj_0a2f1c0fbcd53bd3ccec1263b7fc318b;
static PyCodeObject *codeobj_5bfba404b116c8f6649f97563171332b;
static PyCodeObject *codeobj_56fb0b9178a5f7692a3bb494f28c302e;
static PyCodeObject *codeobj_530358021dc9c1ccb93d9e91fd6af983;
static PyCodeObject *codeobj_5ffd641e9ce6333d92f5f89f38923644;
static void createModuleCodeObjects(void)
{
module_filename_obj = const_str_digest_c6f45b699f3010ac9fa73b2ec6d2f6ec;
codeobj_0a2f1c0fbcd53bd3ccec1263b7fc318b = MAKE_CODEOBJ( module_filename_obj, const_str_angle_genexpr, 112, const_tuple_str_digest_b9c4baf879ebd882d40843df3a4dead7_str_plain_n_tuple, 1, 0, CO_GENERATOR | CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
codeobj_5bfba404b116c8f6649f97563171332b = MAKE_CODEOBJ( module_filename_obj, const_str_angle_genexpr, 117, const_tuple_00f94f85879959e8f63f93e77b16fdc4_tuple, 1, 0, CO_GENERATOR | CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
codeobj_56fb0b9178a5f7692a3bb494f28c302e = MAKE_CODEOBJ( module_filename_obj, const_str_digest_e26a01ee85033c35e44f056d847dbade, 1, const_tuple_empty, 0, 0, CO_NOFREE );
codeobj_530358021dc9c1ccb93d9e91fd6af983 = MAKE_CODEOBJ( module_filename_obj, const_str_plain__init, 104, const_tuple_693b6c8901824fba4ce83fd47b5d4213_tuple, 0, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
codeobj_5ffd641e9ce6333d92f5f89f38923644 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_doc, 111, const_tuple_str_plain_code_str_plain_names_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
}
// The module function declarations.
static PyObject *requests$status_codes$$$function_1__init$$$function_1_doc$$$genexpr_1_genexpr_maker( void );
static PyObject *requests$status_codes$$$function_1__init$$$genexpr_1_genexpr_maker( void );
static PyObject *MAKE_FUNCTION_requests$status_codes$$$function_1__init( );
static PyObject *MAKE_FUNCTION_requests$status_codes$$$function_1__init$$$function_1_doc( );
// The module function definitions.
static PyObject *impl_requests$status_codes$$$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 *var_code = NULL;
PyObject *var_titles = NULL;
PyObject *var_title = NULL;
struct Nuitka_CellObject *var_doc = PyCell_EMPTY();
PyObject *tmp_for_loop_1__for_iterator = NULL;
PyObject *tmp_for_loop_1__iter_value = NULL;
PyObject *tmp_for_loop_2__for_iterator = NULL;
PyObject *tmp_for_loop_2__iter_value = NULL;
PyObject *tmp_genexpr_1__$0 = NULL;
PyObject *tmp_tuple_unpack_1__element_1 = NULL;
PyObject *tmp_tuple_unpack_1__element_2 = NULL;
PyObject *tmp_tuple_unpack_1__source_iter = NULL;
struct Nuitka_FrameObject *frame_530358021dc9c1ccb93d9e91fd6af983;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
PyObject *tmp_iterator_attempt;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
PyObject *exception_keeper_type_2;
PyObject *exception_keeper_value_2;
PyTracebackObject *exception_keeper_tb_2;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2;
NUITKA_MAY_BE_UNUSED PyObject *tmp_unused;
int tmp_res;
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;
static struct Nuitka_FrameObject *cache_frame_530358021dc9c1ccb93d9e91fd6af983 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_keeper_type_5;
PyObject *exception_keeper_value_5;
PyTracebackObject *exception_keeper_tb_5;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5;
// Actual function code.
{
// Tried code:
MAKE_OR_REUSE_FRAME( cache_frame_530358021dc9c1ccb93d9e91fd6af983, codeobj_530358021dc9c1ccb93d9e91fd6af983, module_requests$status_codes, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) );
frame_530358021dc9c1ccb93d9e91fd6af983 = cache_frame_530358021dc9c1ccb93d9e91fd6af983;
// Push the new frame as the currently active one.
pushFrameStack( frame_530358021dc9c1ccb93d9e91fd6af983 );
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert( Py_REFCNT( frame_530358021dc9c1ccb93d9e91fd6af983 ) == 2 ); // Frame stack
// Framed code:
{
PyObject *tmp_assign_source_1;
PyObject *tmp_iter_arg_1;
PyObject *tmp_called_instance_1;
PyObject *tmp_mvar_value_1;
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_requests$status_codes, (Nuitka_StringObject *)const_str_plain__codes );
if (unlikely( tmp_mvar_value_1 == NULL ))
{
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain__codes );
}
if ( tmp_mvar_value_1 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "_codes" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 105;
type_description_1 = "oooc";
goto frame_exception_exit_1;
}
tmp_called_instance_1 = tmp_mvar_value_1;
frame_530358021dc9c1ccb93d9e91fd6af983->m_frame.f_lineno = 105;
tmp_iter_arg_1 = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain_items );
if ( tmp_iter_arg_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 105;
type_description_1 = "oooc";
goto frame_exception_exit_1;
}
tmp_assign_source_1 = MAKE_ITERATOR( tmp_iter_arg_1 );
Py_DECREF( tmp_iter_arg_1 );
if ( tmp_assign_source_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 105;
type_description_1 = "oooc";
goto frame_exception_exit_1;
}
assert( tmp_for_loop_1__for_iterator == NULL );
tmp_for_loop_1__for_iterator = tmp_assign_source_1;
}
{
// Tried code:
{
loop_start_1:;
{
PyObject *tmp_next_source_1;
PyObject *tmp_assign_source_2;
CHECK_OBJECT( tmp_for_loop_1__for_iterator );
tmp_next_source_1 = tmp_for_loop_1__for_iterator;
tmp_assign_source_2 = ITERATOR_NEXT( tmp_next_source_1 );
if ( tmp_assign_source_2 == NULL )
{
if ( CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED() )
{
goto loop_end_1;
}
else
{
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
type_description_1 = "oooc";
exception_lineno = 105;
goto try_except_handler_2;
}
}
{
PyObject *old = tmp_for_loop_1__iter_value;
tmp_for_loop_1__iter_value = tmp_assign_source_2;
Py_XDECREF( old );
}
}
{
// Tried code:
{
PyObject *tmp_assign_source_3;
PyObject *tmp_iter_arg_2;
CHECK_OBJECT( tmp_for_loop_1__iter_value );
tmp_iter_arg_2 = tmp_for_loop_1__iter_value;
tmp_assign_source_3 = MAKE_UNPACK_ITERATOR( tmp_iter_arg_2 );
if ( tmp_assign_source_3 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 105;
type_description_1 = "oooc";
goto try_except_handler_3;
}
{
PyObject *old = tmp_tuple_unpack_1__source_iter;
tmp_tuple_unpack_1__source_iter = tmp_assign_source_3;
Py_XDECREF( old );
}
}
{
// Tried code:
{
PyObject *tmp_assign_source_4;
PyObject *tmp_unpack_1;
CHECK_OBJECT( tmp_tuple_unpack_1__source_iter );
tmp_unpack_1 = tmp_tuple_unpack_1__source_iter;
tmp_assign_source_4 = UNPACK_NEXT( tmp_unpack_1, 0, 2 );
if ( tmp_assign_source_4 == NULL )
{
if ( !ERROR_OCCURRED() )
{
exception_type = PyExc_StopIteration;
Py_INCREF( exception_type );
exception_value = NULL;
exception_tb = NULL;
}
else
{
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
}
type_description_1 = "oooc";
exception_lineno = 105;
goto try_except_handler_4;
}
{
PyObject *old = tmp_tuple_unpack_1__element_1;
tmp_tuple_unpack_1__element_1 = tmp_assign_source_4;
Py_XDECREF( old );
}
}
{
PyObject *tmp_assign_source_5;
PyObject *tmp_unpack_2;
CHECK_OBJECT( tmp_tuple_unpack_1__source_iter );
tmp_unpack_2 = tmp_tuple_unpack_1__source_iter;
tmp_assign_source_5 = UNPACK_NEXT( tmp_unpack_2, 1, 2 );
if ( tmp_assign_source_5 == NULL )
{
if ( !ERROR_OCCURRED() )
{
exception_type = PyExc_StopIteration;
Py_INCREF( exception_type );
exception_value = NULL;
exception_tb = NULL;
}
else
{
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
}
type_description_1 = "oooc";
exception_lineno = 105;
goto try_except_handler_4;
}
{
PyObject *old = tmp_tuple_unpack_1__element_2;
tmp_tuple_unpack_1__element_2 = tmp_assign_source_5;
Py_XDECREF( old );
}
}
{
PyObject *tmp_iterator_name_1;
CHECK_OBJECT( tmp_tuple_unpack_1__source_iter );
tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter;
// Check if iterator has left-over elements.
CHECK_OBJECT( tmp_iterator_name_1 ); assert( HAS_ITERNEXT( tmp_iterator_name_1 ) );
tmp_iterator_attempt = (*Py_TYPE( tmp_iterator_name_1 )->tp_iternext)( tmp_iterator_name_1 );
if (likely( tmp_iterator_attempt == NULL ))
{
PyObject *error = GET_ERROR_OCCURRED();
if ( error != NULL )
{
if ( EXCEPTION_MATCH_BOOL_SINGLE( error, PyExc_StopIteration ))
{
CLEAR_ERROR_OCCURRED();
}
else
{
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
type_description_1 = "oooc";
exception_lineno = 105;
goto try_except_handler_4;
}
}
}
else
{
Py_DECREF( tmp_iterator_attempt );
// TODO: Could avoid PyErr_Format.
#if PYTHON_VERSION < 300
PyErr_Format( PyExc_ValueError, "too many values to unpack" );
#else
PyErr_Format( PyExc_ValueError, "too many values to unpack (expected 2)" );
#endif
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
type_description_1 = "oooc";
exception_lineno = 105;
goto try_except_handler_4;
}
}
goto try_end_1;
// Exception handler code:
try_except_handler_4:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
CHECK_OBJECT( (PyObject *)tmp_tuple_unpack_1__source_iter );
Py_DECREF( tmp_tuple_unpack_1__source_iter );
tmp_tuple_unpack_1__source_iter = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto try_except_handler_3;
}
// End of try:
try_end_1:;
}
goto try_end_2;
// Exception handler code:
try_except_handler_3:;
exception_keeper_type_2 = exception_type;
exception_keeper_value_2 = exception_value;
exception_keeper_tb_2 = exception_tb;
exception_keeper_lineno_2 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( tmp_tuple_unpack_1__element_1 );
tmp_tuple_unpack_1__element_1 = NULL;
}
{
Py_XDECREF( tmp_tuple_unpack_1__element_2 );
tmp_tuple_unpack_1__element_2 = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_2;
exception_value = exception_keeper_value_2;
exception_tb = exception_keeper_tb_2;
exception_lineno = exception_keeper_lineno_2;
goto try_except_handler_2;
}
// End of try:
try_end_2:;
}
{
CHECK_OBJECT( (PyObject *)tmp_tuple_unpack_1__source_iter );
Py_DECREF( tmp_tuple_unpack_1__source_iter );
tmp_tuple_unpack_1__source_iter = NULL;
}
{
PyObject *tmp_assign_source_6;
CHECK_OBJECT( tmp_tuple_unpack_1__element_1 );
tmp_assign_source_6 = tmp_tuple_unpack_1__element_1;
{
PyObject *old = var_code;
var_code = tmp_assign_source_6;
Py_INCREF( var_code );
Py_XDECREF( old );
}
}
{
Py_XDECREF( tmp_tuple_unpack_1__element_1 );
tmp_tuple_unpack_1__element_1 = NULL;
}
{
PyObject *tmp_assign_source_7;
CHECK_OBJECT( tmp_tuple_unpack_1__element_2 );
tmp_assign_source_7 = tmp_tuple_unpack_1__element_2;
{
PyObject *old = var_titles;
var_titles = tmp_assign_source_7;
Py_INCREF( var_titles );
Py_XDECREF( old );
}
}
{
Py_XDECREF( tmp_tuple_unpack_1__element_2 );
tmp_tuple_unpack_1__element_2 = NULL;
}
{
PyObject *tmp_assign_source_8;
PyObject *tmp_iter_arg_3;
if ( var_titles == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "titles" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 106;
type_description_1 = "oooc";
goto try_except_handler_2;
}
tmp_iter_arg_3 = var_titles;
tmp_assign_source_8 = MAKE_ITERATOR( tmp_iter_arg_3 );
if ( tmp_assign_source_8 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 106;
type_description_1 = "oooc";
goto try_except_handler_2;
}
{
PyObject *old = tmp_for_loop_2__for_iterator;
tmp_for_loop_2__for_iterator = tmp_assign_source_8;
Py_XDECREF( old );
}
}
{
// Tried code:
{
loop_start_2:;
{
PyObject *tmp_next_source_2;
PyObject *tmp_assign_source_9;
CHECK_OBJECT( tmp_for_loop_2__for_iterator );
tmp_next_source_2 = tmp_for_loop_2__for_iterator;
tmp_assign_source_9 = ITERATOR_NEXT( tmp_next_source_2 );
if ( tmp_assign_source_9 == NULL )
{
if ( CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED() )
{
goto loop_end_2;
}
else
{
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
type_description_1 = "oooc";
exception_lineno = 106;
goto try_except_handler_5;
}
}
{
PyObject *old = tmp_for_loop_2__iter_value;
tmp_for_loop_2__iter_value = tmp_assign_source_9;
Py_XDECREF( old );
}
}
{
PyObject *tmp_assign_source_10;
CHECK_OBJECT( tmp_for_loop_2__iter_value );
tmp_assign_source_10 = tmp_for_loop_2__iter_value;
{
PyObject *old = var_title;
var_title = tmp_assign_source_10;
Py_INCREF( var_title );
Py_XDECREF( old );
}
}
{
PyObject *tmp_setattr_target_1;
PyObject *tmp_mvar_value_2;
PyObject *tmp_setattr_attr_1;
PyObject *tmp_setattr_value_1;
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_requests$status_codes, (Nuitka_StringObject *)const_str_plain_codes );
if (unlikely( tmp_mvar_value_2 == NULL ))
{
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_codes );
}
if ( tmp_mvar_value_2 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "codes" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 107;
type_description_1 = "oooc";
goto try_except_handler_5;
}
tmp_setattr_target_1 = tmp_mvar_value_2;
CHECK_OBJECT( var_title );
tmp_setattr_attr_1 = var_title;
if ( var_code == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "code" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 107;
type_description_1 = "oooc";
goto try_except_handler_5;
}
tmp_setattr_value_1 = var_code;
tmp_unused = BUILTIN_SETATTR( tmp_setattr_target_1, tmp_setattr_attr_1, tmp_setattr_value_1 );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 107;
type_description_1 = "oooc";
goto try_except_handler_5;
}
}
{
nuitka_bool tmp_condition_result_1;
PyObject *tmp_operand_name_1;
PyObject *tmp_called_instance_2;
CHECK_OBJECT( var_title );
tmp_called_instance_2 = var_title;
frame_530358021dc9c1ccb93d9e91fd6af983->m_frame.f_lineno = 108;
tmp_operand_name_1 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_2, const_str_plain_startswith, &PyTuple_GET_ITEM( const_tuple_tuple_str_chr_92_str_chr_47_tuple_tuple, 0 ) );
if ( tmp_operand_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 108;
type_description_1 = "oooc";
goto try_except_handler_5;
}
tmp_res = CHECK_IF_TRUE( tmp_operand_name_1 );
Py_DECREF( tmp_operand_name_1 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 108;
type_description_1 = "oooc";
goto try_except_handler_5;
}
tmp_condition_result_1 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
{
goto branch_yes_1;
}
else
{
goto branch_no_1;
}
branch_yes_1:;
{
PyObject *tmp_setattr_target_2;
PyObject *tmp_mvar_value_3;
PyObject *tmp_setattr_attr_2;
PyObject *tmp_called_instance_3;
PyObject *tmp_setattr_value_2;
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_requests$status_codes, (Nuitka_StringObject *)const_str_plain_codes );
if (unlikely( tmp_mvar_value_3 == NULL ))
{
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_codes );
}
if ( tmp_mvar_value_3 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "codes" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 109;
type_description_1 = "oooc";
goto try_except_handler_5;
}
tmp_setattr_target_2 = tmp_mvar_value_3;
if ( var_title == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "title" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 109;
type_description_1 = "oooc";
goto try_except_handler_5;
}
tmp_called_instance_3 = var_title;
frame_530358021dc9c1ccb93d9e91fd6af983->m_frame.f_lineno = 109;
tmp_setattr_attr_2 = CALL_METHOD_NO_ARGS( tmp_called_instance_3, const_str_plain_upper );
if ( tmp_setattr_attr_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 109;
type_description_1 = "oooc";
goto try_except_handler_5;
}
if ( var_code == NULL )
{
Py_DECREF( tmp_setattr_attr_2 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "code" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 109;
type_description_1 = "oooc";
goto try_except_handler_5;
}
tmp_setattr_value_2 = var_code;
tmp_unused = BUILTIN_SETATTR( tmp_setattr_target_2, tmp_setattr_attr_2, tmp_setattr_value_2 );
Py_DECREF( tmp_setattr_attr_2 );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 109;
type_description_1 = "oooc";
goto try_except_handler_5;
}
}
branch_no_1:;
}
if ( CONSIDER_THREADING() == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 106;
type_description_1 = "oooc";
goto try_except_handler_5;
}
goto loop_start_2;
loop_end_2:;
}
goto try_end_3;
// Exception handler code:
try_except_handler_5:;
exception_keeper_type_3 = exception_type;
exception_keeper_value_3 = exception_value;
exception_keeper_tb_3 = exception_tb;
exception_keeper_lineno_3 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( tmp_for_loop_2__iter_value );
tmp_for_loop_2__iter_value = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_for_loop_2__for_iterator );
Py_DECREF( tmp_for_loop_2__for_iterator );
tmp_for_loop_2__for_iterator = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_3;
exception_value = exception_keeper_value_3;
exception_tb = exception_keeper_tb_3;
exception_lineno = exception_keeper_lineno_3;
goto try_except_handler_2;
}
// End of try:
try_end_3:;
}
{
Py_XDECREF( tmp_for_loop_2__iter_value );
tmp_for_loop_2__iter_value = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_for_loop_2__for_iterator );
Py_DECREF( tmp_for_loop_2__for_iterator );
tmp_for_loop_2__for_iterator = NULL;
}
if ( CONSIDER_THREADING() == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 105;
type_description_1 = "oooc";
goto try_except_handler_2;
}
goto loop_start_1;
loop_end_1:;
}
goto try_end_4;
// Exception handler code:
try_except_handler_2:;
exception_keeper_type_4 = exception_type;
exception_keeper_value_4 = exception_value;
exception_keeper_tb_4 = exception_tb;
exception_keeper_lineno_4 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( tmp_for_loop_1__iter_value );
tmp_for_loop_1__iter_value = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_for_loop_1__for_iterator );
Py_DECREF( tmp_for_loop_1__for_iterator );
tmp_for_loop_1__for_iterator = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_4;
exception_value = exception_keeper_value_4;
exception_tb = exception_keeper_tb_4;
exception_lineno = exception_keeper_lineno_4;
goto frame_exception_exit_1;
}
// End of try:
try_end_4:;
}
{
Py_XDECREF( tmp_for_loop_1__iter_value );
tmp_for_loop_1__iter_value = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_for_loop_1__for_iterator );
Py_DECREF( tmp_for_loop_1__for_iterator );
tmp_for_loop_1__for_iterator = NULL;
}
{
PyObject *tmp_assign_source_11;
tmp_assign_source_11 = MAKE_FUNCTION_requests$status_codes$$$function_1__init$$$function_1_doc( );
assert( PyCell_GET( var_doc ) == NULL );
PyCell_SET( var_doc, tmp_assign_source_11 );
}
{
PyObject *tmp_assign_source_12;
nuitka_bool tmp_condition_result_2;
PyObject *tmp_compexpr_left_1;
PyObject *tmp_compexpr_right_1;
PyObject *tmp_mvar_value_4;
PyObject *tmp_left_name_1;
PyObject *tmp_left_name_2;
PyObject *tmp_mvar_value_5;
PyObject *tmp_right_name_1;
PyObject *tmp_right_name_2;
PyObject *tmp_called_name_1;
PyObject *tmp_source_name_1;
PyObject *tmp_args_element_name_1;
tmp_mvar_value_4 = GET_STRING_DICT_VALUE( moduledict_requests$status_codes, (Nuitka_StringObject *)const_str_plain___doc__ );
if (unlikely( tmp_mvar_value_4 == NULL ))
{
tmp_mvar_value_4 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain___doc__ );
}
if ( tmp_mvar_value_4 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "__doc__" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 118;
type_description_1 = "oooc";
goto frame_exception_exit_1;
}
tmp_compexpr_left_1 = tmp_mvar_value_4;
tmp_compexpr_right_1 = Py_None;
tmp_condition_result_2 = ( tmp_compexpr_left_1 != tmp_compexpr_right_1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE )
{
goto condexpr_true_1;
}
else
{
goto condexpr_false_1;
}
condexpr_true_1:;
tmp_mvar_value_5 = GET_STRING_DICT_VALUE( moduledict_requests$status_codes, (Nuitka_StringObject *)const_str_plain___doc__ );
if (unlikely( tmp_mvar_value_5 == NULL ))
{
tmp_mvar_value_5 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain___doc__ );
}
if ( tmp_mvar_value_5 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "__doc__" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 116;
type_description_1 = "oooc";
goto frame_exception_exit_1;
}
tmp_left_name_2 = tmp_mvar_value_5;
tmp_right_name_1 = const_str_newline;
tmp_left_name_1 = BINARY_OPERATION_ADD( tmp_left_name_2, tmp_right_name_1 );
if ( tmp_left_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 116;
type_description_1 = "oooc";
goto frame_exception_exit_1;
}
tmp_source_name_1 = const_str_newline;
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_join );
assert( !(tmp_called_name_1 == NULL) );
{
PyObject *tmp_assign_source_13;
PyObject *tmp_iter_arg_4;
PyObject *tmp_called_name_2;
PyObject *tmp_args_element_name_2;
PyObject *tmp_mvar_value_6;
tmp_called_name_2 = LOOKUP_BUILTIN( const_str_plain_sorted );
assert( tmp_called_name_2 != NULL );
tmp_mvar_value_6 = GET_STRING_DICT_VALUE( moduledict_requests$status_codes, (Nuitka_StringObject *)const_str_plain__codes );
if (unlikely( tmp_mvar_value_6 == NULL ))
{
tmp_mvar_value_6 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain__codes );
}
if ( tmp_mvar_value_6 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "_codes" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 117;
type_description_1 = "oooc";
goto frame_exception_exit_1;
}
tmp_args_element_name_2 = tmp_mvar_value_6;
frame_530358021dc9c1ccb93d9e91fd6af983->m_frame.f_lineno = 117;
{
PyObject *call_args[] = { tmp_args_element_name_2 };
tmp_iter_arg_4 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_2, call_args );
}
if ( tmp_iter_arg_4 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 117;
type_description_1 = "oooc";
goto frame_exception_exit_1;
}
tmp_assign_source_13 = MAKE_ITERATOR( tmp_iter_arg_4 );
Py_DECREF( tmp_iter_arg_4 );
if ( tmp_assign_source_13 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 117;
type_description_1 = "oooc";
goto frame_exception_exit_1;
}
assert( tmp_genexpr_1__$0 == NULL );
tmp_genexpr_1__$0 = tmp_assign_source_13;
}
{
// Tried code:
{
tmp_args_element_name_1 = requests$status_codes$$$function_1__init$$$genexpr_1_genexpr_maker();
((struct Nuitka_GeneratorObject *)tmp_args_element_name_1)->m_closure[0] = var_doc;
Py_INCREF( ((struct Nuitka_GeneratorObject *)tmp_args_element_name_1)->m_closure[0] );
((struct Nuitka_GeneratorObject *)tmp_args_element_name_1)->m_closure[1] = PyCell_NEW0( tmp_genexpr_1__$0 );
goto try_return_handler_6;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( requests$status_codes$$$function_1__init );
return NULL;
// Return handler code:
try_return_handler_6:;
{
CHECK_OBJECT( (PyObject *)tmp_genexpr_1__$0 );
Py_DECREF( tmp_genexpr_1__$0 );
tmp_genexpr_1__$0 = NULL;
}
{
goto outline_result_1;
}
// End of try:
}
{
CHECK_OBJECT( (PyObject *)tmp_genexpr_1__$0 );
Py_DECREF( tmp_genexpr_1__$0 );
tmp_genexpr_1__$0 = NULL;
}
// Return statement must have exited already.
NUITKA_CANNOT_GET_HERE( requests$status_codes$$$function_1__init );
return NULL;
outline_result_1:;
frame_530358021dc9c1ccb93d9e91fd6af983->m_frame.f_lineno = 117;
{
PyObject *call_args[] = { tmp_args_element_name_1 };
tmp_right_name_2 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args );
}
Py_DECREF( tmp_called_name_1 );
Py_DECREF( tmp_args_element_name_1 );
if ( tmp_right_name_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_left_name_1 );
exception_lineno = 117;
type_description_1 = "oooc";
goto frame_exception_exit_1;
}
tmp_assign_source_12 = BINARY_OPERATION_ADD( tmp_left_name_1, tmp_right_name_2 );
Py_DECREF( tmp_left_name_1 );
Py_DECREF( tmp_right_name_2 );
if ( tmp_assign_source_12 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 116;
type_description_1 = "oooc";
goto frame_exception_exit_1;
}
goto condexpr_end_1;
condexpr_false_1:;
tmp_assign_source_12 = Py_None;
Py_INCREF( tmp_assign_source_12 );
condexpr_end_1:;
UPDATE_STRING_DICT1( moduledict_requests$status_codes, (Nuitka_StringObject *)const_str_plain___doc__, tmp_assign_source_12 );
}
#if 0
RESTORE_FRAME_EXCEPTION( frame_530358021dc9c1ccb93d9e91fd6af983 );
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_530358021dc9c1ccb93d9e91fd6af983 );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_530358021dc9c1ccb93d9e91fd6af983, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_530358021dc9c1ccb93d9e91fd6af983->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_530358021dc9c1ccb93d9e91fd6af983, exception_lineno );
}
// Attachs locals to frame if any.
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)frame_530358021dc9c1ccb93d9e91fd6af983,
type_description_1,
var_code,
var_titles,
var_title,
var_doc
);
// Release cached frame.
if ( frame_530358021dc9c1ccb93d9e91fd6af983 == cache_frame_530358021dc9c1ccb93d9e91fd6af983 )
{
Py_DECREF( frame_530358021dc9c1ccb93d9e91fd6af983 );
}
cache_frame_530358021dc9c1ccb93d9e91fd6af983 = NULL;
assertFrameObject( frame_530358021dc9c1ccb93d9e91fd6af983 );
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
{
tmp_return_value = Py_None;
Py_INCREF( tmp_return_value );
goto try_return_handler_1;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( requests$status_codes$$$function_1__init );
return NULL;
// Return handler code:
try_return_handler_1:;
{
Py_XDECREF( var_code );
var_code = NULL;
}
{
Py_XDECREF( var_titles );
var_titles = NULL;
}
{
Py_XDECREF( var_title );
var_title = NULL;
}
{
CHECK_OBJECT( (PyObject *)var_doc );
Py_DECREF( var_doc );
var_doc = NULL;
}
{
goto function_return_exit;
}
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_5 = exception_type;
exception_keeper_value_5 = exception_value;
exception_keeper_tb_5 = exception_tb;
exception_keeper_lineno_5 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( var_code );
var_code = NULL;
}
{
Py_XDECREF( var_titles );
var_titles = NULL;
}
{
Py_XDECREF( var_title );
var_title = NULL;
}
{
CHECK_OBJECT( (PyObject *)var_doc );
Py_DECREF( var_doc );
var_doc = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_5;
exception_value = exception_keeper_value_5;
exception_tb = exception_keeper_tb_5;
exception_lineno = exception_keeper_lineno_5;
goto function_exception_exit;
}
// End of try:
}
// Return statement must have exited already.
NUITKA_CANNOT_GET_HERE( requests$status_codes$$$function_1__init );
return NULL;
function_exception_exit:
assert( exception_type );
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
return NULL;
function_return_exit:
CHECK_OBJECT( tmp_return_value );
assert( had_error || !ERROR_OCCURRED() );
return tmp_return_value;
}
static PyObject *impl_requests$status_codes$$$function_1__init$$$function_1_doc( 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_code = python_pars[ 0 ];
PyObject *var_names = NULL;
PyObject *tmp_genexpr_1__$0 = NULL;
struct Nuitka_FrameObject *frame_5ffd641e9ce6333d92f5f89f38923644;
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_5ffd641e9ce6333d92f5f89f38923644 = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function code.
{
// Tried code:
MAKE_OR_REUSE_FRAME( cache_frame_5ffd641e9ce6333d92f5f89f38923644, codeobj_5ffd641e9ce6333d92f5f89f38923644, module_requests$status_codes, sizeof(void *)+sizeof(void *) );
frame_5ffd641e9ce6333d92f5f89f38923644 = cache_frame_5ffd641e9ce6333d92f5f89f38923644;
// Push the new frame as the currently active one.
pushFrameStack( frame_5ffd641e9ce6333d92f5f89f38923644 );
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert( Py_REFCNT( frame_5ffd641e9ce6333d92f5f89f38923644 ) == 2 ); // Frame stack
// Framed code:
{
PyObject *tmp_assign_source_1;
PyObject *tmp_called_name_1;
PyObject *tmp_source_name_1;
PyObject *tmp_args_element_name_1;
tmp_source_name_1 = const_str_digest_db35ab94a03c3cbeb13cbe2a1d728b77;
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_join );
assert( !(tmp_called_name_1 == NULL) );
{
PyObject *tmp_assign_source_2;
PyObject *tmp_iter_arg_1;
PyObject *tmp_subscribed_name_1;
PyObject *tmp_mvar_value_1;
PyObject *tmp_subscript_name_1;
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_requests$status_codes, (Nuitka_StringObject *)const_str_plain__codes );
if (unlikely( tmp_mvar_value_1 == NULL ))
{
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain__codes );
}
if ( tmp_mvar_value_1 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "_codes" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 112;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_subscribed_name_1 = tmp_mvar_value_1;
CHECK_OBJECT( par_code );
tmp_subscript_name_1 = par_code;
tmp_iter_arg_1 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_1, tmp_subscript_name_1 );
if ( tmp_iter_arg_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 112;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_assign_source_2 = MAKE_ITERATOR( tmp_iter_arg_1 );
Py_DECREF( tmp_iter_arg_1 );
if ( tmp_assign_source_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 112;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
assert( tmp_genexpr_1__$0 == NULL );
tmp_genexpr_1__$0 = tmp_assign_source_2;
}
{
// Tried code:
{
tmp_args_element_name_1 = requests$status_codes$$$function_1__init$$$function_1_doc$$$genexpr_1_genexpr_maker();
((struct Nuitka_GeneratorObject *)tmp_args_element_name_1)->m_closure[0] = PyCell_NEW0( tmp_genexpr_1__$0 );
goto try_return_handler_2;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( requests$status_codes$$$function_1__init$$$function_1_doc );
return NULL;
// Return handler code:
try_return_handler_2:;
{
CHECK_OBJECT( (PyObject *)tmp_genexpr_1__$0 );
Py_DECREF( tmp_genexpr_1__$0 );
tmp_genexpr_1__$0 = NULL;
}
{
goto outline_result_1;
}
// End of try:
}
{
CHECK_OBJECT( (PyObject *)tmp_genexpr_1__$0 );
Py_DECREF( tmp_genexpr_1__$0 );
tmp_genexpr_1__$0 = NULL;
}
// Return statement must have exited already.
NUITKA_CANNOT_GET_HERE( requests$status_codes$$$function_1__init$$$function_1_doc );
return NULL;
outline_result_1:;
frame_5ffd641e9ce6333d92f5f89f38923644->m_frame.f_lineno = 112;
{
PyObject *call_args[] = { tmp_args_element_name_1 };
tmp_assign_source_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args );
}
Py_DECREF( tmp_called_name_1 );
Py_DECREF( tmp_args_element_name_1 );
if ( tmp_assign_source_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 112;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
assert( var_names == NULL );
var_names = tmp_assign_source_1;
}
{
PyObject *tmp_left_name_1;
PyObject *tmp_right_name_1;
PyObject *tmp_tuple_element_1;
tmp_left_name_1 = const_str_digest_7906b030368eebc07be081a8bf4eacb0;
if ( par_code == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "code" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 113;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_tuple_element_1 = par_code;
tmp_right_name_1 = PyTuple_New( 2 );
Py_INCREF( tmp_tuple_element_1 );
PyTuple_SET_ITEM( tmp_right_name_1, 0, tmp_tuple_element_1 );
CHECK_OBJECT( var_names );
tmp_tuple_element_1 = var_names;
Py_INCREF( tmp_tuple_element_1 );
PyTuple_SET_ITEM( tmp_right_name_1, 1, tmp_tuple_element_1 );
tmp_return_value = BINARY_OPERATION_REMAINDER( tmp_left_name_1, tmp_right_name_1 );
Py_DECREF( tmp_right_name_1 );
if ( tmp_return_value == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 113;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION( frame_5ffd641e9ce6333d92f5f89f38923644 );
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_5ffd641e9ce6333d92f5f89f38923644 );
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_5ffd641e9ce6333d92f5f89f38923644 );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_5ffd641e9ce6333d92f5f89f38923644, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_5ffd641e9ce6333d92f5f89f38923644->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_5ffd641e9ce6333d92f5f89f38923644, exception_lineno );
}
// Attachs locals to frame if any.
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)frame_5ffd641e9ce6333d92f5f89f38923644,
type_description_1,
par_code,
var_names
);
// Release cached frame.
if ( frame_5ffd641e9ce6333d92f5f89f38923644 == cache_frame_5ffd641e9ce6333d92f5f89f38923644 )
{
Py_DECREF( frame_5ffd641e9ce6333d92f5f89f38923644 );
}
cache_frame_5ffd641e9ce6333d92f5f89f38923644 = NULL;
assertFrameObject( frame_5ffd641e9ce6333d92f5f89f38923644 );
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( requests$status_codes$$$function_1__init$$$function_1_doc );
return NULL;
// Return handler code:
try_return_handler_1:;
{
Py_XDECREF( par_code );
par_code = NULL;
}
{
Py_XDECREF( var_names );
var_names = 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_code );
par_code = NULL;
}
{
Py_XDECREF( var_names );
var_names = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
}
// End of try:
}
// Return statement must have exited already.
NUITKA_CANNOT_GET_HERE( requests$status_codes$$$function_1__init$$$function_1_doc );
return NULL;
function_exception_exit:
assert( exception_type );
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
return NULL;
function_return_exit:
CHECK_OBJECT( tmp_return_value );
assert( had_error || !ERROR_OCCURRED() );
return tmp_return_value;
}
struct requests$status_codes$$$function_1__init$$$function_1_doc$$$genexpr_1_genexpr_locals {
PyObject *var_n;
PyObject *tmp_iter_value_0;
char const *type_description_1;
PyObject *exception_type;
PyObject *exception_value;
PyTracebackObject *exception_tb;
int exception_lineno;
char yield_tmps[1024];
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
int exception_keeper_lineno_1;
PyObject *exception_keeper_type_2;
PyObject *exception_keeper_value_2;
PyTracebackObject *exception_keeper_tb_2;
int exception_keeper_lineno_2;
};
static PyObject *requests$status_codes$$$function_1__init$$$function_1_doc$$$genexpr_1_genexpr_context( struct Nuitka_GeneratorObject *generator, PyObject *yield_return_value )
{
CHECK_OBJECT( (PyObject *)generator );
assert( Nuitka_Generator_Check( (PyObject *)generator ) );
// Heap access if used.
struct requests$status_codes$$$function_1__init$$$function_1_doc$$$genexpr_1_genexpr_locals *generator_heap = (struct requests$status_codes$$$function_1__init$$$function_1_doc$$$genexpr_1_genexpr_locals *)generator->m_heap_storage;
// Dispatch to yield based on return label index:
switch(generator->m_yield_return_index) {
case 1: goto yield_return_1;
}
// Local variable initialization
NUITKA_MAY_BE_UNUSED PyObject *tmp_unused;
static struct Nuitka_FrameObject *cache_m_frame = NULL;
generator_heap->var_n = NULL;
generator_heap->tmp_iter_value_0 = NULL;
generator_heap->type_description_1 = NULL;
generator_heap->exception_type = NULL;
generator_heap->exception_value = NULL;
generator_heap->exception_tb = NULL;
generator_heap->exception_lineno = 0;
// Actual function code.
{
// Tried code:
MAKE_OR_REUSE_FRAME( cache_m_frame, codeobj_0a2f1c0fbcd53bd3ccec1263b7fc318b, module_requests$status_codes, sizeof(void *)+sizeof(void *) );
generator->m_frame = cache_m_frame;
// Mark the frame object as in use, ref count 1 will be up for reuse.
Py_INCREF( generator->m_frame );
assert( Py_REFCNT( generator->m_frame ) == 2 ); // Frame stack
#if PYTHON_VERSION >= 340
generator->m_frame->m_frame.f_gen = (PyObject *)generator;
#endif
Py_CLEAR( generator->m_frame->m_frame.f_back );
generator->m_frame->m_frame.f_back = PyThreadState_GET()->frame;
Py_INCREF( generator->m_frame->m_frame.f_back );
PyThreadState_GET()->frame = &generator->m_frame->m_frame;
Py_INCREF( generator->m_frame );
Nuitka_Frame_MarkAsExecuting( generator->m_frame );
#if PYTHON_VERSION >= 300
// Accept currently existing exception as the one to publish again when we
// yield or yield from.
{
PyThreadState *thread_state = PyThreadState_GET();
#if PYTHON_VERSION < 370
generator->m_frame->m_frame.f_exc_type = EXC_TYPE( thread_state );
if ( generator->m_frame->m_frame.f_exc_type == Py_None ) generator->m_frame->m_frame.f_exc_type = NULL;
Py_XINCREF( generator->m_frame->m_frame.f_exc_type );
generator->m_frame->m_frame.f_exc_value = EXC_VALUE( thread_state );
Py_XINCREF( generator->m_frame->m_frame.f_exc_value );
generator->m_frame->m_frame.f_exc_traceback = EXC_TRACEBACK( thread_state );
Py_XINCREF( generator->m_frame->m_frame.f_exc_traceback );
#else
generator->m_exc_state.exc_type = EXC_TYPE( thread_state );
if ( generator->m_exc_state.exc_type == Py_None ) generator->m_exc_state.exc_type = NULL;
Py_XINCREF( generator->m_exc_state.exc_type );
generator->m_exc_state.exc_value = EXC_VALUE( thread_state );
Py_XINCREF( generator->m_exc_state.exc_value );
generator->m_exc_state.exc_traceback = EXC_TRACEBACK( thread_state );
Py_XINCREF( generator->m_exc_state.exc_traceback );
#endif
}
#endif
// Framed code:
{
// Tried code:
{
loop_start_1:;
{
PyObject *tmp_next_source_1;
PyObject *tmp_assign_source_1;
CHECK_OBJECT( PyCell_GET( generator->m_closure[0] ) );
tmp_next_source_1 = PyCell_GET( generator->m_closure[0] );
tmp_assign_source_1 = ITERATOR_NEXT( tmp_next_source_1 );
if ( tmp_assign_source_1 == NULL )
{
if ( CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED() )
{
goto loop_end_1;
}
else
{
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
generator_heap->type_description_1 = "No";
generator_heap->exception_lineno = 112;
goto try_except_handler_2;
}
}
{
PyObject *old = generator_heap->tmp_iter_value_0;
generator_heap->tmp_iter_value_0 = tmp_assign_source_1;
Py_XDECREF( old );
}
}
{
PyObject *tmp_assign_source_2;
CHECK_OBJECT( generator_heap->tmp_iter_value_0 );
tmp_assign_source_2 = generator_heap->tmp_iter_value_0;
{
PyObject *old = generator_heap->var_n;
generator_heap->var_n = tmp_assign_source_2;
Py_INCREF( generator_heap->var_n );
Py_XDECREF( old );
}
}
{
PyObject *tmp_expression_name_1;
PyObject *tmp_left_name_1;
PyObject *tmp_right_name_1;
tmp_left_name_1 = const_str_digest_f24f0d2d61a12ffb7f933692c0769883;
CHECK_OBJECT( generator_heap->var_n );
tmp_right_name_1 = generator_heap->var_n;
tmp_expression_name_1 = BINARY_OPERATION_REMAINDER( tmp_left_name_1, tmp_right_name_1 );
if ( tmp_expression_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
generator_heap->exception_lineno = 112;
generator_heap->type_description_1 = "No";
goto try_except_handler_2;
}
Nuitka_PreserveHeap( generator_heap->yield_tmps, &tmp_left_name_1, sizeof(PyObject *), &tmp_right_name_1, sizeof(PyObject *), NULL );
generator->m_yield_return_index = 1;
return tmp_expression_name_1;
yield_return_1:
Nuitka_RestoreHeap( generator_heap->yield_tmps, &tmp_left_name_1, sizeof(PyObject *), &tmp_right_name_1, sizeof(PyObject *), NULL );
if ( yield_return_value == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
generator_heap->exception_lineno = 112;
generator_heap->type_description_1 = "No";
goto try_except_handler_2;
}
tmp_unused = yield_return_value;
}
if ( CONSIDER_THREADING() == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
generator_heap->exception_lineno = 112;
generator_heap->type_description_1 = "No";
goto try_except_handler_2;
}
goto loop_start_1;
loop_end_1:;
}
goto try_end_1;
// Exception handler code:
try_except_handler_2:;
generator_heap->exception_keeper_type_1 = generator_heap->exception_type;
generator_heap->exception_keeper_value_1 = generator_heap->exception_value;
generator_heap->exception_keeper_tb_1 = generator_heap->exception_tb;
generator_heap->exception_keeper_lineno_1 = generator_heap->exception_lineno;
generator_heap->exception_type = NULL;
generator_heap->exception_value = NULL;
generator_heap->exception_tb = NULL;
generator_heap->exception_lineno = 0;
{
Py_XDECREF( generator_heap->tmp_iter_value_0 );
generator_heap->tmp_iter_value_0 = NULL;
}
{
// Re-raise.
generator_heap->exception_type = generator_heap->exception_keeper_type_1;
generator_heap->exception_value = generator_heap->exception_keeper_value_1;
generator_heap->exception_tb = generator_heap->exception_keeper_tb_1;
generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_1;
goto frame_exception_exit_1;
}
// End of try:
try_end_1:;
}
Nuitka_Frame_MarkAsNotExecuting( generator->m_frame );
#if PYTHON_VERSION >= 370
Py_CLEAR( generator->m_exc_state.exc_type );
Py_CLEAR( generator->m_exc_state.exc_value );
Py_CLEAR( generator->m_exc_state.exc_traceback );
#elif PYTHON_VERSION >= 300
Py_CLEAR( generator->m_frame->m_frame.f_exc_type );
Py_CLEAR( generator->m_frame->m_frame.f_exc_value );
Py_CLEAR( generator->m_frame->m_frame.f_exc_traceback );
#endif
// Allow re-use of the frame again.
Py_DECREF( generator->m_frame );
goto frame_no_exception_1;
frame_exception_exit_1:;
// If it's not an exit exception, consider and create a traceback for it.
if ( !EXCEPTION_MATCH_GENERATOR( generator_heap->exception_type ) )
{
if ( generator_heap->exception_tb == NULL )
{
generator_heap->exception_tb = MAKE_TRACEBACK( generator->m_frame, generator_heap->exception_lineno );
}
else if ( generator_heap->exception_tb->tb_frame != &generator->m_frame->m_frame )
{
generator_heap->exception_tb = ADD_TRACEBACK( generator_heap->exception_tb, generator->m_frame, generator_heap->exception_lineno );
}
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)generator->m_frame,
generator_heap->type_description_1,
NULL,
generator_heap->var_n
);
// Release cached frame.
if ( generator->m_frame == cache_m_frame )
{
Py_DECREF( generator->m_frame );
}
cache_m_frame = NULL;
assertFrameObject( generator->m_frame );
}
#if PYTHON_VERSION >= 370
Py_CLEAR( generator->m_exc_state.exc_type );
Py_CLEAR( generator->m_exc_state.exc_value );
Py_CLEAR( generator->m_exc_state.exc_traceback );
#elif PYTHON_VERSION >= 300
Py_CLEAR( generator->m_frame->m_frame.f_exc_type );
Py_CLEAR( generator->m_frame->m_frame.f_exc_value );
Py_CLEAR( generator->m_frame->m_frame.f_exc_traceback );
#endif
Py_DECREF( generator->m_frame );
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
goto try_end_2;
// Exception handler code:
try_except_handler_1:;
generator_heap->exception_keeper_type_2 = generator_heap->exception_type;
generator_heap->exception_keeper_value_2 = generator_heap->exception_value;
generator_heap->exception_keeper_tb_2 = generator_heap->exception_tb;
generator_heap->exception_keeper_lineno_2 = generator_heap->exception_lineno;
generator_heap->exception_type = NULL;
generator_heap->exception_value = NULL;
generator_heap->exception_tb = NULL;
generator_heap->exception_lineno = 0;
{
Py_XDECREF( generator_heap->var_n );
generator_heap->var_n = NULL;
}
{
// Re-raise.
generator_heap->exception_type = generator_heap->exception_keeper_type_2;
generator_heap->exception_value = generator_heap->exception_keeper_value_2;
generator_heap->exception_tb = generator_heap->exception_keeper_tb_2;
generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_2;
goto function_exception_exit;
}
// End of try:
try_end_2:;
}
{
Py_XDECREF( generator_heap->tmp_iter_value_0 );
generator_heap->tmp_iter_value_0 = NULL;
}
{
Py_XDECREF( generator_heap->var_n );
generator_heap->var_n = NULL;
}
return NULL;
function_exception_exit:
assert( generator_heap->exception_type );
RESTORE_ERROR_OCCURRED( generator_heap->exception_type, generator_heap->exception_value, generator_heap->exception_tb );
return NULL;
}
static PyObject *requests$status_codes$$$function_1__init$$$function_1_doc$$$genexpr_1_genexpr_maker( void )
{
return Nuitka_Generator_New(
requests$status_codes$$$function_1__init$$$function_1_doc$$$genexpr_1_genexpr_context,
module_requests$status_codes,
const_str_angle_genexpr,
#if PYTHON_VERSION >= 350
const_str_digest_d0ba2b007b9e105961a784a71c1bc2d9,
#endif
codeobj_0a2f1c0fbcd53bd3ccec1263b7fc318b,
1,
sizeof(struct requests$status_codes$$$function_1__init$$$function_1_doc$$$genexpr_1_genexpr_locals)
);
}
struct requests$status_codes$$$function_1__init$$$genexpr_1_genexpr_locals {
PyObject *var_code;
PyObject *tmp_iter_value_0;
char const *type_description_1;
PyObject *exception_type;
PyObject *exception_value;
PyTracebackObject *exception_tb;
int exception_lineno;
char yield_tmps[1024];
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
int exception_keeper_lineno_1;
PyObject *exception_keeper_type_2;
PyObject *exception_keeper_value_2;
PyTracebackObject *exception_keeper_tb_2;
int exception_keeper_lineno_2;
};
static PyObject *requests$status_codes$$$function_1__init$$$genexpr_1_genexpr_context( struct Nuitka_GeneratorObject *generator, PyObject *yield_return_value )
{
CHECK_OBJECT( (PyObject *)generator );
assert( Nuitka_Generator_Check( (PyObject *)generator ) );
// Heap access if used.
struct requests$status_codes$$$function_1__init$$$genexpr_1_genexpr_locals *generator_heap = (struct requests$status_codes$$$function_1__init$$$genexpr_1_genexpr_locals *)generator->m_heap_storage;
// Dispatch to yield based on return label index:
switch(generator->m_yield_return_index) {
case 1: goto yield_return_1;
}
// Local variable initialization
NUITKA_MAY_BE_UNUSED PyObject *tmp_unused;
static struct Nuitka_FrameObject *cache_m_frame = NULL;
generator_heap->var_code = NULL;
generator_heap->tmp_iter_value_0 = NULL;
generator_heap->type_description_1 = NULL;
generator_heap->exception_type = NULL;
generator_heap->exception_value = NULL;
generator_heap->exception_tb = NULL;
generator_heap->exception_lineno = 0;
// Actual function code.
{
// Tried code:
MAKE_OR_REUSE_FRAME( cache_m_frame, codeobj_5bfba404b116c8f6649f97563171332b, module_requests$status_codes, sizeof(void *)+sizeof(void *)+sizeof(void *) );
generator->m_frame = cache_m_frame;
// Mark the frame object as in use, ref count 1 will be up for reuse.
Py_INCREF( generator->m_frame );
assert( Py_REFCNT( generator->m_frame ) == 2 ); // Frame stack
#if PYTHON_VERSION >= 340
generator->m_frame->m_frame.f_gen = (PyObject *)generator;
#endif
Py_CLEAR( generator->m_frame->m_frame.f_back );
generator->m_frame->m_frame.f_back = PyThreadState_GET()->frame;
Py_INCREF( generator->m_frame->m_frame.f_back );
PyThreadState_GET()->frame = &generator->m_frame->m_frame;
Py_INCREF( generator->m_frame );
Nuitka_Frame_MarkAsExecuting( generator->m_frame );
#if PYTHON_VERSION >= 300
// Accept currently existing exception as the one to publish again when we
// yield or yield from.
{
PyThreadState *thread_state = PyThreadState_GET();
#if PYTHON_VERSION < 370
generator->m_frame->m_frame.f_exc_type = EXC_TYPE( thread_state );
if ( generator->m_frame->m_frame.f_exc_type == Py_None ) generator->m_frame->m_frame.f_exc_type = NULL;
Py_XINCREF( generator->m_frame->m_frame.f_exc_type );
generator->m_frame->m_frame.f_exc_value = EXC_VALUE( thread_state );
Py_XINCREF( generator->m_frame->m_frame.f_exc_value );
generator->m_frame->m_frame.f_exc_traceback = EXC_TRACEBACK( thread_state );
Py_XINCREF( generator->m_frame->m_frame.f_exc_traceback );
#else
generator->m_exc_state.exc_type = EXC_TYPE( thread_state );
if ( generator->m_exc_state.exc_type == Py_None ) generator->m_exc_state.exc_type = NULL;
Py_XINCREF( generator->m_exc_state.exc_type );
generator->m_exc_state.exc_value = EXC_VALUE( thread_state );
Py_XINCREF( generator->m_exc_state.exc_value );
generator->m_exc_state.exc_traceback = EXC_TRACEBACK( thread_state );
Py_XINCREF( generator->m_exc_state.exc_traceback );
#endif
}
#endif
// Framed code:
{
// Tried code:
{
loop_start_1:;
{
PyObject *tmp_next_source_1;
PyObject *tmp_assign_source_1;
CHECK_OBJECT( PyCell_GET( generator->m_closure[1] ) );
tmp_next_source_1 = PyCell_GET( generator->m_closure[1] );
tmp_assign_source_1 = ITERATOR_NEXT( tmp_next_source_1 );
if ( tmp_assign_source_1 == NULL )
{
if ( CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED() )
{
goto loop_end_1;
}
else
{
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
generator_heap->type_description_1 = "Noc";
generator_heap->exception_lineno = 117;
goto try_except_handler_2;
}
}
{
PyObject *old = generator_heap->tmp_iter_value_0;
generator_heap->tmp_iter_value_0 = tmp_assign_source_1;
Py_XDECREF( old );
}
}
{
PyObject *tmp_assign_source_2;
CHECK_OBJECT( generator_heap->tmp_iter_value_0 );
tmp_assign_source_2 = generator_heap->tmp_iter_value_0;
{
PyObject *old = generator_heap->var_code;
generator_heap->var_code = tmp_assign_source_2;
Py_INCREF( generator_heap->var_code );
Py_XDECREF( old );
}
}
{
PyObject *tmp_expression_name_1;
PyObject *tmp_called_name_1;
PyObject *tmp_args_element_name_1;
if ( PyCell_GET( generator->m_closure[0] ) == NULL )
{
generator_heap->exception_type = PyExc_NameError;
Py_INCREF( generator_heap->exception_type );
generator_heap->exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "doc" );
generator_heap->exception_tb = NULL;
NORMALIZE_EXCEPTION( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
CHAIN_EXCEPTION( generator_heap->exception_value );
generator_heap->exception_lineno = 117;
generator_heap->type_description_1 = "Noc";
goto try_except_handler_2;
}
tmp_called_name_1 = PyCell_GET( generator->m_closure[0] );
CHECK_OBJECT( generator_heap->var_code );
tmp_args_element_name_1 = generator_heap->var_code;
generator->m_frame->m_frame.f_lineno = 117;
{
PyObject *call_args[] = { tmp_args_element_name_1 };
tmp_expression_name_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args );
}
if ( tmp_expression_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
generator_heap->exception_lineno = 117;
generator_heap->type_description_1 = "Noc";
goto try_except_handler_2;
}
Nuitka_PreserveHeap( generator_heap->yield_tmps, &tmp_called_name_1, sizeof(PyObject *), &tmp_args_element_name_1, sizeof(PyObject *), NULL );
generator->m_yield_return_index = 1;
return tmp_expression_name_1;
yield_return_1:
Nuitka_RestoreHeap( generator_heap->yield_tmps, &tmp_called_name_1, sizeof(PyObject *), &tmp_args_element_name_1, sizeof(PyObject *), NULL );
if ( yield_return_value == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
generator_heap->exception_lineno = 117;
generator_heap->type_description_1 = "Noc";
goto try_except_handler_2;
}
tmp_unused = yield_return_value;
}
if ( CONSIDER_THREADING() == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
generator_heap->exception_lineno = 117;
generator_heap->type_description_1 = "Noc";
goto try_except_handler_2;
}
goto loop_start_1;
loop_end_1:;
}
goto try_end_1;
// Exception handler code:
try_except_handler_2:;
generator_heap->exception_keeper_type_1 = generator_heap->exception_type;
generator_heap->exception_keeper_value_1 = generator_heap->exception_value;
generator_heap->exception_keeper_tb_1 = generator_heap->exception_tb;
generator_heap->exception_keeper_lineno_1 = generator_heap->exception_lineno;
generator_heap->exception_type = NULL;
generator_heap->exception_value = NULL;
generator_heap->exception_tb = NULL;
generator_heap->exception_lineno = 0;
{
Py_XDECREF( generator_heap->tmp_iter_value_0 );
generator_heap->tmp_iter_value_0 = NULL;
}
{
// Re-raise.
generator_heap->exception_type = generator_heap->exception_keeper_type_1;
generator_heap->exception_value = generator_heap->exception_keeper_value_1;
generator_heap->exception_tb = generator_heap->exception_keeper_tb_1;
generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_1;
goto frame_exception_exit_1;
}
// End of try:
try_end_1:;
}
Nuitka_Frame_MarkAsNotExecuting( generator->m_frame );
#if PYTHON_VERSION >= 370
Py_CLEAR( generator->m_exc_state.exc_type );
Py_CLEAR( generator->m_exc_state.exc_value );
Py_CLEAR( generator->m_exc_state.exc_traceback );
#elif PYTHON_VERSION >= 300
Py_CLEAR( generator->m_frame->m_frame.f_exc_type );
Py_CLEAR( generator->m_frame->m_frame.f_exc_value );
Py_CLEAR( generator->m_frame->m_frame.f_exc_traceback );
#endif
// Allow re-use of the frame again.
Py_DECREF( generator->m_frame );
goto frame_no_exception_1;
frame_exception_exit_1:;
// If it's not an exit exception, consider and create a traceback for it.
if ( !EXCEPTION_MATCH_GENERATOR( generator_heap->exception_type ) )
{
if ( generator_heap->exception_tb == NULL )
{
generator_heap->exception_tb = MAKE_TRACEBACK( generator->m_frame, generator_heap->exception_lineno );
}
else if ( generator_heap->exception_tb->tb_frame != &generator->m_frame->m_frame )
{
generator_heap->exception_tb = ADD_TRACEBACK( generator_heap->exception_tb, generator->m_frame, generator_heap->exception_lineno );
}
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)generator->m_frame,
generator_heap->type_description_1,
NULL,
generator_heap->var_code,
generator->m_closure[0]
);
// Release cached frame.
if ( generator->m_frame == cache_m_frame )
{
Py_DECREF( generator->m_frame );
}
cache_m_frame = NULL;
assertFrameObject( generator->m_frame );
}
#if PYTHON_VERSION >= 370
Py_CLEAR( generator->m_exc_state.exc_type );
Py_CLEAR( generator->m_exc_state.exc_value );
Py_CLEAR( generator->m_exc_state.exc_traceback );
#elif PYTHON_VERSION >= 300
Py_CLEAR( generator->m_frame->m_frame.f_exc_type );
Py_CLEAR( generator->m_frame->m_frame.f_exc_value );
Py_CLEAR( generator->m_frame->m_frame.f_exc_traceback );
#endif
Py_DECREF( generator->m_frame );
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
goto try_end_2;
// Exception handler code:
try_except_handler_1:;
generator_heap->exception_keeper_type_2 = generator_heap->exception_type;
generator_heap->exception_keeper_value_2 = generator_heap->exception_value;
generator_heap->exception_keeper_tb_2 = generator_heap->exception_tb;
generator_heap->exception_keeper_lineno_2 = generator_heap->exception_lineno;
generator_heap->exception_type = NULL;
generator_heap->exception_value = NULL;
generator_heap->exception_tb = NULL;
generator_heap->exception_lineno = 0;
{
Py_XDECREF( generator_heap->var_code );
generator_heap->var_code = NULL;
}
{
// Re-raise.
generator_heap->exception_type = generator_heap->exception_keeper_type_2;
generator_heap->exception_value = generator_heap->exception_keeper_value_2;
generator_heap->exception_tb = generator_heap->exception_keeper_tb_2;
generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_2;
goto function_exception_exit;
}
// End of try:
try_end_2:;
}
{
Py_XDECREF( generator_heap->tmp_iter_value_0 );
generator_heap->tmp_iter_value_0 = NULL;
}
{
Py_XDECREF( generator_heap->var_code );
generator_heap->var_code = NULL;
}
return NULL;
function_exception_exit:
assert( generator_heap->exception_type );
RESTORE_ERROR_OCCURRED( generator_heap->exception_type, generator_heap->exception_value, generator_heap->exception_tb );
return NULL;
}
static PyObject *requests$status_codes$$$function_1__init$$$genexpr_1_genexpr_maker( void )
{
return Nuitka_Generator_New(
requests$status_codes$$$function_1__init$$$genexpr_1_genexpr_context,
module_requests$status_codes,
const_str_angle_genexpr,
#if PYTHON_VERSION >= 350
const_str_digest_d5efefc072f5fed882dbe1314d642554,
#endif
codeobj_5bfba404b116c8f6649f97563171332b,
2,
sizeof(struct requests$status_codes$$$function_1__init$$$genexpr_1_genexpr_locals)
);
}
static PyObject *MAKE_FUNCTION_requests$status_codes$$$function_1__init( )
{
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_requests$status_codes$$$function_1__init,
const_str_plain__init,
#if PYTHON_VERSION >= 300
NULL,
#endif
codeobj_530358021dc9c1ccb93d9e91fd6af983,
NULL,
#if PYTHON_VERSION >= 300
NULL,
NULL,
#endif
module_requests$status_codes,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_requests$status_codes$$$function_1__init$$$function_1_doc( )
{
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_requests$status_codes$$$function_1__init$$$function_1_doc,
const_str_plain_doc,
#if PYTHON_VERSION >= 300
const_str_digest_962df51b668def68f550bdf2959dd728,
#endif
codeobj_5ffd641e9ce6333d92f5f89f38923644,
NULL,
#if PYTHON_VERSION >= 300
NULL,
NULL,
#endif
module_requests$status_codes,
NULL,
0
);
return (PyObject *)result;
}
#if PYTHON_VERSION >= 300
static struct PyModuleDef mdef_requests$status_codes =
{
PyModuleDef_HEAD_INIT,
"requests.status_codes", /* m_name */
NULL, /* m_doc */
-1, /* m_size */
NULL, /* m_methods */
NULL, /* m_reload */
NULL, /* m_traverse */
NULL, /* m_clear */
NULL, /* m_free */
};
#endif
extern PyObject *const_str_plain___package__;
#if PYTHON_VERSION >= 300
extern PyObject *const_str_dot;
extern PyObject *const_str_plain___loader__;
extern PyObject *metapath_based_loader;
#endif
#if PYTHON_VERSION >= 340
extern PyObject *const_str_plain___spec__;
extern PyObject *const_str_plain__initializing;
#endif
extern void _initCompiledCellType();
extern void _initCompiledGeneratorType();
extern void _initCompiledFunctionType();
extern void _initCompiledMethodType();
extern void _initCompiledFrameType();
#if PYTHON_VERSION >= 350
extern void _initCompiledCoroutineTypes();
#endif
#if PYTHON_VERSION >= 360
extern void _initCompiledAsyncgenTypes();
#endif
// The exported interface to CPython. On import of the module, this function
// gets called. It has to have an exact function name, in cases it's a shared
// library export. This is hidden behind the MOD_INIT_DECL.
MOD_INIT_DECL( requests$status_codes )
{
#if defined(_NUITKA_EXE) || PYTHON_VERSION >= 300
static bool _init_done = false;
// Modules might be imported repeatedly, which is to be ignored.
if ( _init_done )
{
return MOD_RETURN_VALUE( module_requests$status_codes );
}
else
{
_init_done = true;
}
#endif
#ifdef _NUITKA_MODULE
// In case of a stand alone extension module, need to call initialization
// the init here because that's the first and only time we are going to get
// called here.
// Initialize the constant values used.
_initBuiltinModule();
createGlobalConstants();
/* Initialize the compiled types of Nuitka. */
_initCompiledCellType();
_initCompiledGeneratorType();
_initCompiledFunctionType();
_initCompiledMethodType();
_initCompiledFrameType();
#if PYTHON_VERSION >= 350
_initCompiledCoroutineTypes();
#endif
#if PYTHON_VERSION >= 360
_initCompiledAsyncgenTypes();
#endif
#if PYTHON_VERSION < 300
_initSlotCompare();
#endif
#if PYTHON_VERSION >= 270
_initSlotIternext();
#endif
patchBuiltinModule();
patchTypeComparison();
// Enable meta path based loader if not already done.
#ifdef _NUITKA_TRACE
puts("requests.status_codes: Calling setupMetaPathBasedLoader().");
#endif
setupMetaPathBasedLoader();
#if PYTHON_VERSION >= 300
patchInspectModule();
#endif
#endif
/* The constants only used by this module are created now. */
#ifdef _NUITKA_TRACE
puts("requests.status_codes: Calling createModuleConstants().");
#endif
createModuleConstants();
/* The code objects used by this module are created now. */
#ifdef _NUITKA_TRACE
puts("requests.status_codes: Calling createModuleCodeObjects().");
#endif
createModuleCodeObjects();
// puts( "in initrequests$status_codes" );
// Create the module object first. There are no methods initially, all are
// added dynamically in actual code only. Also no "__doc__" is initially
// set at this time, as it could not contain NUL characters this way, they
// are instead set in early module code. No "self" for modules, we have no
// use for it.
#if PYTHON_VERSION < 300
module_requests$status_codes = Py_InitModule4(
"requests.status_codes", // Module Name
NULL, // No methods initially, all are added
// dynamically in actual module code only.
NULL, // No "__doc__" is initially set, as it could
// not contain NUL this way, added early in
// actual code.
NULL, // No self for modules, we don't use it.
PYTHON_API_VERSION
);
#else
module_requests$status_codes = PyModule_Create( &mdef_requests$status_codes );
#endif
moduledict_requests$status_codes = MODULE_DICT( module_requests$status_codes );
// Update "__package__" value to what it ought to be.
{
#if 0
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_requests$status_codes, (Nuitka_StringObject *)const_str_plain___name__ );
UPDATE_STRING_DICT1(
moduledict_requests$status_codes,
(Nuitka_StringObject *)const_str_plain___package__,
module_name
);
#else
#if PYTHON_VERSION < 300
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_requests$status_codes, (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_requests$status_codes,
(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_requests$status_codes, (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_requests$status_codes,
(Nuitka_StringObject *)const_str_plain___package__,
PyUnicode_Substring( module_name, 0, dot_index )
);
}
#endif
#endif
}
CHECK_OBJECT( module_requests$status_codes );
// Seems to work for Python2.7 out of the box, but for Python3, the module
// doesn't automatically enter "sys.modules", so do it manually.
#if PYTHON_VERSION >= 300
{
int r = PyObject_SetItem( PySys_GetObject( (char *)"modules" ), const_str_digest_ac287d930ccff60e2a2e6a9bf4946046, module_requests$status_codes );
assert( r != -1 );
}
#endif
// For deep importing of a module we need to have "__builtins__", so we set
// it ourselves in the same way than CPython does. Note: This must be done
// before the frame object is allocated, or else it may fail.
if ( GET_STRING_DICT_VALUE( moduledict_requests$status_codes, (Nuitka_StringObject *)const_str_plain___builtins__ ) == NULL )
{
PyObject *value = (PyObject *)builtin_module;
// Check if main module, not a dict then but the module itself.
#if !defined(_NUITKA_EXE) || !0
value = PyModule_GetDict( value );
#endif
UPDATE_STRING_DICT0( moduledict_requests$status_codes, (Nuitka_StringObject *)const_str_plain___builtins__, value );
}
#if PYTHON_VERSION >= 300
UPDATE_STRING_DICT0( moduledict_requests$status_codes, (Nuitka_StringObject *)const_str_plain___loader__, metapath_based_loader );
#endif
#if PYTHON_VERSION >= 340
#if 0
UPDATE_STRING_DICT0( moduledict_requests$status_codes, (Nuitka_StringObject *)const_str_plain___spec__, Py_None );
#else
{
PyObject *bootstrap_module = PyImport_ImportModule("importlib._bootstrap");
CHECK_OBJECT( bootstrap_module );
PyObject *module_spec_class = PyObject_GetAttrString( bootstrap_module, "ModuleSpec" );
Py_DECREF( bootstrap_module );
PyObject *args[] = {
GET_STRING_DICT_VALUE( moduledict_requests$status_codes, (Nuitka_StringObject *)const_str_plain___name__ ),
metapath_based_loader
};
PyObject *spec_value = CALL_FUNCTION_WITH_ARGS2(
module_spec_class,
args
);
SET_ATTRIBUTE( spec_value, const_str_plain__initializing, Py_True );
UPDATE_STRING_DICT1( moduledict_requests$status_codes, (Nuitka_StringObject *)const_str_plain___spec__, spec_value );
Py_DECREF( module_spec_class );
}
#endif
#endif
// Temp variables if any
struct Nuitka_FrameObject *frame_56fb0b9178a5f7692a3bb494f28c302e;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
NUITKA_MAY_BE_UNUSED PyObject *tmp_unused;
// Module code.
{
PyObject *tmp_assign_source_1;
tmp_assign_source_1 = const_str_digest_3ec69d7af2832df7e4cacf918673adde;
UPDATE_STRING_DICT0( moduledict_requests$status_codes, (Nuitka_StringObject *)const_str_plain___doc__, tmp_assign_source_1 );
}
{
PyObject *tmp_assign_source_2;
tmp_assign_source_2 = const_str_digest_c6f45b699f3010ac9fa73b2ec6d2f6ec;
UPDATE_STRING_DICT0( moduledict_requests$status_codes, (Nuitka_StringObject *)const_str_plain___file__, tmp_assign_source_2 );
}
{
PyObject *tmp_assign_source_3;
tmp_assign_source_3 = Py_None;
UPDATE_STRING_DICT0( moduledict_requests$status_codes, (Nuitka_StringObject *)const_str_plain___cached__, tmp_assign_source_3 );
}
// Frame without reuse.
frame_56fb0b9178a5f7692a3bb494f28c302e = MAKE_MODULE_FRAME( codeobj_56fb0b9178a5f7692a3bb494f28c302e, module_requests$status_codes );
// Push the new frame as the currently active one, and we should be exclusively
// owning it.
pushFrameStack( frame_56fb0b9178a5f7692a3bb494f28c302e );
assert( Py_REFCNT( frame_56fb0b9178a5f7692a3bb494f28c302e ) == 2 );
// Framed code:
{
PyObject *tmp_assign_source_4;
PyObject *tmp_import_name_from_1;
PyObject *tmp_name_name_1;
PyObject *tmp_globals_name_1;
PyObject *tmp_locals_name_1;
PyObject *tmp_fromlist_name_1;
PyObject *tmp_level_name_1;
tmp_name_name_1 = const_str_plain_structures;
tmp_globals_name_1 = (PyObject *)moduledict_requests$status_codes;
tmp_locals_name_1 = Py_None;
tmp_fromlist_name_1 = const_tuple_str_plain_LookupDict_tuple;
tmp_level_name_1 = const_int_pos_1;
frame_56fb0b9178a5f7692a3bb494f28c302e->m_frame.f_lineno = 20;
tmp_import_name_from_1 = IMPORT_MODULE5( tmp_name_name_1, tmp_globals_name_1, tmp_locals_name_1, tmp_fromlist_name_1, tmp_level_name_1 );
if ( tmp_import_name_from_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 20;
goto frame_exception_exit_1;
}
if ( PyModule_Check( tmp_import_name_from_1 ) )
{
tmp_assign_source_4 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_1,
(PyObject *)MODULE_DICT(tmp_import_name_from_1),
const_str_plain_LookupDict,
const_int_pos_1
);
}
else
{
tmp_assign_source_4 = IMPORT_NAME( tmp_import_name_from_1, const_str_plain_LookupDict );
}
Py_DECREF( tmp_import_name_from_1 );
if ( tmp_assign_source_4 == 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_requests$status_codes, (Nuitka_StringObject *)const_str_plain_LookupDict, tmp_assign_source_4 );
}
{
PyObject *tmp_assign_source_5;
tmp_assign_source_5 = PyDict_Copy( const_dict_a458e737a8852d300c78b7ab1e058713 );
UPDATE_STRING_DICT1( moduledict_requests$status_codes, (Nuitka_StringObject *)const_str_plain__codes, tmp_assign_source_5 );
}
{
PyObject *tmp_assign_source_6;
PyObject *tmp_called_name_1;
PyObject *tmp_mvar_value_1;
PyObject *tmp_kw_name_1;
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_requests$status_codes, (Nuitka_StringObject *)const_str_plain_LookupDict );
if (unlikely( tmp_mvar_value_1 == NULL ))
{
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_LookupDict );
}
CHECK_OBJECT( tmp_mvar_value_1 );
tmp_called_name_1 = tmp_mvar_value_1;
tmp_kw_name_1 = PyDict_Copy( const_dict_38252060f20256dc080a28c7e1fb8512 );
frame_56fb0b9178a5f7692a3bb494f28c302e->m_frame.f_lineno = 102;
tmp_assign_source_6 = CALL_FUNCTION_WITH_KEYARGS( tmp_called_name_1, tmp_kw_name_1 );
Py_DECREF( tmp_kw_name_1 );
if ( tmp_assign_source_6 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 102;
goto frame_exception_exit_1;
}
UPDATE_STRING_DICT1( moduledict_requests$status_codes, (Nuitka_StringObject *)const_str_plain_codes, tmp_assign_source_6 );
}
{
PyObject *tmp_assign_source_7;
tmp_assign_source_7 = MAKE_FUNCTION_requests$status_codes$$$function_1__init( );
UPDATE_STRING_DICT1( moduledict_requests$status_codes, (Nuitka_StringObject *)const_str_plain__init, tmp_assign_source_7 );
}
{
PyObject *tmp_called_name_2;
PyObject *tmp_mvar_value_2;
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_requests$status_codes, (Nuitka_StringObject *)const_str_plain__init );
if (unlikely( tmp_mvar_value_2 == NULL ))
{
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain__init );
}
CHECK_OBJECT( tmp_mvar_value_2 );
tmp_called_name_2 = tmp_mvar_value_2;
frame_56fb0b9178a5f7692a3bb494f28c302e->m_frame.f_lineno = 120;
tmp_unused = CALL_FUNCTION_NO_ARGS( tmp_called_name_2 );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 120;
goto frame_exception_exit_1;
}
Py_DECREF( tmp_unused );
}
// Restore frame exception if necessary.
#if 0
RESTORE_FRAME_EXCEPTION( frame_56fb0b9178a5f7692a3bb494f28c302e );
#endif
popFrameStack();
assertFrameObject( frame_56fb0b9178a5f7692a3bb494f28c302e );
goto frame_no_exception_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_56fb0b9178a5f7692a3bb494f28c302e );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_56fb0b9178a5f7692a3bb494f28c302e, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_56fb0b9178a5f7692a3bb494f28c302e->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_56fb0b9178a5f7692a3bb494f28c302e, exception_lineno );
}
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto module_exception_exit;
frame_no_exception_1:;
return MOD_RETURN_VALUE( module_requests$status_codes );
module_exception_exit:
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
return MOD_RETURN_VALUE( NULL );
}