mirror of
https://github.com/house-of-vanity/fesmoo_perdoliq.git
synced 2025-08-21 16:17:15 +00:00
5200 lines
172 KiB
C
5200 lines
172 KiB
C
![]() |
/* Generated code for Python source for module 'urllib3.filepost'
|
||
|
* created by Nuitka version 0.6.0
|
||
|
*
|
||
|
* This code is in part copyright 2018 Kay Hayen.
|
||
|
*
|
||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
* you may not use this file except in compliance with the License.
|
||
|
* You may obtain a copy of the License at
|
||
|
*
|
||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||
|
*
|
||
|
* Unless required by applicable law or agreed to in writing, software
|
||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
* See the License for the specific language governing permissions and
|
||
|
* limitations under the License.
|
||
|
*/
|
||
|
|
||
|
#include "nuitka/prelude.h"
|
||
|
|
||
|
#include "__helpers.h"
|
||
|
|
||
|
/* The _module_urllib3$filepost 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$filepost;
|
||
|
PyDictObject *moduledict_urllib3$filepost;
|
||
|
|
||
|
/* The module constants used, if any. */
|
||
|
extern PyObject *const_tuple_str_digest_c075052d723d6707083e869a0e3659bb_tuple;
|
||
|
extern PyObject *const_str_plain_lookup;
|
||
|
static PyObject *const_str_digest_8122a89b4df45e77ea6391b232e2a3b0;
|
||
|
static PyObject *const_str_digest_9a1a441894293035893a91dbf6d4249a;
|
||
|
static PyObject *const_tuple_str_plain_fields_str_plain_i_str_plain_field_tuple;
|
||
|
extern PyObject *const_str_plain_dict;
|
||
|
extern PyObject *const_str_plain_i;
|
||
|
extern PyObject *const_str_plain___file__;
|
||
|
extern PyObject *const_str_plain_boundary;
|
||
|
static PyObject *const_str_digest_5d92179742448ca3da55c85204ba8635;
|
||
|
extern PyObject *const_str_digest_edd9cb70c3537b6a2b58ab6b4487087a;
|
||
|
extern PyObject *const_str_plain_os;
|
||
|
extern PyObject *const_str_plain_None;
|
||
|
extern PyObject *const_str_plain_hexlify;
|
||
|
static PyObject *const_str_digest_d29a5daf13c035a94cd2ca2bbedf74f2;
|
||
|
extern PyObject *const_str_plain_body;
|
||
|
extern PyObject *const_int_pos_16;
|
||
|
extern PyObject *const_str_plain_PY3;
|
||
|
extern PyObject *const_str_plain_absolute_import;
|
||
|
extern PyObject *const_str_plain___doc__;
|
||
|
extern PyObject *const_str_plain_data;
|
||
|
static PyObject *const_tuple_str_plain_boundary_tuple;
|
||
|
extern PyObject *const_tuple_str_plain_ascii_tuple;
|
||
|
extern PyObject *const_str_digest_be396efa0b72625f3db0177ef0977296;
|
||
|
extern PyObject *const_str_angle_genexpr;
|
||
|
static PyObject *const_str_digest_b68fd89e344303983e0d460257ca7e0d;
|
||
|
static PyObject *const_tuple_str_plain_fields_tuple;
|
||
|
extern PyObject *const_str_plain_packages;
|
||
|
extern PyObject *const_str_digest_b9c4baf879ebd882d40843df3a4dead7;
|
||
|
static PyObject *const_tuple_f2fb90666110a036a1ad62d4136c349a_tuple;
|
||
|
extern PyObject *const_str_plain_int;
|
||
|
static PyObject *const_str_digest_2f3fc2adfade3de630395f3520c2bb9e;
|
||
|
extern PyObject *const_str_plain_six;
|
||
|
extern PyObject *const_str_plain_content_type;
|
||
|
extern PyObject *const_str_plain_BytesIO;
|
||
|
extern PyObject *const_str_plain_iteritems;
|
||
|
extern PyObject *const_tuple_int_pos_16_tuple;
|
||
|
static PyObject *const_str_plain_choose_boundary;
|
||
|
extern PyObject *const_tuple_empty;
|
||
|
static PyObject *const_str_plain_writer;
|
||
|
static PyObject *const_str_digest_c57c59c8c6b1e46ea6d5f6838ba8230c;
|
||
|
static PyObject *const_str_plain_iter_field_objects;
|
||
|
extern PyObject *const_str_plain_urandom;
|
||
|
extern PyObject *const_str_plain_b;
|
||
|
extern PyObject *const_tuple_str_plain_BytesIO_tuple;
|
||
|
static PyObject *const_str_digest_9f72aa1f4da6ed7ebb5fa526269b75c5;
|
||
|
extern PyObject *const_str_plain_decode;
|
||
|
static PyObject *const_str_plain_iter_fields;
|
||
|
extern PyObject *const_str_plain_from_tuples;
|
||
|
extern PyObject *const_str_plain_k;
|
||
|
extern PyObject *const_str_digest_c075052d723d6707083e869a0e3659bb;
|
||
|
extern PyObject *const_str_plain_render_headers;
|
||
|
extern PyObject *const_int_0;
|
||
|
extern PyObject *const_str_plain_getvalue;
|
||
|
extern PyObject *const_tuple_b0c00933e83a0151953f3a00c2178204_tuple;
|
||
|
static PyObject *const_str_digest_d150668f670602a001be2bb4f1ccf17f;
|
||
|
extern PyObject *const_str_plain___cached__;
|
||
|
extern PyObject *const_str_plain_v;
|
||
|
extern PyObject *const_tuple_none_tuple;
|
||
|
extern PyObject *const_str_plain_codecs;
|
||
|
static PyObject *const_str_digest_ef308a9de359b9f7891c4dc2134cd197;
|
||
|
extern PyObject *const_str_plain_io;
|
||
|
extern PyObject *const_str_plain_binascii;
|
||
|
extern PyObject *const_str_plain_text_type;
|
||
|
extern PyObject *const_tuple_str_plain_RequestField_tuple;
|
||
|
extern PyObject *const_int_pos_1;
|
||
|
extern PyObject *const_str_plain_field;
|
||
|
extern PyObject *const_tuple_str_plain_b_tuple;
|
||
|
extern PyObject *const_int_pos_3;
|
||
|
extern PyObject *const_str_plain_fields;
|
||
|
extern PyObject *const_str_plain_write;
|
||
|
extern PyObject *const_tuple_str_plain_six_tuple;
|
||
|
extern PyObject *const_str_plain_encode_multipart_formdata;
|
||
|
extern PyObject *const_bytes_digest_e22048e4de62b4d2ac355aed7a0f9014;
|
||
|
extern PyObject *const_str_plain_ascii;
|
||
|
extern PyObject *const_tuple_bytes_digest_e22048e4de62b4d2ac355aed7a0f9014_tuple;
|
||
|
extern PyObject *const_str_plain_RequestField;
|
||
|
static PyObject *module_filename_obj;
|
||
|
|
||
|
static bool constants_created = false;
|
||
|
|
||
|
static void createModuleConstants( void )
|
||
|
{
|
||
|
const_str_digest_8122a89b4df45e77ea6391b232e2a3b0 = UNSTREAM_STRING( &constant_bin[ 1489835 ], 134, 0 );
|
||
|
const_str_digest_9a1a441894293035893a91dbf6d4249a = UNSTREAM_STRING( &constant_bin[ 1489969 ], 30, 0 );
|
||
|
const_tuple_str_plain_fields_str_plain_i_str_plain_field_tuple = PyTuple_New( 3 );
|
||
|
PyTuple_SET_ITEM( const_tuple_str_plain_fields_str_plain_i_str_plain_field_tuple, 0, const_str_plain_fields ); Py_INCREF( const_str_plain_fields );
|
||
|
PyTuple_SET_ITEM( const_tuple_str_plain_fields_str_plain_i_str_plain_field_tuple, 1, const_str_plain_i ); Py_INCREF( const_str_plain_i );
|
||
|
PyTuple_SET_ITEM( const_tuple_str_plain_fields_str_plain_i_str_plain_field_tuple, 2, const_str_plain_field ); Py_INCREF( const_str_plain_field );
|
||
|
const_str_digest_5d92179742448ca3da55c85204ba8635 = UNSTREAM_STRING( &constant_bin[ 1489999 ], 32, 0 );
|
||
|
const_str_digest_d29a5daf13c035a94cd2ca2bbedf74f2 = UNSTREAM_STRING( &constant_bin[ 1490031 ], 301, 0 );
|
||
|
const_tuple_str_plain_boundary_tuple = PyTuple_New( 1 );
|
||
|
PyTuple_SET_ITEM( const_tuple_str_plain_boundary_tuple, 0, const_str_plain_boundary ); Py_INCREF( const_str_plain_boundary );
|
||
|
const_str_digest_b68fd89e344303983e0d460257ca7e0d = UNSTREAM_STRING( &constant_bin[ 1490332 ], 337, 0 );
|
||
|
const_tuple_str_plain_fields_tuple = PyTuple_New( 1 );
|
||
|
PyTuple_SET_ITEM( const_tuple_str_plain_fields_tuple, 0, const_str_plain_fields ); Py_INCREF( const_str_plain_fields );
|
||
|
const_tuple_f2fb90666110a036a1ad62d4136c349a_tuple = PyTuple_New( 6 );
|
||
|
PyTuple_SET_ITEM( const_tuple_f2fb90666110a036a1ad62d4136c349a_tuple, 0, const_str_plain_fields ); Py_INCREF( const_str_plain_fields );
|
||
|
PyTuple_SET_ITEM( const_tuple_f2fb90666110a036a1ad62d4136c349a_tuple, 1, const_str_plain_boundary ); Py_INCREF( const_str_plain_boundary );
|
||
|
PyTuple_SET_ITEM( const_tuple_f2fb90666110a036a1ad62d4136c349a_tuple, 2, const_str_plain_body ); Py_INCREF( const_str_plain_body );
|
||
|
PyTuple_SET_ITEM( const_tuple_f2fb90666110a036a1ad62d4136c349a_tuple, 3, const_str_plain_field ); Py_INCREF( const_str_plain_field );
|
||
|
PyTuple_SET_ITEM( const_tuple_f2fb90666110a036a1ad62d4136c349a_tuple, 4, const_str_plain_data ); Py_INCREF( const_str_plain_data );
|
||
|
PyTuple_SET_ITEM( const_tuple_f2fb90666110a036a1ad62d4136c349a_tuple, 5, const_str_plain_content_type ); Py_INCREF( const_str_plain_content_type );
|
||
|
const_str_digest_2f3fc2adfade3de630395f3520c2bb9e = UNSTREAM_STRING( &constant_bin[ 1490669 ], 25, 0 );
|
||
|
const_str_plain_choose_boundary = UNSTREAM_STRING( &constant_bin[ 1490647 ], 15, 1 );
|
||
|
const_str_plain_writer = UNSTREAM_STRING( &constant_bin[ 1490694 ], 6, 1 );
|
||
|
const_str_digest_c57c59c8c6b1e46ea6d5f6838ba8230c = UNSTREAM_STRING( &constant_bin[ 1490700 ], 78, 0 );
|
||
|
const_str_plain_iter_field_objects = UNSTREAM_STRING( &constant_bin[ 1490195 ], 18, 1 );
|
||
|
const_str_digest_9f72aa1f4da6ed7ebb5fa526269b75c5 = UNSTREAM_STRING( &constant_bin[ 1490778 ], 52, 0 );
|
||
|
const_str_plain_iter_fields = UNSTREAM_STRING( &constant_bin[ 1489969 ], 11, 1 );
|
||
|
const_str_digest_d150668f670602a001be2bb4f1ccf17f = UNSTREAM_STRING( &constant_bin[ 1490830 ], 6, 0 );
|
||
|
const_str_digest_ef308a9de359b9f7891c4dc2134cd197 = UNSTREAM_STRING( &constant_bin[ 1490836 ], 8, 0 );
|
||
|
|
||
|
constants_created = true;
|
||
|
}
|
||
|
|
||
|
#ifndef __NUITKA_NO_ASSERT__
|
||
|
void checkModuleConstants_urllib3$filepost( void )
|
||
|
{
|
||
|
// The module may not have been used at all.
|
||
|
if (constants_created == false) return;
|
||
|
|
||
|
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
// The module code objects.
|
||
|
static PyCodeObject *codeobj_7fd2691939b2c458569406024cf2b973;
|
||
|
static PyCodeObject *codeobj_e2e550d64e9fb25d4c98c68236122364;
|
||
|
static PyCodeObject *codeobj_6da92f828731b447d98839acd7d4093e;
|
||
|
static PyCodeObject *codeobj_64102b81efe88390b9d940172620894b;
|
||
|
static PyCodeObject *codeobj_27cce2e6de14d29bbcb3a987e8d18bbf;
|
||
|
static PyCodeObject *codeobj_d18c2022fbdc7e18c6dcffa8bd6388ca;
|
||
|
static PyCodeObject *codeobj_5f3ec7fbd342c9dfca8b5c7f5dbee1cc;
|
||
|
|
||
|
static void createModuleCodeObjects(void)
|
||
|
{
|
||
|
module_filename_obj = const_str_digest_9f72aa1f4da6ed7ebb5fa526269b75c5;
|
||
|
codeobj_7fd2691939b2c458569406024cf2b973 = MAKE_CODEOBJ( module_filename_obj, const_str_angle_genexpr, 58, const_tuple_b0c00933e83a0151953f3a00c2178204_tuple, 1, 0, CO_GENERATOR | CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
||
|
codeobj_e2e550d64e9fb25d4c98c68236122364 = MAKE_CODEOBJ( module_filename_obj, const_str_angle_genexpr, 60, const_tuple_b0c00933e83a0151953f3a00c2178204_tuple, 1, 0, CO_GENERATOR | CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
||
|
codeobj_6da92f828731b447d98839acd7d4093e = MAKE_CODEOBJ( module_filename_obj, const_str_digest_2f3fc2adfade3de630395f3520c2bb9e, 1, const_tuple_empty, 0, 0, CO_NOFREE );
|
||
|
codeobj_64102b81efe88390b9d940172620894b = MAKE_CODEOBJ( module_filename_obj, const_str_plain_choose_boundary, 15, const_tuple_str_plain_boundary_tuple, 0, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
||
|
codeobj_27cce2e6de14d29bbcb3a987e8d18bbf = MAKE_CODEOBJ( module_filename_obj, const_str_plain_encode_multipart_formdata, 63, const_tuple_f2fb90666110a036a1ad62d4136c349a_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
||
|
codeobj_d18c2022fbdc7e18c6dcffa8bd6388ca = MAKE_CODEOBJ( module_filename_obj, const_str_plain_iter_field_objects, 25, const_tuple_str_plain_fields_str_plain_i_str_plain_field_tuple, 1, 0, CO_GENERATOR | CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
||
|
codeobj_5f3ec7fbd342c9dfca8b5c7f5dbee1cc = MAKE_CODEOBJ( module_filename_obj, const_str_plain_iter_fields, 45, const_tuple_str_plain_fields_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
||
|
}
|
||
|
|
||
|
// The module function declarations.
|
||
|
static PyObject *urllib3$filepost$$$function_2_iter_field_objects$$$genobj_1_iter_field_objects_maker( void );
|
||
|
|
||
|
|
||
|
static PyObject *urllib3$filepost$$$function_3_iter_fields$$$genexpr_1_genexpr_maker( void );
|
||
|
|
||
|
|
||
|
static PyObject *urllib3$filepost$$$function_3_iter_fields$$$genexpr_2_genexpr_maker( void );
|
||
|
|
||
|
|
||
|
NUITKA_CROSS_MODULE PyObject *impl___internal__$$$function_2_complex_call_helper_star_list( PyObject **python_pars );
|
||
|
|
||
|
|
||
|
static PyObject *MAKE_FUNCTION_urllib3$filepost$$$function_1_choose_boundary( );
|
||
|
|
||
|
|
||
|
static PyObject *MAKE_FUNCTION_urllib3$filepost$$$function_2_iter_field_objects( );
|
||
|
|
||
|
|
||
|
static PyObject *MAKE_FUNCTION_urllib3$filepost$$$function_3_iter_fields( );
|
||
|
|
||
|
|
||
|
static PyObject *MAKE_FUNCTION_urllib3$filepost$$$function_4_encode_multipart_formdata( PyObject *defaults );
|
||
|
|
||
|
|
||
|
// The module function definitions.
|
||
|
static PyObject *impl_urllib3$filepost$$$function_1_choose_boundary( 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_boundary = NULL;
|
||
|
struct Nuitka_FrameObject *frame_64102b81efe88390b9d940172620894b;
|
||
|
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_64102b81efe88390b9d940172620894b = 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_64102b81efe88390b9d940172620894b, codeobj_64102b81efe88390b9d940172620894b, module_urllib3$filepost, sizeof(void *) );
|
||
|
frame_64102b81efe88390b9d940172620894b = cache_frame_64102b81efe88390b9d940172620894b;
|
||
|
|
||
|
// Push the new frame as the currently active one.
|
||
|
pushFrameStack( frame_64102b81efe88390b9d940172620894b );
|
||
|
|
||
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
||
|
assert( Py_REFCNT( frame_64102b81efe88390b9d940172620894b ) == 2 ); // Frame stack
|
||
|
|
||
|
// Framed code:
|
||
|
{
|
||
|
PyObject *tmp_assign_source_1;
|
||
|
PyObject *tmp_called_name_1;
|
||
|
PyObject *tmp_source_name_1;
|
||
|
PyObject *tmp_mvar_value_1;
|
||
|
PyObject *tmp_args_element_name_1;
|
||
|
PyObject *tmp_called_instance_1;
|
||
|
PyObject *tmp_mvar_value_2;
|
||
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_binascii );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_1 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_binascii );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_1 == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_NameError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "binascii" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 19;
|
||
|
type_description_1 = "o";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_source_name_1 = tmp_mvar_value_1;
|
||
|
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_hexlify );
|
||
|
if ( tmp_called_name_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 19;
|
||
|
type_description_1 = "o";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_os );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_2 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_os );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_2 == NULL )
|
||
|
{
|
||
|
Py_DECREF( tmp_called_name_1 );
|
||
|
exception_type = PyExc_NameError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "os" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 19;
|
||
|
type_description_1 = "o";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_called_instance_1 = tmp_mvar_value_2;
|
||
|
frame_64102b81efe88390b9d940172620894b->m_frame.f_lineno = 19;
|
||
|
tmp_args_element_name_1 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_1, const_str_plain_urandom, &PyTuple_GET_ITEM( const_tuple_int_pos_16_tuple, 0 ) );
|
||
|
|
||
|
if ( tmp_args_element_name_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
Py_DECREF( tmp_called_name_1 );
|
||
|
|
||
|
exception_lineno = 19;
|
||
|
type_description_1 = "o";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
frame_64102b81efe88390b9d940172620894b->m_frame.f_lineno = 19;
|
||
|
{
|
||
|
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 = 19;
|
||
|
type_description_1 = "o";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
assert( var_boundary == NULL );
|
||
|
var_boundary = tmp_assign_source_1;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
nuitka_bool tmp_condition_result_1;
|
||
|
PyObject *tmp_source_name_2;
|
||
|
PyObject *tmp_mvar_value_3;
|
||
|
PyObject *tmp_attribute_value_1;
|
||
|
int tmp_truth_name_1;
|
||
|
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_six );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_3 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_six );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_3 == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_NameError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "six" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 20;
|
||
|
type_description_1 = "o";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_source_name_2 = tmp_mvar_value_3;
|
||
|
tmp_attribute_value_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_PY3 );
|
||
|
if ( tmp_attribute_value_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 20;
|
||
|
type_description_1 = "o";
|
||
|
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 = 20;
|
||
|
type_description_1 = "o";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_condition_result_1 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
||
|
Py_DECREF( tmp_attribute_value_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_2;
|
||
|
PyObject *tmp_called_instance_2;
|
||
|
if ( var_boundary == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "boundary" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 21;
|
||
|
type_description_1 = "o";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_called_instance_2 = var_boundary;
|
||
|
frame_64102b81efe88390b9d940172620894b->m_frame.f_lineno = 21;
|
||
|
tmp_assign_source_2 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_2, const_str_plain_decode, &PyTuple_GET_ITEM( const_tuple_str_plain_ascii_tuple, 0 ) );
|
||
|
|
||
|
if ( tmp_assign_source_2 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 21;
|
||
|
type_description_1 = "o";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
{
|
||
|
PyObject *old = var_boundary;
|
||
|
var_boundary = tmp_assign_source_2;
|
||
|
Py_XDECREF( old );
|
||
|
}
|
||
|
|
||
|
}
|
||
|
branch_no_1:;
|
||
|
}
|
||
|
{
|
||
|
if ( var_boundary == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "boundary" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 22;
|
||
|
type_description_1 = "o";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_return_value = var_boundary;
|
||
|
Py_INCREF( tmp_return_value );
|
||
|
goto frame_return_exit_1;
|
||
|
}
|
||
|
|
||
|
#if 0
|
||
|
RESTORE_FRAME_EXCEPTION( frame_64102b81efe88390b9d940172620894b );
|
||
|
#endif
|
||
|
|
||
|
// Put the previous frame back on top.
|
||
|
popFrameStack();
|
||
|
|
||
|
goto frame_no_exception_1;
|
||
|
|
||
|
frame_return_exit_1:;
|
||
|
#if 0
|
||
|
RESTORE_FRAME_EXCEPTION( frame_64102b81efe88390b9d940172620894b );
|
||
|
#endif
|
||
|
|
||
|
// Put the previous frame back on top.
|
||
|
popFrameStack();
|
||
|
|
||
|
goto try_return_handler_1;
|
||
|
|
||
|
frame_exception_exit_1:;
|
||
|
|
||
|
#if 0
|
||
|
RESTORE_FRAME_EXCEPTION( frame_64102b81efe88390b9d940172620894b );
|
||
|
#endif
|
||
|
|
||
|
if ( exception_tb == NULL )
|
||
|
{
|
||
|
exception_tb = MAKE_TRACEBACK( frame_64102b81efe88390b9d940172620894b, exception_lineno );
|
||
|
}
|
||
|
else if ( exception_tb->tb_frame != &frame_64102b81efe88390b9d940172620894b->m_frame )
|
||
|
{
|
||
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_64102b81efe88390b9d940172620894b, exception_lineno );
|
||
|
}
|
||
|
|
||
|
// Attachs locals to frame if any.
|
||
|
Nuitka_Frame_AttachLocals(
|
||
|
(struct Nuitka_FrameObject *)frame_64102b81efe88390b9d940172620894b,
|
||
|
type_description_1,
|
||
|
var_boundary
|
||
|
);
|
||
|
|
||
|
|
||
|
// Release cached frame.
|
||
|
if ( frame_64102b81efe88390b9d940172620894b == cache_frame_64102b81efe88390b9d940172620894b )
|
||
|
{
|
||
|
Py_DECREF( frame_64102b81efe88390b9d940172620894b );
|
||
|
}
|
||
|
cache_frame_64102b81efe88390b9d940172620894b = NULL;
|
||
|
|
||
|
assertFrameObject( frame_64102b81efe88390b9d940172620894b );
|
||
|
|
||
|
// Put the previous frame back on top.
|
||
|
popFrameStack();
|
||
|
|
||
|
// Return the error.
|
||
|
goto try_except_handler_1;
|
||
|
|
||
|
frame_no_exception_1:;
|
||
|
// tried codes exits in all cases
|
||
|
NUITKA_CANNOT_GET_HERE( urllib3$filepost$$$function_1_choose_boundary );
|
||
|
return NULL;
|
||
|
// Return handler code:
|
||
|
try_return_handler_1:;
|
||
|
{
|
||
|
Py_XDECREF( var_boundary );
|
||
|
var_boundary = 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_boundary );
|
||
|
var_boundary = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
// Re-raise.
|
||
|
exception_type = exception_keeper_type_1;
|
||
|
exception_value = exception_keeper_value_1;
|
||
|
exception_tb = exception_keeper_tb_1;
|
||
|
exception_lineno = exception_keeper_lineno_1;
|
||
|
|
||
|
goto function_exception_exit;
|
||
|
}
|
||
|
// End of try:
|
||
|
}
|
||
|
|
||
|
// Return statement must have exited already.
|
||
|
NUITKA_CANNOT_GET_HERE( urllib3$filepost$$$function_1_choose_boundary );
|
||
|
return NULL;
|
||
|
|
||
|
function_exception_exit:
|
||
|
assert( exception_type );
|
||
|
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
|
||
|
|
||
|
return NULL;
|
||
|
function_return_exit:
|
||
|
|
||
|
CHECK_OBJECT( tmp_return_value );
|
||
|
assert( had_error || !ERROR_OCCURRED() );
|
||
|
return tmp_return_value;
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
static PyObject *impl_urllib3$filepost$$$function_2_iter_field_objects( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
|
||
|
{
|
||
|
// Preserve error status for checks
|
||
|
#ifndef __NUITKA_NO_ASSERT__
|
||
|
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
|
||
|
#endif
|
||
|
|
||
|
// Local variable declarations.
|
||
|
struct Nuitka_CellObject *par_fields = PyCell_NEW1( python_pars[ 0 ] );
|
||
|
PyObject *tmp_return_value = NULL;
|
||
|
|
||
|
// Actual function code.
|
||
|
{
|
||
|
// Tried code:
|
||
|
{
|
||
|
tmp_return_value = urllib3$filepost$$$function_2_iter_field_objects$$$genobj_1_iter_field_objects_maker();
|
||
|
|
||
|
((struct Nuitka_GeneratorObject *)tmp_return_value)->m_closure[0] = par_fields;
|
||
|
Py_INCREF( ((struct Nuitka_GeneratorObject *)tmp_return_value)->m_closure[0] );
|
||
|
|
||
|
|
||
|
goto try_return_handler_1;
|
||
|
}
|
||
|
// tried codes exits in all cases
|
||
|
NUITKA_CANNOT_GET_HERE( urllib3$filepost$$$function_2_iter_field_objects );
|
||
|
return NULL;
|
||
|
// Return handler code:
|
||
|
try_return_handler_1:;
|
||
|
{
|
||
|
CHECK_OBJECT( (PyObject *)par_fields );
|
||
|
Py_DECREF( par_fields );
|
||
|
par_fields = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
goto function_return_exit;
|
||
|
}
|
||
|
// End of try:
|
||
|
}
|
||
|
{
|
||
|
CHECK_OBJECT( (PyObject *)par_fields );
|
||
|
Py_DECREF( par_fields );
|
||
|
par_fields = NULL;
|
||
|
|
||
|
}
|
||
|
|
||
|
// Return statement must have exited already.
|
||
|
NUITKA_CANNOT_GET_HERE( urllib3$filepost$$$function_2_iter_field_objects );
|
||
|
return NULL;
|
||
|
|
||
|
function_return_exit:
|
||
|
|
||
|
CHECK_OBJECT( tmp_return_value );
|
||
|
assert( had_error || !ERROR_OCCURRED() );
|
||
|
return tmp_return_value;
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
struct urllib3$filepost$$$function_2_iter_field_objects$$$genobj_1_iter_field_objects_locals {
|
||
|
PyObject *var_i;
|
||
|
PyObject *var_field;
|
||
|
PyObject *tmp_for_loop_1__for_iterator;
|
||
|
PyObject *tmp_for_loop_1__iter_value;
|
||
|
char const *type_description_1;
|
||
|
PyObject *exception_type;
|
||
|
PyObject *exception_value;
|
||
|
PyTracebackObject *exception_tb;
|
||
|
int exception_lineno;
|
||
|
int tmp_res;
|
||
|
char yield_tmps[1024];
|
||
|
PyObject *exception_keeper_type_1;
|
||
|
PyObject *exception_keeper_value_1;
|
||
|
PyTracebackObject *exception_keeper_tb_1;
|
||
|
int exception_keeper_lineno_1;
|
||
|
PyObject *exception_keeper_type_2;
|
||
|
PyObject *exception_keeper_value_2;
|
||
|
PyTracebackObject *exception_keeper_tb_2;
|
||
|
int exception_keeper_lineno_2;
|
||
|
};
|
||
|
|
||
|
static PyObject *urllib3$filepost$$$function_2_iter_field_objects$$$genobj_1_iter_field_objects_context( struct Nuitka_GeneratorObject *generator, PyObject *yield_return_value )
|
||
|
{
|
||
|
CHECK_OBJECT( (PyObject *)generator );
|
||
|
assert( Nuitka_Generator_Check( (PyObject *)generator ) );
|
||
|
|
||
|
// Heap access if used.
|
||
|
struct urllib3$filepost$$$function_2_iter_field_objects$$$genobj_1_iter_field_objects_locals *generator_heap = (struct urllib3$filepost$$$function_2_iter_field_objects$$$genobj_1_iter_field_objects_locals *)generator->m_heap_storage;
|
||
|
|
||
|
// Dispatch to yield based on return label index:
|
||
|
switch(generator->m_yield_return_index) {
|
||
|
case 2: goto yield_return_2;
|
||
|
case 1: goto yield_return_1;
|
||
|
}
|
||
|
|
||
|
// Local variable initialization
|
||
|
NUITKA_MAY_BE_UNUSED PyObject *tmp_unused;
|
||
|
static struct Nuitka_FrameObject *cache_m_frame = NULL;
|
||
|
generator_heap->var_i = NULL;
|
||
|
generator_heap->var_field = NULL;
|
||
|
generator_heap->tmp_for_loop_1__for_iterator = NULL;
|
||
|
generator_heap->tmp_for_loop_1__iter_value = NULL;
|
||
|
generator_heap->type_description_1 = NULL;
|
||
|
generator_heap->exception_type = NULL;
|
||
|
generator_heap->exception_value = NULL;
|
||
|
generator_heap->exception_tb = NULL;
|
||
|
generator_heap->exception_lineno = 0;
|
||
|
|
||
|
// Actual function code.
|
||
|
{
|
||
|
// Tried code:
|
||
|
MAKE_OR_REUSE_FRAME( cache_m_frame, codeobj_d18c2022fbdc7e18c6dcffa8bd6388ca, module_urllib3$filepost, 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:
|
||
|
{
|
||
|
nuitka_bool tmp_condition_result_1;
|
||
|
PyObject *tmp_isinstance_inst_1;
|
||
|
PyObject *tmp_isinstance_cls_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", "fields" );
|
||
|
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 = 33;
|
||
|
generator_heap->type_description_1 = "coo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_isinstance_inst_1 = PyCell_GET( generator->m_closure[0] );
|
||
|
tmp_isinstance_cls_1 = (PyObject *)&PyDict_Type;
|
||
|
generator_heap->tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_1, tmp_isinstance_cls_1 );
|
||
|
if ( generator_heap->tmp_res == -1 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
||
|
|
||
|
|
||
|
generator_heap->exception_lineno = 33;
|
||
|
generator_heap->type_description_1 = "coo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_condition_result_1 = ( generator_heap->tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
||
|
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
|
||
|
{
|
||
|
goto branch_yes_1;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
goto branch_no_1;
|
||
|
}
|
||
|
branch_yes_1:;
|
||
|
{
|
||
|
PyObject *tmp_assign_source_1;
|
||
|
PyObject *tmp_called_name_1;
|
||
|
PyObject *tmp_source_name_1;
|
||
|
PyObject *tmp_mvar_value_1;
|
||
|
PyObject *tmp_args_element_name_1;
|
||
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_six );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_1 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_six );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_1 == NULL )
|
||
|
{
|
||
|
|
||
|
generator_heap->exception_type = PyExc_NameError;
|
||
|
Py_INCREF( generator_heap->exception_type );
|
||
|
generator_heap->exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "six" );
|
||
|
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 = 34;
|
||
|
generator_heap->type_description_1 = "coo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_source_name_1 = tmp_mvar_value_1;
|
||
|
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_iteritems );
|
||
|
if ( tmp_called_name_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
||
|
|
||
|
|
||
|
generator_heap->exception_lineno = 34;
|
||
|
generator_heap->type_description_1 = "coo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
if ( PyCell_GET( generator->m_closure[0] ) == NULL )
|
||
|
{
|
||
|
Py_DECREF( tmp_called_name_1 );
|
||
|
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", "fields" );
|
||
|
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 = 34;
|
||
|
generator_heap->type_description_1 = "coo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_args_element_name_1 = PyCell_GET( generator->m_closure[0] );
|
||
|
generator->m_frame->m_frame.f_lineno = 34;
|
||
|
{
|
||
|
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 );
|
||
|
if ( tmp_assign_source_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
||
|
|
||
|
|
||
|
generator_heap->exception_lineno = 34;
|
||
|
generator_heap->type_description_1 = "coo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
assert( generator_heap->var_i == NULL );
|
||
|
generator_heap->var_i = tmp_assign_source_1;
|
||
|
|
||
|
}
|
||
|
goto branch_end_1;
|
||
|
branch_no_1:;
|
||
|
{
|
||
|
PyObject *tmp_assign_source_2;
|
||
|
PyObject *tmp_iter_arg_1;
|
||
|
if ( PyCell_GET( generator->m_closure[0] ) == NULL )
|
||
|
{
|
||
|
|
||
|
generator_heap->exception_type = PyExc_NameError;
|
||
|
Py_INCREF( generator_heap->exception_type );
|
||
|
generator_heap->exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "fields" );
|
||
|
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 = 36;
|
||
|
generator_heap->type_description_1 = "coo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_iter_arg_1 = PyCell_GET( generator->m_closure[0] );
|
||
|
tmp_assign_source_2 = MAKE_ITERATOR( tmp_iter_arg_1 );
|
||
|
if ( tmp_assign_source_2 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
||
|
|
||
|
|
||
|
generator_heap->exception_lineno = 36;
|
||
|
generator_heap->type_description_1 = "coo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
assert( generator_heap->var_i == NULL );
|
||
|
generator_heap->var_i = tmp_assign_source_2;
|
||
|
|
||
|
}
|
||
|
branch_end_1:;
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_3;
|
||
|
PyObject *tmp_iter_arg_2;
|
||
|
CHECK_OBJECT( generator_heap->var_i );
|
||
|
tmp_iter_arg_2 = generator_heap->var_i;
|
||
|
tmp_assign_source_3 = MAKE_ITERATOR( tmp_iter_arg_2 );
|
||
|
if ( tmp_assign_source_3 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
||
|
|
||
|
|
||
|
generator_heap->exception_lineno = 38;
|
||
|
generator_heap->type_description_1 = "coo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
assert( generator_heap->tmp_for_loop_1__for_iterator == NULL );
|
||
|
generator_heap->tmp_for_loop_1__for_iterator = tmp_assign_source_3;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
// Tried code:
|
||
|
{
|
||
|
loop_start_1:;
|
||
|
{
|
||
|
PyObject *tmp_next_source_1;
|
||
|
PyObject *tmp_assign_source_4;
|
||
|
CHECK_OBJECT( generator_heap->tmp_for_loop_1__for_iterator );
|
||
|
tmp_next_source_1 = generator_heap->tmp_for_loop_1__for_iterator;
|
||
|
tmp_assign_source_4 = ITERATOR_NEXT( tmp_next_source_1 );
|
||
|
if ( tmp_assign_source_4 == NULL )
|
||
|
{
|
||
|
if ( CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED() )
|
||
|
{
|
||
|
|
||
|
goto loop_end_1;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
||
|
generator_heap->type_description_1 = "coo";
|
||
|
generator_heap->exception_lineno = 38;
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
{
|
||
|
PyObject *old = generator_heap->tmp_for_loop_1__iter_value;
|
||
|
generator_heap->tmp_for_loop_1__iter_value = tmp_assign_source_4;
|
||
|
Py_XDECREF( old );
|
||
|
}
|
||
|
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_5;
|
||
|
CHECK_OBJECT( generator_heap->tmp_for_loop_1__iter_value );
|
||
|
tmp_assign_source_5 = generator_heap->tmp_for_loop_1__iter_value;
|
||
|
{
|
||
|
PyObject *old = generator_heap->var_field;
|
||
|
generator_heap->var_field = tmp_assign_source_5;
|
||
|
Py_INCREF( generator_heap->var_field );
|
||
|
Py_XDECREF( old );
|
||
|
}
|
||
|
|
||
|
}
|
||
|
{
|
||
|
nuitka_bool tmp_condition_result_2;
|
||
|
PyObject *tmp_isinstance_inst_2;
|
||
|
PyObject *tmp_isinstance_cls_2;
|
||
|
PyObject *tmp_mvar_value_2;
|
||
|
CHECK_OBJECT( generator_heap->var_field );
|
||
|
tmp_isinstance_inst_2 = generator_heap->var_field;
|
||
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_RequestField );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_2 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_RequestField );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_2 == NULL )
|
||
|
{
|
||
|
|
||
|
generator_heap->exception_type = PyExc_NameError;
|
||
|
Py_INCREF( generator_heap->exception_type );
|
||
|
generator_heap->exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "RequestField" );
|
||
|
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 = 39;
|
||
|
generator_heap->type_description_1 = "coo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
|
||
|
tmp_isinstance_cls_2 = tmp_mvar_value_2;
|
||
|
generator_heap->tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_2, tmp_isinstance_cls_2 );
|
||
|
if ( generator_heap->tmp_res == -1 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
||
|
|
||
|
|
||
|
generator_heap->exception_lineno = 39;
|
||
|
generator_heap->type_description_1 = "coo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
tmp_condition_result_2 = ( generator_heap->tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
||
|
if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE )
|
||
|
{
|
||
|
goto branch_yes_2;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
goto branch_no_2;
|
||
|
}
|
||
|
branch_yes_2:;
|
||
|
{
|
||
|
PyObject *tmp_expression_name_1;
|
||
|
CHECK_OBJECT( generator_heap->var_field );
|
||
|
tmp_expression_name_1 = generator_heap->var_field;
|
||
|
Py_INCREF( tmp_expression_name_1 );
|
||
|
Nuitka_PreserveHeap( generator_heap->yield_tmps, &tmp_condition_result_2, sizeof(nuitka_bool), &tmp_isinstance_inst_2, sizeof(PyObject *), &tmp_isinstance_cls_2, sizeof(PyObject *), &tmp_mvar_value_2, sizeof(PyObject *), NULL );
|
||
|
generator->m_yield_return_index = 1;
|
||
|
return tmp_expression_name_1;
|
||
|
yield_return_1:
|
||
|
Nuitka_RestoreHeap( generator_heap->yield_tmps, &tmp_condition_result_2, sizeof(nuitka_bool), &tmp_isinstance_inst_2, sizeof(PyObject *), &tmp_isinstance_cls_2, sizeof(PyObject *), &tmp_mvar_value_2, sizeof(PyObject *), NULL );
|
||
|
if ( yield_return_value == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
||
|
|
||
|
|
||
|
generator_heap->exception_lineno = 40;
|
||
|
generator_heap->type_description_1 = "coo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
tmp_unused = yield_return_value;
|
||
|
}
|
||
|
goto branch_end_2;
|
||
|
branch_no_2:;
|
||
|
{
|
||
|
PyObject *tmp_expression_name_2;
|
||
|
PyObject *tmp_dircall_arg1_1;
|
||
|
PyObject *tmp_source_name_2;
|
||
|
PyObject *tmp_mvar_value_3;
|
||
|
PyObject *tmp_dircall_arg2_1;
|
||
|
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_RequestField );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_3 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_RequestField );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_3 == NULL )
|
||
|
{
|
||
|
|
||
|
generator_heap->exception_type = PyExc_NameError;
|
||
|
Py_INCREF( generator_heap->exception_type );
|
||
|
generator_heap->exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "RequestField" );
|
||
|
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 = 42;
|
||
|
generator_heap->type_description_1 = "coo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
|
||
|
tmp_source_name_2 = tmp_mvar_value_3;
|
||
|
tmp_dircall_arg1_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_from_tuples );
|
||
|
if ( tmp_dircall_arg1_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
||
|
|
||
|
|
||
|
generator_heap->exception_lineno = 42;
|
||
|
generator_heap->type_description_1 = "coo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
if ( generator_heap->var_field == NULL )
|
||
|
{
|
||
|
Py_DECREF( tmp_dircall_arg1_1 );
|
||
|
generator_heap->exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( generator_heap->exception_type );
|
||
|
generator_heap->exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "field" );
|
||
|
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 = 42;
|
||
|
generator_heap->type_description_1 = "coo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
|
||
|
tmp_dircall_arg2_1 = generator_heap->var_field;
|
||
|
Py_INCREF( tmp_dircall_arg2_1 );
|
||
|
|
||
|
{
|
||
|
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1};
|
||
|
tmp_expression_name_2 = impl___internal__$$$function_2_complex_call_helper_star_list( dir_call_args );
|
||
|
}
|
||
|
if ( tmp_expression_name_2 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
||
|
|
||
|
|
||
|
generator_heap->exception_lineno = 42;
|
||
|
generator_heap->type_description_1 = "coo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
Nuitka_PreserveHeap( generator_heap->yield_tmps, &tmp_condition_result_2, sizeof(nuitka_bool), &tmp_isinstance_inst_2, sizeof(PyObject *), &tmp_isinstance_cls_2, sizeof(PyObject *), &tmp_mvar_value_2, sizeof(PyObject *), &tmp_dircall_arg1_1, sizeof(PyObject *), &tmp_source_name_2, sizeof(PyObject *), &tmp_mvar_value_3, sizeof(PyObject *), &tmp_dircall_arg2_1, sizeof(PyObject *), NULL );
|
||
|
generator->m_yield_return_index = 2;
|
||
|
return tmp_expression_name_2;
|
||
|
yield_return_2:
|
||
|
Nuitka_RestoreHeap( generator_heap->yield_tmps, &tmp_condition_result_2, sizeof(nuitka_bool), &tmp_isinstance_inst_2, sizeof(PyObject *), &tmp_isinstance_cls_2, sizeof(PyObject *), &tmp_mvar_value_2, sizeof(PyObject *), &tmp_dircall_arg1_1, sizeof(PyObject *), &tmp_source_name_2, sizeof(PyObject *), &tmp_mvar_value_3, sizeof(PyObject *), &tmp_dircall_arg2_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 = 42;
|
||
|
generator_heap->type_description_1 = "coo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
tmp_unused = yield_return_value;
|
||
|
}
|
||
|
branch_end_2:;
|
||
|
}
|
||
|
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 = 38;
|
||
|
generator_heap->type_description_1 = "coo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
goto loop_start_1;
|
||
|
loop_end_1:;
|
||
|
}
|
||
|
goto try_end_1;
|
||
|
// Exception handler code:
|
||
|
try_except_handler_2:;
|
||
|
generator_heap->exception_keeper_type_1 = generator_heap->exception_type;
|
||
|
generator_heap->exception_keeper_value_1 = generator_heap->exception_value;
|
||
|
generator_heap->exception_keeper_tb_1 = generator_heap->exception_tb;
|
||
|
generator_heap->exception_keeper_lineno_1 = generator_heap->exception_lineno;
|
||
|
generator_heap->exception_type = NULL;
|
||
|
generator_heap->exception_value = NULL;
|
||
|
generator_heap->exception_tb = NULL;
|
||
|
generator_heap->exception_lineno = 0;
|
||
|
|
||
|
{
|
||
|
Py_XDECREF( generator_heap->tmp_for_loop_1__iter_value );
|
||
|
generator_heap->tmp_for_loop_1__iter_value = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
CHECK_OBJECT( (PyObject *)generator_heap->tmp_for_loop_1__for_iterator );
|
||
|
Py_DECREF( generator_heap->tmp_for_loop_1__for_iterator );
|
||
|
generator_heap->tmp_for_loop_1__for_iterator = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
// Re-raise.
|
||
|
generator_heap->exception_type = generator_heap->exception_keeper_type_1;
|
||
|
generator_heap->exception_value = generator_heap->exception_keeper_value_1;
|
||
|
generator_heap->exception_tb = generator_heap->exception_keeper_tb_1;
|
||
|
generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_1;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
// End of try:
|
||
|
try_end_1:;
|
||
|
}
|
||
|
|
||
|
Nuitka_Frame_MarkAsNotExecuting( generator->m_frame );
|
||
|
|
||
|
#if PYTHON_VERSION >= 370
|
||
|
Py_CLEAR( generator->m_exc_state.exc_type );
|
||
|
Py_CLEAR( generator->m_exc_state.exc_value );
|
||
|
Py_CLEAR( generator->m_exc_state.exc_traceback );
|
||
|
#elif PYTHON_VERSION >= 300
|
||
|
Py_CLEAR( generator->m_frame->m_frame.f_exc_type );
|
||
|
Py_CLEAR( generator->m_frame->m_frame.f_exc_value );
|
||
|
Py_CLEAR( generator->m_frame->m_frame.f_exc_traceback );
|
||
|
#endif
|
||
|
|
||
|
// Allow re-use of the frame again.
|
||
|
Py_DECREF( generator->m_frame );
|
||
|
goto frame_no_exception_1;
|
||
|
|
||
|
frame_exception_exit_1:;
|
||
|
|
||
|
// If it's not an exit exception, consider and create a traceback for it.
|
||
|
if ( !EXCEPTION_MATCH_GENERATOR( generator_heap->exception_type ) )
|
||
|
{
|
||
|
if ( generator_heap->exception_tb == NULL )
|
||
|
{
|
||
|
generator_heap->exception_tb = MAKE_TRACEBACK( generator->m_frame, generator_heap->exception_lineno );
|
||
|
}
|
||
|
else if ( generator_heap->exception_tb->tb_frame != &generator->m_frame->m_frame )
|
||
|
{
|
||
|
generator_heap->exception_tb = ADD_TRACEBACK( generator_heap->exception_tb, generator->m_frame, generator_heap->exception_lineno );
|
||
|
}
|
||
|
|
||
|
Nuitka_Frame_AttachLocals(
|
||
|
(struct Nuitka_FrameObject *)generator->m_frame,
|
||
|
generator_heap->type_description_1,
|
||
|
generator->m_closure[0],
|
||
|
generator_heap->var_i,
|
||
|
generator_heap->var_field
|
||
|
);
|
||
|
|
||
|
|
||
|
// 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_i );
|
||
|
generator_heap->var_i = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( generator_heap->var_field );
|
||
|
generator_heap->var_field = 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_for_loop_1__iter_value );
|
||
|
generator_heap->tmp_for_loop_1__iter_value = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
CHECK_OBJECT( (PyObject *)generator_heap->tmp_for_loop_1__for_iterator );
|
||
|
Py_DECREF( generator_heap->tmp_for_loop_1__for_iterator );
|
||
|
generator_heap->tmp_for_loop_1__for_iterator = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( generator_heap->var_i );
|
||
|
generator_heap->var_i = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( generator_heap->var_field );
|
||
|
generator_heap->var_field = 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 *urllib3$filepost$$$function_2_iter_field_objects$$$genobj_1_iter_field_objects_maker( void )
|
||
|
{
|
||
|
return Nuitka_Generator_New(
|
||
|
urllib3$filepost$$$function_2_iter_field_objects$$$genobj_1_iter_field_objects_context,
|
||
|
module_urllib3$filepost,
|
||
|
const_str_plain_iter_field_objects,
|
||
|
#if PYTHON_VERSION >= 350
|
||
|
NULL,
|
||
|
#endif
|
||
|
codeobj_d18c2022fbdc7e18c6dcffa8bd6388ca,
|
||
|
1,
|
||
|
sizeof(struct urllib3$filepost$$$function_2_iter_field_objects$$$genobj_1_iter_field_objects_locals)
|
||
|
);
|
||
|
}
|
||
|
|
||
|
|
||
|
static PyObject *impl_urllib3$filepost$$$function_3_iter_fields( 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_fields = python_pars[ 0 ];
|
||
|
PyObject *tmp_genexpr_1__$0 = NULL;
|
||
|
PyObject *tmp_genexpr_2__$0 = NULL;
|
||
|
struct Nuitka_FrameObject *frame_5f3ec7fbd342c9dfca8b5c7f5dbee1cc;
|
||
|
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
|
||
|
int tmp_res;
|
||
|
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_5f3ec7fbd342c9dfca8b5c7f5dbee1cc = 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_5f3ec7fbd342c9dfca8b5c7f5dbee1cc, codeobj_5f3ec7fbd342c9dfca8b5c7f5dbee1cc, module_urllib3$filepost, sizeof(void *) );
|
||
|
frame_5f3ec7fbd342c9dfca8b5c7f5dbee1cc = cache_frame_5f3ec7fbd342c9dfca8b5c7f5dbee1cc;
|
||
|
|
||
|
// Push the new frame as the currently active one.
|
||
|
pushFrameStack( frame_5f3ec7fbd342c9dfca8b5c7f5dbee1cc );
|
||
|
|
||
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
||
|
assert( Py_REFCNT( frame_5f3ec7fbd342c9dfca8b5c7f5dbee1cc ) == 2 ); // Frame stack
|
||
|
|
||
|
// Framed code:
|
||
|
{
|
||
|
nuitka_bool tmp_condition_result_1;
|
||
|
PyObject *tmp_isinstance_inst_1;
|
||
|
PyObject *tmp_isinstance_cls_1;
|
||
|
CHECK_OBJECT( par_fields );
|
||
|
tmp_isinstance_inst_1 = par_fields;
|
||
|
tmp_isinstance_cls_1 = (PyObject *)&PyDict_Type;
|
||
|
tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_1, tmp_isinstance_cls_1 );
|
||
|
if ( tmp_res == -1 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 57;
|
||
|
type_description_1 = "o";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_condition_result_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
||
|
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
|
||
|
{
|
||
|
goto branch_yes_1;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
goto branch_no_1;
|
||
|
}
|
||
|
branch_yes_1:;
|
||
|
{
|
||
|
{
|
||
|
PyObject *tmp_assign_source_1;
|
||
|
PyObject *tmp_iter_arg_1;
|
||
|
PyObject *tmp_called_name_1;
|
||
|
PyObject *tmp_source_name_1;
|
||
|
PyObject *tmp_mvar_value_1;
|
||
|
PyObject *tmp_args_element_name_1;
|
||
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_six );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_1 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_six );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_1 == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_NameError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "six" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 58;
|
||
|
type_description_1 = "o";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_source_name_1 = tmp_mvar_value_1;
|
||
|
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_iteritems );
|
||
|
if ( tmp_called_name_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 58;
|
||
|
type_description_1 = "o";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
if ( par_fields == NULL )
|
||
|
{
|
||
|
Py_DECREF( tmp_called_name_1 );
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "fields" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 58;
|
||
|
type_description_1 = "o";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_args_element_name_1 = par_fields;
|
||
|
frame_5f3ec7fbd342c9dfca8b5c7f5dbee1cc->m_frame.f_lineno = 58;
|
||
|
{
|
||
|
PyObject *call_args[] = { tmp_args_element_name_1 };
|
||
|
tmp_iter_arg_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args );
|
||
|
}
|
||
|
|
||
|
Py_DECREF( tmp_called_name_1 );
|
||
|
if ( tmp_iter_arg_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 58;
|
||
|
type_description_1 = "o";
|
||
|
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 = 58;
|
||
|
type_description_1 = "o";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
assert( tmp_genexpr_1__$0 == NULL );
|
||
|
tmp_genexpr_1__$0 = tmp_assign_source_1;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
// Tried code:
|
||
|
{
|
||
|
tmp_return_value = urllib3$filepost$$$function_3_iter_fields$$$genexpr_1_genexpr_maker();
|
||
|
|
||
|
((struct Nuitka_GeneratorObject *)tmp_return_value)->m_closure[0] = PyCell_NEW0( tmp_genexpr_1__$0 );
|
||
|
|
||
|
|
||
|
goto try_return_handler_2;
|
||
|
}
|
||
|
// tried codes exits in all cases
|
||
|
NUITKA_CANNOT_GET_HERE( urllib3$filepost$$$function_3_iter_fields );
|
||
|
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( urllib3$filepost$$$function_3_iter_fields );
|
||
|
return NULL;
|
||
|
outline_result_1:;
|
||
|
goto frame_return_exit_1;
|
||
|
}
|
||
|
branch_no_1:;
|
||
|
}
|
||
|
{
|
||
|
{
|
||
|
PyObject *tmp_assign_source_2;
|
||
|
PyObject *tmp_iter_arg_2;
|
||
|
CHECK_OBJECT( par_fields );
|
||
|
tmp_iter_arg_2 = par_fields;
|
||
|
tmp_assign_source_2 = MAKE_ITERATOR( tmp_iter_arg_2 );
|
||
|
if ( tmp_assign_source_2 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 60;
|
||
|
type_description_1 = "o";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
assert( tmp_genexpr_2__$0 == NULL );
|
||
|
tmp_genexpr_2__$0 = tmp_assign_source_2;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
// Tried code:
|
||
|
{
|
||
|
tmp_return_value = urllib3$filepost$$$function_3_iter_fields$$$genexpr_2_genexpr_maker();
|
||
|
|
||
|
((struct Nuitka_GeneratorObject *)tmp_return_value)->m_closure[0] = PyCell_NEW0( tmp_genexpr_2__$0 );
|
||
|
|
||
|
|
||
|
goto try_return_handler_3;
|
||
|
}
|
||
|
// tried codes exits in all cases
|
||
|
NUITKA_CANNOT_GET_HERE( urllib3$filepost$$$function_3_iter_fields );
|
||
|
return NULL;
|
||
|
// Return handler code:
|
||
|
try_return_handler_3:;
|
||
|
{
|
||
|
CHECK_OBJECT( (PyObject *)tmp_genexpr_2__$0 );
|
||
|
Py_DECREF( tmp_genexpr_2__$0 );
|
||
|
tmp_genexpr_2__$0 = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
goto outline_result_2;
|
||
|
}
|
||
|
// End of try:
|
||
|
}
|
||
|
{
|
||
|
CHECK_OBJECT( (PyObject *)tmp_genexpr_2__$0 );
|
||
|
Py_DECREF( tmp_genexpr_2__$0 );
|
||
|
tmp_genexpr_2__$0 = NULL;
|
||
|
|
||
|
}
|
||
|
// Return statement must have exited already.
|
||
|
NUITKA_CANNOT_GET_HERE( urllib3$filepost$$$function_3_iter_fields );
|
||
|
return NULL;
|
||
|
outline_result_2:;
|
||
|
goto frame_return_exit_1;
|
||
|
}
|
||
|
|
||
|
#if 0
|
||
|
RESTORE_FRAME_EXCEPTION( frame_5f3ec7fbd342c9dfca8b5c7f5dbee1cc );
|
||
|
#endif
|
||
|
|
||
|
// Put the previous frame back on top.
|
||
|
popFrameStack();
|
||
|
|
||
|
goto frame_no_exception_1;
|
||
|
|
||
|
frame_return_exit_1:;
|
||
|
#if 0
|
||
|
RESTORE_FRAME_EXCEPTION( frame_5f3ec7fbd342c9dfca8b5c7f5dbee1cc );
|
||
|
#endif
|
||
|
|
||
|
// Put the previous frame back on top.
|
||
|
popFrameStack();
|
||
|
|
||
|
goto try_return_handler_1;
|
||
|
|
||
|
frame_exception_exit_1:;
|
||
|
|
||
|
#if 0
|
||
|
RESTORE_FRAME_EXCEPTION( frame_5f3ec7fbd342c9dfca8b5c7f5dbee1cc );
|
||
|
#endif
|
||
|
|
||
|
if ( exception_tb == NULL )
|
||
|
{
|
||
|
exception_tb = MAKE_TRACEBACK( frame_5f3ec7fbd342c9dfca8b5c7f5dbee1cc, exception_lineno );
|
||
|
}
|
||
|
else if ( exception_tb->tb_frame != &frame_5f3ec7fbd342c9dfca8b5c7f5dbee1cc->m_frame )
|
||
|
{
|
||
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_5f3ec7fbd342c9dfca8b5c7f5dbee1cc, exception_lineno );
|
||
|
}
|
||
|
|
||
|
// Attachs locals to frame if any.
|
||
|
Nuitka_Frame_AttachLocals(
|
||
|
(struct Nuitka_FrameObject *)frame_5f3ec7fbd342c9dfca8b5c7f5dbee1cc,
|
||
|
type_description_1,
|
||
|
par_fields
|
||
|
);
|
||
|
|
||
|
|
||
|
// Release cached frame.
|
||
|
if ( frame_5f3ec7fbd342c9dfca8b5c7f5dbee1cc == cache_frame_5f3ec7fbd342c9dfca8b5c7f5dbee1cc )
|
||
|
{
|
||
|
Py_DECREF( frame_5f3ec7fbd342c9dfca8b5c7f5dbee1cc );
|
||
|
}
|
||
|
cache_frame_5f3ec7fbd342c9dfca8b5c7f5dbee1cc = NULL;
|
||
|
|
||
|
assertFrameObject( frame_5f3ec7fbd342c9dfca8b5c7f5dbee1cc );
|
||
|
|
||
|
// Put the previous frame back on top.
|
||
|
popFrameStack();
|
||
|
|
||
|
// Return the error.
|
||
|
goto try_except_handler_1;
|
||
|
|
||
|
frame_no_exception_1:;
|
||
|
// tried codes exits in all cases
|
||
|
NUITKA_CANNOT_GET_HERE( urllib3$filepost$$$function_3_iter_fields );
|
||
|
return NULL;
|
||
|
// Return handler code:
|
||
|
try_return_handler_1:;
|
||
|
{
|
||
|
Py_XDECREF( par_fields );
|
||
|
par_fields = 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_fields );
|
||
|
par_fields = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
// Re-raise.
|
||
|
exception_type = exception_keeper_type_1;
|
||
|
exception_value = exception_keeper_value_1;
|
||
|
exception_tb = exception_keeper_tb_1;
|
||
|
exception_lineno = exception_keeper_lineno_1;
|
||
|
|
||
|
goto function_exception_exit;
|
||
|
}
|
||
|
// End of try:
|
||
|
}
|
||
|
|
||
|
// Return statement must have exited already.
|
||
|
NUITKA_CANNOT_GET_HERE( urllib3$filepost$$$function_3_iter_fields );
|
||
|
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 urllib3$filepost$$$function_3_iter_fields$$$genexpr_1_genexpr_locals {
|
||
|
PyObject *var_k;
|
||
|
PyObject *var_v;
|
||
|
PyObject *tmp_iter_value_0;
|
||
|
PyObject *tmp_tuple_unpack_1__element_1;
|
||
|
PyObject *tmp_tuple_unpack_1__element_2;
|
||
|
PyObject *tmp_tuple_unpack_1__source_iter;
|
||
|
char const *type_description_1;
|
||
|
PyObject *exception_type;
|
||
|
PyObject *exception_value;
|
||
|
PyTracebackObject *exception_tb;
|
||
|
int exception_lineno;
|
||
|
PyObject *tmp_iterator_attempt;
|
||
|
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;
|
||
|
char yield_tmps[1024];
|
||
|
PyObject *exception_keeper_type_3;
|
||
|
PyObject *exception_keeper_value_3;
|
||
|
PyTracebackObject *exception_keeper_tb_3;
|
||
|
int exception_keeper_lineno_3;
|
||
|
PyObject *exception_keeper_type_4;
|
||
|
PyObject *exception_keeper_value_4;
|
||
|
PyTracebackObject *exception_keeper_tb_4;
|
||
|
int exception_keeper_lineno_4;
|
||
|
};
|
||
|
|
||
|
static PyObject *urllib3$filepost$$$function_3_iter_fields$$$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 urllib3$filepost$$$function_3_iter_fields$$$genexpr_1_genexpr_locals *generator_heap = (struct urllib3$filepost$$$function_3_iter_fields$$$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_k = NULL;
|
||
|
generator_heap->var_v = NULL;
|
||
|
generator_heap->tmp_iter_value_0 = NULL;
|
||
|
generator_heap->tmp_tuple_unpack_1__element_1 = NULL;
|
||
|
generator_heap->tmp_tuple_unpack_1__element_2 = NULL;
|
||
|
generator_heap->tmp_tuple_unpack_1__source_iter = 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_7fd2691939b2c458569406024cf2b973, module_urllib3$filepost, 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[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 = "Noo";
|
||
|
generator_heap->exception_lineno = 58;
|
||
|
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 );
|
||
|
}
|
||
|
|
||
|
}
|
||
|
{
|
||
|
// Tried code:
|
||
|
{
|
||
|
PyObject *tmp_assign_source_2;
|
||
|
PyObject *tmp_iter_arg_1;
|
||
|
CHECK_OBJECT( generator_heap->tmp_iter_value_0 );
|
||
|
tmp_iter_arg_1 = generator_heap->tmp_iter_value_0;
|
||
|
tmp_assign_source_2 = MAKE_UNPACK_ITERATOR( tmp_iter_arg_1 );
|
||
|
if ( tmp_assign_source_2 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
||
|
|
||
|
|
||
|
generator_heap->exception_lineno = 58;
|
||
|
generator_heap->type_description_1 = "Noo";
|
||
|
goto try_except_handler_3;
|
||
|
}
|
||
|
{
|
||
|
PyObject *old = generator_heap->tmp_tuple_unpack_1__source_iter;
|
||
|
generator_heap->tmp_tuple_unpack_1__source_iter = tmp_assign_source_2;
|
||
|
Py_XDECREF( old );
|
||
|
}
|
||
|
|
||
|
}
|
||
|
{
|
||
|
// Tried code:
|
||
|
{
|
||
|
PyObject *tmp_assign_source_3;
|
||
|
PyObject *tmp_unpack_1;
|
||
|
CHECK_OBJECT( generator_heap->tmp_tuple_unpack_1__source_iter );
|
||
|
tmp_unpack_1 = generator_heap->tmp_tuple_unpack_1__source_iter;
|
||
|
tmp_assign_source_3 = UNPACK_NEXT( tmp_unpack_1, 0, 2 );
|
||
|
if ( tmp_assign_source_3 == NULL )
|
||
|
{
|
||
|
if ( !ERROR_OCCURRED() )
|
||
|
{
|
||
|
generator_heap->exception_type = PyExc_StopIteration;
|
||
|
Py_INCREF( generator_heap->exception_type );
|
||
|
generator_heap->exception_value = NULL;
|
||
|
generator_heap->exception_tb = NULL;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
||
|
}
|
||
|
|
||
|
|
||
|
generator_heap->type_description_1 = "Noo";
|
||
|
generator_heap->exception_lineno = 58;
|
||
|
goto try_except_handler_4;
|
||
|
}
|
||
|
{
|
||
|
PyObject *old = generator_heap->tmp_tuple_unpack_1__element_1;
|
||
|
generator_heap->tmp_tuple_unpack_1__element_1 = tmp_assign_source_3;
|
||
|
Py_XDECREF( old );
|
||
|
}
|
||
|
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_4;
|
||
|
PyObject *tmp_unpack_2;
|
||
|
CHECK_OBJECT( generator_heap->tmp_tuple_unpack_1__source_iter );
|
||
|
tmp_unpack_2 = generator_heap->tmp_tuple_unpack_1__source_iter;
|
||
|
tmp_assign_source_4 = UNPACK_NEXT( tmp_unpack_2, 1, 2 );
|
||
|
if ( tmp_assign_source_4 == NULL )
|
||
|
{
|
||
|
if ( !ERROR_OCCURRED() )
|
||
|
{
|
||
|
generator_heap->exception_type = PyExc_StopIteration;
|
||
|
Py_INCREF( generator_heap->exception_type );
|
||
|
generator_heap->exception_value = NULL;
|
||
|
generator_heap->exception_tb = NULL;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
||
|
}
|
||
|
|
||
|
|
||
|
generator_heap->type_description_1 = "Noo";
|
||
|
generator_heap->exception_lineno = 58;
|
||
|
goto try_except_handler_4;
|
||
|
}
|
||
|
{
|
||
|
PyObject *old = generator_heap->tmp_tuple_unpack_1__element_2;
|
||
|
generator_heap->tmp_tuple_unpack_1__element_2 = tmp_assign_source_4;
|
||
|
Py_XDECREF( old );
|
||
|
}
|
||
|
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_iterator_name_1;
|
||
|
CHECK_OBJECT( generator_heap->tmp_tuple_unpack_1__source_iter );
|
||
|
tmp_iterator_name_1 = generator_heap->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 ) );
|
||
|
|
||
|
generator_heap->tmp_iterator_attempt = (*Py_TYPE( tmp_iterator_name_1 )->tp_iternext)( tmp_iterator_name_1 );
|
||
|
|
||
|
if (likely( generator_heap->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( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
||
|
|
||
|
generator_heap->type_description_1 = "Noo";
|
||
|
generator_heap->exception_lineno = 58;
|
||
|
goto try_except_handler_4;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
Py_DECREF( generator_heap->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( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
||
|
|
||
|
generator_heap->type_description_1 = "Noo";
|
||
|
generator_heap->exception_lineno = 58;
|
||
|
goto try_except_handler_4;
|
||
|
}
|
||
|
}
|
||
|
goto try_end_1;
|
||
|
// Exception handler code:
|
||
|
try_except_handler_4:;
|
||
|
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;
|
||
|
|
||
|
{
|
||
|
CHECK_OBJECT( (PyObject *)generator_heap->tmp_tuple_unpack_1__source_iter );
|
||
|
Py_DECREF( generator_heap->tmp_tuple_unpack_1__source_iter );
|
||
|
generator_heap->tmp_tuple_unpack_1__source_iter = 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 try_except_handler_3;
|
||
|
}
|
||
|
// End of try:
|
||
|
try_end_1:;
|
||
|
}
|
||
|
goto try_end_2;
|
||
|
// Exception handler code:
|
||
|
try_except_handler_3:;
|
||
|
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->tmp_tuple_unpack_1__element_1 );
|
||
|
generator_heap->tmp_tuple_unpack_1__element_1 = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( generator_heap->tmp_tuple_unpack_1__element_2 );
|
||
|
generator_heap->tmp_tuple_unpack_1__element_2 = 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 try_except_handler_2;
|
||
|
}
|
||
|
// End of try:
|
||
|
try_end_2:;
|
||
|
}
|
||
|
{
|
||
|
CHECK_OBJECT( (PyObject *)generator_heap->tmp_tuple_unpack_1__source_iter );
|
||
|
Py_DECREF( generator_heap->tmp_tuple_unpack_1__source_iter );
|
||
|
generator_heap->tmp_tuple_unpack_1__source_iter = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_5;
|
||
|
CHECK_OBJECT( generator_heap->tmp_tuple_unpack_1__element_1 );
|
||
|
tmp_assign_source_5 = generator_heap->tmp_tuple_unpack_1__element_1;
|
||
|
{
|
||
|
PyObject *old = generator_heap->var_k;
|
||
|
generator_heap->var_k = tmp_assign_source_5;
|
||
|
Py_INCREF( generator_heap->var_k );
|
||
|
Py_XDECREF( old );
|
||
|
}
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( generator_heap->tmp_tuple_unpack_1__element_1 );
|
||
|
generator_heap->tmp_tuple_unpack_1__element_1 = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_6;
|
||
|
CHECK_OBJECT( generator_heap->tmp_tuple_unpack_1__element_2 );
|
||
|
tmp_assign_source_6 = generator_heap->tmp_tuple_unpack_1__element_2;
|
||
|
{
|
||
|
PyObject *old = generator_heap->var_v;
|
||
|
generator_heap->var_v = tmp_assign_source_6;
|
||
|
Py_INCREF( generator_heap->var_v );
|
||
|
Py_XDECREF( old );
|
||
|
}
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( generator_heap->tmp_tuple_unpack_1__element_2 );
|
||
|
generator_heap->tmp_tuple_unpack_1__element_2 = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_expression_name_1;
|
||
|
PyObject *tmp_tuple_element_1;
|
||
|
if ( generator_heap->var_k == NULL )
|
||
|
{
|
||
|
|
||
|
generator_heap->exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( generator_heap->exception_type );
|
||
|
generator_heap->exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "k" );
|
||
|
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 = 58;
|
||
|
generator_heap->type_description_1 = "Noo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
|
||
|
tmp_tuple_element_1 = generator_heap->var_k;
|
||
|
tmp_expression_name_1 = PyTuple_New( 2 );
|
||
|
Py_INCREF( tmp_tuple_element_1 );
|
||
|
PyTuple_SET_ITEM( tmp_expression_name_1, 0, tmp_tuple_element_1 );
|
||
|
if ( generator_heap->var_v == NULL )
|
||
|
{
|
||
|
Py_DECREF( tmp_expression_name_1 );
|
||
|
generator_heap->exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( generator_heap->exception_type );
|
||
|
generator_heap->exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "v" );
|
||
|
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 = 58;
|
||
|
generator_heap->type_description_1 = "Noo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
|
||
|
tmp_tuple_element_1 = generator_heap->var_v;
|
||
|
Py_INCREF( tmp_tuple_element_1 );
|
||
|
PyTuple_SET_ITEM( tmp_expression_name_1, 1, tmp_tuple_element_1 );
|
||
|
Nuitka_PreserveHeap( generator_heap->yield_tmps, &tmp_tuple_element_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_tuple_element_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 = 58;
|
||
|
generator_heap->type_description_1 = "Noo";
|
||
|
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 = 58;
|
||
|
generator_heap->type_description_1 = "Noo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
goto loop_start_1;
|
||
|
loop_end_1:;
|
||
|
}
|
||
|
goto try_end_3;
|
||
|
// Exception handler code:
|
||
|
try_except_handler_2:;
|
||
|
generator_heap->exception_keeper_type_3 = generator_heap->exception_type;
|
||
|
generator_heap->exception_keeper_value_3 = generator_heap->exception_value;
|
||
|
generator_heap->exception_keeper_tb_3 = generator_heap->exception_tb;
|
||
|
generator_heap->exception_keeper_lineno_3 = 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_3;
|
||
|
generator_heap->exception_value = generator_heap->exception_keeper_value_3;
|
||
|
generator_heap->exception_tb = generator_heap->exception_keeper_tb_3;
|
||
|
generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_3;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
// End of try:
|
||
|
try_end_3:;
|
||
|
}
|
||
|
|
||
|
Nuitka_Frame_MarkAsNotExecuting( generator->m_frame );
|
||
|
|
||
|
#if PYTHON_VERSION >= 370
|
||
|
Py_CLEAR( generator->m_exc_state.exc_type );
|
||
|
Py_CLEAR( generator->m_exc_state.exc_value );
|
||
|
Py_CLEAR( generator->m_exc_state.exc_traceback );
|
||
|
#elif PYTHON_VERSION >= 300
|
||
|
Py_CLEAR( generator->m_frame->m_frame.f_exc_type );
|
||
|
Py_CLEAR( generator->m_frame->m_frame.f_exc_value );
|
||
|
Py_CLEAR( generator->m_frame->m_frame.f_exc_traceback );
|
||
|
#endif
|
||
|
|
||
|
// Allow re-use of the frame again.
|
||
|
Py_DECREF( generator->m_frame );
|
||
|
goto frame_no_exception_1;
|
||
|
|
||
|
frame_exception_exit_1:;
|
||
|
|
||
|
// If it's not an exit exception, consider and create a traceback for it.
|
||
|
if ( !EXCEPTION_MATCH_GENERATOR( generator_heap->exception_type ) )
|
||
|
{
|
||
|
if ( generator_heap->exception_tb == NULL )
|
||
|
{
|
||
|
generator_heap->exception_tb = MAKE_TRACEBACK( generator->m_frame, generator_heap->exception_lineno );
|
||
|
}
|
||
|
else if ( generator_heap->exception_tb->tb_frame != &generator->m_frame->m_frame )
|
||
|
{
|
||
|
generator_heap->exception_tb = ADD_TRACEBACK( generator_heap->exception_tb, generator->m_frame, generator_heap->exception_lineno );
|
||
|
}
|
||
|
|
||
|
Nuitka_Frame_AttachLocals(
|
||
|
(struct Nuitka_FrameObject *)generator->m_frame,
|
||
|
generator_heap->type_description_1,
|
||
|
NULL,
|
||
|
generator_heap->var_k,
|
||
|
generator_heap->var_v
|
||
|
);
|
||
|
|
||
|
|
||
|
// 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_4;
|
||
|
// Exception handler code:
|
||
|
try_except_handler_1:;
|
||
|
generator_heap->exception_keeper_type_4 = generator_heap->exception_type;
|
||
|
generator_heap->exception_keeper_value_4 = generator_heap->exception_value;
|
||
|
generator_heap->exception_keeper_tb_4 = generator_heap->exception_tb;
|
||
|
generator_heap->exception_keeper_lineno_4 = 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_k );
|
||
|
generator_heap->var_k = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( generator_heap->var_v );
|
||
|
generator_heap->var_v = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
// Re-raise.
|
||
|
generator_heap->exception_type = generator_heap->exception_keeper_type_4;
|
||
|
generator_heap->exception_value = generator_heap->exception_keeper_value_4;
|
||
|
generator_heap->exception_tb = generator_heap->exception_keeper_tb_4;
|
||
|
generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_4;
|
||
|
|
||
|
goto function_exception_exit;
|
||
|
}
|
||
|
// End of try:
|
||
|
try_end_4:;
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( generator_heap->tmp_iter_value_0 );
|
||
|
generator_heap->tmp_iter_value_0 = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( generator_heap->var_k );
|
||
|
generator_heap->var_k = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( generator_heap->var_v );
|
||
|
generator_heap->var_v = 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 *urllib3$filepost$$$function_3_iter_fields$$$genexpr_1_genexpr_maker( void )
|
||
|
{
|
||
|
return Nuitka_Generator_New(
|
||
|
urllib3$filepost$$$function_3_iter_fields$$$genexpr_1_genexpr_context,
|
||
|
module_urllib3$filepost,
|
||
|
const_str_angle_genexpr,
|
||
|
#if PYTHON_VERSION >= 350
|
||
|
const_str_digest_9a1a441894293035893a91dbf6d4249a,
|
||
|
#endif
|
||
|
codeobj_7fd2691939b2c458569406024cf2b973,
|
||
|
1,
|
||
|
sizeof(struct urllib3$filepost$$$function_3_iter_fields$$$genexpr_1_genexpr_locals)
|
||
|
);
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
struct urllib3$filepost$$$function_3_iter_fields$$$genexpr_2_genexpr_locals {
|
||
|
PyObject *var_k;
|
||
|
PyObject *var_v;
|
||
|
PyObject *tmp_iter_value_0;
|
||
|
PyObject *tmp_tuple_unpack_1__element_1;
|
||
|
PyObject *tmp_tuple_unpack_1__element_2;
|
||
|
PyObject *tmp_tuple_unpack_1__source_iter;
|
||
|
char const *type_description_1;
|
||
|
PyObject *exception_type;
|
||
|
PyObject *exception_value;
|
||
|
PyTracebackObject *exception_tb;
|
||
|
int exception_lineno;
|
||
|
PyObject *tmp_iterator_attempt;
|
||
|
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;
|
||
|
char yield_tmps[1024];
|
||
|
PyObject *exception_keeper_type_3;
|
||
|
PyObject *exception_keeper_value_3;
|
||
|
PyTracebackObject *exception_keeper_tb_3;
|
||
|
int exception_keeper_lineno_3;
|
||
|
PyObject *exception_keeper_type_4;
|
||
|
PyObject *exception_keeper_value_4;
|
||
|
PyTracebackObject *exception_keeper_tb_4;
|
||
|
int exception_keeper_lineno_4;
|
||
|
};
|
||
|
|
||
|
static PyObject *urllib3$filepost$$$function_3_iter_fields$$$genexpr_2_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 urllib3$filepost$$$function_3_iter_fields$$$genexpr_2_genexpr_locals *generator_heap = (struct urllib3$filepost$$$function_3_iter_fields$$$genexpr_2_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_k = NULL;
|
||
|
generator_heap->var_v = NULL;
|
||
|
generator_heap->tmp_iter_value_0 = NULL;
|
||
|
generator_heap->tmp_tuple_unpack_1__element_1 = NULL;
|
||
|
generator_heap->tmp_tuple_unpack_1__element_2 = NULL;
|
||
|
generator_heap->tmp_tuple_unpack_1__source_iter = 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_e2e550d64e9fb25d4c98c68236122364, module_urllib3$filepost, 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[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 = "Noo";
|
||
|
generator_heap->exception_lineno = 60;
|
||
|
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 );
|
||
|
}
|
||
|
|
||
|
}
|
||
|
{
|
||
|
// Tried code:
|
||
|
{
|
||
|
PyObject *tmp_assign_source_2;
|
||
|
PyObject *tmp_iter_arg_1;
|
||
|
CHECK_OBJECT( generator_heap->tmp_iter_value_0 );
|
||
|
tmp_iter_arg_1 = generator_heap->tmp_iter_value_0;
|
||
|
tmp_assign_source_2 = MAKE_UNPACK_ITERATOR( tmp_iter_arg_1 );
|
||
|
if ( tmp_assign_source_2 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
||
|
|
||
|
|
||
|
generator_heap->exception_lineno = 60;
|
||
|
generator_heap->type_description_1 = "Noo";
|
||
|
goto try_except_handler_3;
|
||
|
}
|
||
|
{
|
||
|
PyObject *old = generator_heap->tmp_tuple_unpack_1__source_iter;
|
||
|
generator_heap->tmp_tuple_unpack_1__source_iter = tmp_assign_source_2;
|
||
|
Py_XDECREF( old );
|
||
|
}
|
||
|
|
||
|
}
|
||
|
{
|
||
|
// Tried code:
|
||
|
{
|
||
|
PyObject *tmp_assign_source_3;
|
||
|
PyObject *tmp_unpack_1;
|
||
|
CHECK_OBJECT( generator_heap->tmp_tuple_unpack_1__source_iter );
|
||
|
tmp_unpack_1 = generator_heap->tmp_tuple_unpack_1__source_iter;
|
||
|
tmp_assign_source_3 = UNPACK_NEXT( tmp_unpack_1, 0, 2 );
|
||
|
if ( tmp_assign_source_3 == NULL )
|
||
|
{
|
||
|
if ( !ERROR_OCCURRED() )
|
||
|
{
|
||
|
generator_heap->exception_type = PyExc_StopIteration;
|
||
|
Py_INCREF( generator_heap->exception_type );
|
||
|
generator_heap->exception_value = NULL;
|
||
|
generator_heap->exception_tb = NULL;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
||
|
}
|
||
|
|
||
|
|
||
|
generator_heap->type_description_1 = "Noo";
|
||
|
generator_heap->exception_lineno = 60;
|
||
|
goto try_except_handler_4;
|
||
|
}
|
||
|
{
|
||
|
PyObject *old = generator_heap->tmp_tuple_unpack_1__element_1;
|
||
|
generator_heap->tmp_tuple_unpack_1__element_1 = tmp_assign_source_3;
|
||
|
Py_XDECREF( old );
|
||
|
}
|
||
|
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_4;
|
||
|
PyObject *tmp_unpack_2;
|
||
|
CHECK_OBJECT( generator_heap->tmp_tuple_unpack_1__source_iter );
|
||
|
tmp_unpack_2 = generator_heap->tmp_tuple_unpack_1__source_iter;
|
||
|
tmp_assign_source_4 = UNPACK_NEXT( tmp_unpack_2, 1, 2 );
|
||
|
if ( tmp_assign_source_4 == NULL )
|
||
|
{
|
||
|
if ( !ERROR_OCCURRED() )
|
||
|
{
|
||
|
generator_heap->exception_type = PyExc_StopIteration;
|
||
|
Py_INCREF( generator_heap->exception_type );
|
||
|
generator_heap->exception_value = NULL;
|
||
|
generator_heap->exception_tb = NULL;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
FETCH_ERROR_OCCURRED( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
||
|
}
|
||
|
|
||
|
|
||
|
generator_heap->type_description_1 = "Noo";
|
||
|
generator_heap->exception_lineno = 60;
|
||
|
goto try_except_handler_4;
|
||
|
}
|
||
|
{
|
||
|
PyObject *old = generator_heap->tmp_tuple_unpack_1__element_2;
|
||
|
generator_heap->tmp_tuple_unpack_1__element_2 = tmp_assign_source_4;
|
||
|
Py_XDECREF( old );
|
||
|
}
|
||
|
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_iterator_name_1;
|
||
|
CHECK_OBJECT( generator_heap->tmp_tuple_unpack_1__source_iter );
|
||
|
tmp_iterator_name_1 = generator_heap->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 ) );
|
||
|
|
||
|
generator_heap->tmp_iterator_attempt = (*Py_TYPE( tmp_iterator_name_1 )->tp_iternext)( tmp_iterator_name_1 );
|
||
|
|
||
|
if (likely( generator_heap->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( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
||
|
|
||
|
generator_heap->type_description_1 = "Noo";
|
||
|
generator_heap->exception_lineno = 60;
|
||
|
goto try_except_handler_4;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
Py_DECREF( generator_heap->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( &generator_heap->exception_type, &generator_heap->exception_value, &generator_heap->exception_tb );
|
||
|
|
||
|
generator_heap->type_description_1 = "Noo";
|
||
|
generator_heap->exception_lineno = 60;
|
||
|
goto try_except_handler_4;
|
||
|
}
|
||
|
}
|
||
|
goto try_end_1;
|
||
|
// Exception handler code:
|
||
|
try_except_handler_4:;
|
||
|
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;
|
||
|
|
||
|
{
|
||
|
CHECK_OBJECT( (PyObject *)generator_heap->tmp_tuple_unpack_1__source_iter );
|
||
|
Py_DECREF( generator_heap->tmp_tuple_unpack_1__source_iter );
|
||
|
generator_heap->tmp_tuple_unpack_1__source_iter = 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 try_except_handler_3;
|
||
|
}
|
||
|
// End of try:
|
||
|
try_end_1:;
|
||
|
}
|
||
|
goto try_end_2;
|
||
|
// Exception handler code:
|
||
|
try_except_handler_3:;
|
||
|
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->tmp_tuple_unpack_1__element_1 );
|
||
|
generator_heap->tmp_tuple_unpack_1__element_1 = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( generator_heap->tmp_tuple_unpack_1__element_2 );
|
||
|
generator_heap->tmp_tuple_unpack_1__element_2 = 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 try_except_handler_2;
|
||
|
}
|
||
|
// End of try:
|
||
|
try_end_2:;
|
||
|
}
|
||
|
{
|
||
|
CHECK_OBJECT( (PyObject *)generator_heap->tmp_tuple_unpack_1__source_iter );
|
||
|
Py_DECREF( generator_heap->tmp_tuple_unpack_1__source_iter );
|
||
|
generator_heap->tmp_tuple_unpack_1__source_iter = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_5;
|
||
|
CHECK_OBJECT( generator_heap->tmp_tuple_unpack_1__element_1 );
|
||
|
tmp_assign_source_5 = generator_heap->tmp_tuple_unpack_1__element_1;
|
||
|
{
|
||
|
PyObject *old = generator_heap->var_k;
|
||
|
generator_heap->var_k = tmp_assign_source_5;
|
||
|
Py_INCREF( generator_heap->var_k );
|
||
|
Py_XDECREF( old );
|
||
|
}
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( generator_heap->tmp_tuple_unpack_1__element_1 );
|
||
|
generator_heap->tmp_tuple_unpack_1__element_1 = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_6;
|
||
|
CHECK_OBJECT( generator_heap->tmp_tuple_unpack_1__element_2 );
|
||
|
tmp_assign_source_6 = generator_heap->tmp_tuple_unpack_1__element_2;
|
||
|
{
|
||
|
PyObject *old = generator_heap->var_v;
|
||
|
generator_heap->var_v = tmp_assign_source_6;
|
||
|
Py_INCREF( generator_heap->var_v );
|
||
|
Py_XDECREF( old );
|
||
|
}
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( generator_heap->tmp_tuple_unpack_1__element_2 );
|
||
|
generator_heap->tmp_tuple_unpack_1__element_2 = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_expression_name_1;
|
||
|
PyObject *tmp_tuple_element_1;
|
||
|
if ( generator_heap->var_k == NULL )
|
||
|
{
|
||
|
|
||
|
generator_heap->exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( generator_heap->exception_type );
|
||
|
generator_heap->exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "k" );
|
||
|
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 = 60;
|
||
|
generator_heap->type_description_1 = "Noo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
|
||
|
tmp_tuple_element_1 = generator_heap->var_k;
|
||
|
tmp_expression_name_1 = PyTuple_New( 2 );
|
||
|
Py_INCREF( tmp_tuple_element_1 );
|
||
|
PyTuple_SET_ITEM( tmp_expression_name_1, 0, tmp_tuple_element_1 );
|
||
|
if ( generator_heap->var_v == NULL )
|
||
|
{
|
||
|
Py_DECREF( tmp_expression_name_1 );
|
||
|
generator_heap->exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( generator_heap->exception_type );
|
||
|
generator_heap->exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "v" );
|
||
|
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 = 60;
|
||
|
generator_heap->type_description_1 = "Noo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
|
||
|
tmp_tuple_element_1 = generator_heap->var_v;
|
||
|
Py_INCREF( tmp_tuple_element_1 );
|
||
|
PyTuple_SET_ITEM( tmp_expression_name_1, 1, tmp_tuple_element_1 );
|
||
|
Nuitka_PreserveHeap( generator_heap->yield_tmps, &tmp_tuple_element_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_tuple_element_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 = 60;
|
||
|
generator_heap->type_description_1 = "Noo";
|
||
|
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 = 60;
|
||
|
generator_heap->type_description_1 = "Noo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
goto loop_start_1;
|
||
|
loop_end_1:;
|
||
|
}
|
||
|
goto try_end_3;
|
||
|
// Exception handler code:
|
||
|
try_except_handler_2:;
|
||
|
generator_heap->exception_keeper_type_3 = generator_heap->exception_type;
|
||
|
generator_heap->exception_keeper_value_3 = generator_heap->exception_value;
|
||
|
generator_heap->exception_keeper_tb_3 = generator_heap->exception_tb;
|
||
|
generator_heap->exception_keeper_lineno_3 = 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_3;
|
||
|
generator_heap->exception_value = generator_heap->exception_keeper_value_3;
|
||
|
generator_heap->exception_tb = generator_heap->exception_keeper_tb_3;
|
||
|
generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_3;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
// End of try:
|
||
|
try_end_3:;
|
||
|
}
|
||
|
|
||
|
Nuitka_Frame_MarkAsNotExecuting( generator->m_frame );
|
||
|
|
||
|
#if PYTHON_VERSION >= 370
|
||
|
Py_CLEAR( generator->m_exc_state.exc_type );
|
||
|
Py_CLEAR( generator->m_exc_state.exc_value );
|
||
|
Py_CLEAR( generator->m_exc_state.exc_traceback );
|
||
|
#elif PYTHON_VERSION >= 300
|
||
|
Py_CLEAR( generator->m_frame->m_frame.f_exc_type );
|
||
|
Py_CLEAR( generator->m_frame->m_frame.f_exc_value );
|
||
|
Py_CLEAR( generator->m_frame->m_frame.f_exc_traceback );
|
||
|
#endif
|
||
|
|
||
|
// Allow re-use of the frame again.
|
||
|
Py_DECREF( generator->m_frame );
|
||
|
goto frame_no_exception_1;
|
||
|
|
||
|
frame_exception_exit_1:;
|
||
|
|
||
|
// If it's not an exit exception, consider and create a traceback for it.
|
||
|
if ( !EXCEPTION_MATCH_GENERATOR( generator_heap->exception_type ) )
|
||
|
{
|
||
|
if ( generator_heap->exception_tb == NULL )
|
||
|
{
|
||
|
generator_heap->exception_tb = MAKE_TRACEBACK( generator->m_frame, generator_heap->exception_lineno );
|
||
|
}
|
||
|
else if ( generator_heap->exception_tb->tb_frame != &generator->m_frame->m_frame )
|
||
|
{
|
||
|
generator_heap->exception_tb = ADD_TRACEBACK( generator_heap->exception_tb, generator->m_frame, generator_heap->exception_lineno );
|
||
|
}
|
||
|
|
||
|
Nuitka_Frame_AttachLocals(
|
||
|
(struct Nuitka_FrameObject *)generator->m_frame,
|
||
|
generator_heap->type_description_1,
|
||
|
NULL,
|
||
|
generator_heap->var_k,
|
||
|
generator_heap->var_v
|
||
|
);
|
||
|
|
||
|
|
||
|
// 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_4;
|
||
|
// Exception handler code:
|
||
|
try_except_handler_1:;
|
||
|
generator_heap->exception_keeper_type_4 = generator_heap->exception_type;
|
||
|
generator_heap->exception_keeper_value_4 = generator_heap->exception_value;
|
||
|
generator_heap->exception_keeper_tb_4 = generator_heap->exception_tb;
|
||
|
generator_heap->exception_keeper_lineno_4 = 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_k );
|
||
|
generator_heap->var_k = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( generator_heap->var_v );
|
||
|
generator_heap->var_v = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
// Re-raise.
|
||
|
generator_heap->exception_type = generator_heap->exception_keeper_type_4;
|
||
|
generator_heap->exception_value = generator_heap->exception_keeper_value_4;
|
||
|
generator_heap->exception_tb = generator_heap->exception_keeper_tb_4;
|
||
|
generator_heap->exception_lineno = generator_heap->exception_keeper_lineno_4;
|
||
|
|
||
|
goto function_exception_exit;
|
||
|
}
|
||
|
// End of try:
|
||
|
try_end_4:;
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( generator_heap->tmp_iter_value_0 );
|
||
|
generator_heap->tmp_iter_value_0 = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( generator_heap->var_k );
|
||
|
generator_heap->var_k = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( generator_heap->var_v );
|
||
|
generator_heap->var_v = 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 *urllib3$filepost$$$function_3_iter_fields$$$genexpr_2_genexpr_maker( void )
|
||
|
{
|
||
|
return Nuitka_Generator_New(
|
||
|
urllib3$filepost$$$function_3_iter_fields$$$genexpr_2_genexpr_context,
|
||
|
module_urllib3$filepost,
|
||
|
const_str_angle_genexpr,
|
||
|
#if PYTHON_VERSION >= 350
|
||
|
const_str_digest_9a1a441894293035893a91dbf6d4249a,
|
||
|
#endif
|
||
|
codeobj_e2e550d64e9fb25d4c98c68236122364,
|
||
|
1,
|
||
|
sizeof(struct urllib3$filepost$$$function_3_iter_fields$$$genexpr_2_genexpr_locals)
|
||
|
);
|
||
|
}
|
||
|
|
||
|
|
||
|
static PyObject *impl_urllib3$filepost$$$function_4_encode_multipart_formdata( 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_fields = python_pars[ 0 ];
|
||
|
PyObject *par_boundary = python_pars[ 1 ];
|
||
|
PyObject *var_body = NULL;
|
||
|
PyObject *var_field = NULL;
|
||
|
PyObject *var_data = NULL;
|
||
|
PyObject *var_content_type = NULL;
|
||
|
PyObject *tmp_for_loop_1__for_iterator = NULL;
|
||
|
PyObject *tmp_for_loop_1__iter_value = NULL;
|
||
|
struct Nuitka_FrameObject *frame_27cce2e6de14d29bbcb3a987e8d18bbf;
|
||
|
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;
|
||
|
int tmp_res;
|
||
|
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 *tmp_return_value = NULL;
|
||
|
static struct Nuitka_FrameObject *cache_frame_27cce2e6de14d29bbcb3a987e8d18bbf = 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;
|
||
|
|
||
|
// Actual function code.
|
||
|
{
|
||
|
// Tried code:
|
||
|
MAKE_OR_REUSE_FRAME( cache_frame_27cce2e6de14d29bbcb3a987e8d18bbf, codeobj_27cce2e6de14d29bbcb3a987e8d18bbf, module_urllib3$filepost, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) );
|
||
|
frame_27cce2e6de14d29bbcb3a987e8d18bbf = cache_frame_27cce2e6de14d29bbcb3a987e8d18bbf;
|
||
|
|
||
|
// Push the new frame as the currently active one.
|
||
|
pushFrameStack( frame_27cce2e6de14d29bbcb3a987e8d18bbf );
|
||
|
|
||
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
||
|
assert( Py_REFCNT( frame_27cce2e6de14d29bbcb3a987e8d18bbf ) == 2 ); // Frame stack
|
||
|
|
||
|
// Framed code:
|
||
|
{
|
||
|
PyObject *tmp_assign_source_1;
|
||
|
PyObject *tmp_called_name_1;
|
||
|
PyObject *tmp_mvar_value_1;
|
||
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_BytesIO );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_1 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_BytesIO );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_1 == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_NameError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "BytesIO" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 74;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_called_name_1 = tmp_mvar_value_1;
|
||
|
frame_27cce2e6de14d29bbcb3a987e8d18bbf->m_frame.f_lineno = 74;
|
||
|
tmp_assign_source_1 = CALL_FUNCTION_NO_ARGS( tmp_called_name_1 );
|
||
|
if ( tmp_assign_source_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 74;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
assert( var_body == NULL );
|
||
|
var_body = tmp_assign_source_1;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
nuitka_bool tmp_condition_result_1;
|
||
|
PyObject *tmp_compexpr_left_1;
|
||
|
PyObject *tmp_compexpr_right_1;
|
||
|
if ( par_boundary == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "boundary" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 75;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_compexpr_left_1 = par_boundary;
|
||
|
tmp_compexpr_right_1 = Py_None;
|
||
|
tmp_condition_result_1 = ( tmp_compexpr_left_1 == tmp_compexpr_right_1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
||
|
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
|
||
|
{
|
||
|
goto branch_yes_1;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
goto branch_no_1;
|
||
|
}
|
||
|
branch_yes_1:;
|
||
|
{
|
||
|
PyObject *tmp_assign_source_2;
|
||
|
PyObject *tmp_called_name_2;
|
||
|
PyObject *tmp_mvar_value_2;
|
||
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_choose_boundary );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_2 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_choose_boundary );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_2 == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_NameError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "choose_boundary" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 76;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_called_name_2 = tmp_mvar_value_2;
|
||
|
frame_27cce2e6de14d29bbcb3a987e8d18bbf->m_frame.f_lineno = 76;
|
||
|
tmp_assign_source_2 = CALL_FUNCTION_NO_ARGS( tmp_called_name_2 );
|
||
|
if ( tmp_assign_source_2 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 76;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
{
|
||
|
PyObject *old = par_boundary;
|
||
|
par_boundary = tmp_assign_source_2;
|
||
|
Py_XDECREF( old );
|
||
|
}
|
||
|
|
||
|
}
|
||
|
branch_no_1:;
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_3;
|
||
|
PyObject *tmp_iter_arg_1;
|
||
|
PyObject *tmp_called_name_3;
|
||
|
PyObject *tmp_mvar_value_3;
|
||
|
PyObject *tmp_args_element_name_1;
|
||
|
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_iter_field_objects );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_3 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_iter_field_objects );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_3 == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_NameError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "iter_field_objects" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 78;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_called_name_3 = tmp_mvar_value_3;
|
||
|
if ( par_fields == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "fields" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 78;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_args_element_name_1 = par_fields;
|
||
|
frame_27cce2e6de14d29bbcb3a987e8d18bbf->m_frame.f_lineno = 78;
|
||
|
{
|
||
|
PyObject *call_args[] = { tmp_args_element_name_1 };
|
||
|
tmp_iter_arg_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_3, call_args );
|
||
|
}
|
||
|
|
||
|
if ( tmp_iter_arg_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 78;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_assign_source_3 = MAKE_ITERATOR( tmp_iter_arg_1 );
|
||
|
Py_DECREF( tmp_iter_arg_1 );
|
||
|
if ( tmp_assign_source_3 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 78;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
assert( tmp_for_loop_1__for_iterator == NULL );
|
||
|
tmp_for_loop_1__for_iterator = tmp_assign_source_3;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
// Tried code:
|
||
|
{
|
||
|
loop_start_1:;
|
||
|
{
|
||
|
PyObject *tmp_next_source_1;
|
||
|
PyObject *tmp_assign_source_4;
|
||
|
CHECK_OBJECT( tmp_for_loop_1__for_iterator );
|
||
|
tmp_next_source_1 = tmp_for_loop_1__for_iterator;
|
||
|
tmp_assign_source_4 = ITERATOR_NEXT( tmp_next_source_1 );
|
||
|
if ( tmp_assign_source_4 == NULL )
|
||
|
{
|
||
|
if ( CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED() )
|
||
|
{
|
||
|
|
||
|
goto loop_end_1;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
type_description_1 = "oooooo";
|
||
|
exception_lineno = 78;
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
{
|
||
|
PyObject *old = tmp_for_loop_1__iter_value;
|
||
|
tmp_for_loop_1__iter_value = tmp_assign_source_4;
|
||
|
Py_XDECREF( old );
|
||
|
}
|
||
|
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_5;
|
||
|
CHECK_OBJECT( tmp_for_loop_1__iter_value );
|
||
|
tmp_assign_source_5 = tmp_for_loop_1__iter_value;
|
||
|
{
|
||
|
PyObject *old = var_field;
|
||
|
var_field = tmp_assign_source_5;
|
||
|
Py_INCREF( var_field );
|
||
|
Py_XDECREF( old );
|
||
|
}
|
||
|
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_called_name_4;
|
||
|
PyObject *tmp_source_name_1;
|
||
|
PyObject *tmp_args_element_name_2;
|
||
|
PyObject *tmp_called_name_5;
|
||
|
PyObject *tmp_mvar_value_4;
|
||
|
PyObject *tmp_args_element_name_3;
|
||
|
PyObject *tmp_left_name_1;
|
||
|
PyObject *tmp_right_name_1;
|
||
|
if ( var_body == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "body" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 79;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
|
||
|
tmp_source_name_1 = var_body;
|
||
|
tmp_called_name_4 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_write );
|
||
|
if ( tmp_called_name_4 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 79;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
tmp_mvar_value_4 = GET_STRING_DICT_VALUE( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_b );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_4 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_4 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_b );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_4 == NULL )
|
||
|
{
|
||
|
Py_DECREF( tmp_called_name_4 );
|
||
|
exception_type = PyExc_NameError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "b" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 79;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
|
||
|
tmp_called_name_5 = tmp_mvar_value_4;
|
||
|
tmp_left_name_1 = const_str_digest_d150668f670602a001be2bb4f1ccf17f;
|
||
|
if ( par_boundary == NULL )
|
||
|
{
|
||
|
Py_DECREF( tmp_called_name_4 );
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "boundary" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 79;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
|
||
|
tmp_right_name_1 = par_boundary;
|
||
|
tmp_args_element_name_3 = BINARY_OPERATION_REMAINDER( tmp_left_name_1, tmp_right_name_1 );
|
||
|
if ( tmp_args_element_name_3 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
Py_DECREF( tmp_called_name_4 );
|
||
|
|
||
|
exception_lineno = 79;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
frame_27cce2e6de14d29bbcb3a987e8d18bbf->m_frame.f_lineno = 79;
|
||
|
{
|
||
|
PyObject *call_args[] = { tmp_args_element_name_3 };
|
||
|
tmp_args_element_name_2 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_5, call_args );
|
||
|
}
|
||
|
|
||
|
Py_DECREF( tmp_args_element_name_3 );
|
||
|
if ( tmp_args_element_name_2 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
Py_DECREF( tmp_called_name_4 );
|
||
|
|
||
|
exception_lineno = 79;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
frame_27cce2e6de14d29bbcb3a987e8d18bbf->m_frame.f_lineno = 79;
|
||
|
{
|
||
|
PyObject *call_args[] = { tmp_args_element_name_2 };
|
||
|
tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_4, call_args );
|
||
|
}
|
||
|
|
||
|
Py_DECREF( tmp_called_name_4 );
|
||
|
Py_DECREF( tmp_args_element_name_2 );
|
||
|
if ( tmp_unused == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 79;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
Py_DECREF( tmp_unused );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_called_name_6;
|
||
|
PyObject *tmp_source_name_2;
|
||
|
PyObject *tmp_called_name_7;
|
||
|
PyObject *tmp_mvar_value_5;
|
||
|
PyObject *tmp_args_element_name_4;
|
||
|
PyObject *tmp_args_element_name_5;
|
||
|
PyObject *tmp_called_instance_1;
|
||
|
tmp_mvar_value_5 = GET_STRING_DICT_VALUE( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_writer );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_5 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_5 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_writer );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_5 == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_NameError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "writer" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 81;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
|
||
|
tmp_called_name_7 = tmp_mvar_value_5;
|
||
|
if ( var_body == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "body" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 81;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
|
||
|
tmp_args_element_name_4 = var_body;
|
||
|
frame_27cce2e6de14d29bbcb3a987e8d18bbf->m_frame.f_lineno = 81;
|
||
|
{
|
||
|
PyObject *call_args[] = { tmp_args_element_name_4 };
|
||
|
tmp_source_name_2 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_7, call_args );
|
||
|
}
|
||
|
|
||
|
if ( tmp_source_name_2 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 81;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
tmp_called_name_6 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_write );
|
||
|
Py_DECREF( tmp_source_name_2 );
|
||
|
if ( tmp_called_name_6 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 81;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
if ( var_field == NULL )
|
||
|
{
|
||
|
Py_DECREF( tmp_called_name_6 );
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "field" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 81;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
|
||
|
tmp_called_instance_1 = var_field;
|
||
|
frame_27cce2e6de14d29bbcb3a987e8d18bbf->m_frame.f_lineno = 81;
|
||
|
tmp_args_element_name_5 = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain_render_headers );
|
||
|
if ( tmp_args_element_name_5 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
Py_DECREF( tmp_called_name_6 );
|
||
|
|
||
|
exception_lineno = 81;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
frame_27cce2e6de14d29bbcb3a987e8d18bbf->m_frame.f_lineno = 81;
|
||
|
{
|
||
|
PyObject *call_args[] = { tmp_args_element_name_5 };
|
||
|
tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_6, call_args );
|
||
|
}
|
||
|
|
||
|
Py_DECREF( tmp_called_name_6 );
|
||
|
Py_DECREF( tmp_args_element_name_5 );
|
||
|
if ( tmp_unused == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 81;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
Py_DECREF( tmp_unused );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_6;
|
||
|
PyObject *tmp_source_name_3;
|
||
|
if ( var_field == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "field" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 82;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
|
||
|
tmp_source_name_3 = var_field;
|
||
|
tmp_assign_source_6 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_data );
|
||
|
if ( tmp_assign_source_6 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 82;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
{
|
||
|
PyObject *old = var_data;
|
||
|
var_data = tmp_assign_source_6;
|
||
|
Py_XDECREF( old );
|
||
|
}
|
||
|
|
||
|
}
|
||
|
{
|
||
|
nuitka_bool tmp_condition_result_2;
|
||
|
PyObject *tmp_isinstance_inst_1;
|
||
|
PyObject *tmp_isinstance_cls_1;
|
||
|
CHECK_OBJECT( var_data );
|
||
|
tmp_isinstance_inst_1 = var_data;
|
||
|
tmp_isinstance_cls_1 = (PyObject *)&PyLong_Type;
|
||
|
tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_1, tmp_isinstance_cls_1 );
|
||
|
if ( tmp_res == -1 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 84;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
tmp_condition_result_2 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
||
|
if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE )
|
||
|
{
|
||
|
goto branch_yes_2;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
goto branch_no_2;
|
||
|
}
|
||
|
branch_yes_2:;
|
||
|
{
|
||
|
PyObject *tmp_assign_source_7;
|
||
|
PyObject *tmp_unicode_arg_1;
|
||
|
CHECK_OBJECT( var_data );
|
||
|
tmp_unicode_arg_1 = var_data;
|
||
|
tmp_assign_source_7 = PyObject_Unicode( tmp_unicode_arg_1 );
|
||
|
if ( tmp_assign_source_7 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 85;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
{
|
||
|
PyObject *old = var_data;
|
||
|
var_data = tmp_assign_source_7;
|
||
|
Py_XDECREF( old );
|
||
|
}
|
||
|
|
||
|
}
|
||
|
branch_no_2:;
|
||
|
}
|
||
|
{
|
||
|
nuitka_bool tmp_condition_result_3;
|
||
|
PyObject *tmp_isinstance_inst_2;
|
||
|
PyObject *tmp_isinstance_cls_2;
|
||
|
PyObject *tmp_source_name_4;
|
||
|
PyObject *tmp_mvar_value_6;
|
||
|
CHECK_OBJECT( var_data );
|
||
|
tmp_isinstance_inst_2 = var_data;
|
||
|
tmp_mvar_value_6 = GET_STRING_DICT_VALUE( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_six );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_6 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_6 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_six );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_6 == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_NameError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "six" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 87;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
|
||
|
tmp_source_name_4 = tmp_mvar_value_6;
|
||
|
tmp_isinstance_cls_2 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_text_type );
|
||
|
if ( tmp_isinstance_cls_2 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 87;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_2, tmp_isinstance_cls_2 );
|
||
|
Py_DECREF( tmp_isinstance_cls_2 );
|
||
|
if ( tmp_res == -1 )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 87;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
tmp_condition_result_3 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
||
|
if ( tmp_condition_result_3 == NUITKA_BOOL_TRUE )
|
||
|
{
|
||
|
goto branch_yes_3;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
goto branch_no_3;
|
||
|
}
|
||
|
branch_yes_3:;
|
||
|
{
|
||
|
PyObject *tmp_called_name_8;
|
||
|
PyObject *tmp_source_name_5;
|
||
|
PyObject *tmp_called_name_9;
|
||
|
PyObject *tmp_mvar_value_7;
|
||
|
PyObject *tmp_args_element_name_6;
|
||
|
PyObject *tmp_args_element_name_7;
|
||
|
tmp_mvar_value_7 = GET_STRING_DICT_VALUE( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_writer );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_7 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_7 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_writer );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_7 == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_NameError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "writer" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 88;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
|
||
|
tmp_called_name_9 = tmp_mvar_value_7;
|
||
|
if ( var_body == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "body" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 88;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
|
||
|
tmp_args_element_name_6 = var_body;
|
||
|
frame_27cce2e6de14d29bbcb3a987e8d18bbf->m_frame.f_lineno = 88;
|
||
|
{
|
||
|
PyObject *call_args[] = { tmp_args_element_name_6 };
|
||
|
tmp_source_name_5 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_9, call_args );
|
||
|
}
|
||
|
|
||
|
if ( tmp_source_name_5 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 88;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
tmp_called_name_8 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain_write );
|
||
|
Py_DECREF( tmp_source_name_5 );
|
||
|
if ( tmp_called_name_8 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 88;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
if ( var_data == NULL )
|
||
|
{
|
||
|
Py_DECREF( tmp_called_name_8 );
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "data" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 88;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
|
||
|
tmp_args_element_name_7 = var_data;
|
||
|
frame_27cce2e6de14d29bbcb3a987e8d18bbf->m_frame.f_lineno = 88;
|
||
|
{
|
||
|
PyObject *call_args[] = { tmp_args_element_name_7 };
|
||
|
tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_8, call_args );
|
||
|
}
|
||
|
|
||
|
Py_DECREF( tmp_called_name_8 );
|
||
|
if ( tmp_unused == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 88;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
Py_DECREF( tmp_unused );
|
||
|
}
|
||
|
goto branch_end_3;
|
||
|
branch_no_3:;
|
||
|
{
|
||
|
PyObject *tmp_called_name_10;
|
||
|
PyObject *tmp_source_name_6;
|
||
|
PyObject *tmp_args_element_name_8;
|
||
|
if ( var_body == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "body" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 90;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
|
||
|
tmp_source_name_6 = var_body;
|
||
|
tmp_called_name_10 = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain_write );
|
||
|
if ( tmp_called_name_10 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 90;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
if ( var_data == NULL )
|
||
|
{
|
||
|
Py_DECREF( tmp_called_name_10 );
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "data" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 90;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
|
||
|
tmp_args_element_name_8 = var_data;
|
||
|
frame_27cce2e6de14d29bbcb3a987e8d18bbf->m_frame.f_lineno = 90;
|
||
|
{
|
||
|
PyObject *call_args[] = { tmp_args_element_name_8 };
|
||
|
tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_10, call_args );
|
||
|
}
|
||
|
|
||
|
Py_DECREF( tmp_called_name_10 );
|
||
|
if ( tmp_unused == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 90;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
Py_DECREF( tmp_unused );
|
||
|
}
|
||
|
branch_end_3:;
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_called_instance_2;
|
||
|
if ( var_body == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "body" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 92;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
|
||
|
tmp_called_instance_2 = var_body;
|
||
|
frame_27cce2e6de14d29bbcb3a987e8d18bbf->m_frame.f_lineno = 92;
|
||
|
tmp_unused = CALL_METHOD_WITH_ARGS1( tmp_called_instance_2, const_str_plain_write, &PyTuple_GET_ITEM( const_tuple_bytes_digest_e22048e4de62b4d2ac355aed7a0f9014_tuple, 0 ) );
|
||
|
|
||
|
if ( tmp_unused == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 92;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
Py_DECREF( tmp_unused );
|
||
|
}
|
||
|
if ( CONSIDER_THREADING() == false )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 78;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto try_except_handler_2;
|
||
|
}
|
||
|
goto loop_start_1;
|
||
|
loop_end_1:;
|
||
|
}
|
||
|
goto try_end_1;
|
||
|
// Exception handler code:
|
||
|
try_except_handler_2:;
|
||
|
exception_keeper_type_1 = exception_type;
|
||
|
exception_keeper_value_1 = exception_value;
|
||
|
exception_keeper_tb_1 = exception_tb;
|
||
|
exception_keeper_lineno_1 = exception_lineno;
|
||
|
exception_type = NULL;
|
||
|
exception_value = NULL;
|
||
|
exception_tb = NULL;
|
||
|
exception_lineno = 0;
|
||
|
|
||
|
{
|
||
|
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_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:;
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( tmp_for_loop_1__iter_value );
|
||
|
tmp_for_loop_1__iter_value = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
CHECK_OBJECT( (PyObject *)tmp_for_loop_1__for_iterator );
|
||
|
Py_DECREF( tmp_for_loop_1__for_iterator );
|
||
|
tmp_for_loop_1__for_iterator = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_called_name_11;
|
||
|
PyObject *tmp_source_name_7;
|
||
|
PyObject *tmp_args_element_name_9;
|
||
|
PyObject *tmp_called_name_12;
|
||
|
PyObject *tmp_mvar_value_8;
|
||
|
PyObject *tmp_args_element_name_10;
|
||
|
PyObject *tmp_left_name_2;
|
||
|
PyObject *tmp_right_name_2;
|
||
|
if ( var_body == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "body" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 94;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_source_name_7 = var_body;
|
||
|
tmp_called_name_11 = LOOKUP_ATTRIBUTE( tmp_source_name_7, const_str_plain_write );
|
||
|
if ( tmp_called_name_11 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 94;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_mvar_value_8 = GET_STRING_DICT_VALUE( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_b );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_8 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_8 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_b );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_8 == NULL )
|
||
|
{
|
||
|
Py_DECREF( tmp_called_name_11 );
|
||
|
exception_type = PyExc_NameError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "b" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 94;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_called_name_12 = tmp_mvar_value_8;
|
||
|
tmp_left_name_2 = const_str_digest_ef308a9de359b9f7891c4dc2134cd197;
|
||
|
if ( par_boundary == NULL )
|
||
|
{
|
||
|
Py_DECREF( tmp_called_name_11 );
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "boundary" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 94;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_right_name_2 = par_boundary;
|
||
|
tmp_args_element_name_10 = BINARY_OPERATION_REMAINDER( tmp_left_name_2, tmp_right_name_2 );
|
||
|
if ( tmp_args_element_name_10 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
Py_DECREF( tmp_called_name_11 );
|
||
|
|
||
|
exception_lineno = 94;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
frame_27cce2e6de14d29bbcb3a987e8d18bbf->m_frame.f_lineno = 94;
|
||
|
{
|
||
|
PyObject *call_args[] = { tmp_args_element_name_10 };
|
||
|
tmp_args_element_name_9 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_12, call_args );
|
||
|
}
|
||
|
|
||
|
Py_DECREF( tmp_args_element_name_10 );
|
||
|
if ( tmp_args_element_name_9 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
Py_DECREF( tmp_called_name_11 );
|
||
|
|
||
|
exception_lineno = 94;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
frame_27cce2e6de14d29bbcb3a987e8d18bbf->m_frame.f_lineno = 94;
|
||
|
{
|
||
|
PyObject *call_args[] = { tmp_args_element_name_9 };
|
||
|
tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_11, call_args );
|
||
|
}
|
||
|
|
||
|
Py_DECREF( tmp_called_name_11 );
|
||
|
Py_DECREF( tmp_args_element_name_9 );
|
||
|
if ( tmp_unused == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 94;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
Py_DECREF( tmp_unused );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_8;
|
||
|
PyObject *tmp_unicode_arg_2;
|
||
|
PyObject *tmp_left_name_3;
|
||
|
PyObject *tmp_right_name_3;
|
||
|
tmp_left_name_3 = const_str_digest_5d92179742448ca3da55c85204ba8635;
|
||
|
if ( par_boundary == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "boundary" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 96;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_right_name_3 = par_boundary;
|
||
|
tmp_unicode_arg_2 = BINARY_OPERATION_REMAINDER( tmp_left_name_3, tmp_right_name_3 );
|
||
|
if ( tmp_unicode_arg_2 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 96;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_assign_source_8 = PyObject_Unicode( tmp_unicode_arg_2 );
|
||
|
Py_DECREF( tmp_unicode_arg_2 );
|
||
|
if ( tmp_assign_source_8 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 96;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
assert( var_content_type == NULL );
|
||
|
var_content_type = tmp_assign_source_8;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_tuple_element_1;
|
||
|
PyObject *tmp_called_instance_3;
|
||
|
if ( var_body == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "body" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 98;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_called_instance_3 = var_body;
|
||
|
frame_27cce2e6de14d29bbcb3a987e8d18bbf->m_frame.f_lineno = 98;
|
||
|
tmp_tuple_element_1 = CALL_METHOD_NO_ARGS( tmp_called_instance_3, const_str_plain_getvalue );
|
||
|
if ( tmp_tuple_element_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 98;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_return_value = PyTuple_New( 2 );
|
||
|
PyTuple_SET_ITEM( tmp_return_value, 0, tmp_tuple_element_1 );
|
||
|
if ( var_content_type == NULL )
|
||
|
{
|
||
|
Py_DECREF( tmp_return_value );
|
||
|
exception_type = PyExc_UnboundLocalError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "content_type" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 98;
|
||
|
type_description_1 = "oooooo";
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_tuple_element_1 = var_content_type;
|
||
|
Py_INCREF( tmp_tuple_element_1 );
|
||
|
PyTuple_SET_ITEM( tmp_return_value, 1, tmp_tuple_element_1 );
|
||
|
goto frame_return_exit_1;
|
||
|
}
|
||
|
|
||
|
#if 0
|
||
|
RESTORE_FRAME_EXCEPTION( frame_27cce2e6de14d29bbcb3a987e8d18bbf );
|
||
|
#endif
|
||
|
|
||
|
// Put the previous frame back on top.
|
||
|
popFrameStack();
|
||
|
|
||
|
goto frame_no_exception_1;
|
||
|
|
||
|
frame_return_exit_1:;
|
||
|
#if 0
|
||
|
RESTORE_FRAME_EXCEPTION( frame_27cce2e6de14d29bbcb3a987e8d18bbf );
|
||
|
#endif
|
||
|
|
||
|
// Put the previous frame back on top.
|
||
|
popFrameStack();
|
||
|
|
||
|
goto try_return_handler_1;
|
||
|
|
||
|
frame_exception_exit_1:;
|
||
|
|
||
|
#if 0
|
||
|
RESTORE_FRAME_EXCEPTION( frame_27cce2e6de14d29bbcb3a987e8d18bbf );
|
||
|
#endif
|
||
|
|
||
|
if ( exception_tb == NULL )
|
||
|
{
|
||
|
exception_tb = MAKE_TRACEBACK( frame_27cce2e6de14d29bbcb3a987e8d18bbf, exception_lineno );
|
||
|
}
|
||
|
else if ( exception_tb->tb_frame != &frame_27cce2e6de14d29bbcb3a987e8d18bbf->m_frame )
|
||
|
{
|
||
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_27cce2e6de14d29bbcb3a987e8d18bbf, exception_lineno );
|
||
|
}
|
||
|
|
||
|
// Attachs locals to frame if any.
|
||
|
Nuitka_Frame_AttachLocals(
|
||
|
(struct Nuitka_FrameObject *)frame_27cce2e6de14d29bbcb3a987e8d18bbf,
|
||
|
type_description_1,
|
||
|
par_fields,
|
||
|
par_boundary,
|
||
|
var_body,
|
||
|
var_field,
|
||
|
var_data,
|
||
|
var_content_type
|
||
|
);
|
||
|
|
||
|
|
||
|
// Release cached frame.
|
||
|
if ( frame_27cce2e6de14d29bbcb3a987e8d18bbf == cache_frame_27cce2e6de14d29bbcb3a987e8d18bbf )
|
||
|
{
|
||
|
Py_DECREF( frame_27cce2e6de14d29bbcb3a987e8d18bbf );
|
||
|
}
|
||
|
cache_frame_27cce2e6de14d29bbcb3a987e8d18bbf = NULL;
|
||
|
|
||
|
assertFrameObject( frame_27cce2e6de14d29bbcb3a987e8d18bbf );
|
||
|
|
||
|
// Put the previous frame back on top.
|
||
|
popFrameStack();
|
||
|
|
||
|
// Return the error.
|
||
|
goto try_except_handler_1;
|
||
|
|
||
|
frame_no_exception_1:;
|
||
|
// tried codes exits in all cases
|
||
|
NUITKA_CANNOT_GET_HERE( urllib3$filepost$$$function_4_encode_multipart_formdata );
|
||
|
return NULL;
|
||
|
// Return handler code:
|
||
|
try_return_handler_1:;
|
||
|
{
|
||
|
Py_XDECREF( par_fields );
|
||
|
par_fields = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( par_boundary );
|
||
|
par_boundary = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( var_body );
|
||
|
var_body = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( var_field );
|
||
|
var_field = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( var_data );
|
||
|
var_data = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( var_content_type );
|
||
|
var_content_type = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
goto function_return_exit;
|
||
|
}
|
||
|
// Exception handler code:
|
||
|
try_except_handler_1:;
|
||
|
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( par_fields );
|
||
|
par_fields = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( par_boundary );
|
||
|
par_boundary = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( var_body );
|
||
|
var_body = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( var_field );
|
||
|
var_field = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( var_data );
|
||
|
var_data = NULL;
|
||
|
|
||
|
}
|
||
|
{
|
||
|
Py_XDECREF( var_content_type );
|
||
|
var_content_type = 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 function_exception_exit;
|
||
|
}
|
||
|
// End of try:
|
||
|
}
|
||
|
|
||
|
// Return statement must have exited already.
|
||
|
NUITKA_CANNOT_GET_HERE( urllib3$filepost$$$function_4_encode_multipart_formdata );
|
||
|
return NULL;
|
||
|
|
||
|
function_exception_exit:
|
||
|
assert( exception_type );
|
||
|
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
|
||
|
|
||
|
return NULL;
|
||
|
function_return_exit:
|
||
|
|
||
|
CHECK_OBJECT( tmp_return_value );
|
||
|
assert( had_error || !ERROR_OCCURRED() );
|
||
|
return tmp_return_value;
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
static PyObject *MAKE_FUNCTION_urllib3$filepost$$$function_1_choose_boundary( )
|
||
|
{
|
||
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
||
|
impl_urllib3$filepost$$$function_1_choose_boundary,
|
||
|
const_str_plain_choose_boundary,
|
||
|
#if PYTHON_VERSION >= 300
|
||
|
NULL,
|
||
|
#endif
|
||
|
codeobj_64102b81efe88390b9d940172620894b,
|
||
|
NULL,
|
||
|
#if PYTHON_VERSION >= 300
|
||
|
NULL,
|
||
|
NULL,
|
||
|
#endif
|
||
|
module_urllib3$filepost,
|
||
|
const_str_digest_c57c59c8c6b1e46ea6d5f6838ba8230c,
|
||
|
0
|
||
|
);
|
||
|
|
||
|
return (PyObject *)result;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
static PyObject *MAKE_FUNCTION_urllib3$filepost$$$function_2_iter_field_objects( )
|
||
|
{
|
||
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
||
|
impl_urllib3$filepost$$$function_2_iter_field_objects,
|
||
|
const_str_plain_iter_field_objects,
|
||
|
#if PYTHON_VERSION >= 300
|
||
|
NULL,
|
||
|
#endif
|
||
|
codeobj_d18c2022fbdc7e18c6dcffa8bd6388ca,
|
||
|
NULL,
|
||
|
#if PYTHON_VERSION >= 300
|
||
|
NULL,
|
||
|
NULL,
|
||
|
#endif
|
||
|
module_urllib3$filepost,
|
||
|
const_str_digest_8122a89b4df45e77ea6391b232e2a3b0,
|
||
|
0
|
||
|
);
|
||
|
|
||
|
return (PyObject *)result;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
static PyObject *MAKE_FUNCTION_urllib3$filepost$$$function_3_iter_fields( )
|
||
|
{
|
||
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
||
|
impl_urllib3$filepost$$$function_3_iter_fields,
|
||
|
const_str_plain_iter_fields,
|
||
|
#if PYTHON_VERSION >= 300
|
||
|
NULL,
|
||
|
#endif
|
||
|
codeobj_5f3ec7fbd342c9dfca8b5c7f5dbee1cc,
|
||
|
NULL,
|
||
|
#if PYTHON_VERSION >= 300
|
||
|
NULL,
|
||
|
NULL,
|
||
|
#endif
|
||
|
module_urllib3$filepost,
|
||
|
const_str_digest_d29a5daf13c035a94cd2ca2bbedf74f2,
|
||
|
0
|
||
|
);
|
||
|
|
||
|
return (PyObject *)result;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
static PyObject *MAKE_FUNCTION_urllib3$filepost$$$function_4_encode_multipart_formdata( PyObject *defaults )
|
||
|
{
|
||
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
||
|
impl_urllib3$filepost$$$function_4_encode_multipart_formdata,
|
||
|
const_str_plain_encode_multipart_formdata,
|
||
|
#if PYTHON_VERSION >= 300
|
||
|
NULL,
|
||
|
#endif
|
||
|
codeobj_27cce2e6de14d29bbcb3a987e8d18bbf,
|
||
|
defaults,
|
||
|
#if PYTHON_VERSION >= 300
|
||
|
NULL,
|
||
|
NULL,
|
||
|
#endif
|
||
|
module_urllib3$filepost,
|
||
|
const_str_digest_b68fd89e344303983e0d460257ca7e0d,
|
||
|
0
|
||
|
);
|
||
|
|
||
|
return (PyObject *)result;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
#if PYTHON_VERSION >= 300
|
||
|
static struct PyModuleDef mdef_urllib3$filepost =
|
||
|
{
|
||
|
PyModuleDef_HEAD_INIT,
|
||
|
"urllib3.filepost", /* m_name */
|
||
|
NULL, /* m_doc */
|
||
|
-1, /* m_size */
|
||
|
NULL, /* m_methods */
|
||
|
NULL, /* m_reload */
|
||
|
NULL, /* m_traverse */
|
||
|
NULL, /* m_clear */
|
||
|
NULL, /* m_free */
|
||
|
};
|
||
|
#endif
|
||
|
|
||
|
extern PyObject *const_str_plain___package__;
|
||
|
|
||
|
#if PYTHON_VERSION >= 300
|
||
|
extern PyObject *const_str_dot;
|
||
|
|
||
|
extern PyObject *const_str_plain___loader__;
|
||
|
extern PyObject *metapath_based_loader;
|
||
|
#endif
|
||
|
|
||
|
#if PYTHON_VERSION >= 340
|
||
|
extern PyObject *const_str_plain___spec__;
|
||
|
extern PyObject *const_str_plain__initializing;
|
||
|
#endif
|
||
|
|
||
|
extern void _initCompiledCellType();
|
||
|
extern void _initCompiledGeneratorType();
|
||
|
extern void _initCompiledFunctionType();
|
||
|
extern void _initCompiledMethodType();
|
||
|
extern void _initCompiledFrameType();
|
||
|
#if PYTHON_VERSION >= 350
|
||
|
extern void _initCompiledCoroutineTypes();
|
||
|
#endif
|
||
|
#if PYTHON_VERSION >= 360
|
||
|
extern void _initCompiledAsyncgenTypes();
|
||
|
#endif
|
||
|
|
||
|
// The exported interface to CPython. On import of the module, this function
|
||
|
// gets called. It has to have an exact function name, in cases it's a shared
|
||
|
// library export. This is hidden behind the MOD_INIT_DECL.
|
||
|
|
||
|
MOD_INIT_DECL( urllib3$filepost )
|
||
|
{
|
||
|
#if defined(_NUITKA_EXE) || PYTHON_VERSION >= 300
|
||
|
static bool _init_done = false;
|
||
|
|
||
|
// Modules might be imported repeatedly, which is to be ignored.
|
||
|
if ( _init_done )
|
||
|
{
|
||
|
return MOD_RETURN_VALUE( module_urllib3$filepost );
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
_init_done = true;
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#ifdef _NUITKA_MODULE
|
||
|
// In case of a stand alone extension module, need to call initialization
|
||
|
// the init here because that's the first and only time we are going to get
|
||
|
// called here.
|
||
|
|
||
|
// Initialize the constant values used.
|
||
|
_initBuiltinModule();
|
||
|
createGlobalConstants();
|
||
|
|
||
|
/* Initialize the compiled types of Nuitka. */
|
||
|
_initCompiledCellType();
|
||
|
_initCompiledGeneratorType();
|
||
|
_initCompiledFunctionType();
|
||
|
_initCompiledMethodType();
|
||
|
_initCompiledFrameType();
|
||
|
#if PYTHON_VERSION >= 350
|
||
|
_initCompiledCoroutineTypes();
|
||
|
#endif
|
||
|
#if PYTHON_VERSION >= 360
|
||
|
_initCompiledAsyncgenTypes();
|
||
|
#endif
|
||
|
|
||
|
#if PYTHON_VERSION < 300
|
||
|
_initSlotCompare();
|
||
|
#endif
|
||
|
#if PYTHON_VERSION >= 270
|
||
|
_initSlotIternext();
|
||
|
#endif
|
||
|
|
||
|
patchBuiltinModule();
|
||
|
patchTypeComparison();
|
||
|
|
||
|
// Enable meta path based loader if not already done.
|
||
|
#ifdef _NUITKA_TRACE
|
||
|
puts("urllib3.filepost: Calling setupMetaPathBasedLoader().");
|
||
|
#endif
|
||
|
setupMetaPathBasedLoader();
|
||
|
|
||
|
#if PYTHON_VERSION >= 300
|
||
|
patchInspectModule();
|
||
|
#endif
|
||
|
|
||
|
#endif
|
||
|
|
||
|
/* The constants only used by this module are created now. */
|
||
|
#ifdef _NUITKA_TRACE
|
||
|
puts("urllib3.filepost: Calling createModuleConstants().");
|
||
|
#endif
|
||
|
createModuleConstants();
|
||
|
|
||
|
/* The code objects used by this module are created now. */
|
||
|
#ifdef _NUITKA_TRACE
|
||
|
puts("urllib3.filepost: Calling createModuleCodeObjects().");
|
||
|
#endif
|
||
|
createModuleCodeObjects();
|
||
|
|
||
|
// puts( "in initurllib3$filepost" );
|
||
|
|
||
|
// Create the module object first. There are no methods initially, all are
|
||
|
// added dynamically in actual code only. Also no "__doc__" is initially
|
||
|
// set at this time, as it could not contain NUL characters this way, they
|
||
|
// are instead set in early module code. No "self" for modules, we have no
|
||
|
// use for it.
|
||
|
#if PYTHON_VERSION < 300
|
||
|
module_urllib3$filepost = Py_InitModule4(
|
||
|
"urllib3.filepost", // Module Name
|
||
|
NULL, // No methods initially, all are added
|
||
|
// dynamically in actual module code only.
|
||
|
NULL, // No "__doc__" is initially set, as it could
|
||
|
// not contain NUL this way, added early in
|
||
|
// actual code.
|
||
|
NULL, // No self for modules, we don't use it.
|
||
|
PYTHON_API_VERSION
|
||
|
);
|
||
|
#else
|
||
|
|
||
|
module_urllib3$filepost = PyModule_Create( &mdef_urllib3$filepost );
|
||
|
#endif
|
||
|
|
||
|
moduledict_urllib3$filepost = MODULE_DICT( module_urllib3$filepost );
|
||
|
|
||
|
// Update "__package__" value to what it ought to be.
|
||
|
{
|
||
|
#if 0
|
||
|
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain___name__ );
|
||
|
|
||
|
UPDATE_STRING_DICT1(
|
||
|
moduledict_urllib3$filepost,
|
||
|
(Nuitka_StringObject *)const_str_plain___package__,
|
||
|
module_name
|
||
|
);
|
||
|
|
||
|
#else
|
||
|
|
||
|
#if PYTHON_VERSION < 300
|
||
|
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_urllib3$filepost, (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$filepost,
|
||
|
(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$filepost, (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$filepost,
|
||
|
(Nuitka_StringObject *)const_str_plain___package__,
|
||
|
PyUnicode_Substring( module_name, 0, dot_index )
|
||
|
);
|
||
|
}
|
||
|
#endif
|
||
|
#endif
|
||
|
}
|
||
|
|
||
|
CHECK_OBJECT( module_urllib3$filepost );
|
||
|
|
||
|
// 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_be396efa0b72625f3db0177ef0977296, module_urllib3$filepost );
|
||
|
|
||
|
assert( r != -1 );
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
// For deep importing of a module we need to have "__builtins__", so we set
|
||
|
// it ourselves in the same way than CPython does. Note: This must be done
|
||
|
// before the frame object is allocated, or else it may fail.
|
||
|
|
||
|
if ( GET_STRING_DICT_VALUE( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain___builtins__ ) == NULL )
|
||
|
{
|
||
|
PyObject *value = (PyObject *)builtin_module;
|
||
|
|
||
|
// Check if main module, not a dict then but the module itself.
|
||
|
#if !defined(_NUITKA_EXE) || !0
|
||
|
value = PyModule_GetDict( value );
|
||
|
#endif
|
||
|
|
||
|
UPDATE_STRING_DICT0( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain___builtins__, value );
|
||
|
}
|
||
|
|
||
|
#if PYTHON_VERSION >= 300
|
||
|
UPDATE_STRING_DICT0( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain___loader__, metapath_based_loader );
|
||
|
#endif
|
||
|
|
||
|
#if PYTHON_VERSION >= 340
|
||
|
#if 0
|
||
|
UPDATE_STRING_DICT0( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain___spec__, Py_None );
|
||
|
#else
|
||
|
{
|
||
|
PyObject *bootstrap_module = PyImport_ImportModule("importlib._bootstrap");
|
||
|
CHECK_OBJECT( bootstrap_module );
|
||
|
PyObject *module_spec_class = PyObject_GetAttrString( bootstrap_module, "ModuleSpec" );
|
||
|
Py_DECREF( bootstrap_module );
|
||
|
|
||
|
PyObject *args[] = {
|
||
|
GET_STRING_DICT_VALUE( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain___name__ ),
|
||
|
metapath_based_loader
|
||
|
};
|
||
|
|
||
|
PyObject *spec_value = CALL_FUNCTION_WITH_ARGS2(
|
||
|
module_spec_class,
|
||
|
args
|
||
|
);
|
||
|
|
||
|
SET_ATTRIBUTE( spec_value, const_str_plain__initializing, Py_True );
|
||
|
|
||
|
UPDATE_STRING_DICT1( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain___spec__, spec_value );
|
||
|
|
||
|
Py_DECREF( module_spec_class );
|
||
|
}
|
||
|
#endif
|
||
|
#endif
|
||
|
|
||
|
|
||
|
// Temp variables if any
|
||
|
struct Nuitka_FrameObject *frame_6da92f828731b447d98839acd7d4093e;
|
||
|
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;
|
||
|
|
||
|
// Module code.
|
||
|
{
|
||
|
PyObject *tmp_assign_source_1;
|
||
|
tmp_assign_source_1 = Py_None;
|
||
|
UPDATE_STRING_DICT0( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain___doc__, tmp_assign_source_1 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_2;
|
||
|
tmp_assign_source_2 = const_str_digest_9f72aa1f4da6ed7ebb5fa526269b75c5;
|
||
|
UPDATE_STRING_DICT0( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain___file__, tmp_assign_source_2 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_3;
|
||
|
tmp_assign_source_3 = Py_None;
|
||
|
UPDATE_STRING_DICT0( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain___cached__, tmp_assign_source_3 );
|
||
|
}
|
||
|
// Frame without reuse.
|
||
|
frame_6da92f828731b447d98839acd7d4093e = MAKE_MODULE_FRAME( codeobj_6da92f828731b447d98839acd7d4093e, module_urllib3$filepost );
|
||
|
|
||
|
// Push the new frame as the currently active one, and we should be exclusively
|
||
|
// owning it.
|
||
|
pushFrameStack( frame_6da92f828731b447d98839acd7d4093e );
|
||
|
assert( Py_REFCNT( frame_6da92f828731b447d98839acd7d4093e ) == 2 );
|
||
|
|
||
|
// Framed code:
|
||
|
{
|
||
|
PyObject *tmp_assign_source_4;
|
||
|
PyObject *tmp_import_name_from_1;
|
||
|
frame_6da92f828731b447d98839acd7d4093e->m_frame.f_lineno = 1;
|
||
|
tmp_import_name_from_1 = PyImport_ImportModule("__future__");
|
||
|
assert( !(tmp_import_name_from_1 == NULL) );
|
||
|
tmp_assign_source_4 = IMPORT_NAME( tmp_import_name_from_1, const_str_plain_absolute_import );
|
||
|
if ( tmp_assign_source_4 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 1;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
UPDATE_STRING_DICT1( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_absolute_import, tmp_assign_source_4 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_5;
|
||
|
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_binascii;
|
||
|
tmp_globals_name_1 = (PyObject *)moduledict_urllib3$filepost;
|
||
|
tmp_locals_name_1 = Py_None;
|
||
|
tmp_fromlist_name_1 = Py_None;
|
||
|
tmp_level_name_1 = const_int_0;
|
||
|
frame_6da92f828731b447d98839acd7d4093e->m_frame.f_lineno = 2;
|
||
|
tmp_assign_source_5 = IMPORT_MODULE5( tmp_name_name_1, tmp_globals_name_1, tmp_locals_name_1, tmp_fromlist_name_1, tmp_level_name_1 );
|
||
|
if ( tmp_assign_source_5 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 2;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
UPDATE_STRING_DICT1( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_binascii, tmp_assign_source_5 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_6;
|
||
|
PyObject *tmp_name_name_2;
|
||
|
PyObject *tmp_globals_name_2;
|
||
|
PyObject *tmp_locals_name_2;
|
||
|
PyObject *tmp_fromlist_name_2;
|
||
|
PyObject *tmp_level_name_2;
|
||
|
tmp_name_name_2 = const_str_plain_codecs;
|
||
|
tmp_globals_name_2 = (PyObject *)moduledict_urllib3$filepost;
|
||
|
tmp_locals_name_2 = Py_None;
|
||
|
tmp_fromlist_name_2 = Py_None;
|
||
|
tmp_level_name_2 = const_int_0;
|
||
|
frame_6da92f828731b447d98839acd7d4093e->m_frame.f_lineno = 3;
|
||
|
tmp_assign_source_6 = IMPORT_MODULE5( tmp_name_name_2, tmp_globals_name_2, tmp_locals_name_2, tmp_fromlist_name_2, tmp_level_name_2 );
|
||
|
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$filepost, (Nuitka_StringObject *)const_str_plain_codecs, tmp_assign_source_6 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_7;
|
||
|
PyObject *tmp_name_name_3;
|
||
|
PyObject *tmp_globals_name_3;
|
||
|
PyObject *tmp_locals_name_3;
|
||
|
PyObject *tmp_fromlist_name_3;
|
||
|
PyObject *tmp_level_name_3;
|
||
|
tmp_name_name_3 = const_str_plain_os;
|
||
|
tmp_globals_name_3 = (PyObject *)moduledict_urllib3$filepost;
|
||
|
tmp_locals_name_3 = Py_None;
|
||
|
tmp_fromlist_name_3 = Py_None;
|
||
|
tmp_level_name_3 = const_int_0;
|
||
|
frame_6da92f828731b447d98839acd7d4093e->m_frame.f_lineno = 4;
|
||
|
tmp_assign_source_7 = IMPORT_MODULE5( tmp_name_name_3, tmp_globals_name_3, tmp_locals_name_3, tmp_fromlist_name_3, tmp_level_name_3 );
|
||
|
if ( tmp_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$filepost, (Nuitka_StringObject *)const_str_plain_os, tmp_assign_source_7 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_8;
|
||
|
PyObject *tmp_import_name_from_2;
|
||
|
PyObject *tmp_name_name_4;
|
||
|
PyObject *tmp_globals_name_4;
|
||
|
PyObject *tmp_locals_name_4;
|
||
|
PyObject *tmp_fromlist_name_4;
|
||
|
PyObject *tmp_level_name_4;
|
||
|
tmp_name_name_4 = const_str_plain_io;
|
||
|
tmp_globals_name_4 = (PyObject *)moduledict_urllib3$filepost;
|
||
|
tmp_locals_name_4 = Py_None;
|
||
|
tmp_fromlist_name_4 = const_tuple_str_plain_BytesIO_tuple;
|
||
|
tmp_level_name_4 = const_int_0;
|
||
|
frame_6da92f828731b447d98839acd7d4093e->m_frame.f_lineno = 6;
|
||
|
tmp_import_name_from_2 = IMPORT_MODULE5( tmp_name_name_4, tmp_globals_name_4, tmp_locals_name_4, tmp_fromlist_name_4, tmp_level_name_4 );
|
||
|
if ( tmp_import_name_from_2 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 6;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_assign_source_8 = IMPORT_NAME( tmp_import_name_from_2, const_str_plain_BytesIO );
|
||
|
Py_DECREF( tmp_import_name_from_2 );
|
||
|
if ( tmp_assign_source_8 == 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$filepost, (Nuitka_StringObject *)const_str_plain_BytesIO, tmp_assign_source_8 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_9;
|
||
|
PyObject *tmp_import_name_from_3;
|
||
|
PyObject *tmp_name_name_5;
|
||
|
PyObject *tmp_globals_name_5;
|
||
|
PyObject *tmp_locals_name_5;
|
||
|
PyObject *tmp_fromlist_name_5;
|
||
|
PyObject *tmp_level_name_5;
|
||
|
tmp_name_name_5 = const_str_plain_packages;
|
||
|
tmp_globals_name_5 = (PyObject *)moduledict_urllib3$filepost;
|
||
|
tmp_locals_name_5 = Py_None;
|
||
|
tmp_fromlist_name_5 = const_tuple_str_plain_six_tuple;
|
||
|
tmp_level_name_5 = const_int_pos_1;
|
||
|
frame_6da92f828731b447d98839acd7d4093e->m_frame.f_lineno = 8;
|
||
|
tmp_import_name_from_3 = IMPORT_MODULE5( tmp_name_name_5, tmp_globals_name_5, tmp_locals_name_5, tmp_fromlist_name_5, tmp_level_name_5 );
|
||
|
if ( tmp_import_name_from_3 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 8;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
if ( PyModule_Check( tmp_import_name_from_3 ) )
|
||
|
{
|
||
|
tmp_assign_source_9 = IMPORT_NAME_OR_MODULE(
|
||
|
tmp_import_name_from_3,
|
||
|
(PyObject *)MODULE_DICT(tmp_import_name_from_3),
|
||
|
const_str_plain_six,
|
||
|
const_int_pos_1
|
||
|
);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
tmp_assign_source_9 = IMPORT_NAME( tmp_import_name_from_3, const_str_plain_six );
|
||
|
}
|
||
|
|
||
|
Py_DECREF( tmp_import_name_from_3 );
|
||
|
if ( tmp_assign_source_9 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 8;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
UPDATE_STRING_DICT1( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_six, tmp_assign_source_9 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_10;
|
||
|
PyObject *tmp_import_name_from_4;
|
||
|
PyObject *tmp_name_name_6;
|
||
|
PyObject *tmp_globals_name_6;
|
||
|
PyObject *tmp_locals_name_6;
|
||
|
PyObject *tmp_fromlist_name_6;
|
||
|
PyObject *tmp_level_name_6;
|
||
|
tmp_name_name_6 = const_str_digest_edd9cb70c3537b6a2b58ab6b4487087a;
|
||
|
tmp_globals_name_6 = (PyObject *)moduledict_urllib3$filepost;
|
||
|
tmp_locals_name_6 = Py_None;
|
||
|
tmp_fromlist_name_6 = const_tuple_str_plain_b_tuple;
|
||
|
tmp_level_name_6 = const_int_pos_1;
|
||
|
frame_6da92f828731b447d98839acd7d4093e->m_frame.f_lineno = 9;
|
||
|
tmp_import_name_from_4 = IMPORT_MODULE5( tmp_name_name_6, tmp_globals_name_6, tmp_locals_name_6, tmp_fromlist_name_6, tmp_level_name_6 );
|
||
|
if ( tmp_import_name_from_4 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 9;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
if ( PyModule_Check( tmp_import_name_from_4 ) )
|
||
|
{
|
||
|
tmp_assign_source_10 = IMPORT_NAME_OR_MODULE(
|
||
|
tmp_import_name_from_4,
|
||
|
(PyObject *)MODULE_DICT(tmp_import_name_from_4),
|
||
|
const_str_plain_b,
|
||
|
const_int_pos_1
|
||
|
);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
tmp_assign_source_10 = IMPORT_NAME( tmp_import_name_from_4, const_str_plain_b );
|
||
|
}
|
||
|
|
||
|
Py_DECREF( tmp_import_name_from_4 );
|
||
|
if ( tmp_assign_source_10 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 9;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
UPDATE_STRING_DICT1( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_b, tmp_assign_source_10 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_11;
|
||
|
PyObject *tmp_import_name_from_5;
|
||
|
PyObject *tmp_name_name_7;
|
||
|
PyObject *tmp_globals_name_7;
|
||
|
PyObject *tmp_locals_name_7;
|
||
|
PyObject *tmp_fromlist_name_7;
|
||
|
PyObject *tmp_level_name_7;
|
||
|
tmp_name_name_7 = const_str_plain_fields;
|
||
|
tmp_globals_name_7 = (PyObject *)moduledict_urllib3$filepost;
|
||
|
tmp_locals_name_7 = Py_None;
|
||
|
tmp_fromlist_name_7 = const_tuple_str_plain_RequestField_tuple;
|
||
|
tmp_level_name_7 = const_int_pos_1;
|
||
|
frame_6da92f828731b447d98839acd7d4093e->m_frame.f_lineno = 10;
|
||
|
tmp_import_name_from_5 = IMPORT_MODULE5( tmp_name_name_7, tmp_globals_name_7, tmp_locals_name_7, tmp_fromlist_name_7, tmp_level_name_7 );
|
||
|
if ( tmp_import_name_from_5 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 10;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
if ( PyModule_Check( tmp_import_name_from_5 ) )
|
||
|
{
|
||
|
tmp_assign_source_11 = IMPORT_NAME_OR_MODULE(
|
||
|
tmp_import_name_from_5,
|
||
|
(PyObject *)MODULE_DICT(tmp_import_name_from_5),
|
||
|
const_str_plain_RequestField,
|
||
|
const_int_pos_1
|
||
|
);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
tmp_assign_source_11 = IMPORT_NAME( tmp_import_name_from_5, const_str_plain_RequestField );
|
||
|
}
|
||
|
|
||
|
Py_DECREF( tmp_import_name_from_5 );
|
||
|
if ( tmp_assign_source_11 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 10;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
UPDATE_STRING_DICT1( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_RequestField, tmp_assign_source_11 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_12;
|
||
|
PyObject *tmp_subscribed_name_1;
|
||
|
PyObject *tmp_called_instance_1;
|
||
|
PyObject *tmp_mvar_value_1;
|
||
|
PyObject *tmp_subscript_name_1;
|
||
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_codecs );
|
||
|
|
||
|
if (unlikely( tmp_mvar_value_1 == NULL ))
|
||
|
{
|
||
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_codecs );
|
||
|
}
|
||
|
|
||
|
if ( tmp_mvar_value_1 == NULL )
|
||
|
{
|
||
|
|
||
|
exception_type = PyExc_NameError;
|
||
|
Py_INCREF( exception_type );
|
||
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "codecs" );
|
||
|
exception_tb = NULL;
|
||
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
||
|
CHAIN_EXCEPTION( exception_value );
|
||
|
|
||
|
exception_lineno = 12;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
|
||
|
tmp_called_instance_1 = tmp_mvar_value_1;
|
||
|
frame_6da92f828731b447d98839acd7d4093e->m_frame.f_lineno = 12;
|
||
|
tmp_subscribed_name_1 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_1, const_str_plain_lookup, &PyTuple_GET_ITEM( const_tuple_str_digest_c075052d723d6707083e869a0e3659bb_tuple, 0 ) );
|
||
|
|
||
|
if ( tmp_subscribed_name_1 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 12;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
tmp_subscript_name_1 = const_int_pos_3;
|
||
|
tmp_assign_source_12 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_1, tmp_subscript_name_1, 3 );
|
||
|
Py_DECREF( tmp_subscribed_name_1 );
|
||
|
if ( tmp_assign_source_12 == NULL )
|
||
|
{
|
||
|
assert( ERROR_OCCURRED() );
|
||
|
|
||
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
||
|
|
||
|
|
||
|
exception_lineno = 12;
|
||
|
|
||
|
goto frame_exception_exit_1;
|
||
|
}
|
||
|
UPDATE_STRING_DICT1( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_writer, tmp_assign_source_12 );
|
||
|
}
|
||
|
|
||
|
// Restore frame exception if necessary.
|
||
|
#if 0
|
||
|
RESTORE_FRAME_EXCEPTION( frame_6da92f828731b447d98839acd7d4093e );
|
||
|
#endif
|
||
|
popFrameStack();
|
||
|
|
||
|
assertFrameObject( frame_6da92f828731b447d98839acd7d4093e );
|
||
|
|
||
|
goto frame_no_exception_1;
|
||
|
|
||
|
frame_exception_exit_1:;
|
||
|
#if 0
|
||
|
RESTORE_FRAME_EXCEPTION( frame_6da92f828731b447d98839acd7d4093e );
|
||
|
#endif
|
||
|
|
||
|
if ( exception_tb == NULL )
|
||
|
{
|
||
|
exception_tb = MAKE_TRACEBACK( frame_6da92f828731b447d98839acd7d4093e, exception_lineno );
|
||
|
}
|
||
|
else if ( exception_tb->tb_frame != &frame_6da92f828731b447d98839acd7d4093e->m_frame )
|
||
|
{
|
||
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_6da92f828731b447d98839acd7d4093e, exception_lineno );
|
||
|
}
|
||
|
|
||
|
// Put the previous frame back on top.
|
||
|
popFrameStack();
|
||
|
|
||
|
// Return the error.
|
||
|
goto module_exception_exit;
|
||
|
|
||
|
frame_no_exception_1:;
|
||
|
{
|
||
|
PyObject *tmp_assign_source_13;
|
||
|
tmp_assign_source_13 = MAKE_FUNCTION_urllib3$filepost$$$function_1_choose_boundary( );
|
||
|
|
||
|
|
||
|
|
||
|
UPDATE_STRING_DICT1( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_choose_boundary, tmp_assign_source_13 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_14;
|
||
|
tmp_assign_source_14 = MAKE_FUNCTION_urllib3$filepost$$$function_2_iter_field_objects( );
|
||
|
|
||
|
|
||
|
|
||
|
UPDATE_STRING_DICT1( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_iter_field_objects, tmp_assign_source_14 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_15;
|
||
|
tmp_assign_source_15 = MAKE_FUNCTION_urllib3$filepost$$$function_3_iter_fields( );
|
||
|
|
||
|
|
||
|
|
||
|
UPDATE_STRING_DICT1( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_iter_fields, tmp_assign_source_15 );
|
||
|
}
|
||
|
{
|
||
|
PyObject *tmp_assign_source_16;
|
||
|
PyObject *tmp_defaults_1;
|
||
|
tmp_defaults_1 = const_tuple_none_tuple;
|
||
|
Py_INCREF( tmp_defaults_1 );
|
||
|
tmp_assign_source_16 = MAKE_FUNCTION_urllib3$filepost$$$function_4_encode_multipart_formdata( tmp_defaults_1 );
|
||
|
|
||
|
|
||
|
|
||
|
UPDATE_STRING_DICT1( moduledict_urllib3$filepost, (Nuitka_StringObject *)const_str_plain_encode_multipart_formdata, tmp_assign_source_16 );
|
||
|
}
|
||
|
|
||
|
return MOD_RETURN_VALUE( module_urllib3$filepost );
|
||
|
module_exception_exit:
|
||
|
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
|
||
|
return MOD_RETURN_VALUE( NULL );
|
||
|
}
|